From 3f8e803d146a842eb8ef105e2753e501874f4b4b Mon Sep 17 00:00:00 2001 From: schillic Date: Wed, 8 Aug 2018 15:09:05 +0200 Subject: [PATCH] fix ambiguities as in '1./1.' --- test/unit_CartesianProduct.jl | 2 +- test/unit_Polygon.jl | 2 +- test/unit_Polytope.jl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit_CartesianProduct.jl b/test/unit_CartesianProduct.jl index 50e94bd1cf..538bc7b8b0 100644 --- a/test/unit_CartesianProduct.jl +++ b/test/unit_CartesianProduct.jl @@ -97,7 +97,7 @@ for N in [Float64, Float32, Rational{Int}] @test ∈(N[2., 3., -.8, .9], cp) @test ∈(N[1., 1., -1., 0.], cp) @test ∈(N[3., 2., 0., 1.], cp) - @test ∈(N[5./4., 7./4., 1., 1.], cp) + @test ∈(N[5. / 4., 7. / 4., 1., 1.], cp) @test !∈(N[4., 1., 0., 0.], cp) @test !∈(N[5., 2., 0., 0.], cp) @test !∈(N[3., 4., 0., 0.], cp) diff --git a/test/unit_Polygon.jl b/test/unit_Polygon.jl index 8f178793ce..3bfdc7098c 100644 --- a/test/unit_Polygon.jl +++ b/test/unit_Polygon.jl @@ -82,7 +82,7 @@ for N in [Float64, Float32, Rational{Int}] @test ∈(N[2., 3.], p) @test ∈(N[1., 1.], p) @test ∈(N[3., 2.], p) - @test ∈(N[5./4., 7./4.], p) + @test ∈(N[5. / 4., 7. / 4.], p) @test !∈(N[4., 1.], p) @test !∈(N[5., 2.], p) @test !∈(N[3., 4.], p) diff --git a/test/unit_Polytope.jl b/test/unit_Polytope.jl index c1babb8245..8bdab38d51 100644 --- a/test/unit_Polytope.jl +++ b/test/unit_Polytope.jl @@ -38,7 +38,7 @@ for N in [Float64, Rational{Int}, Float32] @test σ(d, p) == N[0., 0.] # membership - @test ∈(N[5./4., 7./4.], p) + @test ∈(N[5. / 4., 7. / 4.], p) @test !∈(N[4., 1.], p) # singleton list (only available with Polyhedra library)