From b34be3482e4a322a1198873f4ba3265d8a82e58d Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 19 Oct 2025 17:12:59 +0200 Subject: fix issue with order of loading --- tests/test_helper.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/test_helper.cpp') diff --git a/tests/test_helper.cpp b/tests/test_helper.cpp index fc09fd6..043be60 100644 --- a/tests/test_helper.cpp +++ b/tests/test_helper.cpp @@ -237,10 +237,14 @@ static bool _test_peppol_file(char* id) static void add_default_nl_tax_rates() { tax_rate* tr_buffer = (tax_rate*)memops::alloc(sizeof(tax_rate) * 500); - country::get_available_tax_rates("NL", tr_buffer, 500); + u32 tr_count = country::get_available_tax_rates("NL", tr_buffer, 500); for (u32 i = 0; i < 10; i++) { administration::tax_rate_add(tr_buffer[i]); } + + for (u32 i = 0; i < 10; i++) { + administration::tax_rate_add(tr_buffer[tr_count - i - 1]); + } memops::unalloc(tr_buffer); } -- cgit v1.2.3-70-g09d2