Skip to content
This repository has been archived by the owner on Mar 2, 2019. It is now read-only.

Commit

Permalink
attempt to reproduce issue #161
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhangYiJiang committed Nov 1, 2016
1 parent 5a51840 commit 4d632a4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/test/java/seedu/todo/logic/commands/EditCommandTest.java
Expand Up @@ -24,7 +24,6 @@ protected BaseCommand commandUnderTest() {

@Before
public void setUp() throws Exception {
// TODO: fix sorting problems when adding tasks
model.add("Task 1", task-> {
task.setPinned(true);
task.setLocation("NUS");
Expand All @@ -47,6 +46,16 @@ public void testEditInvalidIndex() throws Exception {
execute(true);
}

@Test
public void testNoParameter() throws Exception {
// Running the edit command with no fields specified shouldn't do anything
setParameter("1");
execute(true);

assertVisibleTaskCount(3);
assertEquals("Task 1", getTaskAt(1).getTitle());
}

@Test
public void testEditTitle() throws Exception {
setParameter("1 New Title");
Expand Down

0 comments on commit 4d632a4

Please sign in to comment.