Skip to content

Commit

Permalink
Fix test_initcap to use the intended limited character set (#9906)
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Lowe <jlowe@nvidia.com>
  • Loading branch information
jlowe authored Dec 1, 2023
1 parent c1a0c61 commit 9b2df3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration_tests/src/main/python/string_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'))))
Expand Down

0 comments on commit 9b2df3e

Please sign in to comment.