roza/roza_tests/test_bool.roza

31 lines
731 B
Plaintext

assert true == true
assert false == false
assert true == (true and true)
assert false == (true and false)
assert false == (false and true)
assert false == (false and false)
assert true == (true or true)
assert true == (true or false)
assert true == (false or true)
assert false == (false or false)
assert false == not true
assert true == not false
assert true == (true => true)
assert false == (true => false)
assert true == (false => true)
assert true == (false => false)
assert (false or true) == (not (true and false))
assert_static_fail 1 and true
assert_static_fail false and 7
assert_static_fail 1 or true
assert_static_fail false or 7
assert_static_fail not 9
assert_static_fail 3 => true
assert_static_fail true => 7