aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_utf16.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_utf16.rb')
-rw-r--r--test/ruby/test_utf16.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_utf16.rb b/test/ruby/test_utf16.rb
index 358ae0bf10..74df84af6e 100644
--- a/test/ruby/test_utf16.rb
+++ b/test/ruby/test_utf16.rb
@@ -281,7 +281,7 @@ EOT
assert_str_equal("cd".encode("utf-16be"), r[1])
end
- def test_count
+ def test_count2
e = "abc".count("^b")
assert_equal(e, "abc".encode("utf-16be").count("^b".encode("utf-16be")))
assert_equal(e, "abc".encode("utf-16le").count("^b".encode("utf-16le")))