test/list_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 36
a9d656e4f7ce
child 59
c80c910fe191
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

/* 
 * File:   list_tests.h
 * Author: olaf
 *
 * Created on 31. Dezember 2011, 18:07
 */

#ifndef LIST_TESTS_H
#define	LIST_TESTS_H

#include "main.h"

#include "ucx/list.h"
#include "ucx/test.h"

#ifdef	__cplusplus
extern "C" {
#endif

/*
 * Assumed to be correct:
 *   ucx_list_free
 */

UCX_TEST_DECLARE(test_ucx_list_append)
UCX_TEST_DECLARE(test_ucx_list_prepend)
UCX_TEST_DECLARE(test_ucx_list_equals)
UCX_TEST_DECLARE(test_ucx_list_concat)
UCX_TEST_DECLARE(test_ucx_list_size)
UCX_TEST_DECLARE(test_ucx_list_last)
UCX_TEST_DECLARE(test_ucx_list_get)
UCX_TEST_DECLARE(test_ucx_list_remove)
UCX_TEST_DECLARE(test_ucx_list_clone)
UCX_TEST_DECLARE(test_ucx_list_sort)

#ifdef	__cplusplus
}
#endif

#endif	/* LIST_TESTS_H */

mercurial