chiark / gitweb /
test: add and improve hashmap tests
authorMichal Schmidt <mschmidt@redhat.com>
Wed, 15 Oct 2014 09:06:08 +0000 (11:06 +0200)
committerMichal Schmidt <mschmidt@redhat.com>
Thu, 23 Oct 2014 15:38:02 +0000 (17:38 +0200)
commit9ba81d5a61b7c992a1d2e5e02f334b8e2a0b0c22
tree60d3aaff21c25cfa11ee551f6d4fd6ca9fb12947
parent32a4456cc252689f51f383d150d34ed636bfec4d
test: add and improve hashmap tests

Test more corner cases and error states in several tests.

Add new tests for:
  hashmap_move
  hashmap_remove
  hashmap_remove2
  hashmap_remove_value
  hashmap_remove_and_replace
  hashmap_get2
  hashmap_first

In test_hashmap_many additionally test with an intentionally bad hash
function.
src/test/test-hashmap-plain.c