8000 Add tests to Weight type by yancyribbens · Pull Request #1704 · rust-bitcoin/rust-bitcoin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add tests to Weight type #1704

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

Merged
merged 1 commit into from
Mar 10, 2023

Conversation

yancyribbens
Copy link
Contributor

Add tests for Weight type

@yancyribbens yancyribbens force-pushed the add-tests-to-weight branch 3 times, most recently from fa99097 to f0a3aad Compare March 9, 2023 15:52
Copy link
Collaborator
@Kixunil Kixunil left a comment

Choose a reason for hiding this comment

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

ACK f0a3aad

@yancyribbens
Copy link
Contributor Author

I wonder if it would be better to add these as doc comment tests, for example https://doc.rust-lang.org/src/core/ops/arith.rs.html#144. That way it both tests the interface and helps expand the documentation to make it easier to use.

8000

@Kixunil
Copy link
Collaborator
Kixunil commented Mar 10, 2023

I think these are too trivial for doc tests.

Copy link
Member
@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

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

ACK f0a3aad

@apoelstra apoelstra merged commit fa2f27c into rust-bitcoin:master Mar 10, 2023
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.

3 participants
0