aboutsummaryrefslogtreecommitdiff
path: root/R/pkg/inst/tests/test_textFile.R
diff options
context:
space:
mode:
authorYu ISHIKAWA <yuu.ishikawa@gmail.com>2015-06-22 20:55:38 -0700
committerShivaram Venkataraman <shivaram@cs.berkeley.edu>2015-06-22 20:55:38 -0700
commit44fa7df64daa55bd6eb1f2c219a9701b34e1c2a3 (patch)
treeb90c21d783c6de5b4195c42d5b387deec41e299e /R/pkg/inst/tests/test_textFile.R
parentc4d2343966cbae40a8271a2e6cad66227d2f8249 (diff)
downloadspark-44fa7df64daa55bd6eb1f2c219a9701b34e1c2a3.tar.gz
spark-44fa7df64daa55bd6eb1f2c219a9701b34e1c2a3.tar.bz2
spark-44fa7df64daa55bd6eb1f2c219a9701b34e1c2a3.zip
[SPARK-8548] [SPARKR] Remove the trailing whitespaces from the SparkR files
[[SPARK-8548] Remove the trailing whitespaces from the SparkR files - ASF JIRA](https://issues.apache.org/jira/browse/SPARK-8548) - This is the result of `lint-r` https://gist.github.com/yu-iskw/0019b37a2c1167f33986 Author: Yu ISHIKAWA <yuu.ishikawa@gmail.com> Closes #6945 from yu-iskw/SPARK-8548 and squashes the following commits: 0bd567a [Yu ISHIKAWA] [SPARK-8548][SparkR] Remove the trailing whitespaces from the SparkR files
Diffstat (limited to 'R/pkg/inst/tests/test_textFile.R')
-rw-r--r--R/pkg/inst/tests/test_textFile.R7
1 files changed, 3 insertions, 4 deletions
diff --git a/R/pkg/inst/tests/test_textFile.R b/R/pkg/inst/tests/test_textFile.R
index 6b87b4b3e0..092ad9dc10 100644
--- a/R/pkg/inst/tests/test_textFile.R
+++ b/R/pkg/inst/tests/test_textFile.R
@@ -58,7 +58,7 @@ test_that("textFile() word count works as expected", {
expected <- list(list("pretty.", 1), list("is", 2), list("awesome.", 1),
list("Spark", 2))
expect_equal(sortKeyValueList(output), sortKeyValueList(expected))
-
+
unlink(fileName)
})
@@ -115,13 +115,13 @@ test_that("textFile() and saveAsTextFile() word count works as expected", {
saveAsTextFile(counts, fileName2)
rdd <- textFile(sc, fileName2)
-
+
output <- collect(rdd)
expected <- list(list("awesome.", 1), list("Spark", 2),
list("pretty.", 1), list("is", 2))
expectedStr <- lapply(expected, function(x) { toString(x) })
expect_equal(sortKeyValueList(output), sortKeyValueList(expectedStr))
-
+
unlink(fileName1)
unlink(fileName2)
})
@@ -159,4 +159,3 @@ test_that("Pipelined operations on RDDs created using textFile", {
unlink(fileName)
})
-