From 9eb6304aa944183fa0e60a30a3c41a23a4ae1917 Mon Sep 17 00:00:00 2001 From: duerst Date: Sat, 28 Jul 2018 09:11:13 +0000 Subject: [PATCH] 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/test_unicode_normalize.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_unicode_normalize.rb b/test/test_unicode_normalize.rb index 35ce337338..0fc84343d0 100644 --- a/test/test_unicode_normalize.rb +++ b/test/test_unicode_normalize.rb @@ -146,7 +146,9 @@ class TestUnicodeNormalize 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)