summaryrefslogtreecommitdiff
path: root/test/-ext-/string
diff options
context:
space:
mode:
Diffstat (limited to 'test/-ext-/string')
-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 e5979ec60b..a1288373ba 100644
--- a/test/-ext-/string/test_cstr.rb
+++ b/test/-ext-/string/test_cstr.rb
@@ -48,6 +48,10 @@ class Test_StringCStr < Test::Unit::TestCase
assert_wchars_term_char("a ") {|s| s.rstrip!}
end
+ def test_wchar_chop!
+ assert_wchars_term_char("a\n") {|s| s.chop!}
+ end
+
def assert_wchars_term_char(str)
result = {}
WCHARS.map do |enc|