Author: rfm
Date: Wed Mar 9 10:37:20 2016
New Revision: 39491
URL: http://svn.gna.org/viewcvs/gnustep?rev=39491&view=rev
Log:
skip component diff if ICU too old
Modified:
libs/base/trunk/Tests/base/NSCalendar/component-diff.m
Modified: libs/base/trunk/Tests/base/NSCalendar/component-diff.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Tests/base/NSCalendar/component-diff.m?rev=39491&r1=39490&r2=39491&view=diff
==============================================================================
--- libs/base/trunk/Tests/base/NSCalendar/component-diff.m (original)
+++ libs/base/trunk/Tests/base/NSCalendar/component-diff.m Wed Mar 9
10:37:20 2016
@@ -28,11 +28,16 @@
date = [NSDate dateWithString: @"2015-01-01 01:01:01 +0100"];
date2 = [NSDate dateWithString: @"2015-02-03 04:05:06 +0100"];
- comps = [cal components: NSYearCalendarUnit | NSMonthCalendarUnit |
NSDayCalendarUnit
- | NSHourCalendarUnit | NSMinuteCalendarUnit |
NSSecondCalendarUnit
+ comps = [cal components:
+ NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit
+ | NSHourCalendarUnit | NSMinuteCalendarUnit | NSSecondCalendarUnit
fromDate: date
toDate: date2
options: 0];
+ if (nil == comps)
+ {
+ SKIP("-components:fromDate:toDate:options: not implementaed. The ICU
library was not available (or too old) when GNUstep-base was built")
+ }
PASS([comps year] == 0, "year difference correct");
PASS([comps month] == 1, "month difference correct");
PASS([comps day] == 2, "day difference correct");
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs