Expect a grammar-only layout error, a bare record spelling and a Swedish title table

This commit is contained in:
2026-09-18 20:01:05 +02:00
parent 6b0a2a60a8
commit 2d08bf4b32
3 changed files with 9 additions and 3 deletions
+2 -2
View File
@@ -331,8 +331,8 @@ func TestBuiltinLayoutErrorsNameARunnableSpelling(t *testing.T) {
t.Errorf("%v names a layout that renders its own quotes", err)
}
_, err = compile(parse(t, `"{time(15:04)}"`))
if err == nil || !strings.Contains(err.Error(), "write '15:04'") || !strings.Contains(err.Error(), "shell") {
t.Fatalf("a bare layout = %v, want it named quoted and the shell explained", err)
if err == nil || !strings.Contains(err.Error(), "write '15:04'") {
t.Fatalf("a bare layout = %v, want it named quoted", err)
}
// The comma hint belongs to a layout that split, not to a call given extra args.
_, err = compile(parse(t, `"{time(0,12,'15:04')}"`))