test: fix TOML regression fixture spelling

This commit is contained in:
terminalchai 2026-03-22 03:23:27 +05:30
parent 97355c902b
commit 9b321bb5be

View File

@ -67,12 +67,12 @@ func TestTomlDecoderCanBeReinitializedAcrossDocuments(t *testing.T) {
} }
test.AssertResult(t, "Foobar", firstDocuments.Front().Value.(*CandidateNode).Content[1].Value) test.AssertResult(t, "Foobar", firstDocuments.Front().Value.(*CandidateNode).Content[1].Value)
secondDocuments, err := ReadDocuments(strings.NewReader("id = \"Barbar\"\n"), decoder) secondDocuments, err := ReadDocuments(strings.NewReader("id = \"Banana\"\n"), decoder)
if err != nil { if err != nil {
t.Fatalf("failed to read second TOML document: %v", err) t.Fatalf("failed to read second TOML document: %v", err)
} }
if secondDocuments.Len() != 1 { if secondDocuments.Len() != 1 {
t.Fatalf("expected second document count to be 1, got %d", secondDocuments.Len()) t.Fatalf("expected second document count to be 1, got %d", secondDocuments.Len())
} }
test.AssertResult(t, "Barbar", secondDocuments.Front().Value.(*CandidateNode).Content[1].Value) test.AssertResult(t, "Banana", secondDocuments.Front().Value.(*CandidateNode).Content[1].Value)
} }