aboutsummaryrefslogtreecommitdiff
path: root/tests/test_relocation.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2024-06-21 12:49:45 -0400
committerGitHub <noreply@github.com>2024-06-21 12:49:45 -0400
commit77a0276d9f37bcf828c77f9bcc59ff945116274e (patch)
tree91cf7cb955798ad40718341172b0a8ffbc59a1f2 /tests/test_relocation.c
parent931ee28eb9c5b5e3c2b0d3008f5f65d810dc9b0c (diff)
downloadstasis-77a0276d9f37bcf828c77f9bcc59ff945116274e.tar.gz
Rebrand OhMyCal (OMC) as STASIS (#7)
Diffstat (limited to 'tests/test_relocation.c')
-rw-r--r--tests/test_relocation.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/test_relocation.c b/tests/test_relocation.c
index 0796074..a6c33f2 100644
--- a/tests/test_relocation.c
+++ b/tests/test_relocation.c
@@ -16,8 +16,8 @@ void test_replace_text() {
char input[BUFSIZ] = {0};
strcpy(input, test_string);
- OMC_ASSERT(replace_text(input, target, "^^^", 0) == 0, "string replacement failed");
- OMC_ASSERT(strcmp(input, expected) == 0, "unexpected replacement");
+ STASIS_ASSERT(replace_text(input, target, "^^^", 0) == 0, "string replacement failed");
+ STASIS_ASSERT(strcmp(input, expected) == 0, "unexpected replacement");
}
}
@@ -33,9 +33,9 @@ void test_file_replace_text() {
if (fp) {
fprintf(fp, "%s", test_string);
fclose(fp);
- OMC_ASSERT(file_replace_text(filename, target, "^^^", 0) == 0, "string replacement failed");
+ STASIS_ASSERT(file_replace_text(filename, target, "^^^", 0) == 0, "string replacement failed");
} else {
- OMC_ASSERT(false, "failed to open file for writing");
+ STASIS_ASSERT(false, "failed to open file for writing");
return;
}
@@ -43,20 +43,20 @@ void test_file_replace_text() {
fp = fopen(filename, "r");
if (fp) {
fread(input, sizeof(*input), sizeof(input), fp);
- OMC_ASSERT(strcmp(input, expected) == 0, "unexpected replacement");
+ STASIS_ASSERT(strcmp(input, expected) == 0, "unexpected replacement");
} else {
- OMC_ASSERT(false, "failed to open file for reading");
+ STASIS_ASSERT(false, "failed to open file for reading");
return;
}
}
}
int main(int argc, char *argv[]) {
- OMC_TEST_BEGIN_MAIN();
- OMC_TEST_FUNC *tests[] = {
+ STASIS_TEST_BEGIN_MAIN();
+ STASIS_TEST_FUNC *tests[] = {
test_replace_text,
test_file_replace_text,
};
- OMC_TEST_RUN(tests);
- OMC_TEST_END_MAIN();
+ STASIS_TEST_RUN(tests);
+ STASIS_TEST_END_MAIN();
} \ No newline at end of file