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
+7
View File
@@ -127,6 +127,13 @@ func TestRunDotPath(t *testing.T) {
}
}
func TestRunWithoutASeedSeedsFromTheSystem(t *testing.T) {
_, a, errb := runOut("{uuid()}")
if code, b, _ := runOut("{uuid()}"); code != 0 || a == "" || a == b {
t.Fatalf("two runs without --seed = %q and %q, exit %d, stderr=%q; want each its own draw", a, b, code, errb)
}
}
func TestRunSeedSpellings(t *testing.T) {
_, want, _ := runOut("{/address}", "--seed", "42", "--data-path", svSE)
for _, args := range [][]string{