Skip to content

Commit 362b902

Browse files
committed
test_block_string: add test for not escaping characters
Replicates graphql/graphql-js@7aab39c
1 parent a73a1e0 commit 362b902

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/language/test_block_string.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ def do_not_take_empty_lines_into_account():
100100

101101

102102
def describe_print_block_string():
103+
def do_not_escape_characters():
104+
s = '" \\ / \b \f \n \r \t'
105+
assert print_block_string(s) == f'"""\n{s}\n"""'
106+
103107
def by_default_print_block_strings_as_single_line():
104108
s = "one liner"
105109
assert print_block_string(s) == '"""one liner"""'

0 commit comments

Comments
 (0)