Skip to content

Commit

Permalink
add allocation test
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC committed Sep 6, 2018
1 parent 998831e commit 3578d93
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/ranges.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1371,3 +1371,8 @@ end # module NonStandardIntegerRangeTest
end
end
end

@testset "allocation of TwicePrecision call" begin
@test @allocated 0:286.493442:360 == 0
@test @allocated 0:286:360 == 0
end

0 comments on commit 3578d93

Please sign in to comment.