2 * Written in 2014 by Gregor Pintar <grpintar@gmail.com>
4 * To the extent possible under law, the author(s) have dedicated
5 * all copyright and related and neighboring rights to this software
6 * to the public domain worldwide.
8 * This software is distributed without any warranty.
10 * You should have received a copy of the CC0 Public Domain Dedication.
11 * If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
22 void test_pass(const char *test
)
32 void test_fail(const char *test
)
40 void test_error(const char *test
)
47 void test_cmp(const char *test
, const void *s1
, const void *s2
, size_t len
)
49 if(memcmp(s1
, s2
, len
)) test_fail(test
);