ligo/src/test/contracts/boolean_operators.ligo

12 lines
316 B
Plaintext
Raw Normal View History

// Test PascaLIGO boolean operators
function or_true (const b : bool) : bool is b or True
2019-05-12 20:56:22 +00:00
function or_false (const b : bool) : bool is b or False
2019-05-12 20:56:22 +00:00
function and_true (const b : bool) : bool is b and True
2019-05-12 20:56:22 +00:00
function and_false (const b : bool) : bool is b and False
2019-09-24 12:18:07 -07:00
function not_bool (const b : bool) : bool is not b