wuz/tests/test_booleans.wuz

40 lines
770 B
Plaintext

:: not operator
assert true
assert !false
assert !!true
:: equal operator
:: ==============
:: and operator
assert true == true && true
assert false == true && false
assert false == false && true
assert false == false && false
:: or operator
assert true == true || true
assert true == true || false
assert true == false || true
assert false == false || false
:: not equal operator
:: ==================
:: and operator
assert false != true && true
assert true != true && false
assert true != false && true
assert true != false && false
:: or operator
assert false != true || true
assert false != true || false
assert false != false || true
assert true != false || false
:: groups
assert !(true && false) == false || true
assert !(true || false) == false && true