aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_struct.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_struct.rb')
-rw-r--r--test/ruby/test_struct.rb6
1 files changed, 3 insertions, 3 deletions
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