summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_pydyf.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_pydyf.py b/tests/test_pydyf.py
index 87d9763..1e758a5 100644
--- a/tests/test_pydyf.py
+++ b/tests/test_pydyf.py
@@ -706,3 +706,6 @@ def test_string_encoding():
assert pydyf.String('abc').data == b'(abc)'
assert pydyf.String('déf').data == b'<feff006400e90066>'
assert pydyf.String('♡').data == b'<feff2661>'
+ assert pydyf.String('\\abc').data == b'(\\\\abc)'
+ assert pydyf.String('abc(').data == b'(abc\\()'
+ assert pydyf.String('ab)c').data == b'(ab\\)c)'