summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-24 12:13:57 +0300
committerPaul Buetow <paul@buetow.org>2026-05-24 12:13:57 +0300
commit4a04cd517f66a5191150848bfd1fbca9955d2243 (patch)
tree38397b5885e895f3233e3e531cba241b67b41aae /docs
parent22bff05c18d40f52398ec6cbda9e4e4df24dbb45 (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