lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master c80737e 1/7: Measure minimum_birthdate() spee


From: Greg Chicares
Subject: [lmi-commits] [lmi] master c80737e 1/7: Measure minimum_birthdate() speed in unit test
Date: Tue, 27 Jun 2017 17:13:47 -0400 (EDT)

branch: master
commit c80737e9098603753b7932bf5fd09e783cb22319
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Measure minimum_birthdate() speed in unit test
---
 calendar_date_test.cpp | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/calendar_date_test.cpp b/calendar_date_test.cpp
index ba286d8..cdae65d 100644
--- a/calendar_date_test.cpp
+++ b/calendar_date_test.cpp
@@ -1060,6 +1060,7 @@ namespace
         std::string s = x.str();
         x = add_years_and_months(x, 1, 1, true);
         attained_age(y, x, oe_age_last_birthday);
+        y = minimum_birthdate(45, x, oe_age_last_birthday);
     }
 
     void mete_construct()
@@ -1096,6 +1097,11 @@ namespace
         attained_age(y, x, oe_age_last_birthday);
     }
 
+    void mete_dob_limit()
+    {
+        y = minimum_birthdate(45, x, oe_age_last_birthday);
+    }
+
 } // Unnamed namespace.
 
 void CalendarDateTest::TestSpeed()
@@ -1108,6 +1114,7 @@ void CalendarDateTest::TestSpeed()
         << "  Get y, m, d  : " << TimeAnAliquot(mete_get_y_m_d   ) << '\n'
         << "  Format       : " << TimeAnAliquot(mete_format      ) << '\n'
         << "  Calculate age: " << TimeAnAliquot(mete_attained_age) << '\n'
+        << "  DOB limit    : " << TimeAnAliquot(mete_dob_limit   ) << '\n'
         ;
 }
 



reply via email to

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