Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a test that fails before PR 4482 #328

Merged
merged 3 commits into from
Sep 20, 2017
Merged

Add a test that fails before PR 4482 #328

merged 3 commits into from
Sep 20, 2017

Conversation

pirapira
Copy link
Member

@pirapira pirapira commented Sep 18, 2017

This PR adds a test on ecpairing where g1 is invalid while g2 is zero.

cpp-ethereum before PR 4482 accidentially returned some answer in this case. It should throw.

This PR adds a test on ecpairing where g1 is invalid while g2 is zero.

cpp-ethereum before PR 4482 accidentially returned some answer in this case.  It should throw.
@pirapira pirapira changed the title Add a test that fails before https://github.com/ethereum/cpp-ethereum… Add a test that fails before PR 4482 Sep 18, 2017
@pirapira pirapira requested a review from winsvega September 18, 2017 16:42
}
}
],
"explanation": "Puts the given data into the ECPAIRING precompile"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we agreed to use //for comments in the fillers
and if you want the comment to end up in generated test fill the description into

"_info" : {
            "comment" : ""
}

_info.comment should be copied to the final test when filling

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK.

@pirapira
Copy link
Member Author

@winsvega I added a comment in _info.

{
"ecpairing_one_point_with_g2_zero_and_g1_invalid" : {
"_info" : {
"comment" : "",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this field should be filled by testeth if there is one in a filler file

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

testeth does not do that. So testeth has a bug.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants