summaryrefslogtreecommitdiff
path: root/bootstraptest/test_knownbug.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-23 01:36:54 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-23 01:36:54 +0000
commita072f94fbe5e0a5635cd7f82ca0d39e1abf7bacd (patch)
tree094f155720bc82224c041c9cee86440d3a265f88 /bootstraptest/test_knownbug.rb
parent4ef8764fef56fbe6a1a0e6da0ac62889f8893186 (diff)
add a test for [ruby-core:14288].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_knownbug.rb')
-rw-r--r--bootstraptest/test_knownbug.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb
index 91e3cd5e48..74981190d8 100644
--- a/bootstraptest/test_knownbug.rb
+++ b/bootstraptest/test_knownbug.rb
@@ -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]'