We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32b236f commit cd25096Copy full SHA for cd25096
test/utils/tempconvert_assertions.py
@@ -3,3 +3,10 @@ def assert_is_integer(value):
3
int(value)
4
except ValueError:
5
raise AssertionError(f"Expected an integer but got: {value}")
6
+
7
8
+def assert_is_float(value):
9
+ try:
10
+ float(value)
11
+ except ValueError:
12
+ raise AssertionError(f"Expected a float but got: {value}")
0 commit comments