diff options
-rw-r--r-- | bootstraptest/test_knownbug.rb | 10 |
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]' |