diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-10-19 17:12:59 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-10-19 17:12:59 +0200 |
| commit | b34be3482e4a322a1198873f4ba3265d8a82e58d (patch) | |
| tree | 7f5145bbd3d69d1b53cc000afa1a7280aa899329 /tests/test_helper.cpp | |
| parent | 1bfeb2751bf07cdc81ea9344ec941e671cb216a8 (diff) | |
fix issue with order of loading
Diffstat (limited to 'tests/test_helper.cpp')
| -rw-r--r-- | tests/test_helper.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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); } |
