Skip to content

Commit

Permalink
Fix test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
helgee committed May 14, 2018
1 parent 3b26ebf commit 2e47b6e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion test/k.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@testset "K" begin
furnsh(path(:PCK))
furnsh(path(CORE, :pck))
@test ktotal("ALL") == 1
kclear()
@test ktotal("ALL") == 0
Expand Down
4 changes: 2 additions & 2 deletions test/s.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@testset "S" begin
@test spd() == 86400.0
furnsh(path(:SPK))
furnsh(path(CORE, :spk))
@test sxform("J2000", "J2000", 0.0) eye(6)
@test_throws SpiceException sxform("J2000", "Norbert", 0.0)
@test spkezr("EARTH", 0.0, "J2000", "EARTH") == ([0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 0.0)
Expand All @@ -11,6 +11,6 @@
@test spkpos(399, 0.0, "J2000", "EARTH") == ([0.0, 0.0, 0.0], 0.0)
@test spkpos("EARTH", 0.0, "J2000", 399) == ([0.0, 0.0, 0.0], 0.0)
@test spkpos(399, 0.0, "J2000", 399) == ([0.0, 0.0, 0.0], 0.0)
unload(path(:SPK))
kclear()
end

18 changes: 9 additions & 9 deletions test/t.jl
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
@testset "T" begin
furnsh(path(:LSK))
furnsh(path(CORE, :lsk))
@test tyear() == 3.15569259747e7
@test timout(0.0, "MON DD,YYYY HR:MN:SC.#### (TDB) ::TDB") == "JAN 01,2000 12:00:00.0000 (TDB)"
@test_throws SpiceException timout(0.0, "")
unload(path(:LSK))
unload(path(CORE, :lsk))

furnsh(path(:PCK))
furnsh(path(CORE, :pck))
@test round.(tisbod("J2000", 399, 0.0) .* 1000000) ./ 1000000 == [ 0.176174 -0.984359 -0.0 0.0 0.0 0.0
0.984359 0.176174 0.0 0.0 0.0 0.0
0.0 0.0 1.0 0.0 0.0 0.0
7.2e-5 1.3e-5 -0.0 0.176174 -0.984359 -0.0
-1.3e-5 7.2e-5 -0.0 0.984359 0.176174 0.0
0.0 -0.0 0.0 0.0 0.0 1.0]
0.984359 0.176174 0.0 0.0 0.0 0.0
0.0 0.0 1.0 0.0 0.0 0.0
7.2e-5 1.3e-5 -0.0 0.176174 -0.984359 -0.0
-1.3e-5 7.2e-5 -0.0 0.984359 0.176174 0.0
0.0 -0.0 0.0 0.0 0.0 1.0]
@test_throws SpiceException tisbod("J2000", 3, 0.0)
unload(path(:PCK))
unload(path(CORE, :pck))
end
4 changes: 2 additions & 2 deletions test/x.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@testset "X" begin
furnsh(path(:PCK))
furnsh(path(CORE, :pck))
sx = sxform("J2000", "IAU_JUPITER", 0.0)
eulang, unique = xf2eul(sx, 3, 1, 3)
@test round.(eulang.*100000)./100000 == [-3.10768, 0.44513, -1.83172, -0.0, 0.0, 0.0]
@test_throws SpiceException xf2eul(sx, 4, 1, 4)
unload(path(:PCK))
unload(path(CORE, :pck))
end

0 comments on commit 2e47b6e

Please sign in to comment.