2022-09-25 03:19:00 +02:00
|
|
|
say (false and false);
|
|
|
|
say (false and true);
|
|
|
|
say (true and false);
|
|
|
|
say (true and true);
|
|
|
|
|
|
|
|
-- Test value preservation
|
|
|
|
say (0 and 5);
|
|
|
|
say (1 and 5);
|
|
|
|
say (false and 4);
|
|
|
|
say (true and 4);
|
|
|
|
|
|
|
|
-- Test lazy evaluation
|
2022-10-25 16:20:24 +02:00
|
|
|
call (say 32; false) and (say 42);
|
|
|
|
call (say 32; true) and (say 42);
|