diff options
Diffstat (limited to 'test/-ext-/string')
-rw-r--r-- | test/-ext-/string/test_cstr.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/-ext-/string/test_cstr.rb b/test/-ext-/string/test_cstr.rb index a7cb0ebe9c..4535921836 100644 --- a/test/-ext-/string/test_cstr.rb +++ b/test/-ext-/string/test_cstr.rb @@ -60,6 +60,10 @@ class Test_StringCStr < Test::Unit::TestCase assert_wchars_term_char("a"*30) {|s| s[29,1] = ""} end + def test_wchar_sub! + assert_wchars_term_char("foobar") {|s| s.sub!(/#{"foo".encode(s.encoding)}/, "")} + end + def assert_wchars_term_char(str) result = {} WCHARS.map do |enc| |