Commit Graph
2 Commits
Author SHA1 Message Date
vinihcrosaandClaude Sonnet 4.6 9a16d8d0cf feat(simulation): add NavalDomain::serializeStateJson for WASM state export
Returns {"t":...,"vessels":[{"id":...,"x":...,"psi":...,"u":...,"r":...},...]}
2 tests verify JSON structure and time accumulation.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-27 23:51:56 -03:00
vinihcrosa 408738d3f0 Add unit and integration tests for naval simulation and world components
- Implemented comprehensive unit tests for the NavalSimulation class, covering N-body state independence, vessel control updates, and integration with maneuver systems.
- Created tests for the CouplingRegistry to validate force consumption and resolution behavior.
- Developed tests for the Environment and NavalEnvironment classes to ensure proper state management and functionality.
- Added tests for the IDomain interface to verify compliance with expected behaviors and constraints.
- Established tests for the World class to confirm domain management, time accumulation, and snapshot integrity.
2026-06-27 20:17:12 -03:00