mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_unicode_normalize.rb: skip if not found
* test/test_unicode_normalize.rb (read_tests): do nothing if the test data file is not found. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b65b392e96
commit
16d2f2803f
1 changed files with 2 additions and 0 deletions
|
@ -21,6 +21,8 @@ class TestUnicodeNormalize < Test::Unit::TestCase
|
||||||
code_string.split(/\s/).collect { |cp| cp.to_i(16) }.pack('U*')
|
code_string.split(/\s/).collect { |cp| cp.to_i(16) }.pack('U*')
|
||||||
end + [line[1]+1])
|
end + [line[1]+1])
|
||||||
end
|
end
|
||||||
|
rescue Errno::ENOENT => e
|
||||||
|
skip e.message
|
||||||
end
|
end
|
||||||
|
|
||||||
def to_codepoints(string)
|
def to_codepoints(string)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue