Skip to content

Commit

Permalink
regex program tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-b-miller committed May 31, 2024
1 parent 936e412 commit b15588a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions python/cudf/cudf/pylibcudf_tests/test_regex_program.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright (c) 2024, NVIDIA CORPORATION.

import pytest

import cudf._lib.pylibcudf as plc


@pytest.mark.parametrize("pat", ["(", "*", "\\"])
def test_regex_program_invalid(pat):
with pytest.raises(RuntimeError):
plc.strings.regex_program.RegexProgram.create(
pat, plc.strings.regex_flags.RegexFlags.DEFAULT
)

0 comments on commit b15588a

Please sign in to comment.