Skip to content

Commit da1cd8d

Browse files
committed
update test_notify_msg loop behavior to match behavior of test_notify
1 parent 7423485 commit da1cd8d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/common.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function test_notify(cli\Notify $notify, $cycle = 1000000, $sleep = null) {
2626

2727
function test_notify_msg(cli\Notify $notify, $cycle = 1000000, $sleep = null) {
2828
$notify->display();
29-
for ($i = 0; $i <= $cycle; $i++) {
29+
for ($i = 0; $i < $cycle; $i++) {
3030
// Sleep before tick to simulate time-intensive work and give time
3131
// for the initial message to display before it is changed
3232
if ($sleep) usleep($sleep);

examples/progress.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
test_notify(new \cli\progress\Bar(' \cli\progress\Bar displays a progress bar', 1000000));
66
test_notify(new \cli\progress\Bar(' It sizes itself dynamically', 1000000));
7-
test_notify_msg(new \cli\progress\Bar(' It can even change its message', 5), 4, 1000000);
7+
test_notify_msg(new \cli\progress\Bar(' It can even change its message', 5), 5, 1000000);

0 commit comments

Comments
 (0)