From 20561eca72401d1c4f367d5cb8ef5c688342e920 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Thu, 16 Nov 2023 21:55:54 +0100 Subject: [PATCH] fix escape characters test in test_data_model.py --- tests/test_data_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_data_model.py b/tests/test_data_model.py index 87b0800..c6f978d 100644 --- a/tests/test_data_model.py +++ b/tests/test_data_model.py @@ -17,7 +17,7 @@ class TestDataModel(unittest.TestCase): self.assertEqual(result, expected) str_with_latex_characers = r"asdf#asdf$asdf%asdf& ~ fd_ \ ^aa aa{ bb}" - expected ='asdf\\#asdf$asdf\\%asdf\\& \\textasciitilde{} fd_ \\ ^aa aa{ bb}' + expected ='asdf\\#asdf$asdf\\%asdf\\& \\textasciitilde{} fd_ \\ ^aa aa\\{ bb\\}' with self.subTest(msg="string with LaTeX characters"): result = data_model.escape_latex_characters(str_with_latex_characers) print(result)