Skip to content

Commit 865a90c

Browse files
committed
strip spaces for comparision
1 parent c7a4471 commit 865a90c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

R/pkg/inst/tests/test_client.R

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@ context("functions in client.R")
2020
test_that("adding spark-testing-base as a package works", {
2121
args <- generateSparkSubmitArgs("", "", "", "",
2222
"holdenk:spark-testing-base:1.3.0_0.0.5")
23-
expect_equal(args,
24-
"--packages holdenk:spark-testing-base:1.3.0_0.0.5")
23+
expect_equal(gsub("[[:space:]]", "", args),
24+
gsub("[[:space:]]", "",
25+
"--packages holdenk:spark-testing-base:1.3.0_0.0.5"))
2526
})
2627

2728
test_that("no package specified doesn't add packages flag", {
2829
args <- generateSparkSubmitArgs("", "", "", "", "")
29-
expect_equal(args, "")
30+
expect_equal(gsub("[[:space:]]", "", args),
31+
"")
3032
})

0 commit comments

Comments
 (0)