mirror of
https://github.com/PerMalmberg/libcron.git
synced 2025-04-22 00:13:01 -05:00
Update CronScheduleTest.cpp (#38)
* Update CronScheduleTest.cpp * Update CronScheduleTest.cpp Edited code that was causing test to fail. --------- Co-authored-by: Per Malmberg <PerMalmberg@users.noreply.github.com>
This commit is contained in:
parent
7c7d290792
commit
aa3d4368d5
@ -184,6 +184,15 @@ SCENARIO("Examples from README.md")
|
|||||||
DT(2018_y / 03 / 1, hours{12}, minutes{13}, seconds{48})
|
DT(2018_y / 03 / 1, hours{12}, minutes{13}, seconds{48})
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
REQUIRE(test("0 * * * * ?", DT(2018_y / 03 / 1, hours{ 12 }, minutes{ 0 }, seconds{ 10 }),
|
||||||
|
{
|
||||||
|
DT(2018_y / 03 / 1, hours{12}, minutes{1}, seconds{0}),
|
||||||
|
DT(2018_y / 03 / 1, hours{12}, minutes{2}, seconds{0}),
|
||||||
|
DT(2018_y / 03 / 1, hours{12}, minutes{3}, seconds{0}),
|
||||||
|
DT(2018_y / 03 / 1, hours{12}, minutes{4}, seconds{0})
|
||||||
|
}));
|
||||||
|
|
||||||
|
|
||||||
REQUIRE(test("0 0 12 * * MON-FRI", DT(2018_y / 03 / 10, hours{12}, minutes{13}, seconds{45}),
|
REQUIRE(test("0 0 12 * * MON-FRI", DT(2018_y / 03 / 10, hours{12}, minutes{13}, seconds{45}),
|
||||||
{
|
{
|
||||||
DT(2018_y / 03 / 12, hours{12}),
|
DT(2018_y / 03 / 12, hours{12}),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user