summaryrefslogtreecommitdiff
path: root/tests/administration_rw_tests.cpp
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@mailbox.org>2026-01-11 12:48:05 +0100
committerAldrik Ramaekers <aldrik@mailbox.org>2026-01-11 12:48:05 +0100
commit08d42688d851eb134da496be721e234f53ff8d0b (patch)
tree5c8a448a42cd8ec4dc35c55edef85f0063b9a50a /tests/administration_rw_tests.cpp
parentccbc6a8f0836583fabd59919bd7930d7cfe1473e (diff)
fix warnings
Diffstat (limited to 'tests/administration_rw_tests.cpp')
-rw-r--r--tests/administration_rw_tests.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/administration_rw_tests.cpp b/tests/administration_rw_tests.cpp
index 2a009e4..b610948 100644
--- a/tests/administration_rw_tests.cpp
+++ b/tests/administration_rw_tests.cpp
@@ -110,10 +110,10 @@ TEST _administration_rw_contact(void)
{
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.addr.address1, "Address 1", sizeof(pw.addr.address1));
+ strops::copy(pw.addr.country_code, "FR", sizeof(pw.addr.country_code));
+ strops::copy(pw.addr.city, "Paris", sizeof(pw.addr.city));
+ strops::copy(pw.addr.postal, "12345", sizeof(pw.addr.postal));
strops::copy(pw.email, "test@test.com", sizeof(pw.email));
pw.type = contact_type::CONTACT_CONSUMER;
@@ -173,8 +173,8 @@ TEST _assert_invoices_are_equal(invoice inv, invoice invr)
ASSERT_EQ(invr.issued_at, inv.issued_at);
ASSERT_EQ(invr.expires_at, inv.expires_at);
ASSERT_EQ(invr.delivered_at, inv.delivered_at);
- ASSERT_STR_EQ(invr.document.original_path, inv.document.original_path);
- ASSERT_STR_EQ(invr.document.copy_path, inv.document.copy_path);
+ ASSERT_STR_EQ(invr.orig_document.original_path, inv.orig_document.original_path);
+ ASSERT_STR_EQ(invr.orig_document.copy_path, inv.orig_document.copy_path);
ASSERT_STR_EQ(invr.project_id, inv.project_id);
ASSERT_STR_EQ(invr.cost_center_id, inv.cost_center_id);
@@ -324,7 +324,7 @@ TEST _administration_rw_b2b2c_invoice(void)
inv.supplier = _create_nl_business();
inv.customer = _create_nl_business();
strops::copy(inv.addressee.name, "Piet Pinda", sizeof(inv.addressee.name));
- inv.addressee.address = _create_nl_consumer().address;
+ inv.addressee.addr = _create_nl_consumer().addr;
inv.is_triangulation = 1;
inv.is_outgoing = 1;
inv.issued_at = time(NULL);