Fri, 01 Nov 2024 16:21:06 +0100
fix test function names not in line with naming convention
tests/test_properties.c | file | annotate | diff | comparison | revisions |
--- a/tests/test_properties.c Thu Oct 31 17:53:55 2024 +0100 +++ b/tests/test_properties.c Fri Nov 01 16:21:06 2024 +0100 @@ -32,7 +32,7 @@ #include "cx/properties.h" #include "cx/hash_map.h" -CX_TEST(test_cx_properties_init) { +CX_TEST(test_properties_init) { CxProperties prop; CX_TEST_DO { cxPropertiesInitDefault(&prop); @@ -49,7 +49,7 @@ } } -CX_TEST(test_cx_properties_next) { +CX_TEST(test_properties_next) { const char *tests[] = { "name = value\n", "name=value\n", @@ -115,7 +115,7 @@ cxPropertiesDestroy(&prop); } -CX_TEST(test_cx_properties_next_multi) { +CX_TEST(test_properties_next_multi) { const char *keys[] = { "a", "b", @@ -177,7 +177,7 @@ cxPropertiesDestroy(&prop); } -CX_TEST(test_cx_properties_next_part) { +CX_TEST(test_properties_next_part) { CxProperties prop; cxPropertiesInitDefault(&prop); CxPropertiesStatus result; @@ -286,7 +286,7 @@ cxPropertiesDestroy(&prop); } -CX_TEST(test_ucx_properties_next_long_lines) { +CX_TEST(test_properties_next_long_lines) { CxProperties prop; cxPropertiesInitDefault(&prop); CxPropertiesStatus result; @@ -369,7 +369,7 @@ free(long_value); } -CX_TEST(test_cx_properties_load_string_to_map) { +CX_TEST(test_properties_load_string_to_map) { CxTestingAllocator talloc; cx_testing_allocator_init(&talloc); CxAllocator *alloc = &talloc.base; @@ -432,7 +432,7 @@ cx_testing_allocator_destroy(&talloc); } -CX_TEST(test_cx_properties_load_file_to_map) { +CX_TEST(test_properties_load_file_to_map) { CxTestingAllocator talloc; cx_testing_allocator_init(&talloc); CxAllocator *alloc = &talloc.base; @@ -508,13 +508,13 @@ CxTestSuite *cx_test_suite_properties(void) { CxTestSuite *suite = cx_test_suite_new("properties"); - cx_test_register(suite, test_cx_properties_init); - cx_test_register(suite, test_cx_properties_next); - cx_test_register(suite, test_cx_properties_next_multi); - cx_test_register(suite, test_cx_properties_next_part); - cx_test_register(suite, test_ucx_properties_next_long_lines); - cx_test_register(suite, test_cx_properties_load_string_to_map); - cx_test_register(suite, test_cx_properties_load_file_to_map); + cx_test_register(suite, test_properties_init); + cx_test_register(suite, test_properties_next); + cx_test_register(suite, test_properties_next_multi); + cx_test_register(suite, test_properties_next_part); + cx_test_register(suite, test_properties_next_long_lines); + cx_test_register(suite, test_properties_load_string_to_map); + cx_test_register(suite, test_properties_load_file_to_map); return suite; }