14 lines
232 B
Plaintext
14 lines
232 B
Plaintext
|
say (false or false);
|
||
|
say (false or true);
|
||
|
say (true or false);
|
||
|
say (true or true);
|
||
|
|
||
|
-- Test value preservation
|
||
|
say (0 or 1);
|
||
|
say (0 or 0);
|
||
|
say (4 or 3);
|
||
|
|
||
|
-- Test lazy evaluation
|
||
|
(say 42; false) or say 10;
|
||
|
(say 42; true) or say 10;
|