lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 55a3eb0 12/24: Note an apparent defect [327]


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 55a3eb0 12/24: Note an apparent defect [327]
Date: Wed, 30 Dec 2020 18:46:59 -0500 (EST)

branch: master
commit 55a3eb0f4229380e5cc3086aac649b061f29076b
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Note an apparent defect [327]
    
    This temporary assertion fails if the state of jurisdiction is changed
    from the default in any '.gpt' input file.
---
 ihs_basicval.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/ihs_basicval.cpp b/ihs_basicval.cpp
index 0ac92ae..26cfb56 100644
--- a/ihs_basicval.cpp
+++ b/ihs_basicval.cpp
@@ -268,6 +268,12 @@ void BasicValues::GPTServerInit()
     SetPermanentInvariants();
 
     StateOfDomicile_ = mc_state_from_string(product().datum("InsCoDomicile"));
+    // TODO ?? It seems that this assertion should fail sometimes,
+    // because StateOfJurisdiction_ is set from a ctor argument that
+    // may represent any state, but yare_input_.StateOfJurisdiction
+    // is not assigned that value above, and always retains its
+    // default value.
+    LMI_ASSERT_EQUAL(StateOfJurisdiction_, yare_input_.StateOfJurisdiction);
     StateOfJurisdiction_ = yare_input_.StateOfJurisdiction;
     PremiumTaxState_     = yare_input_.PremiumTaxState    ;
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]