def test_control_issue792(en_tokenizer, text):
    """Test base case for Issue #792: Non-trailing whitespace"""
    doc = en_tokenizer(text)
    assert "".join([token.text_with_ws for token in doc]) == text
Test base case for Issue #792: Non-trailing whitespace
spacy/tests/lang/en/test_tokenizer.py