diff options
author | Jakob Odersky <jakob@odersky.com> | 2016-10-13 16:46:35 -0700 |
---|---|---|
committer | Jakob Odersky <jakob@odersky.com> | 2016-10-13 16:46:35 -0700 |
commit | ff6a68c24be9b6a2de1c42e33c7cf39db8393dbd (patch) | |
tree | 6ec55cf54fe9a6244444f7b09b664f3c17aa0930 /sql/catalyst | |
parent | 6584853603eedd232fc89e3579ed8a1f842e997c (diff) | |
download | spark-ff6a68c24be9b6a2de1c42e33c7cf39db8393dbd.tar.gz spark-ff6a68c24be9b6a2de1c42e33c7cf39db8393dbd.tar.bz2 spark-ff6a68c24be9b6a2de1c42e33c7cf39db8393dbd.zip |
fix style issues
Diffstat (limited to 'sql/catalyst')
-rw-r--r-- | sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/RegexpExpressionsSuite.scala | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/RegexpExpressionsSuite.scala b/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/RegexpExpressionsSuite.scala index 4f41d7d5de..65c08d90ea 100644 --- a/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/RegexpExpressionsSuite.scala +++ b/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/RegexpExpressionsSuite.scala @@ -57,7 +57,7 @@ class RegexpExpressionsSuite extends SparkFunSuite with ExpressionEvalHelper { checkEvaluation("ab" like "a%b", true) checkEvaluation("a\nb" like "a%b", true) - //empty input + // empty input checkEvaluation("" like "", true) checkEvaluation("a" like "", false) checkEvaluation("" like "a", false) @@ -71,10 +71,12 @@ class RegexpExpressionsSuite extends SparkFunSuite with ExpressionEvalHelper { checkEvaluation("""_\\\%""" like """%\\""", false) // unicode + // scalastyle:off nonascii checkEvaluation("a\u20ACa" like "_\u20AC_", true) checkEvaluation("a€a" like "_€_", true) checkEvaluation("a€a" like "_\u20AC_", true) checkEvaluation("a\u20ACa" like "_€_", true) + // scalastyle:on nonascii // escaping at end position checkEvaluation("""a\""" like """a\""", false) // TODO: should throw an exception? @@ -116,12 +118,15 @@ class RegexpExpressionsSuite extends SparkFunSuite with ExpressionEvalHelper { checkEvaluation("""\\\__""" like regEx, false, create_row("""%\\%\%""")) checkEvaluation("""_\\\%""" like regEx, false, create_row("""%\\""")) + // scalastyle:off nonascii checkEvaluation("a\u20ACa" like regEx, true, create_row("_\u20AC_")) checkEvaluation("a€a" like regEx, true, create_row("_€_")) checkEvaluation("a€a" like regEx, true, create_row("_\u20AC_")) checkEvaluation("a\u20ACa" like regEx, true, create_row("_€_")) + // scalastyle:on nonascii - checkEvaluation("""a\""" like regEx, false, create_row("""a\""")) // TODO: should throw an exception? + // TODO: should throw an exception? + checkEvaluation("""a\""" like regEx, false, create_row("""a\""")) checkEvaluation("A" like regEx, false, create_row("a%")) checkEvaluation("a" like regEx, false, create_row("A%")) |