ligo/src/test/contracts/boolean_operators.mligo
2019-10-24 09:13:31 -07:00

17 lines
267 B
Plaintext

// Test CameLIGO boolean operators
let or_true (b : bool) : bool =
b || true
let or_false (b : bool) : bool =
b || false
let and_true (b : bool) : bool =
b && true
let and_false (b : bool) : bool =
b && false
let not_bool (b: bool) : bool =
not b