Host-side unit tests for the watchapp logic #68
Labels
No labels
area:companion
area:docs
area:shared
area:tooling
area:watchapp
blocker
kind:chore
kind:feature
kind:spike
kind:test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
robert/PedalPebble#68
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Test the C. Every test issue in the plan targets the JVM companion - the watchapp, which is the half written in C, has none.
The field store, the formatter table, the staleness rule, the template geometry and the descriptor packing are all pure functions over plain data. Compiled for the host with a small harness they test without an emulator, a watch or a phone.
Acceptance criteria
--, zero-is-not-absentFieldIdformats, in metric and imperial, including its unavailable renderingemery,gabbroorbasalt- the assertion that makes the deferred round work in #62 safe to do laterFiles
watchapp/test/watchapp/test/stubs/Notes
See D34. Keeping the geometry pure - taking bounds in, giving rects out - is what makes this possible; that constraint is worth honouring in #59 for its own sake.
Update — 2026-09-02: two more things to test on the host
rotate — asserted against fixture slices on all three geometries. Pure integer functions, no SDK
as its type's sentinel renders
--; a constant value under changed-keys-only updates doesneither