ruby-changes:43113
From: duerst <ko1@a...>
Date: Sat, 28 May 2016 10:37:53 +0900 (JST)
Subject: [ruby-changes:43113] duerst:r55187 (trunk):
duerst 2016-05-28 10:37:49 +0900 (Sat, 28 May 2016) New Revision: 55187 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55187 Log: Modified files: trunk/test/ruby/enc/test_case_comprehensive.rb Index: test/ruby/enc/test_case_comprehensive.rb =================================================================== --- test/ruby/enc/test_case_comprehensive.rb (revision 55186) +++ test/ruby/enc/test_case_comprehensive.rb (revision 55187) @@ -90,6 +90,8 @@ class TestComprehensiveCaseFold < Test:: https://github.com/ruby/ruby/blob/trunk/test/ruby/enc/test_case_comprehensive.rb#L90 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:: https://github.com/ruby/ruby/blob/trunk/test/ruby/enc/test_case_comprehensive.rb#L113 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' -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/