diff --git a/tests/test_parse.py b/tests/test_parse.py index 543274e..8171e10 100644 --- a/tests/test_parse.py +++ b/tests/test_parse.py @@ -26,3 +26,12 @@ assert tokens[0].type == "text" assert tokens[0].value == text assert tokens[1].type == "EOF" + + +# Test that we can make notes using BeginNote and EndNote syntax. +@given(text()) +def test_lexer_note(text): + code = "BeginNote " + text + " EndNote" + tokenizer = parse.Tokenizer(code, "") + tokens = tokenizer.tokenize() + assert tokens[0].type == "EOF"