mirror of
https://github.com/theoludwig/libcproject.git
synced 2024-12-11 21:13:00 +01:00
18 lines
484 B
C
18 lines
484 B
C
#include "test.h"
|
|
|
|
bool assert_string_equal(const string_t actual, const string_t expected) {
|
|
if (strcmp(expected, actual) != 0) {
|
|
printf("FAIL: expected = \"%s\" ; actual = \"%s\"\n", expected, actual);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
bool assert_string_not_equal(const string_t actual, const string_t expected) {
|
|
if (strcmp(expected, actual) == 0) {
|
|
printf("FAIL: expected = \"%s\" ; actual = \"%s\"\n", expected, actual);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|