From f8293a72dca393bf932f36fef3c927a1a3bc97fb Mon Sep 17 00:00:00 2001 From: Thomas Christensen Date: Tue, 8 Oct 2024 15:53:38 +0200 Subject: [PATCH] fix test --- test/basisvecs.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/basisvecs.jl b/test/basisvecs.jl index dd57e29c..9c25ff30 100644 --- a/test/basisvecs.jl +++ b/test/basisvecs.jl @@ -83,7 +83,7 @@ using Crystalline, Test, LinearAlgebra, StaticArrays @test -k isa ReciprocalPoint{3} @test 2.3k isa ReciprocalPoint{3} && 2.3k == 2.3s @test 2.3r - r + 3r isa DirectPoint{3} && 2.3r - r + 3r ≈ 4.3r ≈ 4.3s - @test_throws r + k # cannot add ReciprocalPoint to DirectPoint + @test_throws ErrorException r + k # cannot add ReciprocalPoint to DirectPoint # isapprox on near-zero-difference a = 4.3r