зеркало из https://github.com/github/ruby.git
* 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:
Родитель
600b913232
Коммит
8f1b3a799f
|
@ -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'
|
||||
UNICODE_VERSION = '7.0.0'
|
||||
|
||||
NormTest = Struct.new :source, :NFC, :NFD, :NFKC, :NFKD, :line
|
||||
|
||||
class TestNormalize < Test::Unit::TestCase
|
||||
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]}
|
||||
|
|
Загрузка…
Ссылка в новой задаче