We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 380c44b commit ff6ebc4Copy full SHA for ff6ebc4
test/fixed_size_arrays.jl
@@ -27,17 +27,17 @@ RGB{T}(x::T) = RGB{T}(x, x, x)
27
StaticArrays.similar_type{SV <: RGB, T}(::Type{SV}, ::Type{T}, ::Size{(3,)}) = RGB{T}
28
29
# TODO find equivalent in StaticArrays
30
-# testset "scalar nan" begin
31
-# for (p, r) in (
32
-# (Point{2, Float32}(NaN, 1), true),
33
-# (Point{2, Float64}(1, NaN), true),
34
-# (Vec{11, Float64}(NaN), true),
35
-# (Point{2, Float32}(1, 1), false),
36
-# (RGB{Float32}(NaN), true),
37
-# )
38
-# @fact isnan(p) == r
39
-# end
40
+@testset "scalar nan" begin
+ for (p, r) in (
+ (Point{2, Float32}(NaN, 1), true),
+ (Point{2, Float64}(1, NaN), true),
+ (Vec{11, Float64}(NaN), true),
+ (Point{2, Float32}(1, 1), false),
+ (RGB{Float32}(NaN), true),
+ )
+ @test all(isnan, p) == r
+ end
+end
41
42
# methods I needed to define:
43
0 commit comments