Skip to content

Commit 0072d98

Browse files
script tests: BOOLAND, BOOLOR decode to integer
unlike other boolean checks, arguments >5 bytes invalidate the script
1 parent ed02282 commit 0072d98

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/data/script_invalid.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,9 @@
272272
["2147483647", "1ADD 1SUB 1", "We cannot do math on 5-byte integers, even if the result is 4-bytes"],
273273
["2147483648", "1SUB 1", "We cannot do math on 5-byte integers, even if the result is 4-bytes"],
274274

275+
["2147483648 1", "BOOLOR 1", "We cannot do BOOLOR on 5-byte integers (but we can still do IF etc)"],
276+
["2147483648 1", "BOOLAND 1", "We cannot do BOOLAND on 5-byte integers"],
277+
275278
["1", "1 ENDIF", "ENDIF without IF"],
276279
["1", "IF 1", "IF without ENDIF"],
277280
["1 IF 1", "ENDIF", "IFs don't carry over"],

0 commit comments

Comments
 (0)