summaryrefslogtreecommitdiff
path: root/src/kernel/tests/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/tests/util.c')
-rw-r--r--src/kernel/tests/util.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/kernel/tests/util.c b/src/kernel/tests/util.c
index 05bba24..e7dcb82 100644
--- a/src/kernel/tests/util.c
+++ b/src/kernel/tests/util.c
@@ -22,6 +22,15 @@ TEST(memcmp) {
TEST_COND(0 < memcmp("654", "555", 3));
}
+TEST(strcmp) {
+ TEST_COND(0 == strcmp("string", "string"));
+ TEST_COND(0 > strcmp("str", "string"));
+ TEST_COND(0 < strcmp("string", "str"));
+
+ TEST_COND(0 != strcmp("stress", "string"));
+}
+
void tests_utils(void) {
TEST_RUN(memcmp);
+ TEST_RUN(strcmp);
}