Skip to content

Commit

Permalink
Fix integration tests generating unwanted chars in input
Browse files Browse the repository at this point in the history
Signed-off-by: Anthony Chang <antchang@nvidia.com>
  • Loading branch information
anthony-chang committed May 17, 2022
1 parent 2d6b7a4 commit bd7f1a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions integration_tests/src/main/python/string_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -837,16 +837,16 @@ def test_regexp_extract_idx_0():
conf=_regexp_conf)

def test_word_boundaries():
gen = mk_str_gen('([abc]{1,3}[\r\n\t \f]{0,2}[123]){1,5}')
gen = StringGen('([abc]{1,3}[\r\n\t \f]{0,2}[123]){1,5}')
assert_gpu_and_cpu_are_equal_collect(
lambda spark: debug_df(unary_op_df(spark, gen).selectExpr('a',
lambda spark: debug_df(unary_op_df(spark, gen).selectExpr(
'rlike(a, "\\\\b")',
'rlike(a, "\\\\B")',
'rlike(a, "\\\\b\\\\B")',
'regexp_extract(a, "([a-d]+)\\\\b([e-h]+)", 1)',
'regexp_extract(a, "([a-d]+)\\\\B", 1)',
'regexp_replace(a, "\\\\b", "")',
'regexp_replace(a, "\\\\B", "")',
'regexp_replace(a, "\\\\b", "#")',
'regexp_replace(a, "\\\\B", "#")',
)),
conf=_regexp_conf)

Expand Down

0 comments on commit bd7f1a0

Please sign in to comment.