aboutsummaryrefslogtreecommitdiff
path: root/src/test/data/script_valid.json
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2012-05-24 13:29:08 -0400
committerGavin Andresen <gavinandresen@gmail.com>2012-05-24 13:29:08 -0400
commitf04017f702e36563b9ba05b3fede216767de580a (patch)
tree4bb9e411a29dd95c602c5299d4e93060bac00700 /src/test/data/script_valid.json
parentb92095f18c12bef3cc6fd621bdbda26efb126a6f (diff)
More CScript unit tests.
Diffstat (limited to 'src/test/data/script_valid.json')
-rw-r--r--src/test/data/script_valid.json10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/data/script_valid.json b/src/test/data/script_valid.json
index e7ad6d9cc0..f59d8b7284 100644
--- a/src/test/data/script_valid.json
+++ b/src/test/data/script_valid.json
@@ -1,4 +1,12 @@
[
+["0x4c0107","7 EQUAL", "0x4c is OP_PUSHDATA1"],
+["0x4d010008","8 EQUAL", "0x4d is OP_PUSHDATA2"],
+["0x4e0100000009","9 EQUAL", "0x4e is OP_PUSHDATA4"],
+
+["0x4c00","0 EQUAL"],
+["0x4d0000","0 EQUAL"],
+["0x4e00000000","0 EQUAL"],
+
["2 -2 ADD", "0 EQUAL"],
["2147483647 -2147483647 ADD", "0 EQUAL"],
["-1 -1 ADD", "-2 EQUAL"],
@@ -73,6 +81,8 @@
["2147483647 DUP ADD", "4294967294 EQUAL", ">32 bit EQUAL is valid"],
["2147483647 NEGATE DUP ADD", "-4294967294 EQUAL"],
+["1","NOP1 NOP2 NOP3 NOP4 NOP5 NOP6 NOP7 NOP8 NOP9 NOP10 1 EQUAL"],
+["'NOP_1_to_10' NOP1 NOP2 NOP3 NOP4 NOP5 NOP6 NOP7 NOP8 NOP9 NOP10","'NOP_1_to_10' EQUAL"],
["NOP","1"]
]