Skip to content

Commit 35d91b3

Browse files
improved test coverage
1 parent 79e009f commit 35d91b3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/Definitions/planetary.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ function Bodies.body_rotational_elements(::Number, ::Val{-1})
99
end
1010

1111
frames = FrameSystem{4, Float64}()
12+
@test_throws Exception add_axes_bci2000!(frames, :BCI, -1, -1)
13+
@test_throws Exception add_axes_bcrtod!(frames, :BCR, -2, -1)
1214
add_axes_icrf!(frames)
15+
1316
@test_nowarn add_axes_bci2000!(frames, :BCI, -1, -1)
1417

1518
R = rotation12(frames, :ICRF, :BCI, 12.345)
@@ -27,3 +30,6 @@ R = rotation12(frames, :ICRF, :BCR, 12.345)
2730
@test R[2] DCM(0.0I)
2831
@test R[3] DCM(0.0I)
2932
@test R[4] DCM(0.0I)
33+
34+
@test_throws Exception add_axes_bci2000!(frames, :BCR, -2, -10)
35+
@test_throws Exception add_axes_bcrtod!(frames, :BCR, -2, -10)

0 commit comments

Comments
 (0)