@@ -4,6 +4,10 @@ using OffsetArrays, BenchmarkTools
44
55@testset " projection" begin
66
7+ # ####
8+ # #### `Base`
9+ # ####
10+
711 @testset " Base: numbers" begin
812 # real / complex
913 @test ProjectTo (1.0 )(2.0 + 3im ) === 2.0
@@ -92,6 +96,10 @@ using OffsetArrays, BenchmarkTools
9296 @test_throws DimensionMismatch prefvec (Ref {Any} (1 : 5 ))
9397 end
9498
99+ # ####
100+ # #### `LinearAlgebra`
101+ # ####
102+
95103 @testset " LinearAlgebra: $adj vectors" for adj in [transpose, adjoint]
96104 # adjoint vectors
97105 padj = ProjectTo (adj ([1 ,2 ,3 ]))
@@ -189,6 +197,10 @@ using OffsetArrays, BenchmarkTools
189197 @test_throws DimensionMismatch ptri (rand (ComplexF32, 3 , 2 ))
190198 end
191199
200+ # ####
201+ # #### `SparseArrays`
202+ # ####
203+
192204 @testset " SparseArrays" begin
193205 # vector
194206 v = sprand (30 , 0.3 )
@@ -219,6 +231,10 @@ using OffsetArrays, BenchmarkTools
219231 @test_throws DimensionMismatch pm (ones (Int, 5 , 20 ))
220232 end
221233
234+ # ####
235+ # #### `OffsetArrays`
236+ # ####
237+
222238 @testset " OffsetArrays" begin
223239 # While there is no code for this, the rule that it checks axes(x) == axes(dx) else
224240 # reshape means that it restores offsets. (It throws an error on nontrivial size mismatch.)
@@ -232,6 +248,10 @@ using OffsetArrays, BenchmarkTools
232248
233249 end
234250
251+ # ####
252+ # #### `ChainRulesCore`
253+ # ####
254+
235255 @testset " AbstractZero" begin
236256 pz = ProjectTo (ZeroTangent ())
237257 pz (0 ) == NoTangent ()
0 commit comments