Write a few test cases. Don't worry about filling in the output for now. When you hit enter, doctest-mode will add a new prompt (automatically selecting between "..." and ">>>"), and indent when appropriate. As in python-mode, you can use tab and backspace to indent or dedent. When you are finished, simply hit enter twice in a row -- when you hit enter with the cursor on an empty prompt, doctest-mode will delete that prompt and return you to text-editing mode. |
Hello world. This file will contain some simple tests. >>> len('european swallow') >>> 'european swallow'.count('a') >>> for word in 'european swallow'.split(): ... print word, len(word) . ISO8---Emacs: mytest.doctest (Doctest Font Fill)----L2--All----- |