Test that an unquoted layout holding a comma is refused naming its quoted spelling

This commit is contained in:
2026-09-18 18:18:04 +02:00
parent 7e25c6de44
commit 63f4bf7c0a
+2
View File
@@ -305,6 +305,8 @@ func TestBuiltinDateArgs(t *testing.T) {
`"{date(1990-01-01,1990-12-31,'x')}"`: "text",
`"{date(1990-01-01,1990-12-31,'')}"`: "text",
`"{date(1990-01-01,1990-12-31)}"`: "3 args",
`"{date(1990-01-01,1990-12-31,January 2, 2006)}"`: "'January 2, 2006'",
`"{time(3:04 PM, Mon)}"`: "'3:04 PM, Mon'",
`"{time(15:04)}"`: "'15:04'",
`"{time('2006-01-02 15:04')}"`: "date(",
`"{time('x')}"`: "text",