userspace/test: implement more tests in libc_test

Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
2025-02-13 01:14:11 +02:00
parent 6c3eefa85d
commit 3e656854bc
8 changed files with 119 additions and 8 deletions

View File

@ -17,8 +17,16 @@
#include <assert.h>
/* https://pubs.opengroup.org/onlinepubs/9799919799/functions/assert.html */
int test_assert(void)
{
assert(1 == 1);
#define A 1
#define B 2
assert(A != B);
assert((A == 1) && (B == 2));
assert(1);
assert(!0);
return 0;
}