diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-10-19 19:36:36 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-10-19 19:36:36 +0200 |
| commit | 7aea21f2a30e0aa3bc75a579bd01ff9746470c05 (patch) | |
| tree | e0897a6d4c0414be48cbdfcf565c813572d2ddfd /tests | |
| parent | b34be3482e4a322a1198873f4ba3265d8a82e58d (diff) | |
replace strcmp with strops function
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_helper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_helper.cpp b/tests/test_helper.cpp index 043be60..63f64ed 100644 --- a/tests/test_helper.cpp +++ b/tests/test_helper.cpp @@ -202,7 +202,7 @@ static bool _test_peppol_file(char* id) char* name = (char*)xml_easy_name(node); - if (strcmp(name, "svrl:failed-assert") == 0) { + if (strops::equals(name, "svrl:failed-assert")) { struct xml_node* text_node = xml_easy_child(node, (uint8_t *)"svrl:text", 0); char* content = (char*)xml_easy_content(text_node); @@ -215,7 +215,7 @@ static bool _test_peppol_file(char* id) xml_string_copy(attr_name, b_buffer, b_length); b_buffer[b_length] = 0; - if (strcmp((char*)b_buffer, "location") == 0) { + if (strops::equals((char*)b_buffer, "location")) { struct xml_string* attr_content = xml_node_attribute_content(node, x); size_t a_length = xml_string_length(attr_content); |
