aboutsummaryrefslogtreecommitdiff
path: root/src/test/data/script_invalid.json
diff options
context:
space:
mode:
authorAndreas Schildbach <andreas@schildbach.de>2014-03-11 00:16:22 +0100
committerAndreas Schildbach <andreas@schildbach.de>2014-03-11 00:59:33 +0100
commitffd082a6a36bf0b85078be8400b8eda3630b34b3 (patch)
tree63cfa55912fbc72ab6e214d6caf7f858841c2ea1 /src/test/data/script_invalid.json
parenta63f8b7b36e39722024a0ba061ca214f00a8f1bd (diff)
Add script test to prove that OP_0 evaluates as the empty vector, rather than [0].
Diffstat (limited to 'src/test/data/script_invalid.json')
-rw-r--r--src/test/data/script_invalid.json4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/data/script_invalid.json b/src/test/data/script_invalid.json
index 761cc4a008..8cb365a46f 100644
--- a/src/test/data/script_invalid.json
+++ b/src/test/data/script_invalid.json
@@ -325,5 +325,7 @@
["NOP1 0x01 1", "HASH160 0x14 0xda1745e9b549bd0bfa1a569971c77eba30cd5a4b EQUAL"],
["0 0x01 0x50", "HASH160 0x14 0xece424a6bb6ddf4db592c0faed60685047a361b1 EQUAL", "OP_RESERVED in P2SH should fail"],
-["0 0x01 VER", "HASH160 0x14 0x0f4d7845db968f2a81b530b6f3c1d6246d4c7e01 EQUAL", "OP_VER in P2SH should fail"]
+["0 0x01 VER", "HASH160 0x14 0x0f4d7845db968f2a81b530b6f3c1d6246d4c7e01 EQUAL", "OP_VER in P2SH should fail"],
+
+["0x00", "'00' EQUAL", "Basic OP_0 execution"]
]