Fixed an arithmetic error in a title parsing test

pull/14/head
Sam Bosley 14 years ago
parent f864e082d6
commit 9d55c233dd

@ -171,7 +171,7 @@ public class TitleParserTest extends DatabaseTestCase {
task.setValue(Task.TITLE, "Jog tomorrow");
taskService.quickAdd(task);
date = new Date(task.getValue(Task.DUE_DATE));
assertEquals(date.getDay()+1 % 7, today.get(Calendar.DAY_OF_WEEK)+1 % 7);
assertEquals((date.getDay()+1) % 7, (today.get(Calendar.DAY_OF_WEEK)+1) % 7);
String[] days = {
"sunday",

Loading…
Cancel
Save