Skip to content

Commit

Permalink
weird codecov fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nsajko committed Apr 23, 2024
1 parent 9ece245 commit d0bde93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ end
end

@testset "safe computation of length from dimensions size" begin
@test isone(checked_dims(()))
for n 0:30
t = Tuple(1:n)
if 20 < n
@test_throws ArgumentError checked_dims(t)
else
@test factorial(n) == checked_dims(t) # redundant except for codecov
@test factorial(n) == prod(t) == @inferred checked_dims(t)
@test iszero(allocated(checked_dims, t))
end
Expand Down

0 comments on commit d0bde93

Please sign in to comment.