mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-12 15:59:17 +00:00
userspace/test: implement more tests in libc_test
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user