File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -284,19 +284,20 @@ using OffsetArrays, BenchmarkTools
284284 end
285285
286286 VERSION > v " 1.1" && @testset " allocation tests" begin
287- # For sure these fail on Julia 1.0, not sure about 1.1 to 1.5
287+ # For sure these fail on Julia 1.0, not sure about 1.3 etc.
288+ # Each "@test 33 > ..." is zero on nightly, 32 on 1.5.
288289
289290 pvec = ProjectTo (rand (10 ^ 3 ))
290- VERSION >= v " 1.7- " && @test 0 == @ballocated $ pvec (dx) setup= (dx= rand (10 ^ 3 )) # pass through
291+ @test 0 == @ballocated $ pvec (dx) setup= (dx= rand (10 ^ 3 )) # pass through
291292 @test 90 > @ballocated $ pvec (dx) setup= (dx= rand (10 ^ 3 ,1 )) # reshape
292293
293- @test 0 == @ballocated ProjectTo (x)(dx) setup= (x= rand (10 ^ 3 ); dx= rand (10 ^ 3 )) # including construction
294+ @test 33 > @ballocated ProjectTo (x)(dx) setup= (x= rand (10 ^ 3 ); dx= rand (10 ^ 3 )) # including construction
294295
295296 padj = ProjectTo (adjoint (rand (10 ^ 3 )))
296297 @test 0 == @ballocated $ padj (dx) setup= (dx= adjoint (rand (10 ^ 3 )))
297298 @test 0 == @ballocated $ padj (dx) setup= (dx= transpose (rand (10 ^ 3 )))
298299
299- VERSION >= v " 1.7- " && @test 0 == @ballocated ProjectTo (x' )(dx' ) setup= (x= rand (10 ^ 3 ); dx= rand (10 ^ 3 ))
300+ @test 33 > @ballocated ProjectTo (x' )(dx' ) setup= (x= rand (10 ^ 3 ); dx= rand (10 ^ 3 ))
300301
301302 pdiag = ProjectTo (Diagonal (rand (10 ^ 3 )))
302303 @test 0 == @ballocated $ pdiag (dx) setup= (dx= Diagonal (rand (10 ^ 3 )))
You can’t perform that action at this time.
0 commit comments