diff options
Diffstat (limited to 'test/ruby/test_string.rb')
-rw-r--r-- | test/ruby/test_string.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb index fba8d51b35..ce21db9815 100644 --- a/test/ruby/test_string.rb +++ b/test/ruby/test_string.rb @@ -281,10 +281,10 @@ class TestString < Test::Unit::TestCase def casetest(a, b, rev=false) msg = proc {"#{a} should#{' not' if rev} match #{b}"} case a - when b - assert(!rev, msg) - else - assert(rev, msg) + when b + assert(!rev, msg) + else + assert(rev, msg) end end |