package seedu.jobs.model.task;

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

import org.junit.Test;

public class NameTest {

    @Test
    public void isValidName() {
        // invalid name
        assertFalse(Name.isValidName(ModelConstant.getLongString(150))); //name is too long

        // valid name
        assertTrue(Name.isValidName("peter jack")); // alphabets only
        assertTrue(Name.isValidName("12345")); // numbers only
        assertTrue(Name.isValidName("peter the 2nd")); // alphanumeric characters
        assertTrue(Name.isValidName("Capital Tan")); // with capital letters
        assertTrue(Name.isValidName("David Roger Jackson Ray Jr 2nd")); // long names
    }
}

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

Update NameTest.java