From 3578d93ae6371ccc6c99915fae4938e088b74ecb Mon Sep 17 00:00:00 2001 From: Kristoffer Carlsson Date: Wed, 5 Sep 2018 21:18:30 -0400 Subject: [PATCH] add allocation test --- test/ranges.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/ranges.jl b/test/ranges.jl index 5817871b04050..2f5cdec9f495b 100644 --- a/test/ranges.jl +++ b/test/ranges.jl @@ -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