Skip to content

Commit 28ad046

Browse files
committed
Add tests for large number and small number
1 parent acd6a1b commit 28ad046

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/test_toolargparse.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,16 @@
153153
script_f,
154154
lambda x: [x, "--foo", "1", "--foo", "2"],
155155
),
156+
(
157+
"foo with f for long value (large number)",
158+
script_f,
159+
lambda x: [x, "--foo", str(2**31+10)],
160+
),
161+
(
162+
"foo with f for long value (small number)",
163+
script_f,
164+
lambda x: [x, "--foo", str(-1*(2**31)-10)],
165+
),
156166
(
157167
"foo with g",
158168
script_g,

0 commit comments

Comments
 (0)