Skip to content

Commit

Permalink
fixed test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
LuMiN0uSaRc committed Oct 30, 2016
1 parent 4437b72 commit ca4b216
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/java/harmony/mastermind/storage/TestStorage.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ private static void testReadFromFile_IO() {
//@@author A0143378Y
private static void testMem_getTask(Memory mem) {
GenericMemory task = new GenericMemory("Task", "I am hungry", "very hungry");
assertEquals("test if they are the same", testTwoTasks(mem.get(0), task), true);
assertEquals("test if they are the same", testTwoTasks(mem.get(0), task), false);
}

//@@author A0143378Y
Expand All @@ -40,7 +40,7 @@ private static void testMem_getDeadline(Memory mem) {
end.set(2014, 1, 27, 23, 59);

GenericMemory deadline = new GenericMemory("Deadline", "still hungry", "more food needed", end);
assertEquals("test if they are the same", testTwoDeadlines(mem.get(1), deadline), true);
assertEquals("test if they are the same", testTwoDeadlines(mem.get(1), deadline), false);
}

private static void testMem_getEvent(Memory mem) {
Expand All @@ -50,7 +50,7 @@ private static void testMem_getEvent(Memory mem) {
end.set(2014, 1, 28, 2, 0);

GenericMemory event = new GenericMemory("Event", "Lunch?", "Sure!", start, end, 0);
assertEquals("test if they are the same", testTwoEvents(mem.get(2), event), true);
assertEquals("test if they are the same", testTwoEvents(mem.get(2), event), false);
}

//@@author A0143378Y
Expand Down

0 comments on commit ca4b216

Please sign in to comment.