ligo/test/contracts/compare.tz

11 lines
395 B
Plaintext
Raw Normal View History

2017-07-24 17:06:56 +04:00
parameter (pair tez tez);
return (list bool);
storage unit;
code {CAR; DUP; DUP; DUP; DUP; DIIIIIP {NIL bool};
2017-07-24 17:06:56 +04:00
DIIIIP {DUP; CAR; DIP {CDR}; COMPARE; LE; CONS};
DIIIP {DUP; CAR; DIP {CDR}; COMPARE; GE; CONS};
DIIP{DUP; CAR; DIP {CDR}; COMPARE; LT; CONS};
DIP {DUP; CAR; DIP {CDR}; COMPARE; GT; CONS};
2017-07-24 17:06:56 +04:00
DUP; CAR; DIP {CDR}; COMPARE; EQ; CONS;
UNIT; SWAP; PAIR};