ISO8601p: Renamed ::_value to ::_period

This commit is contained in:
Paul Beckingham 2015-09-26 12:11:49 -04:00
parent 219f23de33
commit bb53ae17ae
5 changed files with 41 additions and 41 deletions

View file

@ -44,7 +44,7 @@ void testParse (
int in_hours,
int in_minutes,
int in_seconds,
time_t in_value,
time_t in_period,
const std::string& output,
const std::string& vague)
{
@ -53,17 +53,17 @@ void testParse (
ISO8601p iso;
std::string::size_type start = 0;
t.ok (iso.parse (input, start), label + "true");
t.is ((int) start, in_start, label + "[]");
t.is (iso._year, in_year, label + "_year");
t.is (iso._month, in_month, label + "_month");
t.is (iso._day, in_day, label + "_day");
t.is (iso._hours, in_hours, label + "_hours");
t.is (iso._minutes, in_minutes, label + "_minutes");
t.is (iso._seconds, in_seconds, label + "_seconds");
t.is ((size_t) iso._value, (size_t) in_value, label + "_value");
t.is (iso.format (), output, label + " format");
t.is (iso.formatVague (), vague, label + " formatVague");
t.ok (iso.parse (input, start), label + "true");
t.is ((int) start, in_start, label + "[]");
t.is (iso._year, in_year, label + "_year");
t.is (iso._month, in_month, label + "_month");
t.is (iso._day, in_day, label + "_day");
t.is (iso._hours, in_hours, label + "_hours");
t.is (iso._minutes, in_minutes, label + "_minutes");
t.is (iso._seconds, in_seconds, label + "_seconds");
t.is ((size_t) iso._period, (size_t) in_period, label + "_period");
t.is (iso.format (), output, label + " format");
t.is (iso.formatVague (), vague, label + " formatVague");
}
////////////////////////////////////////////////////////////////////////////////