diff options
| author | Takeshi Watanabe <[email protected]> | 2014-04-14 20:34:49 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-14 22:01:52 +0900 |
| commit | 6e0c48d7584d27883d8fb7e5c6fe8eb6f1db0a91 (patch) | |
| tree | 957324b72a56e9e45efcd35acb51d5ca196d87ca /mrbgems/mruby-proc-ext/test | |
| parent | 4685a43dd69b8303cc0fbff063d6e2812ce7489c (diff) | |
| download | mruby-6e0c48d7584d27883d8fb7e5c6fe8eb6f1db0a91.tar.gz mruby-6e0c48d7584d27883d8fb7e5c6fe8eb6f1db0a91.zip | |
Fix and add test to Proc#inspect .
Diffstat (limited to 'mrbgems/mruby-proc-ext/test')
| -rw-r--r-- | mrbgems/mruby-proc-ext/test/proc.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mrbgems/mruby-proc-ext/test/proc.rb b/mrbgems/mruby-proc-ext/test/proc.rb index f5aacd490..0f5ecfb94 100644 --- a/mrbgems/mruby-proc-ext/test/proc.rb +++ b/mrbgems/mruby-proc-ext/test/proc.rb @@ -8,6 +8,11 @@ assert('Proc#source_location') do assert_equal loc[1], 5 end +assert('Proc#inspect') do + ins = Proc.new{}.inspect + assert_true ins.kind_of? String +end + assert('Proc#lambda?') do assert_true lambda{}.lambda? assert_true !Proc.new{}.lambda? |
