1
0
mirror of https://github.com/PerMalmberg/libcron.git synced 2025-12-20 19:12:56 -06:00

Updated README.

Added tests.
Made use of ? mandatory for DoM/DoW.
This commit is contained in:
Per Malmberg
2018-03-11 18:45:27 +01:00
parent 9d7134c527
commit d7c17be4d1
7 changed files with 182 additions and 111 deletions

View File

@@ -14,7 +14,7 @@ std::string create_schedule_expiring_in(hours h, minutes m, seconds s)
std::string res{};
res += std::to_string(dt.sec) + " ";
res += std::to_string(dt.min) + " ";
res += std::to_string(dt.hour) + " * * *";
res += std::to_string(dt.hour) + " * * ?";
return res;
}
@@ -34,7 +34,7 @@ SCENARIO("Adding a task")
WHEN("Adding a task that runs every second")
{
REQUIRE(c.add_schedule("A task", "* * * * * *",
REQUIRE(c.add_schedule("A task", "* * * * * ?",
[&expired]()
{
expired = true;