Skip to content

Conversation

@richardkiss
Copy link
Contributor

Add some script tests related to BOOL ops and odd values like negative 0.

@fanquake fanquake added the Tests label Feb 13, 2018
@randolf
Copy link
Contributor

randolf commented Feb 14, 2018

Why is it necessary to check for negative 0?

@laanwj
Copy link
Member

laanwj commented Feb 14, 2018

utACK, thanks for adding tests!

Why is it necessary to check for negative 0?

Because the point of these tests is to cover as many as possible inputs, including weird/unexpected encodings of values.

@richardkiss
Copy link
Contributor Author

I thought I'd found some mismatches between bitcoind's consensus mechanims and pycoin's, so I wrote these tests to check. Turns out pycoin was working properly, but I thought I'd submit the tests anyway.

@randolf
Copy link
Contributor

randolf commented Feb 15, 2018

@laanwj Okay, that answers my question and it makes sense. Thank you.

@laanwj laanwj merged commit be45a67 into bitcoin:master Feb 16, 2018
laanwj added a commit that referenced this pull request Feb 16, 2018
be45a67 Add some script tests related to BOOL ops and odd values like negative 0. (Richard Kiss)

Pull request description:

  Add some script tests related to BOOL ops and odd values like negative 0.

Tree-SHA512: 8e633f7ea5eea39e31016994baf60f295fa1dc8cae27aa5fcfc741ea97136bfb3ddc57bb62b9c6bf9fe256fc09cdd184906ba8e611e297cf8d2d363da2bbf1d4
azuchi pushed a commit to chaintope/bitcoinrb that referenced this pull request Feb 26, 2018
braydonf added a commit to braydonf/bcoin that referenced this pull request Feb 2, 2019
braydonf added a commit to braydonf/bcoin that referenced this pull request Feb 2, 2019
tuxcanfly pushed a commit to tuxcanfly/bcoin that referenced this pull request Apr 19, 2019
dagurval pushed a commit to dagurval/BitcoinUnlimited that referenced this pull request Aug 28, 2019
gandrewstone pushed a commit to BitcoinUnlimited/BitcoinUnlimited that referenced this pull request Aug 30, 2019
* Tests for signature length to script_tests

Partial pick of:
Add SCRIPT_ENABLE_SCHNORR support to sigencoding

https://reviews.bitcoinabc.org/D2469

* Add some script tests related to BOOL ops and odd values like negative 0.

bitcoin/bitcoin#12425

* Partial cherry-pick of "Fixed multiple typos"

bitcoin/bitcoin#10633
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jun 17, 2020
be45a67 Add some script tests related to BOOL ops and odd values like negative 0. (Richard Kiss)

Pull request description:

  Add some script tests related to BOOL ops and odd values like negative 0.

Tree-SHA512: 8e633f7ea5eea39e31016994baf60f295fa1dc8cae27aa5fcfc741ea97136bfb3ddc57bb62b9c6bf9fe256fc09cdd184906ba8e611e297cf8d2d363da2bbf1d4
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants