@@ -12,21 +12,19 @@ A = [[1 2; 3 4],[1 3;4 6],[5 6;7 8]]
12
12
4.6666666666 6.0 ]
13
13
14
14
A = zeros (5 ,5 )
15
- recursive_unitless_eltype (A) == Float64
15
+ @test recursive_unitless_eltype (A) == Float64
16
16
17
17
using Unitful
18
18
A = zeros (5 ,5 )* 1 u " kg"
19
- recursive_unitless_eltype (A) == Float64
19
+ @test recursive_unitless_eltype (A) == Float64
20
20
AA = [zeros (5 ,5 ) for i in 1 : 5 ]
21
- recursive_unitless_eltype (AA) == Array{Float64,2 }
21
+ @test recursive_unitless_eltype (AA) == Array{Float64,2 }
22
22
AofA = [copy (A) for i in 1 : 5 ]
23
- recursive_unitless_eltype (AofA) == Array{Float64,2 }
23
+ @test recursive_unitless_eltype (AofA) == Array{Float64,2 }
24
24
AofSA = [@SVector [2.0 ,3.0 ] for i in 1 : 5 ]
25
- recursive_unitless_eltype (AofSA) == SVector{2 ,Float64}
25
+ @test recursive_unitless_eltype (AofSA) == SVector{2 ,Float64}
26
26
AofuSA = [@SVector [2.0 u " kg" ,3.0 u " kg" ] for i in 1 : 5 ]
27
- recursive_unitless_eltype (AofuSA) == SVector{2 ,Float64}
28
-
29
- @inferred recursive_unitless_eltype (AofuSA)
27
+ @test recursive_unitless_eltype (AofuSA) == SVector{2 ,Float64}
30
28
31
29
A = [ArrayPartition (ones (1 ),ones (1 )),]
32
30
@test repr (" text/plain" , A) == " 1-element Array{ArrayPartition{Float64,Tuple{Array{Float64,1},Array{Float64,1}}},1}:\n [1.0][1.0]"
0 commit comments