Tests for weight 0, a never-numeric calc operand, the repeat product along a path, and ErrNoData

This commit is contained in:
2026-09-02 18:22:23 +02:00
parent c5c06375d8
commit 34c933b2b3
5 changed files with 62 additions and 12 deletions
+4
View File
@@ -311,4 +311,8 @@ func TestRunNoShippedData(t *testing.T) {
if code != 0 || strings.TrimSpace(out) == "" {
t.Errorf("run = %d, out=%q", code, out)
}
code, _, errb = runOut("--no-shipped-data", "sv_SE.person")
if code != 2 || !strings.Contains(errb, "--no-shipped-data needs at least one --data-path") {
t.Errorf("--no-shipped-data alone = %d, %q, want misuse naming --data-path", code, errb)
}
}