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 property testing example using hypothesis library #12

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

lkeegan
Copy link
Member

@lkeegan lkeegan commented May 15, 2023

  • use given and st.integers to sample from a range of ints
  • use example to explicitly include an input
  • use assume to remove undesired inputs from sampling
  • use composite to construct more complicated samples efficiently

@lkeegan lkeegan force-pushed the add_hypothesis_property_testing_example branch from da00ca8 to a8f8d27 Compare May 15, 2023 08:12
@codecov
Copy link

codecov bot commented May 15, 2023

Codecov Report

Merging #12 (f79dbbf) into main (7dd0c91) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #12   +/-   ##
=======================================
  Coverage   94.02%   94.02%           
=======================================
  Files           7        7           
  Lines         184      184           
=======================================
  Hits          173      173           
  Misses         11       11           

@lkeegan lkeegan force-pushed the add_hypothesis_property_testing_example branch 2 times, most recently from b93dcb6 to f873177 Compare October 9, 2023 12:19
- use `given` and `st.integers` to sample from a range of ints
- use `example` to explicitly include an input
- use `assume` to remove undesired inputs from sampling
- use `composite` to construct more complicated samples efficiently
@lkeegan lkeegan force-pushed the add_hypothesis_property_testing_example branch from f873177 to f79dbbf Compare October 9, 2023 12:24
@lkeegan lkeegan merged commit c72c5e6 into main Oct 9, 2023
17 checks passed
@lkeegan lkeegan deleted the add_hypothesis_property_testing_example branch October 9, 2023 12:30
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