t/helper/test-hashmap: use custom data instead of duplicate cmp functions
commit6815d1143150f422fe2ad1a7ddcc6205bef006ae
authorStefan Beller <sbeller@google.com>
Sat, 1 Jul 2017 00:28:38 +0000 (30 17:28 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Jul 2017 20:53:12 +0000 (5 13:53 -0700)
treedb3da9a67143466c498eb61144e092419aea3503
parent56a14ea7acbc1b22e92b0ea8ea0b8ed5c7e4efc2
t/helper/test-hashmap: use custom data instead of duplicate cmp functions

With the new field that is passed to the compare function, we can pass
through flags there instead of having multiple compare functions.
Also drop the cast to hashmap_cmp_fn.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/helper/test-hashmap.c