[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master bd3468c5 01/13: Assert another precondition
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master bd3468c5 01/13: Assert another precondition |
Date: |
Tue, 7 Jun 2022 16:39:09 -0400 (EDT) |
branch: master
commit bd3468c5cd776a42cfe56d61e1c42f7b5304b737
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Assert another precondition
See:
https://lists.nongnu.org/archive/html/lmi/2022-06/msg00025.html
---
actuarial_table_test.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/actuarial_table_test.cpp b/actuarial_table_test.cpp
index 17b693f6..c7e8800c 100644
--- a/actuarial_table_test.cpp
+++ b/actuarial_table_test.cpp
@@ -90,6 +90,7 @@ std::vector<double> table_42(int age)
std::vector<double> table_256(int age, int duration)
{
LMI_ASSERT(0 <= duration && duration <= 3);
+ LMI_ASSERT(10 <= age && age <= 80);
// Select: issue age by duration.
static int const nsel = 71 * 3;
static double const qsel[nsel] =
- [lmi-commits] [lmi] master b8afd2d8 05/13: Disentangle conditionals for one target, (continued)
- [lmi-commits] [lmi] master b8afd2d8 05/13: Disentangle conditionals for one target, Greg Chicares, 2022/06/07
- [lmi-commits] [lmi] master 10dfe448 03/13: Prepare to refactor, Greg Chicares, 2022/06/07
- [lmi-commits] [lmi] master cb7f345f 11/13: Assert that there is OAOO $(build_type), Greg Chicares, 2022/06/07
- [lmi-commits] [lmi] master a9468c0f 02/13: Remove an obsolete defect marker [272], Greg Chicares, 2022/06/07
- [lmi-commits] [lmi] master 7a434503 06/13: Don't attempt to build "erroneous" targets, Greg Chicares, 2022/06/07
- [lmi-commits] [lmi] master a2d6b2ac 12/13: Migrate one last conditional, Greg Chicares, 2022/06/07
- [lmi-commits] [lmi] master 3b1b8a3d 10/13: Migrate another conditional, Greg Chicares, 2022/06/07
- [lmi-commits] [lmi] master 58f81cc4 07/13: For $(build_type) 'so_test', always set $(USE_SO_ATTRIBUTES), Greg Chicares, 2022/06/07
- [lmi-commits] [lmi] master eb5f30b7 09/13: Disentangle another conditional, Greg Chicares, 2022/06/07
- [lmi-commits] [lmi] master fbcd6ee8 04/13: Don't use UBSan with antediluvian targets, Greg Chicares, 2022/06/07
- [lmi-commits] [lmi] master bd3468c5 01/13: Assert another precondition,
Greg Chicares <=
- [lmi-commits] [lmi] master a9bed382 08/13: Reduce redundancy, Greg Chicares, 2022/06/07