aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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=[