1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/test_unicode_normalize.rb: Rename TestNormalize to

TestUnicodeNormalize.
  Define constants under TestUnicodeNormalize.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2014-11-06 12:45:15 +00:00
parent 600b913232
commit 8f1b3a799f
2 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1,9 @@
Thu Nov 6 21:44:36 2014 Tanaka Akira <akr@fsij.org>
* test/test_unicode_normalize.rb: Rename TestNormalize to
TestUnicodeNormalize.
Define constants under TestUnicodeNormalize.
Thu Nov 6 21:22:59 2014 Tanaka Akira <akr@fsij.org>
* test/open-uri/test_open-uri.rb: Check empty webrick log.

View file

@ -4,11 +4,12 @@
require 'test/unit'
NormTest = Struct.new :source, :NFC, :NFD, :NFKC, :NFKD, :line
class TestUnicodeNormalize < Test::Unit::TestCase
UNICODE_VERSION = '7.0.0'
class TestNormalize < Test::Unit::TestCase
NormTest = Struct.new :source, :NFC, :NFD, :NFKC, :NFKD, :line
def read_tests
IO.readlines(File.expand_path("../enc/unicode/data/#{UNICODE_VERSION}/NormalizationTest.txt", __dir__), encoding: 'utf-8')
.collect.with_index { |linedata, linenumber| [linedata, linenumber]}