~ubuntu-branches/ubuntu/intrepid/ruby1.9/intrepid-updates

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#
# This test file concludes tests which point out known bugs.
# So all tests will cause failure.
#

# massign
assert_equal 'ok', %q{
  def m()
    yield :ng
  end
  r = :ok
  m {|(r)|}
  r
}, '[ruby-dev:31507]'

assert_equal 'ok', %q{
  begin
    catch {|t| throw t, :ok }
  rescue ArgumentError
    :ng
  end
}, '[ruby-dev:31609]'