|
4b3351f5
|
2009-06-19T18:15:28
|
|
tests: test-hash: avoid wholesale duplication
* tests/test-hash.c (main): Don't copy/paste a 60-line loop.
Instead, use a loop and add a single conditional.
|
|
8b7595fc
|
2009-06-19T16:56:48
|
|
tests: test-hash: allow seed selection via a command line argument
* tests/test-hash.c (get_seed): New function.
(main): Use it.
|
|
af254bfe
|
2009-06-18T07:11:39
|
|
hash: provide default callback functions
* lib/hash.c (raw_hasher, raw_comparator): New functions.
(hash_initialize): Use them as defaults.
* tests/test-hash.c (main): Test this.
Signed-off-by: Eric Blake <ebb9@byu.net>
|
|
16908fc8
|
2009-06-18T06:56:13
|
|
hash: minor optimization
* lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
when possible.
(hash_initialize): Document this promise.
(hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
* tests/test-hash.c (hash_compare_strings): Test this.
Signed-off-by: Eric Blake <ebb9@byu.net>
|
|
ae156c0b
|
2009-06-18T07:36:54
|
|
hash-tests: add a loop around the small tests
* tests/test-hash.c (main): Repeat small tests with selected
small initial table sizes.
|
|
14092765
|
2009-06-17T22:09:53
|
|
hash-tests: new module
* modules/hash-tests: New file.
* tests/test-hash.c: New file.
Signed-off-by: Eric Blake <ebb9@byu.net>
|