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
This commit is contained in:
duerst 2014-10-25 10:30:36 +00:00
Родитель c0988c87c4
Коммит b3494924b6
2 изменённых файлов: 5 добавлений и 8 удалений

Просмотреть файл

@ -1,3 +1,7 @@
Sat Oct 25 19:30:30 2014 Martin Duerst <duerst@it.aoyama.ac.jp>
* test/test-unicode_normalize.rb: removed unused function.
Sat Oct 25 18:41:41 2014 Martin Duerst <duerst@it.aoyama.ac.jp>
* template/unicode_norm_gen.tmpl: Adjusted name of generating file.

Просмотреть файл

@ -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