From c65899c3b41252df1816821fe784122f7bd774f4 Mon Sep 17 00:00:00 2001 From: Jason Lowe Date: Thu, 30 Nov 2023 12:02:41 -0600 Subject: [PATCH] Fix test_initcap to use the intended limited character set Signed-off-by: Jason Lowe --- integration_tests/src/main/python/string_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integration_tests/src/main/python/string_test.py b/integration_tests/src/main/python/string_test.py index 65865d0bdc1..1e871e85bd5 100644 --- a/integration_tests/src/main/python/string_test.py +++ b/integration_tests/src/main/python/string_test.py @@ -653,10 +653,10 @@ def test_byte_length(): @incompat def test_initcap(): # Because we don't use the same unicode version we need to limit - # the charicter set to something more reasonable + # the character set to something more reasonable # upper and lower should cover the corner cases, this is mostly to # see if there are issues with spaces - gen = mk_str_gen('([aAbB1357ȺéŸ_@%-]{0,15}[ \r\n\t]{1,2}){1,5}') + gen = StringGen('([aAbB1357ȺéŸ_@%-]{0,15}[ \r\n\t]{1,2}){1,5}') assert_gpu_and_cpu_are_equal_collect( lambda spark: unary_op_df(spark, gen).select( f.initcap(f.col('a'))))