* test/test-unicode_normalize.rb: as often said, ruby is sometimes built

at non-srcdir.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2014-10-22 09:14:24 +00:00
Родитель 84f9fa8773
Коммит 6dd2a4810e
2 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Wed Oct 22 18:13:29 2014 NAKAMURA Usaku <usa@ruby-lang.org>
* test/test-unicode_normalize.rb: as often said, ruby is sometimes built
at non-srcdir.
Wed Oct 22 18:12:12 2014 Martin Duerst <duerst@it.aoyama.ac.jp>
* test/test-unicode_normalize.rb: Adjusted path for test

Просмотреть файл

@ -12,7 +12,7 @@ class TestNormalize < Test::Unit::TestCase
@@debug = false # if true, generation of explicit error messages is switched on
# false is about two times faster than true
def read_tests
IO.readlines('../enc/unicode/data/NormalizationTest.txt')
IO.readlines(File.expand_path('../enc/unicode/data/NormalizationTest.txt', __dir__))
.collect.with_index { |linedata, linenumber| [linedata, linenumber]}
.reject { |line| line[0] =~ /^[\#@]/ }
.collect do |line|