diff options
Diffstat (limited to 'test/ruby/test_stringchar.rb')
-rw-r--r-- | test/ruby/test_stringchar.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_stringchar.rb b/test/ruby/test_stringchar.rb index 9e22bb35a0..e9b643ad3f 100644 --- a/test/ruby/test_stringchar.rb +++ b/test/ruby/test_stringchar.rb @@ -5,7 +5,7 @@ $KCODE = 'none' class TestStringchar < Test::Unit::TestCase def test_string assert_equal("abcd", "abcd") - assert("abcd" =~ /abcd/) + assert_match(/abcd/, "abcd") assert("abcd" === "abcd") # compile time string concatenation assert_equal("abcd", "ab" "cd") |