Home GnuPG
Diffusion GPGME 27ca12e815c0

tests,json: Fix match if the first child differs

Description

tests,json: Fix match if the first child differs

* tests/json/t-json.c (test_contains): Try all siblings of
the haystack child.

This fixes the case where we don't match against the
first child because the order might have changed or
a new element was inserted at the top. Then we
have to try out also all the siblings.

Details

Provenance
aheineckeAuthored on Nov 14 2018, 3:17 PM
Parents
rMdd4b80a5f640: tests,json: Add the bulk of tests
Branches
Unknown
Tags
Unknown