General cleanup (#999)

This commit is contained in:
Nathan Baulch
2025-08-24 20:18:46 +10:00
committed by GitHub
parent 18a2148713
commit 36df8eef6e
15 changed files with 47 additions and 44 deletions
+6 -3
View File
@@ -2977,7 +2977,8 @@ func TestIssue931(t *testing.T) {
Name = 'd'
`)
toml.Unmarshal(b, &its)
err := toml.Unmarshal(b, &its)
assert.NoError(t, err)
assert.Equal(t, items{[]item{{"c"}, {"d"}}}, its)
}
@@ -2998,7 +2999,8 @@ func TestIssue931Interface(t *testing.T) {
Name = 'd'
`)
toml.Unmarshal(b, &its)
err := toml.Unmarshal(b, &its)
assert.NoError(t, err)
assert.Equal(t, items{[]interface{}{item{"Name": "c"}, item{"Name": "d"}}}, its)
}
@@ -3024,7 +3026,8 @@ func TestIssue931SliceInterface(t *testing.T) {
Name = 'd'
`)
toml.Unmarshal(b, &its)
err := toml.Unmarshal(b, &its)
assert.NoError(t, err)
assert.Equal(t, items{[]interface{}{item{"Name": "c"}, item{"Name": "d"}}}, its)
}