Skip to content

Commit 16d78bd

Browse files
petertoddsipa
authored andcommitted
Add valid invert of invalid every numeric opcode tests
1 parent 2b62e17 commit 16d78bd

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

src/test/data/script_valid.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,55 @@ nSequences are max.
611611
["0x02 0x0f00", "1", "MINIMALDATA"],
612612
["0x02 0x1000", "1", "MINIMALDATA"],
613613

614+
["Valid version of the 'Test every numeric-accepting opcode for correct handling of the numeric minimal encoding rule' script_invalid test"],
615+
616+
["1 0x02 0x0000", "PICK DROP", ""],
617+
["1 0x02 0x0000", "ROLL DROP 1", ""],
618+
["0x02 0x0000", "1ADD DROP 1", ""],
619+
["0x02 0x0000", "1SUB DROP 1", ""],
620+
["0x02 0x0000", "NEGATE DROP 1", ""],
621+
["0x02 0x0000", "ABS DROP 1", ""],
622+
["0x02 0x0000", "NOT DROP 1", ""],
623+
["0x02 0x0000", "0NOTEQUAL DROP 1", ""],
624+
625+
["0 0x02 0x0000", "ADD DROP 1", ""],
626+
["0x02 0x0000 0", "ADD DROP 1", ""],
627+
["0 0x02 0x0000", "SUB DROP 1", ""],
628+
["0x02 0x0000 0", "SUB DROP 1", ""],
629+
["0 0x02 0x0000", "BOOLAND DROP 1", ""],
630+
["0x02 0x0000 0", "BOOLAND DROP 1", ""],
631+
["0 0x02 0x0000", "BOOLOR DROP 1", ""],
632+
["0x02 0x0000 0", "BOOLOR DROP 1", ""],
633+
["0 0x02 0x0000", "NUMEQUAL DROP 1", ""],
634+
["0x02 0x0000 1", "NUMEQUAL DROP 1", ""],
635+
["0 0x02 0x0000", "NUMEQUALVERIFY 1", ""],
636+
["0x02 0x0000 0", "NUMEQUALVERIFY 1", ""],
637+
["0 0x02 0x0000", "NUMNOTEQUAL DROP 1", ""],
638+
["0x02 0x0000 0", "NUMNOTEQUAL DROP 1", ""],
639+
["0 0x02 0x0000", "LESSTHAN DROP 1", ""],
640+
["0x02 0x0000 0", "LESSTHAN DROP 1", ""],
641+
["0 0x02 0x0000", "GREATERTHAN DROP 1", ""],
642+
["0x02 0x0000 0", "GREATERTHAN DROP 1", ""],
643+
["0 0x02 0x0000", "LESSTHANOREQUAL DROP 1", ""],
644+
["0x02 0x0000 0", "LESSTHANOREQUAL DROP 1", ""],
645+
["0 0x02 0x0000", "GREATERTHANOREQUAL DROP 1", ""],
646+
["0x02 0x0000 0", "GREATERTHANOREQUAL DROP 1", ""],
647+
["0 0x02 0x0000", "MIN DROP 1", ""],
648+
["0x02 0x0000 0", "MIN DROP 1", ""],
649+
["0 0x02 0x0000", "MAX DROP 1", ""],
650+
["0x02 0x0000 0", "MAX DROP 1", ""],
651+
652+
["0x02 0x0000 0 0", "WITHIN DROP 1", ""],
653+
["0 0x02 0x0000 0", "WITHIN DROP 1", ""],
654+
["0 0 0x02 0x0000", "WITHIN DROP 1", ""],
655+
656+
["0 0 0x02 0x0000", "CHECKMULTISIG DROP 1", ""],
657+
["0 0x02 0x0000 0", "CHECKMULTISIG DROP 1", ""],
658+
["0 0x02 0x0000 0 1", "CHECKMULTISIG DROP 1", ""],
659+
["0 0 0x02 0x0000", "CHECKMULTISIGVERIFY 1", ""],
660+
["0 0x02 0x0000 0", "CHECKMULTISIGVERIFY 1", ""],
661+
662+
614663
[
615664
"0x47 0x3044022007415aa37ce7eaa6146001ac8bdefca0ddcba0e37c5dc08c4ac99392124ebac802207d382307fd53f65778b07b9c63b6e196edeadf0be719130c5db21ff1e700d67501",
616665
"0x41 0x0479be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8 CHECKSIG",

0 commit comments

Comments
 (0)