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 e4e10e9 commit 101cc04Copy full SHA for 101cc04
tests/test_dtype/test_npy/test_common.py
@@ -20,6 +20,7 @@
20
check_json_float_v2,
21
check_json_float_v3,
22
check_json_int,
23
+ check_json_intish_float,
24
check_json_str,
25
complex_float_to_json_v2,
26
complex_float_to_json_v3,
@@ -320,6 +321,12 @@ def test_check_json_int() -> None:
320
321
assert not check_json_int(1.0)
322
323
324
+def test_check_json_intish_float() -> None:
325
+ assert check_json_intish_float(0)
326
+ assert check_json_intish_float(1.0)
327
+ assert not check_json_intish_float("0")
328
+
329
330
def test_check_json_str() -> None:
331
assert check_json_str("0")
332
assert not check_json_str(1.0)
0 commit comments