mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Add tests for Kernel#lambda and Kernel.lambda.
This commit is contained in:
+6
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user