On Wed, Feb 19, 2020 at 01:23:26PM -0700, Tom Hromatka 
<tom.hroma...@oracle.com> wrote:
> Good find.  I had the exact same thought, but I was torn on whether
> I should fix it or not.  Adding the logic to ensure all the settings
> completely matched got kind of ugly - and required a lot more lines of
> code.  I'll revisit it and see if I can come up with something more
> graceful, but I'm struggling to find the right balance between verifying
> correctness and the unwieldiness of the tests.  Thoughts?
IMO, clean C with its crude data structures isn't a good fit for such
quick text sets checks. A simple idea would be to sort k-v entries (both
the expects and actual) by the key, concatenate as strings and compare
the strings.

Since the testing framework already mandates C++, some STL containers
may ease that if you decide to use them.

Michal

_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to