forked from Mirror/wren
Mainly to get rid of one top level directory. But this will also be useful when there are tests of the embedding API.
6 lines
233 B
Plaintext
6 lines
233 B
Plaintext
IO.print(new Fn {}.arity) // expect: 0
|
|
IO.print(new Fn {|a| a}.arity) // expect: 1
|
|
IO.print(new Fn {|a, b| a}.arity) // expect: 2
|
|
IO.print(new Fn {|a, b, c| a}.arity) // expect: 3
|
|
IO.print(new Fn {|a, b, c, d| a}.arity) // expect: 4
|