Skip to content

Commit

Permalink
README.md: update examples to the new output
Browse files Browse the repository at this point in the history
  • Loading branch information
rudymatela committed Aug 19, 2024
1 parent af7534b commit 3a56639
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,22 @@ $ python -i leancheck.py
...

>>> check(prop_sorted_twice)
Property passes!
+++ OK, passed 360 tests: prop_sorted_twice

>>> def prop_sorted_len(xs: list[int]) -> bool:
... return len(sorted(xs)) == len(xs)
...

>>> check(prop_sorted_len)
Property passes!
+++ OK, passed 360 tests: prop_sorted_len

>>> def prop_sorted_wrong(xs: list[int]) -> bool:
... return sorted(xs) == xs
...

>>> check(prop_sorted_wrong)
Failed, falsifiable on ([1, 0],) after X tests
*** Failed! Falsifiable after 6 tests:
prop_sorted_wrong([1, 0])
```


Expand Down

0 comments on commit 3a56639

Please sign in to comment.