Skip to content

Commit

Permalink
test: add coverage for script parse error in ParseScript
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrenn committed Mar 27, 2020
1 parent 97b0687 commit dcda81c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/util/data/bitcoin-util-test.json
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,12 @@
"output_cmp": "txcreate2.json",
"description": "Parses a transaction with no inputs and a single output script (output in json)"
},
{ "exec": "./bitcoin-tx",
"args": ["-create", "outscript=0:123badscript"],
"return_code": 1,
"error_txt": "error: script parse error",
"description": "Create a new transaction with an invalid output script"
},
{ "exec": "./bitcoin-tx",
"args": ["-create", "outscript=0:OP_DROP", "nversion=1"],
"output_cmp": "txcreatescript1.hex",
Expand Down

0 comments on commit dcda81c

Please sign in to comment.