diff options
| author | Gavin Andresen <[email protected]> | 2013-08-15 18:53:49 -0700 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2013-08-15 18:53:49 -0700 |
| commit | 3f20f8220918c34ea734e943b7d8c281ad33040c (patch) | |
| tree | c23d5bc11e91c2f7c9f9e56da98ff0cdfbb3728f /src/test/data/script_valid.json | |
| parent | Merge pull request #2886 from gavinandresen/rpctiming (diff) | |
| parent | More unit tests for NUMEQUAL (diff) | |
| download | discoin-3f20f8220918c34ea734e943b7d8c281ad33040c.tar.xz discoin-3f20f8220918c34ea734e943b7d8c281ad33040c.zip | |
Merge pull request #2880 from gavinandresen/test_numequal
More unit tests for OP_NUMEQUAL
Diffstat (limited to 'src/test/data/script_valid.json')
| -rw-r--r-- | src/test/data/script_valid.json | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/data/script_valid.json b/src/test/data/script_valid.json index cc56a310a..7aefc8e6e 100644 --- a/src/test/data/script_valid.json +++ b/src/test/data/script_valid.json @@ -316,6 +316,15 @@ ["2147483647", "1ADD 1"], ["-2147483647", "1ADD 1"], +["1", "0x02 0x0100 EQUAL NOT", "Not the same byte array..."], +["1", "0x02 0x0100 NUMEQUAL", "... but they are numerically equal"], +["11", "0x4c 0x03 0x0b0000 NUMEQUAL"], +["0", "0x01 0x80 EQUAL NOT"], +["0", "0x01 0x80 NUMEQUAL", "Zero numerically equals negative zero"], +["0", "0x02 0x0080 NUMEQUAL"], +["0x03 0x000080", "0x04 0x00000080 NUMEQUAL"], +["0x03 0x100080", "0x04 0x10000080 NUMEQUAL"], +["0x03 0x100000", "0x04 0x10000000 NUMEQUAL"], ["NOP", "NOP 1", "The following tests check the if(stack.size() < N) tests in each opcode"], ["1", "IF 1 ENDIF", "They are here to catch copy-and-paste errors"], |