fa/tests/stdlib/passing/logic_and.fa
Ari Archer c30a3de674
Deprecate mutability contexts
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
2022-07-27 13:41:50 +03:00

18 lines
482 B
Text

include 'std/std.fa'
include 'std/logic.fa'
fun main [ str str int ] eo
1 0 #and if "0 && 1 is not truthy" %error end
0 0 #and if "0 && 0 is not truthy" %error end
0 1 #and if "1 && 0 is not truthy" %error end
-1 1 #and if "-1 && 1 is not truthy" %error end
1 -1 #and if "1 && -1 is not truthy" %error end
1 1 #and #not if "1 && 1 is truthy" %error end
69 420 #and #not if "420 && 69 is truthy" %error end
%EXIT_SUCCESS %exit
end
#main