Skip to content

Commit e7c1fd0

Browse files
committed
restrict conformance range
1 parent 9d26b1f commit e7c1fd0

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

tests/conformance/test_conformance.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,23 @@
1313

1414
BUILD_DIR = Path(__file__).parent / "rust" / "target" / "release"
1515

16+
INT32_MIN = -(2**31)
17+
INT32_MAX = 2**31 - 1
18+
1619

1720
def test_conformance(subtests):
1821
run_conformance_tests(
1922
[
2023
BooleanConformance(BUILD_DIR / "test_booleans"),
21-
IntegerConformance(BUILD_DIR / "test_integers"),
24+
IntegerConformance(
25+
BUILD_DIR / "test_integers", min_value=INT32_MIN, max_value=INT32_MAX
26+
),
2227
FloatConformance(BUILD_DIR / "test_floats"),
2328
TextConformance(BUILD_DIR / "test_text"),
2429
BinaryConformance(BUILD_DIR / "test_binary"),
25-
ListConformance(BUILD_DIR / "test_lists"),
30+
ListConformance(
31+
BUILD_DIR / "test_lists", min_value=INT32_MIN, max_value=INT32_MAX
32+
),
2633
SampledFromConformance(BUILD_DIR / "test_sampled_from"),
2734
],
2835
subtests,

0 commit comments

Comments
 (0)