Skip to content

Commit

Permalink
Add AnyFloat
Browse files Browse the repository at this point in the history
  • Loading branch information
Seth Wang committed Dec 1, 2020
1 parent 9624f8a commit 86dc6b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ assert B.AnyIPV4() == "1.2.3.4"
assert B.AnyInt(min_value=1) == 1 # X >= 1
assert B.AnyInt(max_value=10) == 10 # X <= 10
assert B.AnyInt(min_value=1, max_value=10) == 5 # 1 <= X <= 10
assert B.AnyFloat(min_value=1.0, max_value=10.0) == 5.0 # 1.0 <= X <= 10.0
assert B.Almost(time.time()) == time.time() # Allow some time gap
# List Match
Expand Down

0 comments on commit 86dc6b6

Please sign in to comment.