summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2021-08-01 11:10:49 +0100
committerMichael Williamson <mike@zwobble.org>2021-08-01 11:10:49 +0100
commit9bfd99948361000c6432691c5b37c95127c53737 (patch)
treeb0db98a7fda5b4a5d9f782a81be527493ad891f6 /tests
parent822cc689ce44b1c43ac118b2a13c6d0024d2e194 (diff)
Convert tab elements to tab characters
Diffstat (limited to 'tests')
-rw-r--r--tests/raw_text_tests.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/raw_text_tests.py b/tests/raw_text_tests.py
index 46602e7..7dd44a0 100644
--- a/tests/raw_text_tests.py
+++ b/tests/raw_text_tests.py
@@ -14,6 +14,15 @@ def text_element_is_converted_to_text_content():
@istest
+def tab_element_is_converted_to_tab_character():
+ element = documents.tab()
+
+ result = extract_raw_text_from_element(element)
+
+ assert_equal("\t", result)
+
+
+@istest
def paragraphs_are_terminated_with_newlines():
element = documents.paragraph(
children=[