From 61b128ca88eb9965bdfde42e3c5c52f7d1fec5f8 Mon Sep 17 00:00:00 2001 From: Louis-Claude Canon Date: Wed, 1 Aug 2012 15:05:56 +0200 Subject: [PATCH] Code Cleanup - Failing test on last quarters. --- test/date.t.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/date.t.cpp b/test/date.t.cpp index 3cc604859..be8aea22a 100644 --- a/test/date.t.cpp +++ b/test/date.t.cpp @@ -366,7 +366,9 @@ int main (int argc, char** argv) t.is (eoq.month () % 3, 0, "eoq month is 3, 6, 9 or 12"); // Note: these fail during the night of daylight savings end. - t.ok (soq.sameYear (now), "soq is in same year as now"); + t.ok (soq.sameYear (now) || + now.month () >= 10 && + soq.year () == now.year () + 1, "soq is in same year as now"); t.ok (eoq.sameYear (now), "eoq is in same year as now"); // Date::sameHour