From 08d42688d851eb134da496be721e234f53ff8d0b Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 11 Jan 2026 12:48:05 +0100 Subject: fix warnings --- tests/administration_rw_tests.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tests/administration_rw_tests.cpp') 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); -- cgit v1.2.3-70-g09d2