From dbfd41e2df44113d1d2d07fb751db11b443f186b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 27 Oct 2014 18:08:46 +0100 Subject: calendarspec: parse 'quarterly' and 'semi-annually' as shortcuts --- src/test/test-calendarspec.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/test') diff --git a/src/test/test-calendarspec.c b/src/test/test-calendarspec.c index 21b0024388..87e1da1258 100644 --- a/src/test/test-calendarspec.c +++ b/src/test/test-calendarspec.c @@ -77,6 +77,10 @@ int main(int argc, char* argv[]) { test_one("daily", "*-*-* 00:00:00"); test_one("monthly", "*-*-01 00:00:00"); test_one("weekly", "Mon *-*-* 00:00:00"); + test_one("minutely", "*-*-* *:*:00"); + test_one("quarterly", "*-01,04,07,10-01 00:00:00"); + test_one("semi-annually", "*-01,07-01 00:00:00"); + test_one("annually", "*-01-01 00:00:00"); test_one("*:2/3", "*-*-* *:02/3:00"); assert_se(calendar_spec_from_string("test", &c) < 0); -- cgit v1.2.3-54-g00ecf