[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [6068] Further rectify test specification
From: |
Greg Chicares |
Subject: |
[lmi-commits] [6068] Further rectify test specification |
Date: |
Fri, 12 Dec 2014 21:07:10 +0000 |
Revision: 6068
http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=6068
Author: chicares
Date: 2014-12-12 21:07:09 +0000 (Fri, 12 Dec 2014)
Log Message:
-----------
Further rectify test specification
Modified Paths:
--------------
lmi/trunk/ChangeLog
lmi/trunk/wx_test_default_input.cpp
Modified: lmi/trunk/ChangeLog
===================================================================
--- lmi/trunk/ChangeLog 2014-12-12 19:29:13 UTC (rev 6067)
+++ lmi/trunk/ChangeLog 2014-12-12 21:07:09 UTC (rev 6068)
@@ -34853,3 +34853,8 @@
Expunge 'wx_test_extract.cpp' because it is no longer useful. See:
http://lists.nongnu.org/archive/html/lmi/2014-12/msg00055.html
+20141212T2107Z <address@hidden> [516]
+
+ wx_test_default_input.cpp
+Further rectify test specification.
+
Modified: lmi/trunk/wx_test_default_input.cpp
===================================================================
--- lmi/trunk/wx_test_default_input.cpp 2014-12-12 19:29:13 UTC (rev 6067)
+++ lmi/trunk/wx_test_default_input.cpp 2014-12-12 21:07:09 UTC (rev 6068)
@@ -54,14 +54,20 @@
/// product's general-account rate is a crucial parameter that often
/// varies from one month to the next, so a spot check seems wise.
///
-/// Write "EffectiveDate" to stdout, as JDN and as YYYYMMDD,
-/// all on a single line, e.g.:
-/// EffectiveDate: 2457024 2015-01-01
+/// The expected value of "EffectiveDate" is normally the first day
+/// of the next month. (For example, to prepare a distribution that
+/// is to be used beginning January first, we must run this test in
+/// December, as validation should precede dissemination.)
///
-/// Validate "EffectiveDate": when a binary distribution is prepared,
-/// this is normally the first day of the next month. Perform this
-/// test after writing parameters to stdout, so that they're still
-/// written even if this test fails.
+/// Write both "EffectiveDate" and its expected value to stdout, both
+/// as JDN and as YYYYMMDD, all on a single line, e.g.:
+/// EffectiveDate: 2457024 2015-01-01 expected: 2457024 2015-01-01
+/// Then print a warning on a separate line iff these two dates do not
+/// match; do this after writing parameters to stdout, so that they're
+/// still written even if this test abends. Inequality is an unusual
+/// condition requiring attention, but not necessarily an error, so a
+/// mere warning suffices; program flow should not be interrupted as
+/// for an assertion failure.
LMI_WX_TEST_CASE(default_input)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lmi-commits] [6068] Further rectify test specification,
Greg Chicares <=