Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nixonwidjaja committed Oct 22, 2023
1 parent a66dab3 commit bb8fe91
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/java/seedu/address/model/AddressBookListTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ public class AddressBookListTest {
@Test
public void undo_success() {
addressBookList.add(new AddressBook());
addressBookList.addCommandText("");
addressBookList.add(new AddressBook());
addressBookList.addCommandText("");
assertEquals(addressBookList.undo(), new AddressBook());
addressBookList.add(new AddressBook());
addressBookList.addCommandText("");
assertEquals(addressBookList.undo(), new AddressBook());
}

Expand Down

0 comments on commit bb8fe91

Please sign in to comment.