ruby-changes:36050
From: duerst <ko1@a...>
Date: Sat, 25 Oct 2014 19:30:51 +0900 (JST)
Subject: [ruby-changes:36050] duerst:r48131 (trunk): test/test-unicode_normalize.rb: removed unused function.
duerst 2014-10-25 19:30:36 +0900 (Sat, 25 Oct 2014) New Revision: 48131 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48131 Log: test/test-unicode_normalize.rb: removed unused function. Modified files: trunk/ChangeLog trunk/test/test_unicode_normalize.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 48130) +++ ChangeLog (revision 48131) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat Oct 25 19:30:30 2014 Martin Duerst <duerst@i...> + + * test/test-unicode_normalize.rb: removed unused function. + Sat Oct 25 18:41:41 2014 Martin Duerst <duerst@i...> * template/unicode_norm_gen.tmpl: Adjusted name of generating file. Index: test/test_unicode_normalize.rb =================================================================== --- test/test_unicode_normalize.rb (revision 48130) +++ test/test_unicode_normalize.rb (revision 48131) @@ -32,7 +32,7 @@ class TestNormalize < Test::Unit::TestCa https://github.com/ruby/ruby/blob/trunk/test/test_unicode_normalize.rb#L32 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::TestCa https://github.com/ruby/ruby/blob/trunk/test/test_unicode_normalize.rb#L88 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/