Welcome to the notes app team. The editor in editor/ handles typing, backspace, the cursor, and copy and paste (levels 1 and 2), and its tests pass. Users now want undo and redo. The two methods are stubbed in editor/tex…
Welcome to the notes app team. The editor in editor/ handles typing, backspace, the cursor, and copy and paste (levels 1 and 2), and its tests pass. Users now want undo and redo. The two methods are stubbed in editor/text_editor.py, and the rules for level 3 are in README.md.
Build level 3 in 35 minutes. The checks are graded one by one, so each part you get working counts even if the rest is not done.
undo takes back the latest edit (insert, delete or paste that changed the text), putting back both the text and the cursor as they were just before it.redo brings back the edit undone most recently, with the text and cursor as they were just after it.pytest tests/visible. tests/visible/test_level3.py fails until level 3 works.Visible test command
pytest tests/visibleThe repository’s own tests. Run all tests includes them, and so does every submission.
Repository
text-editor-undo-and-redo
Changes under src/ are evaluated.