diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-24 12:13:57 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-24 12:13:57 +0300 |
| commit | 4a04cd517f66a5191150848bfd1fbca9955d2243 (patch) | |
| tree | 38397b5885e895f3233e3e531cba241b67b41aae /docs | |
| parent | 22bff05c18d40f52398ec6cbda9e4e4df24dbb45 (diff) | |
rpn: use named sentinel for invalid parseCategory result
Define const invalidCategory Category = -1 so parseCategory
returns a clearly-invalid sentinel instead of Category(0)/Universal
on unknown names. This prevents silent misclassification if a
callers ignores the bool return value.
Adds tests for parseCategory with known categories, unknown names,
empty string, and sentinel validity.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions
