ruby-changes:6701
From: mame <ko1@a...>
Date: Fri, 25 Jul 2008 21:56:49 +0900 (JST)
Subject: [ruby-changes:6701] Ruby:r18217 (trunk): * test/ruby/enc/test_koi8.rb: move from test/ruby/test_koi8.rb.
mame 2008-07-25 21:56:36 +0900 (Fri, 25 Jul 2008) New Revision: 18217 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=18217 Log: * test/ruby/enc/test_koi8.rb: move from test/ruby/test_koi8.rb. Added files: trunk/test/ruby/enc/test_koi8.rb Removed files: trunk/test/ruby/test_koi8.rb Modified files: trunk/ChangeLog Index: ChangeLog =================================================================== --- ChangeLog (revision 18216) +++ ChangeLog (revision 18217) @@ -1,3 +1,7 @@ +Fri Jul 25 21:55:38 2008 Yusuke Endoh <mame@t...> + + * test/ruby/enc/test_koi8.rb: move from test/ruby/test_koi8.rb. + Fri Jul 25 21:09:32 2008 Masaki Suketa <masaki.suketa@n...> * ext/win32ole/win32ole.c (ole_invoke, add_event_callback, Index: test/ruby/test_koi8.rb =================================================================== --- test/ruby/test_koi8.rb (revision 18216) +++ test/ruby/test_koi8.rb (revision 18217) @@ -1,22 +0,0 @@ -require "test/unit" - -class TestKOI8 < Test::Unit::TestCase - ASSERTS = %q( - (0xc0..0xdf).each do |c| - c1 = c.chr("ENCODING") - c2 = (c + 0x20).chr("ENCODING") - assert_match(/^(#{ c1 })\1$/i, c2 + c1) - assert_match(/^(#{ c2 })\1$/i, c1 + c2) - assert_match(/^[#{ c1 }]+$/i, c2 + c1) - assert_match(/^[#{ c2 }]+$/i, c1 + c2) - end - ) - - def test_koi8_r - eval("# encoding: koi8-r\n" + ASSERTS.gsub("ENCODING", "koi8-r")) - end - - def test_koi8_u - eval("# encoding: koi8-u\n" + ASSERTS.gsub("ENCODING", "koi8-u")) - end -end Index: test/ruby/enc/test_koi8.rb =================================================================== --- test/ruby/enc/test_koi8.rb (revision 0) +++ test/ruby/enc/test_koi8.rb (revision 18217) @@ -0,0 +1,22 @@ +require "test/unit" + +class TestKOI8 < Test::Unit::TestCase + ASSERTS = %q( + (0xc0..0xdf).each do |c| + c1 = c.chr("ENCODING") + c2 = (c + 0x20).chr("ENCODING") + assert_match(/^(#{ c1 })\1$/i, c2 + c1) + assert_match(/^(#{ c2 })\1$/i, c1 + c2) + assert_match(/^[#{ c1 }]+$/i, c2 + c1) + assert_match(/^[#{ c2 }]+$/i, c1 + c2) + end + ) + + def test_koi8_r + eval("# encoding: koi8-r\n" + ASSERTS.gsub("ENCODING", "koi8-r")) + end + + def test_koi8_u + eval("# encoding: koi8-u\n" + ASSERTS.gsub("ENCODING", "koi8-u")) + end +end Property changes on: test/ruby/enc/test_koi8.rb ___________________________________________________________________ Name: svn:eol-style + LF -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/