diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-10-04 16:53:57 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-10-04 16:53:57 +0200 |
| commit | f9f1955748a3b369f0a015405af131c9b6e3285c (patch) | |
| tree | c74cec6b30daccee2d1841627b3913c51fd549e3 /tests/administration_rw_tests.cpp | |
| parent | 2855642dd16cea260f3b32351f0529328a0bcb15 (diff) | |
namespace for logger, strops, locales
Diffstat (limited to 'tests/administration_rw_tests.cpp')
| -rw-r--r-- | tests/administration_rw_tests.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/tests/administration_rw_tests.cpp b/tests/administration_rw_tests.cpp index 375fe0a..0bea1ce 100644 --- a/tests/administration_rw_tests.cpp +++ b/tests/administration_rw_tests.cpp @@ -26,9 +26,9 @@ TEST _administration_rw_taxrate(void) administration_create_empty(test_file_path); { pw = administration_tax_rate_create_empty(); - strops_copy(pw.country_code, "NL", sizeof(pw.country_code)); + strops::copy(pw.country_code, "NL", sizeof(pw.country_code)); pw.rate = 10.0f; - strops_copy(pw.category_code, "S", sizeof(pw.category_code)); + strops::copy(pw.category_code, "S", sizeof(pw.category_code)); count = administration_tax_rate_count(); administration_tax_rate_add(pw); @@ -57,8 +57,8 @@ TEST _administration_rw_costcenter(void) administration_create_empty(test_file_path); { pw = administration_cost_center_create_empty(); - strops_copy(pw.code, "CODE", sizeof(pw.code)); - strops_copy(pw.description, "Description", sizeof(pw.description)); + strops::copy(pw.code, "CODE", sizeof(pw.code)); + strops::copy(pw.description, "Description", sizeof(pw.description)); count = administration_cost_center_count(); administration_cost_center_add(pw); @@ -87,7 +87,7 @@ TEST _administration_rw_project(void) administration_create_empty(test_file_path); { pw = administration_project_create_empty(); - strops_copy(pw.description, "Test Project", sizeof(pw.description)); + strops::copy(pw.description, "Test Project", sizeof(pw.description)); count = administration_project_count(); administration_project_add(pw); @@ -115,12 +115,12 @@ TEST _administration_rw_contact(void) administration_create_empty(test_file_path); { pw = administration_contact_create_empty(); - strops_copy(pw.name, "John Johnsson", sizeof(pw.name)); - strops_copy(pw.address.address1, "Address 1", sizeof(pw.address.address1)); - strops_copy(pw.address.country_code, "FR", sizeof(pw.address.country_code)); - strops_copy(pw.address.city, "Paris", sizeof(pw.address.city)); - strops_copy(pw.address.postal, "12345", sizeof(pw.address.postal)); - strops_copy(pw.email, "test@test.com", sizeof(pw.email)); + strops::copy(pw.name, "John Johnsson", sizeof(pw.name)); + strops::copy(pw.address.address1, "Address 1", sizeof(pw.address.address1)); + strops::copy(pw.address.country_code, "FR", sizeof(pw.address.country_code)); + strops::copy(pw.address.city, "Paris", sizeof(pw.address.city)); + strops::copy(pw.address.postal, "12345", sizeof(pw.address.postal)); + strops::copy(pw.email, "test@test.com", sizeof(pw.email)); pw.type = contact_type::CONTACT_CONSUMER; count = administration_contact_count(); @@ -152,7 +152,7 @@ TEST _administration_rw_info(void) ai_service ss = {0}; ss.provider = AI_PROVIDER_OPENAI; - strops_copy(ss.api_key_public, "123", sizeof(ss.api_key_public)); + strops::copy(ss.api_key_public, "123", sizeof(ss.api_key_public)); administration_set_ai_service(ss); ais = administration_get_ai_service(); @@ -327,7 +327,7 @@ TEST _administration_rw_b2b2c_invoice(void) inv = administration_invoice_create_empty(); inv.supplier = _create_nl_business(); inv.customer = _create_nl_business(); - strops_copy(inv.addressee.name, "Piet Pinda", sizeof(inv.addressee.name)); + strops::copy(inv.addressee.name, "Piet Pinda", sizeof(inv.addressee.name)); inv.addressee.address = _create_nl_consumer().address; inv.is_triangulation = 1; inv.is_outgoing = 1; |
