[前][次][番号順一覧][スレッド一覧]

ruby-changes:3310

From: ko1@a...
Date: 30 Dec 2007 23:57:18 +0900
Subject: [ruby-changes:3310] akr - Ruby:r14803 (trunk): fix \xc2\xa0 as \xc2\xa1.

akr	2007-12-30 23:57:07 +0900 (Sun, 30 Dec 2007)

  New Revision: 14803

  Modified files:
    trunk/test/ruby/test_m17n.rb

  Log:
    fix \xc2\xa0 as \xc2\xa1.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_m17n.rb?r1=14803&r2=14802

Index: test/ruby/test_m17n.rb
===================================================================
--- test/ruby/test_m17n.rb	(revision 14802)
+++ test/ruby/test_m17n.rb	(revision 14803)
@@ -219,14 +219,14 @@
   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 @@
   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\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\\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\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\\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_str_allocate

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml

[前][次][番号順一覧][スレッド一覧]