wangdl
|
4348823ca1
|
test: add ReadingPositionAdapter.fromValue unit tests (IOS-INFO-034)
- 23 tests: fromValue (12) + clamp (2) + blockId (8)
- fromValue: Markdown/Text/Pdf/Image/Epub complete + defaults
- fromValue: nil blockId→nil for Markdown, nil chapterId→nil for Epub
- fromValue: unknown/nil type → .unknown
- clamp: > 1 → 1.0, < 0 → 0.0
- blockId: all 7 DocumentBlock variants + horizontalRule
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-06-18 13:09:05 +08:00 |
|