Skip to content

Commit 4ee7576

Browse files
committed
Add tests
1 parent 13266b1 commit 4ee7576

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/comparison.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ function test_errors()
2626
"Ordering `$M` is not a valid ordering, use `Graded{$M}` instead.",
2727
)
2828
@test_throws err ExponentsIterator{M}([0], maxdegree = 2)
29+
exps = ExponentsIterator{LexOrder}([0])
30+
err = ErrorException("The iterator is infinity because `maxdegree` is `nothing`.")
31+
@test_throws err length(exps)
2932
end
3033

3134
function test_exponents_iterator()

0 commit comments

Comments
 (0)