jw-python/test/unit/python/jw
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jan Lindemann 1fd3c75c08
load_yaml: Reject non-string link values
A link value that is not a string (for example a number parsed from
YAML) is passed to the regular expression in _parse_link(), which
crashes with a bare TypeError from the regex engine that does not
mention the offending value or the link kind.

Make _resolve_link() validate the spec type up front and raise
TypeError naming the link kind and the value.  Add tests for both
jw.link and jw.inplace-link.

Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v0.84.2
Signed-off-by: Jan Lindemann <jan@janware.com>
2026-08-25 19:35:02 +02:00
..
util load_yaml: Reject non-string link values 2026-08-25 19:35:02 +02:00
Makefile stree.StringTree: Add unit tests 2026-08-12 23:10:12 +00:00