aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorOtto Allmendinger <otto.allmendinger@gmail.com>2014-07-18 10:53:09 +0200
committerOtto Allmendinger <otto.allmendinger@gmail.com>2014-07-18 10:53:09 +0200
commit0072d98849dd12de1599af894edbeee271fceb76 (patch)
tree60b0650f9efe38d0211b553205fa41c87a273b9b /src/test
parented02282bba468ec7224b7e836d3fe4543bf5ba1e (diff)
script tests: BOOLAND, BOOLOR decode to integer
unlike other boolean checks, arguments >5 bytes invalidate the script
Diffstat (limited to 'src/test')
-rw-r--r--src/test/data/script_invalid.json3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/data/script_invalid.json b/src/test/data/script_invalid.json
index d623e974b8..eaac747fd2 100644
--- a/src/test/data/script_invalid.json
+++ b/src/test/data/script_invalid.json
@@ -272,6 +272,9 @@
["2147483647", "1ADD 1SUB 1", "We cannot do math on 5-byte integers, even if the result is 4-bytes"],
["2147483648", "1SUB 1", "We cannot do math on 5-byte integers, even if the result is 4-bytes"],
+["2147483648 1", "BOOLOR 1", "We cannot do BOOLOR on 5-byte integers (but we can still do IF etc)"],
+["2147483648 1", "BOOLAND 1", "We cannot do BOOLAND on 5-byte integers"],
+
["1", "1 ENDIF", "ENDIF without IF"],
["1", "IF 1", "IF without ENDIF"],
["1 IF 1", "ENDIF", "IFs don't carry over"],