Last change
on this file since 274 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 |
|
---|
4 | assert('NoMethodError', '15.2.32') do
|
---|
5 | NoMethodError.class == Class
|
---|
6 | assert_raise NoMethodError do
|
---|
7 | doesNotExistAsAMethodNameForVerySure("")
|
---|
8 | end
|
---|
9 | end
|
---|
10 |
|
---|
11 | assert('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
|
---|
22 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.