Minor fixes

This commit is contained in:
Mike Farah
2020-11-19 22:11:26 +11:00
parent 75044e480c
commit 9bd9468526
5 changed files with 50 additions and 9 deletions
+4 -1
View File
@@ -37,7 +37,10 @@ func TestJsonEncoderPreservesObjectOrder(t *testing.T) {
panic(err)
}
node := inputs.Front().Value.(*CandidateNode).Node
jsonEncoder.Encode(node)
err = jsonEncoder.Encode(node)
if err != nil {
panic(err)
}
writer.Flush()
test.AssertResult(t, expectedJson, output.String())