Skip to content

Commit

Permalink
Issue #3: Improving descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jmrozanec committed Feb 1, 2015
1 parent ad5c907 commit 7c3be40
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,14 @@ public void testEveryFiveMinutes(){
assertEquals("every 5 minutes", descriptor.describe(parser.parse("0/5 * * * ?")));
}

@Test
public void testAtElevenThirty(){
assertEquals("at 11:30", descriptor.describe(parser.parse("30 11 * * *")));
}

@Test
public void testAtTwentyThreeFromMondayThroughFriday(){
assertEquals("at 23:00 every day between Monday and Friday", descriptor.describe(parser.parse("0 23 ? * MON-FRI")));
assertEquals("at 23:00 every day between Monday and Friday", descriptor.describe(parser.parse("0 23 * * 1-5")));
}
}

0 comments on commit 7c3be40

Please sign in to comment.