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.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/-ext-/string/test_cstr.rb b/test/-ext-/string/test_cstr.rb
index 1e973d0a39..7e24ec6a70 100644
--- a/test/-ext-/string/test_cstr.rb
+++ b/test/-ext-/string/test_cstr.rb
@@ -86,6 +86,14 @@ class Test_StringCStr < Test::Unit::TestCase
}
end
+ def test_wchar_replace
+ assert_wchars_term_char("abc") {|s|
+ w = s.dup
+ s.replace("abcdefghijklmnop")
+ s.replace(w)
+ }
+ end
+
def test_embedded_from_heap
gh821 = "[GH-821]"
embedded_string = "abcdefghi"