Skip to content

Commit 39af000

Browse files
committed
add test cases for token order handling
1 parent af3e53d commit 39af000

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/test_filters.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,18 @@ def test_last_turns():
131131
"[END]",
132132
" but keep this.",
133133
),
134+
(
135+
"[END] out of order [START] tokens [END] example.",
136+
"[START]",
137+
"[END]",
138+
"[END] out of order example.",
139+
),
140+
(
141+
"[START] nested [START] tokens [END] out of [END] order.",
142+
"[START]",
143+
"[END]",
144+
" order.",
145+
),
134146
("", "[START]", "[END]", ""),
135147
],
136148
)

0 commit comments

Comments
 (0)