Commit e6f1e7b8 authored by Masamitsu MURASE's avatar Masamitsu MURASE

Add tests for Kernel#lambda and Kernel.lambda.

parent 2936ba19
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment