From 65264eadbd3a8e1a3a96024e559a4a72d97c71e4 Mon Sep 17 00:00:00 2001 From: nahi Date: Fri, 5 Sep 2003 11:28:27 +0000 Subject: * test/ruby/test_*.rb: replace 'assert(a == b)' with assert_equal(a, b)' git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_struct.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/ruby/test_struct.rb') diff --git a/test/ruby/test_struct.rb b/test/ruby/test_struct.rb index 2d50e9c198..e02f791f27 100644 --- a/test/ruby/test_struct.rb +++ b/test/ruby/test_struct.rb @@ -5,7 +5,7 @@ $KCODE = 'none' class TestStruct < Test::Unit::TestCase def test_struct struct_test = Struct.new("Test", :foo, :bar) - assert(struct_test == Struct::Test) + assert_equal(struct_test, Struct::Test) test = struct_test.new(1, 2) assert(test.foo == 1 && test.bar == 2) @@ -15,9 +15,9 @@ class TestStruct < Test::Unit::TestCase assert(a == 1 && b == 2) test[0] = 22 - assert(test.foo == 22) + assert_equal(test.foo, 22) test.bar = 47 - assert(test.bar == 47) + assert_equal(test.bar, 47) end end -- cgit v1.2.3