From d660adee06872d596960108589a1d1e41d0ae606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20A=2E=20Michel=C3=A9n=20Str=C3=B6fer?= Date: Sun, 10 Dec 2023 16:06:26 -0700 Subject: [PATCH] fix `pas` test. --- Project.toml | 2 +- test/runtests.jl | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index ebc5fe1..f6e3b7b 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "UnitfulAngles" uuid = "6fb2a4bd-7999-5318-a3b2-8ad61056cd98" -version = "0.7.1" +version = "0.7.2" [deps] Dates = "ade2ca70-3891-5945-98fb-dc099432e06a" diff --git a/test/runtests.jl b/test/runtests.jl index 542f9a7..3aac8a0 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -4,7 +4,7 @@ using Test units = (u"doubleTurn", u"turn", u"halfTurn", u"quadrant", u"sextant", u"octant", u"clockPosition", u"hourAngle", u"compassPoint", u"hexacontade", u"brad", u"°", u"grad", u"arcminute", u"arcsecond", u"mas", u"μas", u"pas", u"rad", u"diameterPart", ) -quantities = (0.5, 1, 2, 4, 6, 8, 12, 24, 32, 60, 256, 360, 400, 21600, 1296000, 1296e6, 1296e9, 1296e12, 2π, 120π) +quantities = (0.5, 1, 2, 4, 6, 8, 12, 24, 32, 60, 256, 360, 400, 21600, 1296000, 1296e6, 1296e9, 1296e15, 2π, 120π) @test all(1u"turn" ≈ q*u for (q, u) in zip(quantities, units)) for _f in (:sin, :cos, :tan, :sec, :csc, :cot), (q, u) in zip(quantities, units), a in 13:17 @@ -25,4 +25,3 @@ end # for _f in (:sin, :cos), (q, u) in zip(qrats, rats) # @test @eval $(Symbol("$(_f)pi"))(2) === $_f($q*$u) # end -