summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-10 07:48:48 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-10 07:48:48 +0000
commitc77efe114476e3fd5a1d66cba12ad65c7a1bf40e (patch)
tree33a9ad073cf0b10b580dbfef35d55406fe6e1f29 /test
parent0c50d7ba1511cb89e7dd51e6f270725f07012a5b (diff)
string.c: term fill
* string.c (rb_str_chomp_bang): fill wchar terminator. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-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|