You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SleepStageVocabulary: trim newlines consistently on Swift and Kotlin #41
Swift trims only .whitespaces. Kotlin uses String.trim(), which also removes surrounding CR/LF characters.
Impact
Imported stage strings with line-ending whitespace can be classified as asleep on Swift but awake on Kotlin. isWake feeds sleep staging, hypnogram metrics, wake-motion refinement and import paths.
Proposed parity fix
Align Swift with Kotlin by trimming .whitespacesAndNewlines.
Acceptance criteria
Both platforms return true for the two cases above.
Preserve behavior for normal wake labels, case variants, spaces, tabs, empty strings and non-wake stages.
Add mirrored native tests and an exact differential case.
This is fully automated; no hardware testing is required.
Activity
bhelm commentedon Aug 19, 2026
Resolved and differentially verified.