1 /*
2  * Copyright (c) 2024 Intel Corporation
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 #include <stdio.h>
7 #include <stdlib.h>
8 #include <string.h>
9 #include <stdint.h>
10 #include <limits.h>
11 
12 #include <zephyr/ztest.h>
13 
14 
15 ZTEST_SUITE(a1_1_tests, NULL, NULL, NULL, NULL, NULL);
16 
17 /**
18  * @brief Test Asserts
19  *
20  * This test verifies various assert macros provided by ztest.
21  *
22  */
ZTEST(a1_1_tests,test_assert)23 ZTEST(a1_1_tests, test_assert)
24 {
25 	char *s = malloc(10);
26 
27 	strcpy(s, "123456789");
28 	printf("string is: %s\n", s);
29 
30 	zassert_true(1, "1 was false");
31 	zassert_false(0, "0 was true");
32 	zassert_is_null(NULL, "NULL was not NULL");
33 	zassert_not_null("foo", "\"foo\" was NULL");
34 	zassert_equal(1, 1, "1 was not equal to 1");
35 	zassert_equal_ptr(NULL, NULL, "NULL was not equal to NULL");
36 }
37