On Wed, Jul 19, 2017 at 08:36:27 -0400, John Ferlan wrote: > > > On 07/11/2017 08:56 AM, Peter Krempa wrote: > > Format the parsed string back and compare it to the original (or > > modified) string for back and forth comparison. > > --- > > tests/virjsontest.c | 58 ++++++++++++++++++++++++++++++++++++++++------------- > > 1 file changed, 44 insertions(+), 14 deletions(-) > > > > Is there a reason why the Copy doesn't need the space reduction? Is that > expected (so to speak). You mean the cases in testJSONCopy? It's because the test case parses the JSON provided when calling the test case, then copies it and then formats back strings from the first parsed structure and after the copy. This means that both went through the formatter and thus have same spacing rules applied. The output of formatting the copy is never compared to the original string provided when calling the test case.
Attachment:
signature.asc
Description: PGP signature
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list