test_spacecraftHubResetChecks
Regression tests for issue #469: hub configuration checks on spacecraft reset.
Spacecraft::Reset() validates the user-supplied hub properties before the
dynamics are initialized: the hub mass must be strictly positive and the hub
inertia tensor must be symmetric positive definite. Without these checks a
zero hub mass or a singular hub inertia silently produced NaN states, and a
negative hub mass silently reversed the translational response to applied
forces. These tests start from a valid configuration, break exactly one
precondition at a time, and assert that initialization raises a
BasiliskError naming the offending quantity.
- test_spacecraftHubResetChecks.test_spacecraftHub_resetAcceptsDefaultHub()[source]
The constructor defaults (1 kg, identity inertia) must initialize without raising.