Skip to content

Commit

Permalink
Add integration test with StaticArrays
Browse files Browse the repository at this point in the history
  • Loading branch information
helgee committed Mar 30, 2020
1 parent f6014a6 commit 389a8b8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"

[compat]
BinaryProvider = "0.5"
StaticArrays = "0.12"
julia = "1.0"

[extras]
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test"]
test = ["Test", "StaticArrays"]
6 changes: 6 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using ERFA

using StaticArrays: @SVector
using Test

@testset "ERFA" begin
Expand Down Expand Up @@ -33,6 +34,11 @@ using Test
d = d1 + d2
@test isapprox(d, 2457073.056310000, atol = 5e-10)
end
@testset "StaticArrays" begin
base = ERFA.gc2gde(6378.137 * 1000, 1 / 298.257223563, [6378.137 * 1000 + 100, 0, 0])
static = ERFA.gc2gde(6378.137 * 1000, 1 / 298.257223563, @SVector[6378.137 * 1000 + 100, 0, 0])
@test base == static
end

include("a.jl")
include("b.jl")
Expand Down

2 comments on commit 389a8b8

@helgee
Copy link
Member Author

@helgee helgee commented on 389a8b8 Mar 30, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/11823

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.6.3 -m "<description of version>" 389a8b8856c5492c44d57e858f7dd427837a3fb8
git push origin v0.6.3

Please sign in to comment.