Skip to content

Commit

Permalink
test: Fix Rscript test
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorld committed Nov 25, 2021
1 parent 6b3e70c commit 3f65457
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-argparse.R
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,6 @@ test_that("Paths that quit()", {

help <- system2(cmd, c("scripts/test_help.R", "--help"),
stdout = TRUE, stderr = TRUE)
expect_equal("usage: scripts/test_help.R [-h]", help[2])
expect_equal(" -h, --help show this help message and exit", help[5])
expect_equal("usage: scripts/test_help.R [-h]", help[1])
expect_equal(" -h, --help show this help message and exit", help[4])
})

0 comments on commit 3f65457

Please sign in to comment.