aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--test/test_unicode_normalize.rb9
2 files changed, 5 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 271720b933..847b8cb97e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
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