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

txscript: Introduce repeated syntax to test data. #1299

Merged
merged 1 commit into from
Jun 14, 2018

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Jun 14, 2018

This improves the test data short script form syntax to allow repeated raw and quoted data and updates several tests to make use of it.

While here, it also corrects a few tests to actually test what they were originally intended to test but were not updated correctly for Decred limit changes. In particular, the following tests were corrected:

  • The negative test that ensures to exceeding the maximum allowed script size results in failure
  • The positive test that ensures a fully maxed out script (max script size, max element size push, max opcodes, and max stack items) succeeds
  • The positive test that ensures OP_RESERVED does not count towards the opcode limit

@davecgh davecgh force-pushed the txscript_parse_repreated_data_syntax branch 2 times, most recently from b05507d to bbe896d Compare June 14, 2018 17:08
This improves the test data short script form syntax to allow repeated
raw and quoted data and updates several tests to make use of it.

While here, it also corrects a few tests to actually test what they were
originally intended to test but were not updated correctly for Decred
limit changes.  In particular, the following tests were corrected:

- The negative test that ensures to exceeding the maximum allowed script
  size results in failure
- The positive test that ensures a fully maxed out script (max script
  size, max element size push, max opcodes, and max stack items)
  succeeds
- The positive test that ensures OP_RESERVED does not count towards the
  opcode limit
@davecgh davecgh force-pushed the txscript_parse_repreated_data_syntax branch from bbe896d to 9e23c8e Compare June 14, 2018 21:48
@davecgh davecgh merged commit 9e23c8e into decred:master Jun 14, 2018
@davecgh davecgh deleted the txscript_parse_repreated_data_syntax branch June 14, 2018 22:33
@davecgh davecgh added this to the 1.3.0 milestone Jun 15, 2018
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