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

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

文字コードを設定

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-ruby;charset=UTF-8
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.