test-keyval: Tweaks to improve list coverage
commitb2cd5b925c529d91fae5fe8373490714e1a8fe6c
authorMarkus Armbruster <armbru@redhat.com>
Mon, 20 Mar 2017 12:55:44 +0000 (20 13:55 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 21 Mar 2017 09:41:43 +0000 (21 10:41 +0100)
tree304e4a8870e56728392e5b5dbd3008376fca83e4
parent940a8ce075e3408742a4edcabfd6c2a15e2539eb
test-keyval: Tweaks to improve list coverage

We have a negative test case for a list index with leading zero.  Add
positive ones.

Tweak the test case for list index greater or equal the number of
elements: test "equal" instead of "greater" to guard against
off-by-one mistakes.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1490014548-15083-2-git-send-email-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
tests/test-keyval.c