def test_get_original_text(): text = AnnotatedText("{helo=>Hello} world!") expected = "helo world!" assert text.get_original_text() == expected
def test_get_original_text_with_highlight(): text = AnnotatedText("{helo=>NO_SUGGESTIONS} world!") expected = "helo world!" assert text.get_original_text() == expected
def test_curly_braces_in_original_text(): text = AnnotatedText(r"(e.g. \emph{the, {dox=>fox}, jumps})") expected = r"(e.g. \emph{the, dox, jumps})" assert text.get_original_text() == expected