Skip to content

Commit 1cc35ec

Browse files
committed
test: add empty string keyword argument marker test cases
1 parent 04f457c commit 1cc35ec

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

testing/test_mark_expression.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,13 @@ def create_marker(name: str, kwargs: dict[str, object]) -> structures.Mark:
250250
markers.append(
251251
create_marker(
252252
"str_mark",
253-
{"m": "M", "space": "with space", "aaאבגדcc": "aaאבגדcc", "אבגד": "אבגד"},
253+
{
254+
"m": "M",
255+
"space": "with space",
256+
"aaאבגדcc": "aaאבגדcc",
257+
"אבגד": "אבגד",
258+
"empty": "",
259+
},
254260
)
255261
)
256262

@@ -313,9 +319,13 @@ def test_builtin_matchers_keyword_expressions( # TODO: naming when decided
313319
("str_mark(aaאבגדcc='aaאבגדcc')", True),
314320
("str_mark(אבגד='אבגד')", True),
315321
("str_mark(space='with space')", True),
322+
("str_mark(empty='')", True),
323+
('str_mark(empty="")', True),
316324
("str_mark(m='wrong')", False),
317325
("str_mark(aaאבגדcc='wrong')", False),
318326
("str_mark(אבגד='wrong')", False),
327+
("str_mark(m='')", False),
328+
('str_mark(m="")', False),
319329
),
320330
)
321331
def test_str_keyword_expressions(

0 commit comments

Comments
 (0)