Skip to content

Commit f2b52b1

Browse files
committed
Fix variable name in ctor testcase
1 parent ca22ce8 commit f2b52b1

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

extras/test/src/test_CloudSchedule.cpp

+13-13
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,17 @@ SCENARIO("Tesing cloud type 'Schedule' Ctor", "[Schedule::Schedule]")
3333
WHEN("A Schedule(0,0,0,0) is being instantiated")
3434
{
3535
Schedule schedule(0,0,0,0);
36-
THEN("The member variable 'start' should be 0") {
37-
REQUIRE(schedule.start == 0);
36+
THEN("The member variable 'frm' should be 0") {
37+
REQUIRE(schedule.frm == 0);
3838
}
39-
THEN("The member variable 'end' should be 0") {
40-
REQUIRE(schedule.end == 0);
39+
THEN("The member variable 'to' should be 0") {
40+
REQUIRE(schedule.to == 0);
4141
}
42-
THEN("The member variable 'duration' should be 0") {
43-
REQUIRE(schedule.duration == 0);
42+
THEN("The member variable 'len' should be 0") {
43+
REQUIRE(schedule.len == 0);
4444
}
45-
THEN("The member variable 'mask' should be 0") {
46-
REQUIRE(schedule.mask == 0);
45+
THEN("The member variable 'msk' should be 0") {
46+
REQUIRE(schedule.msk == 0);
4747
}
4848
}
4949
}
@@ -52,7 +52,7 @@ SCENARIO("Tesing cloud type 'Schedule' Ctor", "[Schedule::Schedule]")
5252

5353
SCENARIO("Setup a schedule that repeats each 20 minutes and test isActive Method", "[Schedule::isActive]")
5454
{
55-
Schedule schedule(1633305600, /* Start 4/10/2021 00:00:00 */
55+
Schedule schedule( 1633305600, /* Start 4/10/2021 00:00:00 */
5656
1633651200, /* End 8/10/2021 00:00:00 */
5757
600, /* Duration 00:10:00 */
5858
1140850708 /* Minutes */
@@ -136,7 +136,7 @@ SCENARIO("Setup a schedule that repeats each 20 minutes and test isActive Method
136136

137137
SCENARIO("Setup a weekly schedule and test isActive Method", "[Schedule::isActive]")
138138
{
139-
Schedule schedule(1633305600, /* Start 4/10/2021 00:00:00 */
139+
Schedule schedule( 1633305600, /* Start 4/10/2021 00:00:00 */
140140
1633651200, /* End 8/10/2021 00:00:00 */
141141
600, /* Duration 00:10:00 */
142142
134217798 /* Weekly */
@@ -196,7 +196,7 @@ SCENARIO("Setup a weekly schedule and test isActive Method", "[Schedule::isActiv
196196

197197
SCENARIO("Setup a monthly schedule and test isActive Method", "[Schedule::isActive]")
198198
{
199-
Schedule schedule(1633305600, /* Start 4/10/2021 00:00:00 */
199+
Schedule schedule( 1633305600, /* Start 4/10/2021 00:00:00 */
200200
1664841600, /* End 4/10/2022 00:00:00 */
201201
600, /* Duration 00:10:00 */
202202
201326598 /* Monthly */
@@ -344,7 +344,7 @@ SCENARIO("Setup a monthly schedule and test isActive Method", "[Schedule::isActi
344344

345345
SCENARIO("Setup a yearly schedule and test isActive Method", "[Schedule::isActive]")
346346
{
347-
Schedule schedule(1633305600, /* Start 4/10/2021 00:00:00 */
347+
Schedule schedule( 1633305600, /* Start 4/10/2021 00:00:00 */
348348
1759536000, /* End 4/10/2025 00:00:00 */
349349
600, /* Duration 00:10:00 */
350350
268438022 /* Yearly */
@@ -428,7 +428,7 @@ SCENARIO("Setup a yearly schedule and test isActive Method", "[Schedule::isActiv
428428

429429
SCENARIO("Setup a one shot schedule and test isActive Method", "[Schedule::isActive]")
430430
{
431-
Schedule schedule(1636156800, /* Start 6/11/2021 00:00:00 */
431+
Schedule schedule( 1636156800, /* Start 6/11/2021 00:00:00 */
432432
1636243199, /* End 6/11/2021 23:59:59 */
433433
600, /* Duration 00:10:00 */
434434
0 /* One shot */

0 commit comments

Comments
 (0)