package seedu.jobs.model.task;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

import org.junit.Test;

public class DescriptionTest {

    @Test
    public void isValidTime() {
        // valid description

        assertTrue(Description.isValidDescription("")); // empty string
        assertTrue(Description.isValidDescription(" ")); // spaces only


        // invalid descriptions (long characters)
        assertFalse(Description.isValidDescription(ModelConstant.getLongString(150)));
        assertFalse(Description.isValidDescription(ModelConstant.getLongString(151)));
    }
}

@@ -137,16 +137,37 @@
 .Test;%0A%0A
+//@@author A0130979U%0A
 public c
@@ -640,8 +640,29 @@
     %7D%0A%7D%0A
+//@@author A0130979U%0A

Update DescriptionTest.java