Skip to content

Commit c821f12

Browse files
test: update string tests for consistent quote handling
1 parent 4e0f7cd commit c821f12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test_unstructured/metrics/test_text_extraction.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,8 @@ def test_prepare_string(text, expected):
343343
("input_text", "expected_output"),
344344
[
345345
# Complex sentences with standard quotes
346-
('"The quick brown fox jumps over the lazy dog," said the narrator.',
347-
'"The quick brown fox jumps over the lazy dog," said the narrator.'),
346+
("\'The journey wasn\'t easy,\' she remarked.",
347+
"\'The journey wasn\'t easy,\' she remarked."),
348348
349349
# Mixed quotes in longer sentences
350350
('She said "Hello" and then whispered \'Goodbye\' before leaving.',

0 commit comments

Comments
 (0)