summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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