Skip to content

Commit

Permalink
Fix some failing tests using dagjson
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Jul 16, 2021
1 parent bf8ac8c commit a333358
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
5 changes: 1 addition & 4 deletions examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ func Example_createDataAndMarshal() {
dagjson.Encode(n, os.Stdout)

// Output:
// {
// "hey": "it works!",
// "yes": true
// }
// {"hey":"it works!","yes":true}
}

// Example_unmarshalData shows how you can use a Decoder
Expand Down
13 changes: 1 addition & 12 deletions fluent/qp/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,5 @@ func Example() {
dagjson.Encode(n, os.Stdout)

// Output:
// {
// "some key": "some value",
// "another key": "another value",
// "nested map": {
// "deeper entries": "deeper values",
// "more deeper entries": "more deeper values"
// },
// "nested list": [
// 1,
// 2
// ]
// }
// {"some key":"some value","another key":"another value","nested map":{"deeper entries":"deeper values","more deeper entries":"more deeper values"},"nested list":[1,2]}
}

0 comments on commit a333358

Please sign in to comment.