test/map_tests.h

Thu, 04 Oct 2012 16:03:18 +0200

author
Mike Becker <universe@uap-core.de>
date
Thu, 04 Oct 2012 16:03:18 +0200
changeset 42
ff3dd1ee7dee
parent 33
9c219a62070d
child 44
46356d74e873
permissions
-rw-r--r--

(broken-commit) - added load and store functions, tests failing

some evil crash happens when executing the test - remove the strcmp calls in the test case for the store and load function and everything "works"

the error must be somewhere else - maybe something that should not be freed is freed during the test

olaf@20 1 /*
olaf@20 2 *
olaf@20 3 */
olaf@20 4
olaf@20 5 #ifndef MAP_TESTS_H
olaf@20 6 #define MAP_TESTS_H
olaf@20 7
universe@29 8 #include "ucx/test.h"
olaf@20 9 #include "ucx/map.h"
olaf@20 10
olaf@20 11 #ifdef __cplusplus
olaf@20 12 extern "C" {
olaf@20 13 #endif
olaf@20 14
universe@29 15 UCX_TEST_DECLARE(test_ucx_map_new)
universe@29 16 UCX_TEST_DECLARE(test_ucx_key)
universe@29 17 UCX_TEST_DECLARE(test_ucx_map_put)
universe@29 18 UCX_TEST_DECLARE(test_ucx_map_get)
olaf@31 19 UCX_TEST_DECLARE(test_ucx_map_iterator)
universe@33 20 UCX_TEST_DECLARE(test_ucx_map_iterator_chain)
universe@42 21 UCX_TEST_DECLARE(test_ucx_map_store_load)
olaf@20 22
olaf@20 23
olaf@20 24 #ifdef __cplusplus
olaf@20 25 }
olaf@20 26 #endif
olaf@20 27
olaf@20 28 #endif /* MAP_TESTS_H */
olaf@20 29

mercurial