diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-31 00:59:25 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-31 00:59:25 +0000 |
commit | f288185d46ff183abb4279ae596806dc64b46bf4 (patch) | |
tree | 4df683268b5f674a076d9bcda3d00a50023ef665 | |
parent | 53117e9fd20b76ead22990258c46fbb7cdabaa85 (diff) | |
download | ruby-f288185d46ff183abb4279ae596806dc64b46bf4.tar.gz |
* test/test_unicode_normalize.rb: added unicode version number to
test data location.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | test/test_unicode_normalize.rb | 4 |
2 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Fri Oct 31 09:58:14 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com> + + * test/test_unicode_normalize.rb: added unicode version number to + test data location. + Fri Oct 31 09:56:41 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com> * .gitignore: ignored unicode data with version directories. diff --git a/test/test_unicode_normalize.rb b/test/test_unicode_normalize.rb index 5c2a51ee05..bfd2800019 100644 --- a/test/test_unicode_normalize.rb +++ b/test/test_unicode_normalize.rb @@ -6,9 +6,11 @@ require 'test/unit' NormTest = Struct.new :source, :NFC, :NFD, :NFKC, :NFKD, :line +UNICODE_VERSION = '7.0.0' + class TestNormalize < Test::Unit::TestCase def read_tests - IO.readlines(File.expand_path('../enc/unicode/data/NormalizationTest.txt', __dir__), encoding: 'utf-8') + IO.readlines(File.expand_path("../enc/unicode/data/#{UNICODE_VERSION}/NormalizationTest.txt", __dir__), encoding: 'utf-8') .collect.with_index { |linedata, linenumber| [linedata, linenumber]} .reject { |line| line[0] =~ /^[\#@]/ } .collect do |line| |