aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_unicode_normalize.rb
diff options
context:
space:
mode:
authorduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-25 10:30:36 +0000
committerduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-25 10:30:36 +0000
commitb3494924b6b3aa1860b3d71b6e014e50be8ef0db (patch)
tree2a5252d87f3f27ede0c097cca5948552ffd0ab04 /test/test_unicode_normalize.rb
parentc0988c87c42c43b82b7189b87d8c173ff32e78b9 (diff)
downloadruby-b3494924b6b3aa1860b3d71b6e014e50be8ef0db.tar.gz
test/test-unicode_normalize.rb: removed unused function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/test_unicode_normalize.rb')
-rw-r--r--test/test_unicode_normalize.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/test/test_unicode_normalize.rb b/test/test_unicode_normalize.rb
index 7eee7a033e..8db64a64f3 100644
--- a/test/test_unicode_normalize.rb
+++ b/test/test_unicode_normalize.rb
@@ -32,7 +32,7 @@ class TestNormalize < Test::Unit::TestCase
mesg = proc {"#{to_codepoints(expected)} expected but was #{to_codepoints(actual)} on line #{test[:line]} (#{normalization})"}
@@tests.each do |t|
test = t
- if not prechecked or test[source]==test[prechecked]
+ if prechecked.nil? or test[prechecked]==test[source]
expected = test[target]
actual = test[source].unicode_normalize(normalization)
assert_equal expected, actual, mesg
@@ -88,13 +88,6 @@ class TestNormalize < Test::Unit::TestCase
end
end
- def one_false_check_test(test, compare_column, check_column, test_form, line)
- if test[check_column- 1] != test[compare_column- 1]
- actual = test[check_column- 1].unicode_normalized?(test_form)
- assert_equal false, actual, "failed on line #{line+1} (#{test_form})"
- end
- end
-
def self.generate_test_check_false(source, compare, normalization)
define_method "test_check_false_#{source}_as_#{normalization}" do
test = nil