test/test_function.rb in rucy-0.1.6 vs test/test_function.rb in rucy-0.1.7
- old
+ new
@@ -26,6 +26,12 @@
def test_return_string ()
assert_kind_of String, return_string
end
+ def test_check_arg_count ()
+ assert_equal :ok, arg_count_must_1(:arg1)
+ assert_raise(ArgumentError) {arg_count_must_1}
+ assert_raises(ArgumentError) {arg_count_must_1 :arg1, :arg2}
+ end
+
end# TestFunction