mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
change test class name because it is not only about folding
* test/ruby/enc/test_case_comprehensive.rb: Change test class name from TestComprehensiveCaseFold to TestComprehensiveCaseMapping because the tests are about mapping in general, not only folding git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4a7c767ed2
commit
56419df9f3
1 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
require "test/unit"
|
||||
|
||||
class TestComprehensiveCaseFold < Test::Unit::TestCase
|
||||
class TestComprehensiveCaseMapping < Test::Unit::TestCase
|
||||
UNICODE_VERSION = RbConfig::CONFIG['UNICODE_VERSION']
|
||||
UNICODE_DATA_PATH = "../../../enc/unicode/data/#{UNICODE_VERSION}"
|
||||
|
||||
|
@ -22,13 +22,13 @@ class TestComprehensiveCaseFold < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_data_files_available
|
||||
unless TestComprehensiveCaseFold.data_files_available?
|
||||
unless TestComprehensiveCaseMapping.data_files_available?
|
||||
skip "Unicode data files not available in #{UNICODE_DATA_PATH}."
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
TestComprehensiveCaseFold.data_files_available? and class TestComprehensiveCaseFold
|
||||
TestComprehensiveCaseMapping.data_files_available? and class TestComprehensiveCaseMapping
|
||||
(CaseTest = Struct.new(:method_name, :attributes, :first_data, :follow_data)).class_eval do
|
||||
def initialize(method_name, attributes, first_data, follow_data=first_data)
|
||||
super
|
||||
|
|
Loading…
Reference in a new issue