[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master edb6abd 4/4: Forestall a GUI-test error messa
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master edb6abd 4/4: Forestall a GUI-test error message due to an exotic product rule |
Date: |
Wed, 5 May 2021 12:35:15 -0400 (EDT) |
branch: master
commit edb6abda314209f284cfe7b81469a7eb4a44c78b
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Forestall a GUI-test error message due to an exotic product rule
Hardcoding the product is not a feasible solution, because the GUI test
is used for distributions that include only products with this rule.
---
wx_test_pdf_create.cpp | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/wx_test_pdf_create.cpp b/wx_test_pdf_create.cpp
index 1354b8f..62fa190 100644
--- a/wx_test_pdf_create.cpp
+++ b/wx_test_pdf_create.cpp
@@ -62,6 +62,18 @@ std::string serial_suffix(int n)
/// OK
/// File | Print to PDF
/// and verify that the PDF file was created; then erase it.
+///
+/// Design modified 2021-05-05: Formerly, lmi's default inputs
+/// 1,000,000 specamt
+/// 20,000 pmts
+/// were simply multiplied by one thousand, to test ledger scaling
+/// for enormous amounts. Due to a recent lmi change, the ratio of
+/// those numbers would raise an alarum when used with a default
+/// product for which
+/// oe_min_single_premium_corr_mult == MinSinglePremiumType
+/// To prevent that, changed the payment from $20M to $950M. Paying
+/// $950M every year is of course absurd, but it's a good test of
+/// ledger scaling.
LMI_WX_TEST_CASE(pdf_illustration)
{
@@ -81,7 +93,7 @@ LMI_WX_TEST_CASE(pdf_illustration)
wx_test_focus_controller_child(*dialog, "Payment");
- ui.Text("20000000");
+ ui.Text(" 950000000");
wxYield();
return wxID_OK;