From 0ed548bf7988dee90155f02a867e38d1fbd95784 Mon Sep 17 00:00:00 2001 From: MrPowers Date: Sun, 6 May 2018 14:27:17 -0500 Subject: [PATCH] Make sure capitalizeFully works with a space delimiter --- .../com/github/mrpowers/spark/daria/sql/FunctionsTest.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/scala/com/github/mrpowers/spark/daria/sql/FunctionsTest.scala b/src/test/scala/com/github/mrpowers/spark/daria/sql/FunctionsTest.scala index da3db729..89e662e9 100644 --- a/src/test/scala/com/github/mrpowers/spark/daria/sql/FunctionsTest.scala +++ b/src/test/scala/com/github/mrpowers/spark/daria/sql/FunctionsTest.scala @@ -240,7 +240,7 @@ object FunctionsTest ("Trump,donald"), ("clinton,Hillary"), ("Brack/obama"), - ("george w./bush"), + ("george w. bush"), (null) ), List( ("some_string", StringType, true) @@ -251,7 +251,7 @@ object FunctionsTest "some_string_udf", functions.capitalizeFully( col("some_string"), - lit("/,") + lit("/, ") ) ).select("some_string_udf") @@ -261,7 +261,7 @@ object FunctionsTest ("Trump,Donald"), ("Clinton,Hillary"), ("Brack/Obama"), - ("George w./Bush"), + ("George W. Bush"), (null) ), List( ("some_string_udf", StringType, true)