[前][次][番号順一覧][スレッド一覧]

ruby-changes:36220

From: akr <ko1@a...>
Date: Thu, 6 Nov 2014 21:45:22 +0900 (JST)
Subject: [ruby-changes:36220] akr:r48301 (trunk): * test/test_unicode_normalize.rb: Rename TestNormalize to

akr	2014-11-06 21:45:15 +0900 (Thu, 06 Nov 2014)

  New Revision: 48301

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48301

  Log:
    * test/test_unicode_normalize.rb: Rename TestNormalize to
      TestUnicodeNormalize.
      Define constants under TestUnicodeNormalize.

  Modified files:
    trunk/ChangeLog
    trunk/test/test_unicode_normalize.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 48300)
+++ ChangeLog	(revision 48301)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Nov  6 21:44:36 2014  Tanaka Akira  <akr@f...>
+
+	* test/test_unicode_normalize.rb: Rename TestNormalize to
+	  TestUnicodeNormalize.
+	  Define constants under TestUnicodeNormalize.
+
 Thu Nov  6 21:22:59 2014  Tanaka Akira  <akr@f...>
 
 	* test/open-uri/test_open-uri.rb: Check empty webrick log.
Index: test/test_unicode_normalize.rb
===================================================================
--- test/test_unicode_normalize.rb	(revision 48300)
+++ test/test_unicode_normalize.rb	(revision 48301)
@@ -4,11 +4,12 @@ https://github.com/ruby/ruby/blob/trunk/test/test_unicode_normalize.rb#L4
 
 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]}

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]