2024-09-25 14:57:34 +02:00
|
|
|
#include "assert.h"
|
2023-01-05 19:28:05 +01:00
|
|
|
|
2023-06-25 15:17:46 +02:00
|
|
|
bool assert_string_equal(const string_t actual, const string_t expected) {
|
2024-09-25 14:57:34 +02:00
|
|
|
if (!string_equals(actual, expected)) {
|
2023-01-05 19:28:05 +01:00
|
|
|
printf("FAIL: expected = \"%s\" ; actual = \"%s\"\n", expected, actual);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2023-06-25 15:17:46 +02:00
|
|
|
bool assert_string_not_equal(const string_t actual, const string_t expected) {
|
2024-09-25 14:57:34 +02:00
|
|
|
if (string_equals(actual, expected)) {
|
2023-01-05 19:28:05 +01:00
|
|
|
printf("FAIL: expected = \"%s\" ; actual = \"%s\"\n", expected, actual);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|