Test that New without WithSeed fails naming it, that the CLI without --seed draws afresh each run, and seed every test's New

This commit is contained in:
2026-10-12 18:10:57 +02:00
committed by Lillem4n
parent 1a5b632b90
commit 3ae8b9f1b1
19 changed files with 91 additions and 87 deletions
+1 -1
View File
@@ -310,7 +310,7 @@ func TestCalcRefusesABadOperand(t *testing.T) {
}
func TestATypedColumnRefusesACalcOverNoDigits(t *testing.T) {
_, err := New(WithDataPath(writeData(t, map[string]string{
_, err := New(WithSeed(1), WithDataPath(writeData(t, map[string]string{
"row": `{"format":"","x":{"format":"{calc(d + 1)}","d":"{digits(0)}","datatype":"integer"}}`,
})))
if err == nil || !strings.Contains(err.Error(), "{digits(0)} prints nothing, which is no number") {