@@ -0,0 +1,853 @@
+package test;%0A%0Aimport static org.junit.Assert.*;%0A%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0A%0Aimport controller.Logic;%0Aimport controller.Parser;%0Aimport controller.UserInput;%0A%0Apublic class ParserTest %7B%0A%0A%09@BeforeClass%0A%09public static void setUpBeforeClass() throws Exception %7B%0A%09%09%0A%09%7D%0A%0A%09@Test%0A%09public void taskTypeTest() %7B // sample test%0A%09%09Parser parser = new Parser();%0A%09%09String test1 = %22add go to sleep%22;%0A%09%09UserInput input = parser.parse(test1);%0A%09%09assertTrue(input.isFloat());%0A%09%09assertFalse(input.isDeadline());%0A%09%09assertFalse(input.isRepeated());%0A%09%09%0A%09%09String test2 = %22add go to sleep by tomorrow%22;%0A%09%09input = parser.parse(test2);%0A%09%09assertTrue(input.isDeadline());%0A%09%09assertFalse(input.isFloat());%0A%09%09%0A%09%09String test3 = %22add go to sleep by 11 Oct%22;%0A%09%09input = parser.parse(test3);%0A%09%09assertTrue(input.isDeadline());%0A%09%09assertFalse(input.isFloat());%0A%09%7D%0A%0A%7D%0A

Add a unit test for Parser