X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=tests%2Flibpspp%2Fhmap-test.c;h=64511b7bbf1d1c7dafb79857fc811b014d6e9af2;hb=7c08a6e1009cf60847e770a77a73c650e9326379;hp=3b3369061f704314d7dce339f961bcd4648abaaa;hpb=7ebdbcc89e6c08c3bb21227a85f0850f42873f64;p=pspp diff --git a/tests/libpspp/hmap-test.c b/tests/libpspp/hmap-test.c index 3b3369061f..64511b7bbf 100644 --- a/tests/libpspp/hmap-test.c +++ b/tests/libpspp/hmap-test.c @@ -342,6 +342,7 @@ check_hmap (struct hmap *hmap, const int data[], size_t cnt, size_t i, j; int *order; + check (hmap_is_empty (hmap) == (cnt == 0)); check (hmap_count (hmap) == cnt); check (cnt <= hmap_capacity (hmap));