aboutsummaryrefslogtreecommitdiff
path: root/R/pkg/inst/tests/test_includeJAR.R
diff options
context:
space:
mode:
authorSun Rui <rui.sun@intel.com>2015-07-01 09:50:12 -0700
committerShivaram Venkataraman <shivaram@cs.berkeley.edu>2015-07-01 09:50:12 -0700
commit69c5dee2f01b1ae35bd813d31d46429a32cb475d (patch)
treeeb3dacdfeebbf726ea033a9cd31f72f72de02698 /R/pkg/inst/tests/test_includeJAR.R
parentfdcad6ef48a9e790776c316124bd6478ab6bd5c8 (diff)
downloadspark-69c5dee2f01b1ae35bd813d31d46429a32cb475d.tar.gz
spark-69c5dee2f01b1ae35bd813d31d46429a32cb475d.tar.bz2
spark-69c5dee2f01b1ae35bd813d31d46429a32cb475d.zip
[SPARK-7714] [SPARKR] SparkR tests should use more specific expectations than expect_true
1. Update the pattern 'expect_true(a == b)' to 'expect_equal(a, b)'. 2. Update the pattern 'expect_true(inherits(a, b))' to 'expect_is(a, b)'. 3. Update the pattern 'expect_true(identical(a, b))' to 'expect_identical(a, b)'. Author: Sun Rui <rui.sun@intel.com> Closes #7152 from sun-rui/SPARK-7714 and squashes the following commits: 8ad2440 [Sun Rui] Fix test case errors. 8fe9f0c [Sun Rui] Update the pattern 'expect_true(identical(a, b))' to 'expect_identical(a, b)'. f1b8005 [Sun Rui] Update the pattern 'expect_true(inherits(a, b))' to 'expect_is(a, b)'. f631e94 [Sun Rui] Update the pattern 'expect_true(a == b)' to 'expect_equal(a, b)'.
Diffstat (limited to 'R/pkg/inst/tests/test_includeJAR.R')
-rw-r--r--R/pkg/inst/tests/test_includeJAR.R4
1 files changed, 2 insertions, 2 deletions
diff --git a/R/pkg/inst/tests/test_includeJAR.R b/R/pkg/inst/tests/test_includeJAR.R
index 8bc693be20..844d86f3cc 100644
--- a/R/pkg/inst/tests/test_includeJAR.R
+++ b/R/pkg/inst/tests/test_includeJAR.R
@@ -31,7 +31,7 @@ runScript <- function() {
test_that("sparkJars tag in SparkContext", {
testOutput <- runScript()
helloTest <- testOutput[1]
- expect_true(helloTest == "Hello, Dave")
+ expect_equal(helloTest, "Hello, Dave")
basicFunction <- testOutput[2]
- expect_true(basicFunction == 4L)
+ expect_equal(basicFunction, "4")
})