Tests: columns as the record's public name, and a top-level repeat rejected at both record entry points

This commit is contained in:
2026-09-04 08:38:03 +02:00
parent ee90337834
commit 54e6865b11
4 changed files with 63 additions and 19 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ func TestReadmeRecordExample(t *testing.T) {
if err != nil {
t.Fatal(err)
}
got := r.Fields()
got := r.Columns()
if len(got) != 2 || got[0].Name != "first" || got[0].Value != "Bo" || got[1].Name != "last" || got[1].Value != "Lovelace" {
t.Fatalf("record columns = %v, want first=Bo, last=Lovelace with seed 1", got)
}