test/test_function.rb in rucy-0.1.21 vs test/test_function.rb in rucy-0.1.22
- old
+ new
@@ -6,30 +6,30 @@
class TestFunction < Test::Unit::TestCase
include Rucy::Tester
- def test_do_nothing_returns_nil ()
+ def test_do_nothing_returns_nil()
assert_equal nil, do_nothing
end
- def test_returns_nil ()
+ def test_returns_nil()
assert_equal nil, return_nil
end
- def test_return_int ()
+ def test_return_int()
assert_kind_of Integer, return_int
end
- def test_return_float ()
+ def test_return_float()
assert_kind_of Float, return_float
end
- def test_return_string ()
+ def test_return_string()
assert_kind_of String, return_string
end
- def test_check_arg_count ()
+ 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