Files
sybil/examples/branch.sy

10 lines
518 B
Plaintext
Raw Normal View History

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!