diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-10 07:49:10 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-10 07:49:10 +0000 |
commit | 9d170963098fea8e11196cee155ca448bfc01fb3 (patch) | |
tree | 122d4869a71ceda9d16d7e7a313b96aacf3aff02 /test/-ext- | |
parent | ed94c24944b0014cc89a3b56f76881ccbfa61a1d (diff) | |
download | ruby-9d170963098fea8e11196cee155ca448bfc01fb3.tar.gz |
string.c: term fill
* string.c (rb_str_splice_0): fill wchar terminator.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/-ext-')
-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 89ab3bb7b0..a7cb0ebe9c 100644 --- a/test/-ext-/string/test_cstr.rb +++ b/test/-ext-/string/test_cstr.rb @@ -56,6 +56,10 @@ class Test_StringCStr < Test::Unit::TestCase assert_wchars_term_char("a\n") {|s| s.chomp!} end + def test_wchar_aset + assert_wchars_term_char("a"*30) {|s| s[29,1] = ""} + end + def assert_wchars_term_char(str) result = {} WCHARS.map do |enc| |