lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master c62b553 1/2: Buy another twenty years


From: Greg Chicares
Subject: [lmi-commits] [lmi] master c62b553 1/2: Buy another twenty years
Date: Fri, 10 Jul 2020 09:31:16 -0400 (EDT)

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

    Buy another twenty years
    
    Pasting YYYYMMDD dates in this help-manual example is useful because it
    guides end users to use that format. Such an example must be updated
    every few decades; the static assertion will give a timely reminder.
---
 pasting_to_a_census.html | 14 +++++++-------
 wx_test_paste_census.cpp | 19 ++++++++++++-------
 2 files changed, 19 insertions(+), 14 deletions(-)

diff --git a/pasting_to_a_census.html b/pasting_to_a_census.html
index f82e6e6..7a9a98c 100644
--- a/pasting_to_a_census.html
+++ b/pasting_to_a_census.html
@@ -70,13 +70,13 @@ For example, here is a census you can copy and paste:
 -->
 <pre>
 Gender&#009;DateOfBirth&#009;EmployeeClass&#009;SpecifiedAmount&#010;
-Female&#009;19851231&#009;Clerical&#009;100000, @65; 50000
-Male&#009;19801130&#009;Clerical&#009;200000, @65; 50000
-Female&#009;19751029&#009;Technical&#009;300000, @65; 50000
-Male&#009;19700928&#009;Technical&#009;400000, @65; 50000
-Female&#009;19650827&#009;Supervisor&#009;500000, @65; 50000
-Male&#009;19600726&#009;Attorney&#009;600000, @65; 75000
-Female&#009;19550625&#009;President&#009;700000, @65; 100000
+Female&#009;19851231&#009;Clerical&#009;100000, @85; 50000
+Male&#009;19801130&#009;Clerical&#009;200000, @85; 50000
+Female&#009;19751029&#009;Technical&#009;300000, @85; 50000
+Male&#009;19700928&#009;Technical&#009;400000, @85; 50000
+Female&#009;19650827&#009;Supervisor&#009;500000, @85; 50000
+Male&#009;19600726&#009;Attorney&#009;600000, @85; 75000
+Female&#009;19550625&#009;President&#009;700000, @85; 100000
 </pre>
 <p>
 You can use these column headers:
diff --git a/wx_test_paste_census.cpp b/wx_test_paste_census.cpp
index 2ef39e9..ad2fd59 100644
--- a/wx_test_paste_census.cpp
+++ b/wx_test_paste_census.cpp
@@ -205,6 +205,11 @@ int find_model_column_by_title
 
 LMI_WX_TEST_CASE(paste_census)
 {
+    // Update this file (and the webpage cited above) in 2040--see:
+    //   https://lists.nongnu.org/archive/html/lmi/2020-06/msg00037.html
+    // __DATE__[9] is second-to-last digit of a four-digit year
+    static_assert('4' != __DATE__[9]);
+
     // The column titles are the user-visible strings corresponding to the
     // internal column names actually used in the census data below.
     std::set<std::string> column_titles;
@@ -216,13 +221,13 @@ LMI_WX_TEST_CASE(paste_census)
     char const* const census_data =
         "Gender\tDateOfBirth\tEmployeeClass\tSpecifiedAmount\n"
         "\n"
-        "Female\t19851231\tClerical\t100000, @65; 50000\n"
-        "Male\t19801130\tClerical\t200000, @65; 50000\n"
-        "Female\t19751029\tTechnical\t300000, @65; 50000\n"
-        "Male\t19700928\tTechnical\t400000, @65; 50000\n"
-        "Female\t19650827\tSupervisor\t500000, @65; 50000\n"
-        "Male\t19600726\tAttorney\t600000, @65; 75000\n"
-        "Female\t19550625\tPresident\t700000, @65; 100000\n"
+        "Female\t19851231\tClerical\t100000, @85; 50000\n"
+        "Male\t19801130\tClerical\t200000, @85; 50000\n"
+        "Female\t19751029\tTechnical\t300000, @85; 50000\n"
+        "Male\t19700928\tTechnical\t400000, @85; 50000\n"
+        "Female\t19650827\tSupervisor\t500000, @85; 50000\n"
+        "Male\t19600726\tAttorney\t600000, @85; 75000\n"
+        "Female\t19550625\tPresident\t700000, @85; 100000\n"
         ;
 
     int const number_of_rows =



reply via email to

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