Skip to content

Commit e65174e

Browse files
committed
style(lint): lint functional test
1 parent cbe54a3 commit e65174e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/testthat/test-functionaltest.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,16 +261,16 @@ test_that("no arrivals if high inter-arrival time for all patients", {
261261
cores = 1L, number_of_runs = 1L
262262
)
263263
for (key in names(param$dist_config)) {
264-
if (grepl("arrival", key)) {
264+
if (grepl("arrival", key, fixed = TRUE)) {
265265
param$dist_config[[key]]$params$ mean <- 10000000L
266266
}
267267
}
268268
results <- runner(param = param)
269269

270270
# Check that there are no arrivals
271-
expect_true(nrow(results$arrivals) == 0)
272-
expect_true(nrow(results$occupancy) == 0)
273-
expect_true(length(results$occupancy_stats) == 0)
271+
expect_identical(nrow(results$arrivals), 0L)
272+
expect_identical(nrow(results$occupancy), 0L)
273+
expect_length(results$occupancy_stats, 0L)
274274
})
275275

276276

0 commit comments

Comments
 (0)