|
1 | 1 | using BlockArrays, FillArrays, Test |
2 | 2 | import BlockArrays: SubBlockIterator, BlockIndexRange, Diagonal |
3 | | -using JET |
4 | 3 |
|
5 | 4 | @testset "broadcast" begin |
6 | 5 | @testset "BlockArray" begin |
@@ -30,17 +29,11 @@ using JET |
30 | 29 | u = BlockArray(randn(5), [2,3]) |
31 | 30 | dest = zeros(size(u)..., 1) |
32 | 31 | @test (dest .= u) isa typeof(dest) |
33 | | - @static if isdefined(JET, :test_opt) |
34 | | - @test_opt ((dest,u) -> dest .= u)(dest,u) |
35 | | - end |
36 | 32 | @test reshape(dest, size(u)) == u |
37 | 33 |
|
38 | 34 | u = BlockArray(randn(3,3), [1,2], [1,2]) |
39 | 35 | dest = zeros(length(u)) |
40 | 36 | @test (dest .= u) isa typeof(dest) |
41 | | - @static if isdefined(JET, :test_opt) |
42 | | - @test_opt ((dest,u) -> dest .= u)(dest,u) |
43 | | - end |
44 | 37 | @test reshape(dest, size(u)) == u |
45 | 38 | end |
46 | 39 | end |
@@ -202,10 +195,6 @@ using JET |
202 | 195 | A = zeros(size(u)) |
203 | 196 | @inferred(copyto!(similar(u), Base.broadcasted(exp, u))) |
204 | 197 | @test exp.(u) == exp.(Vector(u)) |
205 | | - # test_opt isn't available on JET v0.4, which is installed on Julia v1.6 |
206 | | - @static if isdefined(JET, :test_opt) |
207 | | - @test_opt ((A,B) -> A .= B)(A,u) |
208 | | - end |
209 | 198 | end |
210 | 199 |
|
211 | 200 | @testset "adjtrans" begin |
|
0 commit comments