diff options
| author | JP Appel <jeanpierre.appel01@gmail.com> | 2025-09-03 23:41:53 -0400 |
|---|---|---|
| committer | JP Appel <jeanpierre.appel01@gmail.com> | 2025-09-03 23:41:53 -0400 |
| commit | a033103e60aca0c17afa6117e8e46b197aa90109 (patch) | |
| tree | dc071fa265be549eb426830e4bc634f4f4c72af1 /README.md | |
| parent | 47f09225b07c33c7657ded5bbe4c7e4f98eb9e30 (diff) | |
Simplify namespace prefix
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -34,8 +34,8 @@ int sum_of_integers(const int max){ eztester_status sample_test(){ const int max = 100; - eztester_log("Inside of Sample Test"); - eztester_log("adding %d consectuive positive integers", max); + ez_log("Inside of Sample Test"); + ez_log("adding %d consectuive positive integers", max); int actual = 0; for(int i = 1; i <= max; i++){ @@ -55,7 +55,7 @@ eztester_status sample_test(){ } } -eztester_status sample_shell_test(){ +ez_status sample_shell_test(){ // eztester_shell is a wrapper function for `system` // see `eztester.h` for more info int status = eztester_shell("curl invalid.url"); @@ -74,21 +74,21 @@ eztester_status sample_shell_test(){ } int main(int argc, char* argv[]){ - eztester_list *tests = ezterster_create_list(2); + ez_list *tests = ezterster_create_list(2); // runners that always return the same status are provided - eztester_register(tests, (eztester_test){eztester_always_pass, "Always Pass", 0}); - eztester_register(tests, (eztester_test){sample_test, "Sample Test", 0}); // our test, can be defined in a different translation unit + ez_register(tests, (ez_test){ez_always_pass, "Always Pass", 0}); + ez_register(tests, (ez_test){sample_test, "Sample Test", 0}); // our test, can be defined in a different translation unit // a list will resize on register when it doesn't have capacity - eztester_register(tests, (eztester_test){eztester_always_fail, "Always Fail", 0}); - eztester_register(tests, (eztester_test){eztester_always_warn, "Always Warn", 0}); + ez_register(tests, (ez_test){ez_always_fail, "Always Fail", 0}); + ez_register(tests, (ez_test){ez_always_warn, "Always Warn", 0}); - eztester_register(tests, (eztester_test){sample_shell_test, "Check a non existent url"); + ez_register(tests, (ez_test){sample_shell_test, "Check a non existent url"); - eztester_run(tests, EXIT_ON_FAIL | EXIT_ON_TIMEOUT ); + ez_run(tests, EXIT_ON_FAIL | EXIT_ON_TIMEOUT ); - eztester_destroy_list(tests); + ez_destroy_list(tests); return 0; } ``` |
