// affect wanted patterns
tokens.add(new Token("5:00"));
tokens.add(new Token("morning"));
tokens.get(0).tag(new RepeaterTime("5:00"));
tokens.get(1).tag(new EnumRepeaterDayPortion(RepeaterDayPortion.DayPortion.MORNING));
assertEquals(RepeaterDayPortion.DayPortion.MORNING, tokens.get(1).getTags().get(0).getType());
tokens = Handler.dealiasAndDisambiguateTimes(tokens, new Options());
assertEquals(RepeaterDayPortion.DayPortion.AM, tokens.get(1).getTags().get(0).getType());
assertEquals(2, tokens.size());
// don't affect unwanted patterns
tokens = new LinkedList<Token>();
tokens.add(new Token("friday"));
tokens.add(new Token("morning"));
tokens.get(0).tag(new RepeaterDayName(DayName.FRIDAY));
tokens.get(1).tag(new EnumRepeaterDayPortion(RepeaterDayPortion.DayPortion.MORNING));
assertEquals(RepeaterDayPortion.DayPortion.MORNING, tokens.get(1).getTags().get(0).getType());
tokens = Handler.dealiasAndDisambiguateTimes(tokens, new Options());