aboutsummaryrefslogtreecommitdiff
path: root/tests/fixtures/wiktionary-hapax-legomenon.json
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-04-28 19:13:05 -0500
committerCraig Jennings <c@cjennings.net>2026-04-28 19:13:05 -0500
commit01b75599a500d6276a962b47744166abb25d846c (patch)
tree2d4278894f35ac79c16495c09c7c8649f07bccbb /tests/fixtures/wiktionary-hapax-legomenon.json
parent3491d9b799f9678f6095149a348330e2a05a1924 (diff)
downloadgloss-01b75599a500d6276a962b47744166abb25d846c.tar.gz
gloss-01b75599a500d6276a962b47744166abb25d846c.zip
refactor: switch gloss-fetch result to uniform plist shapeHEADmain
The previous shape (:ok DEFS) | (:empty :no-defs (...) :failed (...)) was malformed as a plist. The :empty tag at position 0 shifted the plist alignment. plist-get on :no-defs or :failed returned nil. Tests had to use (plist-get (cdr result) ...) as a workaround. The new shape is a uniform plist with all three keys always present: (:defs DEFS :no-defs (SYM ...) :failed (SYM ...)). Consumers branch on whether :defs is non-empty. There is no tag. plist-get works uniformly across success and empty cases. Updated gloss-fetch.el (rollup function and docstrings), 7 test files, and the design doc (docs/design/gloss.org ยง Error Handling). Tested by `make test`. 65 tests pass in 0.36 seconds.
Diffstat (limited to 'tests/fixtures/wiktionary-hapax-legomenon.json')
0 files changed, 0 insertions, 0 deletions