static void
test_expand_title(void **state)
{
- (void)state;
-
struct buf s = BUF_INIT;
char TEMPLATE[] = "foo ~/bar";
static void
test_buf_add_fmt(void **state)
{
- (void)state;
-
struct buf s = BUF_INIT;
buf_add(&s, "foo");
static void
test_buf_add_char(void **state)
{
- (void)state;
-
const char long_string[] = "123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890";
size_t len = strlen(long_string);
static void
test_str_starts_with(void **state)
{
- (void)state;
-
assert_true(str_starts_with(" foo", 'f', " \t\r\n"));
assert_true(str_starts_with("f", 'f', " \t\r\n"));
assert_false(str_starts_with(" foo", '<', " "));
static void
test_lab_xml_expand_dotted_attributes(void **state)
{
- (void)state;
-
for (size_t i = 0; i < ARRAY_SIZE(test_cases); i++) {
xmlDoc *doc = xmlReadDoc((xmlChar *)test_cases[i].before,
NULL, NULL, 0);