Skip to content

Commit

Permalink
New tests related to bug ponylang#4127
Browse files Browse the repository at this point in the history
The extens the _assert_infinite() function in packages/collections/_test.pony to detect bugs in infinite Ranges
  • Loading branch information
stefandd authored and jemc committed Jul 6, 2022
1 parent 8c53725 commit d96332c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/collections/_test.pony
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ class \nodoc\ iso _TestRange is UnitTest
let range: Range[N] = Range[N](min, max, step)
let range_str = "Range(" + min.string() + ", " + max.string() + ", " + step.string() + ")"

h.assert_true(range.is_infinite(), range_str + " should be infinite")
h.assert_true(range.is_infinite(), range_str + " should be infinite")
try
let nextval = range.next()?
h.assert_eq[N](nextval, min)
Expand Down

0 comments on commit d96332c

Please sign in to comment.