From 314fd39ed4156332a2551f019dd810af640dceb3 Mon Sep 17 00:00:00 2001 From: asagi4 <130366179+asagi4@users.noreply.github.com> Date: Tue, 15 Sep 2026 20:21:05 +0300 Subject: [PATCH] Test for a bug with tags --- tests/test_parser.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_parser.py b/tests/test_parser.py index 00e8249..d3f8757 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -361,3 +361,9 @@ def test_alternating_nested(parse): for i, x in enumerate(catdogtigers): step = round((i * 0.1) + 0.1, 2) assert_prompt(p3, step, step, x) + + +def test_alternating_with_tags(parse): + p1 = parse("[[a|b]:HR]", filters="HR") + p2 = parse("[a|b]") + assert p1.parsed_prompt == p2.parsed_prompt