2019-10-24 05:29:49 +04:00
|
|
|
// Test CameLIGO boolean operators
|
|
|
|
|
|
|
|
let or_true (b : bool) : bool =
|
2019-10-24 20:13:31 +04:00
|
|
|
b || true
|
2019-10-24 05:29:49 +04:00
|
|
|
|
|
|
|
let or_false (b : bool) : bool =
|
2019-10-24 20:13:31 +04:00
|
|
|
b || false
|
2019-10-24 05:29:49 +04:00
|
|
|
|
|
|
|
let and_true (b : bool) : bool =
|
2019-10-24 20:13:31 +04:00
|
|
|
b && true
|
2019-10-24 05:29:49 +04:00
|
|
|
|
|
|
|
let and_false (b : bool) : bool =
|
2019-10-24 20:13:31 +04:00
|
|
|
b && false
|
2019-10-24 05:29:49 +04:00
|
|
|
|
|
|
|
let not_bool (b: bool) : bool =
|
|
|
|
not b
|