qlit: Tighten QLit dict vs QDict comparison
commit6da8a7a3b444211914418d2b3c7dc615d70a7d2d
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 25 Aug 2017 10:59:10 +0000 (25 12:59 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 4 Sep 2017 11:09:12 +0000 (4 13:09 +0200)
tree0788324a9fef5a6ab54776affd1ae5fac674bd97
parent382176b4d78e070d119af8e0dcd00884c11bbec2
qlit: Tighten QLit dict vs QDict comparison

We check that all members of the QLit dictionary are also in the
QDict.  We neglect to check the other direction.

Comparing the number of members suffices, because QDict can't
contain duplicate members, and putting duplicates in a QLit is a
programming error.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20170825105913.4060-12-marcandre.lureau@redhat.com>
[Commit message improved]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
qobject/qlit.c
tests/check-qlit.c