source: EcnlProtoTool/trunk/mruby-1.2.0/test/t/nomethoderror.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: 483 bytes
Line 
1##
2# NoMethodError ISO Test
3
4assert('NoMethodError', '15.2.32') do
5 NoMethodError.class == Class
6 assert_raise NoMethodError do
7 doesNotExistAsAMethodNameForVerySure("")
8 end
9end
10
11assert('NoMethodError#args', '15.2.32.2.1') do
12 a = NoMethodError.new 'test', :test, [1, 2]
13 assert_equal [1, 2], a.args
14
15 assert_nothing_raised do
16 begin
17 doesNotExistAsAMethodNameForVerySure 3, 1, 4
18 rescue NoMethodError => e
19 assert_equal [3, 1, 4], e.args
20 end
21 end
22end
Note: See TracBrowser for help on using the repository browser.