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:
parent
600b913232
commit
8f1b3a799f
2 changed files with 10 additions and 3 deletions
|
@ -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.
|
||||
|
|
|
@ -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]}
|
||||
|
|
Loading…
Reference in a new issue