package seedu.address.model.task;

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

import org.junit.Test;

import seedu.address.model.task.Time;

public class TimeTest {

	@Test
	public void isValidTime() {
		// invalid phone numbers
		assertFalse(Time.isValidTime("")); // empty string
		assertFalse(Time.isValidTime(" ")); // spaces only
		assertFalse(Time.isValidTime("phone")); // non-numeric
		assertFalse(Time.isValidTime("9011p041")); // alphabets within digits
		assertFalse(Time.isValidTime("9312 1534")); // spaces within digits

		// valid phone numbers
		assertTrue(Time.isValidTime("09/08/2017"));
		assertTrue(Time.isValidTime("11/12/2017")); 
		assertTrue(Time.isValidTime("18/03/2018")); 
	}
}

@@ -689,17 +689,16 @@
 2017%22));
- 
 %0A%09%09asser
@@ -735,15 +735,14 @@
 2018%22));
- 
 %0A%09%7D%0A%7D%0A

Correct whitespace error