package seedu.taskboss.model.task;

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

import org.junit.Test;

//@@author A0144904H
public class PriorityLevelTest {

    @Test
    public void isValidPriorityLevel() {
        // invalid priority level
        assertFalse(PriorityLevel.isValidPriorityLevel(" ")); // spaces only
        assertFalse(PriorityLevel.isValidPriorityLevel("priorityLevel")); // non-numeric
        assertFalse(PriorityLevel.isValidPriorityLevel("9")); // invalid range
        assertFalse(PriorityLevel.isValidPriorityLevel("0")); // invalid range

        // valid priority level
        assertTrue(PriorityLevel.isValidPriorityLevel(""));
        assertTrue(PriorityLevel.isValidPriorityLevel("Yes"));
        assertTrue(PriorityLevel.isValidPriorityLevel("No"));
    }
}

@@ -195,17 +195,16 @@
 lTest %7B%0A
-%0A
     @Tes
@@ -246,16 +246,17 @@
 vel() %7B%0A
+%0A
         
@@ -341,136 +341,477 @@
 el(%22
- %22)); // spaces only%0A        assertFalse(PriorityLevel.isValidPriorityLevel(%22priorityLevel%22)); // non-numeric%0A        assertFals
+priorityLevel%22)); // wrong input%0A        assertFalse(PriorityLevel.isValidPriorityLevel(%229%22)); // numeric input%0A%0A        // valid priority level%0A        assertTrue(PriorityLevel.isValidPriorityLevel(%22%22));%0A        assertTrue(PriorityLevel.isValidPriorityLevel(%22Yes%22));%0A        assertTrue(PriorityLevel.isValidPriorityLevel(%22No%22));%0A        assertTrue(PriorityLevel.isValidPriorityLevel(%22Y%22));%0A        assertTrue(PriorityLevel.isValidPriorityLevel(%22N%22));%0A        assertTru
 e(Pr
@@ -848,49 +848,217 @@
 el(%22
-9
+YES
 %22));
- // invalid range%0A        assertFals
+%0A        assertTrue(PriorityLevel.isValidPriorityLevel(%22NO%22));%0A        assertTrue(PriorityLevel.isValidPriorityLevel(%22y%22));%0A        assertTrue(PriorityLevel.isValidPriorityLevel(%22n%22));%0A        assertTru
 e(Pr
@@ -1095,63 +1095,266 @@
 el(%22
-0
+YeS
 %22));
- // invalid range%0A%0A        // valid priority level
+%0A        assertTrue(PriorityLevel.isValidPriorityLevel(%22yES%22));%0A        assertTrue(PriorityLevel.isValidPriorityLevel(%22nO%22));%0A        assertTrue(PriorityLevel.isValidPriorityLevel(%22yEs%22));%0A        assertTrue(PriorityLevel.isValidPriorityLevel(%22yes%22));
 %0A   
@@ -1397,32 +1397,34 @@
 dPriorityLevel(%22
+no
 %22));%0A        ass
@@ -1459,35 +1459,35 @@
 dPriorityLevel(%22
-Yes
+yeS
 %22));%0A        ass
@@ -1526,27 +1526,29 @@
 orityLevel(%22
-No
+YEs
 %22));%0A
+%0A
     %7D%0A%7D%0A

update test cases for priority level