feat: adds some test cases where they were missing, and some minor readme additions

This commit is contained in:
Lewis Wynne 2026-02-11 16:07:19 +00:00
parent bb57b23224
commit d3b4bef531
24 changed files with 180 additions and 1 deletions

5
testdata/template__enum__err.ct vendored Normal file
View file

@ -0,0 +1,5 @@
# enum errors on invalid value
$ fecho tpl {{ enum .LEVEL "info" "warn" }}
$ pda set level@tple < tpl
$ pda get level@tple LEVEL=debug --> FAIL
FAIL cannot get 'level@tple': template: cmd:1:3: executing "cmd" at <enum .LEVEL "info" "warn">: error calling enum: invalid value 'debug', allowed: [info warn]