Skip to content

Commit

Permalink
script: add redundant tests to math ops.
Browse files Browse the repository at this point in the history
  • Loading branch information
nodech committed Sep 22, 2023
1 parent ab61103 commit a6c3265
Show file tree
Hide file tree
Showing 2 changed files with 389 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/data/script-tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -10735,6 +10735,18 @@
"flags": [],
"result": "NEGATIVE_LOCKTIME"
},
{
"comments": "CHECKLOCKTIMEVERIFY automatically fails if stack top is negative",
"script": "OP_CHECKLOCKTIMEVERIFY",
"value": 0,
"witness": [
"81"
],
"locktime": 0,
"sequence": 4294967295,
"flags": [],
"result": "NEGATIVE_LOCKTIME"
},
{
"comments": "CSV fails if stack top is not minimally encoded",
"script": "OP_CHECKSEQUENCEVERIFY",
Expand Down
Loading

0 comments on commit a6c3265

Please sign in to comment.