1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

This commit is contained in:
duerst 2016-05-28 01:37:49 +00:00
parent 94dc3e71bb
commit 6375ad2815

View file

@ -90,6 +90,8 @@ class TestComprehensiveCaseFold < Test::Unit::TestCase
def self.all_tests
@@tests ||= read_data
rescue Errno::ENOENT => e
@@tests ||= []
end
def self.generate_casefold_tests (encoding)
@ -111,6 +113,12 @@ class TestComprehensiveCaseFold < Test::Unit::TestCase
end
end
def test_AAAAA_data_files_available
assert File.exist? File.expand_path("#{UNICODE_DATA_PATH}/UnicodeData.txt", __dir__)
assert File.exist? File.expand_path("#{UNICODE_DATA_PATH}/CaseFolding.txt", __dir__)
assert File.exist? File.expand_path("#{UNICODE_DATA_PATH}/SpecialCasing.txt", __dir__)
end
generate_casefold_tests 'US-ASCII'
generate_casefold_tests 'ASCII-8BIT'
generate_casefold_tests 'UTF-8'