зеркало из https://github.com/github/ruby.git
* 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:
Родитель
84f9fa8773
Коммит
6dd2a4810e
|
@ -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|
|
||||
|
|
Загрузка…
Ссылка в новой задаче