예제 #1
0
def test_get_original_text():
    text = AnnotatedText("{helo=>Hello} world!")
    expected = "helo world!"
    assert text.get_original_text() == expected
예제 #2
0
def test_get_original_text_with_highlight():
    text = AnnotatedText("{helo=>NO_SUGGESTIONS} world!")
    expected = "helo world!"
    assert text.get_original_text() == expected
예제 #3
0
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