From 56419df9f31d3419bc388843b0ee167ba6ad836e Mon Sep 17 00:00:00 2001 From: duerst Date: Sat, 3 Dec 2016 05:09:09 +0000 Subject: [PATCH] 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 --- test/ruby/enc/test_case_comprehensive.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/ruby/enc/test_case_comprehensive.rb b/test/ruby/enc/test_case_comprehensive.rb index f0313d2b89..2a759cc54d 100644 --- a/test/ruby/enc/test_case_comprehensive.rb +++ b/test/ruby/enc/test_case_comprehensive.rb @@ -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