Skip to content

Commit c5fefee

Browse files
committed
Test match function too
1 parent 9306494 commit c5fefee

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_parse.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,11 @@ class Case:
210210
path=r"$[?@ =~ /\\d/]",
211211
want="$[?@ =~ /\\\\d/]",
212212
),
213+
Case(
214+
description="match function",
215+
path=r"$[?match(@, '\\d')]",
216+
want='$[?match(@, "\\\\d")]',
217+
),
213218
]
214219

215220

0 commit comments

Comments
 (0)