mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/enc/test_case_comprehensive.rb, test_regex_casefold.rb,
test/test_unicode_normalize.rb: Replace UNICODE_VERSION from UnicodeNormalize with RbConfig::CONFIG['UNICODE_VERSION'] from feature 12460. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
80a0c0f808
commit
4a41a0f7d6
4 changed files with 10 additions and 5 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
Sun Jul 3 18:51:42 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
||||||
|
|
||||||
|
* test/ruby/enc/test_case_comprehensive.rb, test_regex_casefold.rb,
|
||||||
|
test/test_unicode_normalize.rb: Replace UNICODE_VERSION from
|
||||||
|
UnicodeNormalize with RbConfig::CONFIG['UNICODE_VERSION'] from
|
||||||
|
feature 12460.
|
||||||
|
|
||||||
Sun Jul 3 06:04:09 2016 Eric Wong <e@80x24.org>
|
Sun Jul 3 06:04:09 2016 Eric Wong <e@80x24.org>
|
||||||
|
|
||||||
* process.c (disable_child_handler_fork_child): simplify
|
* process.c (disable_child_handler_fork_child): simplify
|
||||||
|
|
|
@ -2,10 +2,9 @@
|
||||||
# Copyright © 2016 Martin J. Dürst (duerst@it.aoyama.ac.jp)
|
# Copyright © 2016 Martin J. Dürst (duerst@it.aoyama.ac.jp)
|
||||||
|
|
||||||
require "test/unit"
|
require "test/unit"
|
||||||
require 'unicode_normalize/normalize' # only for UNICODE_VERSION
|
|
||||||
|
|
||||||
class TestComprehensiveCaseFold < Test::Unit::TestCase
|
class TestComprehensiveCaseFold < Test::Unit::TestCase
|
||||||
UNICODE_VERSION = UnicodeNormalize::UNICODE_VERSION
|
UNICODE_VERSION = RbConfig::CONFIG['UNICODE_VERSION']
|
||||||
UNICODE_DATA_PATH = "../../../enc/unicode/data/#{UNICODE_VERSION}"
|
UNICODE_DATA_PATH = "../../../enc/unicode/data/#{UNICODE_VERSION}"
|
||||||
|
|
||||||
def self.hex2utf8(s)
|
def self.hex2utf8(s)
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
# Copyright Kimihito Matsui (松井 仁人) and Martin J. Dürst (duerst@it.aoyama.ac.jp)
|
# Copyright Kimihito Matsui (松井 仁人) and Martin J. Dürst (duerst@it.aoyama.ac.jp)
|
||||||
|
|
||||||
require "test/unit"
|
require "test/unit"
|
||||||
require 'unicode_normalize/normalize' # only for UNICODE_VERSION
|
|
||||||
|
|
||||||
class TestCaseFold < Test::Unit::TestCase
|
class TestCaseFold < Test::Unit::TestCase
|
||||||
|
|
||||||
UNICODE_VERSION = UnicodeNormalize::UNICODE_VERSION
|
UNICODE_VERSION = RbConfig::CONFIG['UNICODE_VERSION']
|
||||||
CaseTest = Struct.new :source, :target, :kind, :line
|
CaseTest = Struct.new :source, :target, :kind, :line
|
||||||
|
|
||||||
def check_downcase_properties(expected, start, *flags)
|
def check_downcase_properties(expected, start, *flags)
|
||||||
|
|
|
@ -8,7 +8,7 @@ require 'unicode_normalize/normalize'
|
||||||
|
|
||||||
class TestUnicodeNormalize < Test::Unit::TestCase
|
class TestUnicodeNormalize < Test::Unit::TestCase
|
||||||
|
|
||||||
UNICODE_VERSION = UnicodeNormalize::UNICODE_VERSION
|
UNICODE_VERSION = RbConfig::CONFIG['UNICODE_VERSION']
|
||||||
UNICODE_DATA_PATH = "../enc/unicode/data/#{UNICODE_VERSION}"
|
UNICODE_DATA_PATH = "../enc/unicode/data/#{UNICODE_VERSION}"
|
||||||
|
|
||||||
def self.expand_filename(basename)
|
def self.expand_filename(basename)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue