diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-30 14:57:07 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-30 14:57:07 +0000 |
commit | 4edb5d229a7b76ce4ada9399d3d2050d343245d9 (patch) | |
tree | d214fc2de2dd2a226422597f878576490dde1c14 /test/ruby | |
parent | 21789d53316b3894cbe81382ea45841728579225 (diff) | |
download | ruby-4edb5d229a7b76ce4ada9399d3d2050d343245d9.tar.gz |
fix \xc2\xa0 as \xc2\xa1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_m17n.rb | 86 |
1 files changed, 43 insertions, 43 deletions
diff --git a/test/ruby/test_m17n.rb b/test/ruby/test_m17n.rb index 39a41909bc..940170a6a4 100644 --- a/test/ruby/test_m17n.rb +++ b/test/ruby/test_m17n.rb @@ -219,14 +219,14 @@ class TestM17N < Test::Unit::TestCase end def test_string_mixed_unicode - assert_raise(SyntaxError) { eval(a(%{"\xc2\xa0\\u{6666}"})) } - assert_raise(SyntaxError) { eval(e(%{"\xc2\xa0\\u{6666}"})) } - assert_raise(SyntaxError) { eval(s(%{"\xc2\xa0\\u{6666}"})) } - assert_nothing_raised { eval(u(%{"\xc2\xa0\\u{6666}"})) } - assert_raise(SyntaxError) { eval(a(%{"\\u{6666}\xc2\xa0"})) } - assert_raise(SyntaxError) { eval(e(%{"\\u{6666}\xc2\xa0"})) } - assert_raise(SyntaxError) { eval(s(%{"\\u{6666}\xc2\xa0"})) } - assert_nothing_raised { eval(u(%{"\\u{6666}\xc2\xa0"})) } + assert_raise(SyntaxError) { eval(a(%{"\xc2\xa1\\u{6666}"})) } + assert_raise(SyntaxError) { eval(e(%{"\xc2\xa1\\u{6666}"})) } + assert_raise(SyntaxError) { eval(s(%{"\xc2\xa1\\u{6666}"})) } + assert_nothing_raised { eval(u(%{"\xc2\xa1\\u{6666}"})) } + assert_raise(SyntaxError) { eval(a(%{"\\u{6666}\xc2\xa1"})) } + assert_raise(SyntaxError) { eval(e(%{"\\u{6666}\xc2\xa1"})) } + assert_raise(SyntaxError) { eval(s(%{"\\u{6666}\xc2\xa1"})) } + assert_nothing_raised { eval(u(%{"\\u{6666}\xc2\xa1"})) } end def test_string_inspect @@ -620,41 +620,41 @@ class TestM17N < Test::Unit::TestCase end def test_regexp_mixed_unicode - assert_raise(SyntaxError) { eval(a(%{/\xc2\xa0\\u{6666}/})) } - assert_raise(SyntaxError) { eval(e(%{/\xc2\xa0\\u{6666}/})) } - assert_raise(SyntaxError) { eval(s(%{/\xc2\xa0\\u{6666}/})) } - assert_nothing_raised { eval(u(%{/\xc2\xa0\\u{6666}/})) } - assert_raise(SyntaxError) { eval(a(%{/\\u{6666}\xc2\xa0/})) } - assert_raise(SyntaxError) { eval(e(%{/\\u{6666}\xc2\xa0/})) } - assert_raise(SyntaxError) { eval(s(%{/\\u{6666}\xc2\xa0/})) } - assert_nothing_raised { eval(u(%{/\\u{6666}\xc2\xa0/})) } - - assert_raise(SyntaxError) { eval(a(%{/\\xc2\\xa0\\u{6666}/})) } - assert_raise(SyntaxError) { eval(e(%{/\\xc2\\xa0\\u{6666}/})) } - assert_raise(SyntaxError) { eval(s(%{/\\xc2\\xa0\\u{6666}/})) } - assert_nothing_raised { eval(u(%{/\\xc2\\xa0\\u{6666}/})) } - assert_raise(SyntaxError) { eval(a(%{/\\u{6666}\\xc2\\xa0/})) } - assert_raise(SyntaxError) { eval(e(%{/\\u{6666}\\xc2\\xa0/})) } - assert_raise(SyntaxError) { eval(s(%{/\\u{6666}\\xc2\\xa0/})) } - assert_nothing_raised { eval(u(%{/\\u{6666}\\xc2\\xa0/})) } - - assert_raise(SyntaxError) { eval(a(%{/\xc2\xa0#{}\\u{6666}/})) } - assert_raise(SyntaxError) { eval(e(%{/\xc2\xa0#{}\\u{6666}/})) } - assert_raise(SyntaxError) { eval(s(%{/\xc2\xa0#{}\\u{6666}/})) } - assert_nothing_raised { eval(u(%{/\xc2\xa0#{}\\u{6666}/})) } - assert_raise(SyntaxError) { eval(a(%{/\\u{6666}#{}\xc2\xa0/})) } - assert_raise(SyntaxError) { eval(e(%{/\\u{6666}#{}\xc2\xa0/})) } - assert_raise(SyntaxError) { eval(s(%{/\\u{6666}#{}\xc2\xa0/})) } - assert_nothing_raised { eval(u(%{/\\u{6666}#{}\xc2\xa0/})) } - - assert_raise(SyntaxError) { eval(a(%{/\\xc2\\xa0#{}\\u{6666}/})) } - assert_raise(SyntaxError) { eval(e(%{/\\xc2\\xa0#{}\\u{6666}/})) } - assert_raise(SyntaxError) { eval(s(%{/\\xc2\\xa0#{}\\u{6666}/})) } - assert_nothing_raised { eval(u(%{/\\xc2\\xa0#{}\\u{6666}/})) } - assert_raise(SyntaxError) { eval(a(%{/\\u{6666}#{}\\xc2\\xa0/})) } - assert_raise(SyntaxError) { eval(e(%{/\\u{6666}#{}\\xc2\\xa0/})) } - assert_raise(SyntaxError) { eval(s(%{/\\u{6666}#{}\\xc2\\xa0/})) } - assert_nothing_raised { eval(u(%{/\\u{6666}#{}\\xc2\\xa0/})) } + assert_raise(SyntaxError) { eval(a(%{/\xc2\xa1\\u{6666}/})) } + assert_raise(SyntaxError) { eval(e(%{/\xc2\xa1\\u{6666}/})) } + assert_raise(SyntaxError) { eval(s(%{/\xc2\xa1\\u{6666}/})) } + assert_nothing_raised { eval(u(%{/\xc2\xa1\\u{6666}/})) } + assert_raise(SyntaxError) { eval(a(%{/\\u{6666}\xc2\xa1/})) } + assert_raise(SyntaxError) { eval(e(%{/\\u{6666}\xc2\xa1/})) } + assert_raise(SyntaxError) { eval(s(%{/\\u{6666}\xc2\xa1/})) } + assert_nothing_raised { eval(u(%{/\\u{6666}\xc2\xa1/})) } + + assert_raise(SyntaxError) { eval(a(%{/\\xc2\\xa1\\u{6666}/})) } + assert_raise(SyntaxError) { eval(e(%{/\\xc2\\xa1\\u{6666}/})) } + assert_raise(SyntaxError) { eval(s(%{/\\xc2\\xa1\\u{6666}/})) } + assert_nothing_raised { eval(u(%{/\\xc2\\xa1\\u{6666}/})) } + assert_raise(SyntaxError) { eval(a(%{/\\u{6666}\\xc2\\xa1/})) } + assert_raise(SyntaxError) { eval(e(%{/\\u{6666}\\xc2\\xa1/})) } + assert_raise(SyntaxError) { eval(s(%{/\\u{6666}\\xc2\\xa1/})) } + assert_nothing_raised { eval(u(%{/\\u{6666}\\xc2\\xa1/})) } + + assert_raise(SyntaxError) { eval(a(%{/\xc2\xa1#{}\\u{6666}/})) } + assert_raise(SyntaxError) { eval(e(%{/\xc2\xa1#{}\\u{6666}/})) } + assert_raise(SyntaxError) { eval(s(%{/\xc2\xa1#{}\\u{6666}/})) } + assert_nothing_raised { eval(u(%{/\xc2\xa1#{}\\u{6666}/})) } + assert_raise(SyntaxError) { eval(a(%{/\\u{6666}#{}\xc2\xa1/})) } + assert_raise(SyntaxError) { eval(e(%{/\\u{6666}#{}\xc2\xa1/})) } + assert_raise(SyntaxError) { eval(s(%{/\\u{6666}#{}\xc2\xa1/})) } + assert_nothing_raised { eval(u(%{/\\u{6666}#{}\xc2\xa1/})) } + + assert_raise(SyntaxError) { eval(a(%{/\\xc2\\xa1#{}\\u{6666}/})) } + assert_raise(SyntaxError) { eval(e(%{/\\xc2\\xa1#{}\\u{6666}/})) } + assert_raise(SyntaxError) { eval(s(%{/\\xc2\\xa1#{}\\u{6666}/})) } + assert_nothing_raised { eval(u(%{/\\xc2\\xa1#{}\\u{6666}/})) } + assert_raise(SyntaxError) { eval(a(%{/\\u{6666}#{}\\xc2\\xa1/})) } + assert_raise(SyntaxError) { eval(e(%{/\\u{6666}#{}\\xc2\\xa1/})) } + assert_raise(SyntaxError) { eval(s(%{/\\u{6666}#{}\\xc2\\xa1/})) } + assert_nothing_raised { eval(u(%{/\\u{6666}#{}\\xc2\\xa1/})) } end def test_str_allocate |