Unit tests: speed smoothing, CSC wraparound, distance accumulation #22

Open
opened 2026-08-31 17:14:42 +02:00 by robert · 0 comments
robert commented 2026-08-31 17:14:42 +02:00 (Migrated from git.butzei.de)

Goal

Lock in the arithmetic that is painful to debug on a bike.

Acceptance criteria

  • Speed smoothing and the stop clamp tested against synthetic fix sequences
  • CSC 16-bit event-time and 32-bit revolution wraparound tested at the boundaries
  • Distance accumulation tested against a known GPX with a hand-checked total
  • Bad-accuracy fix rejection tested
  • Source arbitration hand-over tested, including the no-source case
  • All tests run on the JVM with no device or network

Files

  • companion/src/test/
## Goal Lock in the arithmetic that is painful to debug on a bike. ## Acceptance criteria - [ ] Speed smoothing and the stop clamp tested against synthetic fix sequences - [ ] CSC 16-bit event-time and 32-bit revolution wraparound tested at the boundaries - [ ] Distance accumulation tested against a known GPX with a hand-checked total - [ ] Bad-accuracy fix rejection tested - [ ] Source arbitration hand-over tested, including the no-source case - [ ] All tests run on the JVM with no device or network ## Files - `companion/src/test/`
Sign in to join this conversation.
No description provided.