mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
test a few more methods
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36432 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8ab462066b
commit
8c973be76c
1 changed files with 10 additions and 1 deletions
|
@ -24,8 +24,17 @@ int main()
|
|||
|
||||
cal = [[NSCalendar alloc] initWithCalendarIdentifier: NSGregorianCalendar];
|
||||
|
||||
[cal setMinimumDaysInFirstWeek: 4];
|
||||
[cal setFirstWeekday: 3];
|
||||
PASS([cal firstWeekday] == 3, "-firstWeekDay returns the correct day");
|
||||
[cal setFirstWeekday: 1];
|
||||
PASS([cal firstWeekday] == 1, "-setFirstWeekDay: works");
|
||||
|
||||
[cal setMinimumDaysInFirstWeek: 1];
|
||||
PASS([cal minimumDaysInFirstWeek] == 1,
|
||||
"-minimumDaysInFirstWeek returns the correct count");
|
||||
[cal setMinimumDaysInFirstWeek: 4];
|
||||
PASS([cal minimumDaysInFirstWeek] == 4,
|
||||
"-setMinimumDaysInFirstWeek: works");
|
||||
|
||||
date = [NSDate dateWithString: @"2012-12-31 13:57:00 +0100"];
|
||||
|
||||
|
|
Loading…
Reference in a new issue