aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYin Huai <yhuai@databricks.com>2016-08-26 19:38:52 -0700
committerYin Huai <yhuai@databricks.com>2016-08-26 19:38:52 -0700
commita6bca3ad02bd896e7637dec37ed8ba1a7306b58c (patch)
tree5d3456368df82df53c12c7e60762d2f6f7d8caf3
parent540e91280147a61727f99592a66c0cbb12328fac (diff)
downloadspark-a6bca3ad02bd896e7637dec37ed8ba1a7306b58c.tar.gz
spark-a6bca3ad02bd896e7637dec37ed8ba1a7306b58c.tar.bz2
spark-a6bca3ad02bd896e7637dec37ed8ba1a7306b58c.zip
[SPARK-17266][TEST] Add empty strings to the regressionTests of PrefixComparatorsSuite
## What changes were proposed in this pull request? This PR adds a regression test to PrefixComparatorsSuite's "String prefix comparator" because this test failed on jenkins once (https://amplab.cs.berkeley.edu/jenkins/job/spark-master-test-sbt-hadoop-2.4/1620/testReport/junit/org.apache.spark.util.collection.unsafe.sort/PrefixComparatorsSuite/String_prefix_comparator/). I could not reproduce it locally. But, let's this test case in the regressionTests. Author: Yin Huai <yhuai@databricks.com> Closes #14837 from yhuai/SPARK-17266.
-rw-r--r--core/src/test/scala/org/apache/spark/util/collection/unsafe/sort/PrefixComparatorsSuite.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/test/scala/org/apache/spark/util/collection/unsafe/sort/PrefixComparatorsSuite.scala b/core/src/test/scala/org/apache/spark/util/collection/unsafe/sort/PrefixComparatorsSuite.scala
index b4083230b4..5180c58a56 100644
--- a/core/src/test/scala/org/apache/spark/util/collection/unsafe/sort/PrefixComparatorsSuite.scala
+++ b/core/src/test/scala/org/apache/spark/util/collection/unsafe/sort/PrefixComparatorsSuite.scala
@@ -50,7 +50,8 @@ class PrefixComparatorsSuite extends SparkFunSuite with PropertyChecks {
("s1", "s2"),
("abc", "世界"),
("你好", "世界"),
- ("你好123", "你好122")
+ ("你好123", "你好122"),
+ ("", "")
)
// scalastyle:on