blob: f7dee9ee7891290fff9a23980c2622e3799a6dec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/*
* Copyright 2020-2021 the Pacemaker project contributors
*
* The version control history for this file may have further details.
*
* This source code is licensed under the GNU General Public License version 2
* or later (GPLv2+) WITHOUT ANY WARRANTY.
*/
#include <crm_internal.h>
#include <crm/common/unittest_internal.h>
static void
btoa(void **state) {
assert_string_equal(pcmk__btoa(false), "false");
assert_string_equal(pcmk__btoa(true), "true");
assert_string_equal(pcmk__btoa(1 == 0), "false");
}
PCMK__UNIT_TEST(NULL, NULL,
cmocka_unit_test(btoa))
|