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

ruby-changes:51872

From: duerst <ko1@a...>
Date: Sat, 28 Jul 2018 18:11:19 +0900 (JST)
Subject: [ruby-changes:51872] duerst:r64086 (trunk): always run unicode normalization that do not depend on data file

duerst	2018-07-28 18:11:13 +0900 (Sat, 28 Jul 2018)

  New Revision: 64086

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

  Log:
    always run unicode normalization that do not depend on data file
    
    * test/test_unicode_normalize.rb: extract tests that do not depend
      on NormalizationTest.txt data file from conditionally constructed
      part of TestUnicodeNormalize class, to always run them even if
      the data file isn't found.

  Modified files:
    trunk/test/test_unicode_normalize.rb
Index: test/test_unicode_normalize.rb
===================================================================
--- test/test_unicode_normalize.rb	(revision 64085)
+++ test/test_unicode_normalize.rb	(revision 64086)
@@ -146,7 +146,9 @@ class TestUnicodeNormalize https://github.com/ruby/ruby/blob/trunk/test/test_unicode_normalize.rb#L146
   generate_test_check_false :NFC, :NFKC, :nfkc
   generate_test_check_false :NFD, :NFKC, :nfkc
   generate_test_check_false :NFKD, :NFKC, :nfkc
+end
 
+class TestUnicodeNormalize
   def test_non_UTF_8
     assert_equal "\u1E0A".encode('UTF-16BE'), "D\u0307".encode('UTF-16BE').unicode_normalize(:nfc)
     assert_equal true, "\u1E0A".encode('UTF-16BE').unicode_normalized?(:nfc)

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

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