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