aboutsummaryrefslogtreecommitdiffstats
path: root/bootstraptest/test_knownbug.rb
blob: 74981190d89375e1ecd1a001953992fb994b506f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#
# This test file concludes tests which point out known bugs.
# So all tests will cause failure.
#

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]'