source: EcnlProtoTool/trunk/mruby-1.2.0/test/t/argumenterror.rb@ 270

Last change on this file since 270 was 270, checked in by coas-nagasima, 7 years ago

mruby版ECNLプロトタイピング・ツールを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-ruby
File size: 286 bytes
Line 
1##
2# ArgumentError ISO Test
3
4assert('ArgumentError', '15.2.24') do
5 e2 = nil
6 a = []
7 begin
8 # this will cause an exception due to the wrong arguments
9 a[]
10 rescue => e1
11 e2 = e1
12 end
13
14 assert_equal(Class, ArgumentError.class)
15 assert_equal(ArgumentError, e2.class)
16end
Note: See TracBrowser for help on using the repository browser.