diff options
| author | Masamitsu MURASE <[email protected]> | 2012-07-18 02:25:34 +0900 |
|---|---|---|
| committer | Masamitsu MURASE <[email protected]> | 2012-07-18 02:25:34 +0900 |
| commit | e6f1e7b899e25c523a43fab59d7f536877bd05ce (patch) | |
| tree | 0ce588a567b94340827c573162aee7d75c6d9e6f /test | |
| parent | 2936ba19aa7066771e6aaa9d95a9c9f642af7d0c (diff) | |
| download | mruby-e6f1e7b899e25c523a43fab59d7f536877bd05ce.tar.gz mruby-e6f1e7b899e25c523a43fab59d7f536877bd05ce.zip | |
Add tests for Kernel#lambda and Kernel.lambda.
Diffstat (limited to 'test')
| -rw-r--r-- | test/t/kernel.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/t/kernel.rb b/test/t/kernel.rb index 4f1d2b42f..da818778a 100644 --- a/test/t/kernel.rb +++ b/test/t/kernel.rb @@ -36,7 +36,9 @@ assert('Kernel.lambda', '15.3.1.2.6') do true end - l.call and l.class == Proc + m = Kernel.lambda(&l) + + l.call and l.class == Proc and m.call and m.class == Proc end # Not implemented at the moment @@ -235,7 +237,9 @@ assert('Kernel#lambda', '15.3.1.3.27') do true end - l.call and l.class == Proc + m = lambda(&l) + + l.call and l.class == Proc and m.call and m.class == Proc end # Not implemented yet |
