Test that the operand refusal names the operand as written and the spelling to use

This commit is contained in:
2026-09-29 16:29:54 +02:00
committed by Lillem4n
parent e84522f244
commit 401141bb66
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -232,7 +232,7 @@ func TestACalcOperandIsHeldAgainstEveryRoute(t *testing.T) {
}
for name, c := range rejected {
_, err := New(WithoutShippedData(), WithDataPath(writeData(t, c.files)))
if err == nil || !strings.Contains(err.Error(), "a {calc()} also reads") {
if err == nil || !strings.Contains(err.Error(), "holds to one draw for this expansion; drop ") {
t.Errorf("%s: New = %v, want the second route to the operand rejected", name, err)
continue
}