Want a lone reference whose selector holds a parenthesis refused as a template, and drop the parse test's stale order note

This commit is contained in:
2026-09-24 23:32:22 +02:00
committed by Lillem4n
parent 37f34e556f
commit aa972bbd95
2 changed files with 20 additions and 21 deletions
-2
View File
@@ -96,8 +96,6 @@ func TestCalcReproducible(t *testing.T) {
// TestParsedCallReadsOnlyAnOperandBuiltin pins the operands a parsed call carries for a
// call that is not a calc, and for one whose expression does not parse: none, either way.
// checkCalc is what reports a bad expression, so the callers that run after it
// never meet one — but they must not have to depend on that order to be safe.
func TestParsedCallReadsOnlyAnOperandBuiltin(t *testing.T) {
for _, format := range []string{"{luhn()}", "{calc()}", "{calc(1 +)}", "{calc(()}"} {
if toks, err := parseFormat(format); err != nil || len(toks) != 1 || toks[0].names != nil {