public void testTokeniseSplit_numbers_PM_NO_Space() { Console.WriteLine("tokenise"); String input = "09:13PM"; String[] inputTest = { "09", "13", "PM" }; TimeFormatter instance = new TimeFormatter(); String[] result = instance.tokeniseWithSplit(input, @":|\s+"); Assert.AreEqual(inputTest, result); }
public void testTokeniseSplit_24hr_HMM_to_HHMM() { Console.WriteLine("tokenise"); String input = "9:13"; String[] inputTest = { "9", "13" }; TimeFormatter instance = new TimeFormatter(); String[] result = instance.tokeniseWithSplit(input, @":|\s+"); Assert.AreEqual(inputTest, result); }
public void testTokeniseSplit_24HR_AM_Edge() { Console.WriteLine("tokenise"); String input = "13:13 AM"; String[] inputTest = { "ERR", "ERR", "ERR" }; TimeFormatter instance = new TimeFormatter(); String[] result = instance.tokeniseWithSplit(input, @":|\s+"); Assert.AreEqual(inputTest, result); }