summaryrefslogtreecommitdiff
path: root/test/-ext-/string/test_cstr.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/-ext-/string/test_cstr.rb')
-rw-r--r--test/-ext-/string/test_cstr.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/-ext-/string/test_cstr.rb b/test/-ext-/string/test_cstr.rb
index 4535921..86670dc 100644
--- a/test/-ext-/string/test_cstr.rb
+++ b/test/-ext-/string/test_cstr.rb
@@ -64,6 +64,10 @@ class Test_StringCStr < Test::Unit::TestCase
assert_wchars_term_char("foobar") {|s| s.sub!(/#{"foo".encode(s.encoding)}/, "")}
end
+ def test_wchar_delete!
+ assert_wchars_term_char("foobar") {|s| s.delete!("ao".encode(s.encoding))}
+ end
+
def assert_wchars_term_char(str)
result = {}
WCHARS.map do |enc|