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 BnB proptest #60

Closed
wants to merge 2 commits into from
Closed

Conversation

yancyribbens
Copy link
Collaborator

Add a prop test for BnB

  1. Create a random pool of coins that is at most 10 coins. Limit to 10 so that the iteration limit of 100,000 isn't exceeded.
  2. Add up all the even valued coins and use that as the target (hypothetical spend amount).
  3. Assert that BnB finds a sum of coins from the pool which is the sum of the evens

run cargo test in ./prop directory.

@yancyribbens
Copy link
Collaborator Author

Added arbitrary_target test.

@yancyribbens
Copy link
Collaborator Author

Switching to work on arb_test

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.

1 participant