ligo/src/test/contracts/boolean_operators.ligo

17 lines
425 B
Plaintext
Raw Normal View History

// Test PascaLIGO boolean operators
2019-05-13 00:56:22 +04:00
function or_true (const b : bool) : bool is
begin skip end with b or True
function or_false (const b : bool) : bool is
begin skip end with b or False
function and_true (const b : bool) : bool is
begin skip end with b and True
function and_false (const b : bool) : bool is
begin skip end with b and False
2019-09-24 23:18:07 +04:00
function not_bool (const b: bool) : bool is
begin skip end with not b