From: Michael D. Lowis Date: Fri, 11 Dec 2015 01:04:12 +0000 (-0500) Subject: Added test file for basic rune functions X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=cba554517ba8336ee2a827f2a916592ed3fe991a;p=archive%2Fcarl.git Added test file for basic rune functions --- diff --git a/Makefile b/Makefile index 944c0ed..03b3f84 100644 --- a/Makefile +++ b/Makefile @@ -51,12 +51,13 @@ SRCS = source/data/bstree.c \ source/utf/runetype.c OBJS = ${SRCS:.c=.o} -TEST_SRCS = tests/data/bstree.c \ - tests/data/hash.c \ - tests/data/slist.c \ - tests/atf.c \ - tests/main.c \ - tests/refcount.c \ +TEST_SRCS = tests/data/bstree.c \ + tests/data/hash.c \ + tests/data/slist.c \ + tests/atf.c \ + tests/main.c \ + tests/refcount.c \ + tests/utf/test_runes.c \ tests/utf/test_unicodedata.c TEST_OBJS = ${TEST_SRCS:.c=.o} diff --git a/tests/main.c b/tests/main.c index b600219..8a2af71 100644 --- a/tests/main.c +++ b/tests/main.c @@ -14,5 +14,6 @@ int main(int argc, char** argv) RUN_EXTERN_TEST_SUITE(BSTree); RUN_EXTERN_TEST_SUITE(Hash); RUN_EXTERN_TEST_SUITE(UnicodeData); + RUN_EXTERN_TEST_SUITE(Runes); return (PRINT_TEST_RESULTS()); } diff --git a/tests/utf/test_rune.c b/tests/utf/test_runes.c similarity index 50% rename from tests/utf/test_rune.c rename to tests/utf/test_runes.c index 5fb959d..497cb91 100644 --- a/tests/utf/test_rune.c +++ b/tests/utf/test_runes.c @@ -7,14 +7,5 @@ //----------------------------------------------------------------------------- // Begin Unit Tests //----------------------------------------------------------------------------- -TEST_SUITE(RuneFns) { - TEST(Verify runecmp returns -1 when b is less than a) { - CHECK(-1 == runecmp('a','b')); - } - - TEST(Verify runecmp returns 1 when a is less than b) { - } - - TEST(Verify runecmp returns 0 when two runes are equal) { - } +TEST_SUITE(Runes) { }