summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2012-07-17 16:25:36 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2012-07-17 16:25:36 -0700
commit8eca0d5609000d680a79e967daf606e6fd167e87 (patch)
treeea72ad5fa23275338d6ee9f5e38b71e609780102 /test
parent4df4a3f0bf6e047daa83779730eb208e1a4f78c9 (diff)
parente6f1e7b899e25c523a43fab59d7f536877bd05ce (diff)
downloadmruby-8eca0d5609000d680a79e967daf606e6fd167e87.tar.gz
mruby-8eca0d5609000d680a79e967daf606e6fd167e87.zip
Merge pull request #378 from masamitsu-murase/modify_proc_lambda
Modify proc_lambda
Diffstat (limited to 'test')
-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 6e68b1b22..b96e85134 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