ruby-changes:3016
From: ko1@a...
Date: 23 Dec 2007 10:37:09 +0900
Subject: [ruby-changes:3016] akr - Ruby:r14508 (trunk): add a test for .
akr 2007-12-23 10:36:54 +0900 (Sun, 23 Dec 2007)
New Revision: 14508
Modified files:
trunk/bootstraptest/test_knownbug.rb
Log:
add a test for [ruby-core:14288].
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/bootstraptest/test_knownbug.rb?r1=14508&r2=14507
Index: bootstraptest/test_knownbug.rb
===================================================================
--- bootstraptest/test_knownbug.rb (revision 14507)
+++ bootstraptest/test_knownbug.rb (revision 14508)
@@ -3,9 +3,17 @@
# So all tests will cause failure.
#
-assert_normal_exit %{
+assert_normal_exit %q{
def foo(&block)
yield if block
end
foo(&:bar)
}, '[ruby-core:14279]'
+
+assert_equal 'ok', %q{
+ open("tmp", "w") {|f| f.write "a\u00FFb" }
+ s = open("tmp", "r:iso-8859-1:utf-8") {|f|
+ f.gets("\xFF".force_encoding("iso-8859-1"))
+ }
+ s == "a\xFF" ? :ok : :ng
+}, '[ruby-core:14288]'
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml