mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-16 20:28:04 +01:00
32 lines
393 B
Plaintext
32 lines
393 B
Plaintext
// Single line.
|
|
{ io.write("ok") }.call // expect: ok
|
|
|
|
// No trailing newline.
|
|
{
|
|
io.write("ok") }.call // expect: ok
|
|
|
|
// Trailing newline.
|
|
{
|
|
io.write("ok") // expect: ok
|
|
}.call
|
|
|
|
// Multiple expressions.
|
|
{
|
|
io.write("1") // expect: 1
|
|
io.write("2") // expect: 2
|
|
}.call
|
|
|
|
// Extra newlines.
|
|
{
|
|
|
|
|
|
io.write("1") // expect: 1
|
|
|
|
|
|
io.write("2") // expect: 2
|
|
|
|
|
|
}.call
|
|
|
|
// TODO(bob): Arguments.
|