ruby-changes:36006
From: usa <ko1@a...>
Date: Wed, 22 Oct 2014 18:14:29 +0900 (JST)
Subject: [ruby-changes:36006] usa:r48087 (trunk): * test/test-unicode_normalize.rb: as often said, ruby is sometimes built
usa 2014-10-22 18:14:24 +0900 (Wed, 22 Oct 2014) New Revision: 48087 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48087 Log: * test/test-unicode_normalize.rb: as often said, ruby is sometimes built at non-srcdir. Modified files: trunk/ChangeLog trunk/test/test_unicode_normalize.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 48086) +++ ChangeLog (revision 48087) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Oct 22 18:13:29 2014 NAKAMURA Usaku <usa@r...> + + * 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@i...> * test/test-unicode_normalize.rb: Adjusted path for test Index: test/test_unicode_normalize.rb =================================================================== --- test/test_unicode_normalize.rb (revision 48086) +++ test/test_unicode_normalize.rb (revision 48087) @@ -12,7 +12,7 @@ class TestNormalize < Test::Unit::TestCa https://github.com/ruby/ruby/blob/trunk/test/test_unicode_normalize.rb#L12 @@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| -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/