Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ld
go-ld-prime
Commits
a3333582
Commit
a3333582
authored
Jul 14, 2021
by
Rod Vagg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some failing tests using dagjson
parent
bf8ac8c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
16 deletions
+2
-16
examples_test.go
examples_test.go
+1
-4
fluent/qp/example_test.go
fluent/qp/example_test.go
+1
-12
No files found.
examples_test.go
View file @
a3333582
...
...
@@ -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
...
...
fluent/qp/example_test.go
View file @
a3333582
...
...
@@ -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]}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment