diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-14 00:59:23 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-14 00:59:23 +0000 |
commit | cda0d562964e2c524673f26cda05346b7101a95f (patch) | |
tree | 69061314acdcd85597b8671959200e5cda79ddfa /test | |
parent | 7151598d5b2bc8a36995380be814a3183e4461c6 (diff) | |
download | ruby-cda0d562964e2c524673f26cda05346b7101a95f.tar.gz |
* test/test_unicode_normalize.rb: get rid of a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/test_unicode_normalize.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_unicode_normalize.rb b/test/test_unicode_normalize.rb index fdc9d3ca57..3dfac8b066 100644 --- a/test/test_unicode_normalize.rb +++ b/test/test_unicode_normalize.rb @@ -17,9 +17,9 @@ class TestUnicodeNormalize < Test::Unit::TestCase .collect.with_index { |linedata, linenumber| [linedata, linenumber]} .reject { |line| line[0] =~ /^[\#@]/ } .collect do |line| - NormTest.new *(line[0].split(';').take(5).collect do |code_string| + NormTest.new(*(line[0].split(';').take(5).collect do |code_string| code_string.split(/\s/).collect { |cp| cp.to_i(16) }.pack('U*') - end + [line[1]+1]) + end + [line[1]+1])) end end |