Debian Codegraph @

src/vendor/azure-uamqp-c/deps/azure-macro-utils-c/tests/mu_count_array_items_test.c

raw
1 // Copyright (c) Microsoft. All rights reserved.
2 // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
4 #include "test_helper.h"
5
6 #include "azure_macro_utils/macro_utils.h"
7
8 #include "mu_count_array_items_test.h"
9
10 static const int test_array_1_item[1];
11 static const int test_array_3_items[3];
12 static const double test_array_4_items[] = { 0x42, 0x43, 0x44, 0x45 };
13
14 int run_mu_count_array_items_tests(void)
15 {
16 // check that counting works appropriately
17 POOR_MANS_ASSERT(MU_COUNT_ARRAY_ITEMS(test_array_1_item) == 1);
18 POOR_MANS_ASSERT(MU_COUNT_ARRAY_ITEMS(test_array_3_items) == 3);
19 POOR_MANS_ASSERT(MU_COUNT_ARRAY_ITEMS(test_array_4_items) == 4);
20
21 return 0;
22 }