Skip to content

Commit

Permalink
added other example
Browse files Browse the repository at this point in the history
  • Loading branch information
keithasaurus committed Mar 1, 2024
1 parent 2e17303 commit 0fbd734
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_valid.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

def test_valid_map() -> None:
assert Valid("something").map(lambda x: x.replace("some", "no")) == Valid("nothing")
assert Valid(5).map(str) == Valid("5")

inv = Invalid(
err_type=TypeErr(str),
Expand Down

0 comments on commit 0fbd734

Please sign in to comment.