Skip to content

Commit 9d41bdf

Browse files
TESTS: sprintf() mistakes. Fixed #66 [ci skip]
1 parent 0a22816 commit 9d41bdf

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ printf("x = %s.\n", hpaste(x))
3131
printf("x = %s.\n", hpaste(x, max_head = 2))
3232
## x = 1, 2, ..., 6.
3333

34-
printf("x = %s.\n", hpaste(x), max_head = 3) # Default
34+
printf("x = %s.\n", hpaste(x, max_head = 3)) # Default
3535
## x = 1, 2, 3, ..., 6.
3636

3737
# It will never output 1, 2, 3, 4, ..., 6

tests/zzz,future_lapply.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ if (requireNamespace("future.apply", quietly = TRUE)) {
5050
str(list(y0 = y0))
5151

5252
for (strategy in strategies) {
53-
mprintf("- plan('%s') ...\n", strategy, debug = TRUE)
53+
mprintf("- plan('%s') ...\n", strategy)
5454
plan(strategy)
5555
mprint(plan, debug = TRUE)
5656
if (nbrOfWorkers() > 2) plan(strategy, workers = 2L)
@@ -74,7 +74,7 @@ if (requireNamespace("future.apply", quietly = TRUE)) {
7474
str(list(y0 = y0))
7575

7676
for (strategy in strategies) {
77-
mprintf("- plan('%s') ...\n", strategy, debug = TRUE)
77+
mprintf("- plan('%s') ...\n", strategy)
7878
plan(strategy)
7979
mprint(plan, debug = TRUE)
8080
if (nbrOfWorkers() > 2) plan(strategy, workers = 2L)
@@ -97,7 +97,7 @@ if (requireNamespace("future.apply", quietly = TRUE)) {
9797
str(list(y0 = y0))
9898

9999
for (strategy in strategies) {
100-
mprintf("- plan('%s') ...\n", strategy, debug = TRUE)
100+
mprintf("- plan('%s') ...\n", strategy)
101101
plan(strategy)
102102
mprint(plan, debug = TRUE)
103103
if (nbrOfWorkers() > 2) plan(strategy, workers = 2L)
@@ -131,7 +131,7 @@ if (requireNamespace("future.apply", quietly = TRUE)) {
131131
str(list(y0 = y0))
132132

133133
for (strategy in strategies) {
134-
mprintf("- plan('%s') ...\n", strategy, debug = TRUE)
134+
mprintf("- plan('%s') ...\n", strategy)
135135
plan(strategy)
136136
if (nbrOfWorkers() > 2) plan(strategy, workers = 2L)
137137
stopifnot(nbrOfWorkers() < Inf)

0 commit comments

Comments
 (0)