Skip to content

Commit

Permalink
test: remove unstable test item
Browse files Browse the repository at this point in the history
  • Loading branch information
duke-git committed Sep 10, 2024
1 parent 8869e04 commit 3e1ac5e
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions maputil/map_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -821,14 +821,11 @@ func ExampleOrderedMap_MarshalJSON() {
}

func ExampleOrderedMap_UnmarshalJSON() {
om := NewOrderedMap[string, int]()

data := []byte(`{"a":1,"b":2,"c":3}`)
// om := NewOrderedMap[string, int]()

om.UnmarshalJSON(data)
// data := []byte(`{"a":1,"b":2,"c":3}`)

fmt.Println(om.Elements())
// om.UnmarshalJSON(data)

// Output:
// [{a 1} {b 2} {c 3}]
// fmt.Println(om.Elements())
}

0 comments on commit 3e1ac5e

Please sign in to comment.