summaryrefslogtreecommitdiff
path: root/tests/test_helper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_helper.cpp')
-rw-r--r--tests/test_helper.cpp6
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);
}