Skip to content

Commit 0b57e7b

Browse files
committed
test(utils): Add test for strip_string
Fixes: GH-3515
1 parent fa19927 commit 0b57e7b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/utils/test_general.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,17 @@ def test_failed_base64_conversion(input):
578578
value="é...", metadata={"len": 8, "rem": [["!limit", "x", 2, 5]]}
579579
),
580580
],
581+
[
582+
"\udfff\udfff\udfff\udfff\udfff\udfff",
583+
5,
584+
AnnotatedValue(
585+
value="\udfff\udfff...",
586+
metadata={
587+
"len": 6,
588+
"rem": [["!limit", "x", 5 - 3, 5]],
589+
},
590+
),
591+
],
581592
],
582593
)
583594
def test_strip_string(input, max_length, result):

0 commit comments

Comments
 (0)