diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-10 00:40:17 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-10 00:40:17 +0000 |
commit | bf74f633c50d3996c81da35d2315e63a10ba17d6 (patch) | |
tree | 849af94d299bdb55871b084ab7c3af980990a62a /test/-ext-/string | |
parent | 8cbf4003dbe02fca794606e15b47515fcd7e7cad (diff) | |
download | ruby-bf74f633c50d3996c81da35d2315e63a10ba17d6.tar.gz |
test_cstr.rb: failed encoding name
* test/-ext-/string/test_cstr.rb (test_wchar_long): show the
failed encoding name in error messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/-ext-/string')
-rw-r--r-- | test/-ext-/string/test_cstr.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/-ext-/string/test_cstr.rb b/test/-ext-/string/test_cstr.rb index 1809fa186a..f6a5d07c9b 100644 --- a/test/-ext-/string/test_cstr.rb +++ b/test/-ext-/string/test_cstr.rb @@ -33,10 +33,10 @@ class Test_StringCStr < Test::Unit::TestCase len = str.size * n WCHARS.each do |enc| s = Bug::String.new(str.encode(enc))*n - assert_nothing_raised(ArgumentError) {s.cstr_term} + assert_nothing_raised(ArgumentError, enc.name) {s.cstr_term} s.set_len(s.bytesize / 2) - assert_equal(len / 2, s.size) - assert_equal(0, s.cstr_term) + assert_equal(len / 2, s.size, enc.name) + assert_equal(0, s.cstr_term, enc.name) end end |