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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user