Skip to content

Commit

Permalink
Update test_check.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ken-morel committed Jun 5, 2024
1 parent d46ac40 commit 1391fc1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tests/test_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from pyoload import Check
from pyoload import annotate

assert pyoload.__version__ == '1.1.3'
assert pyoload.__version__ == '2.0.0'


@annotate
Expand Down Expand Up @@ -41,6 +41,9 @@ def test(param, val):
print(param, val)
Checks(test1=3)(3)
Checks(test2=4)(4)
Checks(ge=2, gt=1, lt=2.1, le=2, eq=2)(2)
Checks(ge=-2.5, gt=-3, lt=-2, le=2, eq=-2.5)(-2.5)
Checks(len=(2, 5))("abcd")


if __name__ == '__main__':
Expand Down

0 comments on commit 1391fc1

Please sign in to comment.