summaryrefslogtreecommitdiff
path: root/tests/test_helper.cpp
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2025-10-19 19:36:36 +0200
committerAldrik Ramaekers <aldrikboy@gmail.com>2025-10-19 19:36:36 +0200
commit7aea21f2a30e0aa3bc75a579bd01ff9746470c05 (patch)
treee0897a6d4c0414be48cbdfcf565c813572d2ddfd /tests/test_helper.cpp
parentb34be3482e4a322a1198873f4ba3265d8a82e58d (diff)
replace strcmp with strops function
Diffstat (limited to 'tests/test_helper.cpp')
-rw-r--r--tests/test_helper.cpp4
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);