mirror of
https://github.com/mikefarah/yq.git
synced 2026-07-04 11:25:37 +00:00
test: fix TOML regression fixture spelling
This commit is contained in:
parent
97355c902b
commit
9b321bb5be
@ -67,12 +67,12 @@ func TestTomlDecoderCanBeReinitializedAcrossDocuments(t *testing.T) {
|
||||
}
|
||||
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 {
|
||||
t.Fatalf("failed to read second TOML document: %v", err)
|
||||
}
|
||||
if secondDocuments.Len() != 1 {
|
||||
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)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user