* T and F were builtins that were created as functions. They have been changed to just be global values instead, so you don't need to suffix them with ! to get the creamy value inside. Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
10 lines
518 B
Plaintext
10 lines
518 B
Plaintext
0 [ "fail - 0 is not truthy" ] [ "OK" ] if! println!
|
|
1 [ "OK" ] [ "fail - 1 is truthy" ] if! println!
|
|
1.1 [ "OK" ] [ "fail - 1.1 is truthy" ] if! println!
|
|
0.1 [ "OK" ] [ "fail - 0.1 is truthy" ] if! println!
|
|
-0.1 [ "OK" ] [ "fail - -0.1 is truthy" ] if! println!
|
|
-0.0 [ "fail - -0.0 is not truthy" ] [ "OK" ] if! println!
|
|
0.0 [ "fail - 0.0 is not truthy" ] [ "OK" ] if! println!
|
|
|
|
T [ "OK" ] [ "fail - T should push True to the stack" ] if! println!
|
|
F [ "fail - F should push False to the stack" ] [ "OK" ] if! println! |