xbt_test_assert(not strcmp(s, expected),
"Input (%s) leads to (%s) instead of (%s)",
input, s, expected); \
xbt_free(s); \
for (int i = 0; a[i] != nullptr; i++) \
xbt_free(a);
xbt_dynar_t xbt_str_split_quoted(const char *s)
Splits a string into a dynar of strings, taking quotes into account.
Definition: xbt_str.cpp:174
#define xbt_free(p)
like free
Definition: sysdep.h:114
void * xbt_dynar_to_array(xbt_dynar_t dynar)
Transform a dynar into a nullptr terminated array.
Definition: dynar.cpp:624
char * xbt_str_join_array(const char *const *strs, const char *sep)
Join a set of strings as a single string.
Definition: xbt_str.cpp:202
#define xbt_test_add(...)
Declare that a new test begins (printf-like parameters, describing the test)
Definition: cunit.h:104
const char * name
Definition: msg.h:201