Make tests pass.

This commit is contained in:
David F. Skoll
2008-09-18 17:20:09 -04:00
parent 1dcc3897d6
commit 53a7bf9773
3 changed files with 15 additions and 2 deletions

View File

@@ -1265,7 +1265,7 @@ static void SortCol(CalEntry **col)
while (cur->next &&
CompareRems(0, cur->time, cur->priority,
0, cur->next->time, cur->next->priority,
SortByDate, SortByTime, SortByPrio) <= 0) {
SortByDate, SortByTime, SortByPrio, UntimedBeforeTimed) <= 0) {
next = cur->next;
/* Swap cur and next */
if (!prev) {

View File

@@ -64,7 +64,7 @@ echo "MON WKDAY DAY across year test" >> ../tests/test.out
echo 'REM Mon 29 Dec MSG x' | ../src/remind -dt - 1 Jan 2000 >> ../tests/test.out 2>&1
echo "Sort Test" >> ../tests/test.out
(echo "REM AT 12:00 MSG Untimed"; echo "REM MSG Timed") | ../src/remind - 1 Jan 2000 >> ../tests/test.out 2>&1
(echo "REM AT 12:00 MSG Untimed"; echo "REM MSG Timed") | ../src/remind -gaaa - 1 Jan 2000 >> ../tests/test.out 2>&1
(echo "REM AT 12:00 MSG Untimed"; echo "REM MSG Timed") | ../src/remind -gaaad - 1 Jan 2000 >> ../tests/test.out 2>&1
cmp -s ../tests/test.out ../tests/test.cmp

View File

@@ -2109,3 +2109,16 @@ Color Test
MON WKDAY DAY across year test
-(1): Trig = Monday, 3 January, 2000
No reminders.
Sort Test
Reminders for Saturday, 1st January, 2000:
Untimed
Timed
Reminders for Saturday, 1st January, 2000:
Timed
Untimed