@@ -206,14 +206,14 @@ for N = (1, 10)
206
206
end
207
207
208
208
@testset " heterogeneous construction" begin
209
- @test typeof ( @inferred (Vec (0.0 , 0 ))) == Vec{2 , Float64}
210
- @test typeof ( @inferred (Vec (0 , 0.0 ))) == Vec{2 , Float64}
211
- @test typeof ( @inferred (Point (0.0 , 0 ))) == Point{2 , Float64}
212
- @test typeof ( @inferred (Point (0 , 0.0 ))) == Point{2 , Float64}
213
- @test typeof ( @inferred (Vec (0.0 , 0 , 0 ))) == Vec{3 , Float64}
214
- @test typeof ( @inferred (Vec (0 , 0.0 , 0 ))) == Vec{3 , Float64}
215
- @test typeof ( @inferred (Point (0.0 , 0 , 0 ))) == Point{3 , Float64}
216
- @test typeof ( @inferred (Point (0 , 0.0 , 0 ))) == Point{3 , Float64}
209
+ @test @inferred (Vec (0.0 , 0 )) isa Vec{2 , Float64}
210
+ @test @inferred (Vec (0 , 0.0 )) isa Vec{2 , Float64}
211
+ @test @inferred (Point (0.0 , 0 )) isa Point{2 , Float64}
212
+ @test @inferred (Point (0 , 0.0 )) isa Point{2 , Float64}
213
+ @test @inferred (Vec (0.0 , 0 , 0 )) isa Vec{3 , Float64}
214
+ @test @inferred (Vec (0 , 0.0 , 0 )) isa Vec{3 , Float64}
215
+ @test @inferred (Point (0.0 , 0 , 0 )) isa Point{3 , Float64}
216
+ @test @inferred (Point (0 , 0.0 , 0 )) isa Point{3 , Float64}
217
217
end
218
218
219
219
map (- , Vec (1 ,2 ,3 ))
0 commit comments