Skip to content

Commit

Permalink
Rename YAML tests to JSON
Browse files Browse the repository at this point in the history
They were converted to JSON to drop the dependency on a specific YAML
decoder.

Signed-off-by: Kimmo Lehto <[email protected]>
  • Loading branch information
kke committed Nov 12, 2024
1 parent 62d01a3 commit 4cdefe3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mapping_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,14 @@ func TestDup(t *testing.T) {
})
}

func TestUnmarshalYamlWithNil(t *testing.T) {
func TestUnmarshalJSONWithNil(t *testing.T) {
data := []byte(`{"foo": null}`)
var m dig.Mapping
mustBeNil(t, json.Unmarshal(data, &m))
mustBeNil(t, m.Dig("foo"))
}

func TestUnmarshalYamlWithFloat(t *testing.T) {
func TestUnmarshalJSONWithFloat(t *testing.T) {
data := []byte(`{"foo": 0.5}`)
var m dig.Mapping
mustBeNil(t, json.Unmarshal(data, &m))
Expand Down

0 comments on commit 4cdefe3

Please sign in to comment.