summaryrefslogtreecommitdiffhomepage
path: root/test/t/runtimeerror.rb
blob: 9157293cd9c0be7f66290bed2b208dae80d6e9a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
##
# RuntimeError ISO Test

assert('RuntimeError', '15.2.28') do
  e2 = nil
  begin
    # this will cause an exception due to the wrong location
    retry
  rescue => e1
    e2 = e1
  end

  RuntimeError.class == Class and e2.class == RuntimeError
end