From 2505955ab90e43cc9cb89b7de7930af7e0f9a947 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Tue, 20 Sep 2022 09:09:28 -0700 Subject: [PATCH] Fix test failure from Bug 798616 fix. --- libgnucash/engine/test/utest-Split.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libgnucash/engine/test/utest-Split.cpp b/libgnucash/engine/test/utest-Split.cpp index 4d257c4d44..c0fa7400f6 100644 --- a/libgnucash/engine/test/utest-Split.cpp +++ b/libgnucash/engine/test/utest-Split.cpp @@ -760,10 +760,10 @@ test_get_currency_denom (Fixture *fixture, gconstpointer pData) const gint denom = gnc_commodity_get_fraction (fixture->curr); g_assert_cmpint (fixture->func->get_currency_denom (NULL), ==, 0); fixture->split->parent = NULL; - g_assert_cmpint (fixture->func->get_currency_denom (fixture->split), ==, GNC_COMMODITY_MAX_FRACTION); + g_assert_cmpint (fixture->func->get_currency_denom (fixture->split), ==, GNC_DENOM_AUTO); fixture->split->parent = txn; txn->common_currency = NULL; - g_assert_cmpint (fixture->func->get_currency_denom (fixture->split), ==, GNC_COMMODITY_MAX_FRACTION); + g_assert_cmpint (fixture->func->get_currency_denom (fixture->split), ==, GNC_DENOM_AUTO); txn->common_currency = fixture->curr; g_assert_cmpint (fixture->func->get_currency_denom (fixture->split), ==, denom); } @@ -778,7 +778,7 @@ test_get_commodity_denom (Fixture *fixture, gconstpointer pData) const gint denom = gnc_commodity_get_fraction (fixture->comm); g_assert_cmpint (fixture->func->get_commodity_denom (NULL), ==, 0); fixture->split->acc = NULL; - g_assert_cmpint (fixture->func->get_commodity_denom (fixture->split), ==, GNC_COMMODITY_MAX_FRACTION); + g_assert_cmpint (fixture->func->get_commodity_denom (fixture->split), ==, GNC_DENOM_AUTO); fixture->split->acc = acc; g_assert_cmpint (fixture->func->get_commodity_denom (fixture->split), ==, denom); }