From 457209a119493e7f1f6907b7e81c1ea032958e8a Mon Sep 17 00:00:00 2001 From: Stefan Wehrmeyer Date: Tue, 10 Jan 2023 09:13:07 +0100 Subject: [PATCH] Add special chars to string/JSON test --- tests/test_y_text.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_y_text.py b/tests/test_y_text.py index 47b3f96..1ccde2e 100644 --- a/tests/test_y_text.py +++ b/tests/test_y_text.py @@ -1,11 +1,13 @@ +import json + from test_helper import exchange_updates import y_py as Y from y_py import YText, YTextEvent def test_to_string(): - expected = "Hello World!" - expected_json = '"Hello World!"' + expected = r'"Hello \n/ World!"' + expected_json = json.dumps(expected) d = Y.YDoc() prelim = YText(expected) integrated = d.get_text("test")