summaryrefslogtreecommitdiffhomepage
path: root/test/t/kernel.rb
diff options
context:
space:
mode:
authorMasamitsu MURASE <[email protected]>2012-07-18 02:25:34 +0900
committerMasamitsu MURASE <[email protected]>2012-07-18 02:25:34 +0900
commite6f1e7b899e25c523a43fab59d7f536877bd05ce (patch)
tree0ce588a567b94340827c573162aee7d75c6d9e6f /test/t/kernel.rb
parent2936ba19aa7066771e6aaa9d95a9c9f642af7d0c (diff)
downloadmruby-e6f1e7b899e25c523a43fab59d7f536877bd05ce.tar.gz
mruby-e6f1e7b899e25c523a43fab59d7f536877bd05ce.zip
Add tests for Kernel#lambda and Kernel.lambda.
Diffstat (limited to 'test/t/kernel.rb')
-rw-r--r--test/t/kernel.rb8
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