ligo/src/test/contracts/boolean_operators.religo

8 lines
273 B
Plaintext
Raw Normal View History

2019-12-10 13:47:31 +00:00
// Test ReasonLIGO boolean operators
2020-03-02 18:01:56 +01:00
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 => !b;