summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-28 01:37:49 (GMT)
committerduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-28 01:37:49 (GMT)
commit6375ad2815f46828888cea35f71651a844c74e9e (patch)
tree2cb4196cf5c4fbc3504dfef7ea518f8861e75e47 /test
parent94dc3e71bb4782b68d49e463242d348b90ad9dca (diff)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/enc/test_case_comprehensive.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ruby/enc/test_case_comprehensive.rb b/test/ruby/enc/test_case_comprehensive.rb
index 43f29b7..bd2350f 100644
--- a/test/ruby/enc/test_case_comprehensive.rb
+++ b/test/ruby/enc/test_case_comprehensive.rb
@@ -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'