From 3ab6ee96012c90e98725b6e7b51cb52284ee6828 Mon Sep 17 00:00:00 2001 From: Tristan Riehs Date: Sun, 3 May 2026 15:33:21 +0200 Subject: Strenghten the tests For now, make check segfaults. --- test/uconfig_test.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/uconfig_test.c') diff --git a/test/uconfig_test.c b/test/uconfig_test.c index fdb5cab..b4f1001 100644 --- a/test/uconfig_test.c +++ b/test/uconfig_test.c @@ -9,7 +9,10 @@ int main(void) uconfig = uconfig_new("./test/a.conf"); assert(uconfig != NULL); assert(strcmp(uconfig_get(uconfig, "key0"), "value0") == 0); - assert(strcmp(uconfig_get(uconfig, "key1"), "This is the value of key1") == 0); + assert(strcmp(uconfig_get(uconfig, "key1"), "value1 with spaces around the equal character") == 0); + assert(strcmp(uconfig_get(uconfig, "key2"), "value2 with spaces at the beginning of the line") == 0); + assert(strcmp(uconfig_get(uconfig, "key3"), "value3 with a tab at the beginning of the line") == 0); + assert(strcmp(uconfig_get(uconfig, "key4"), "value4 with spaces at the end of the line") == 0); uconfig_destroy(uconfig); return 0; } -- cgit v1.2.3