Skip to content

Commit

Permalink
address review
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt711 committed Oct 7, 2024
1 parent 577a7fc commit ecd9fc2
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions python/pylibcudf/pylibcudf/tests/test_nvtext_generate_ngrams.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,7 @@ def test_hash_character_ngrams(input_col, ngram):
ngram,
)
pa_result = plc.interop.to_arrow(result)
if ngram == 2:
assert len(pa_result[0]) == 1
assert len(pa_result[1]) == 2
assert len(pa_result[2]) == 2
else:
assert len(pa_result[0]) == 0
assert len(pa_result[1]) == 1
assert len(pa_result[2]) == 1
assert all(
len(got) == max(0, len(s.as_py()) - ngram + 1)
for got, s in zip(pa_result, input_col)
)

0 comments on commit ecd9fc2

Please sign in to comment.