]> git.mdlowis.com Git - archive/carl.git/commitdiff
Added test file for basic rune functions
authorMichael D. Lowis <mike@mdlowis.com>
Fri, 11 Dec 2015 01:04:12 +0000 (20:04 -0500)
committerMichael D. Lowis <mike@mdlowis.com>
Fri, 11 Dec 2015 01:04:12 +0000 (20:04 -0500)
Makefile
tests/main.c
tests/utf/test_runes.c [moved from tests/utf/test_rune.c with 50% similarity]

index 944c0ede97d4b3919d039cb8f2010811ff515f82..03b3f847f1fc1fa662106da5acc10534a365cb67 100644 (file)
--- 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}
 
index b600219b9e02600767abdab9a8fc0d47e8026472..8a2af71e11e1a383d7d2189cee1e7106d9b0bf1a 100644 (file)
@@ -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());
 }
similarity index 50%
rename from tests/utf/test_rune.c
rename to tests/utf/test_runes.c
index 5fb959d3f4cd042a1b9280813f2f5dad225f8e77..497cb91b7f36800e6061267c18c608c872c766ec 100644 (file)
@@ -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) {
 }