Run doctest again ("control-c control-c"), and doctest-mode will report that all doctest examples now pass. Congratulations! You now know how to use doctest-mode. The next page provides a summary of some of the commands that doctest-mode provides. |
Hello world. This file will contain some simple tests. >>> len('european swallow') 16 >>> 'european swallow'.count('a') 2 >>> for word in 'european swallow'.split(): ... print word, len(word) european 8 swallow 7 . ISO8---Emacs: mytest.doctest (Doctest Font Fill)----L11--All---- All doctest examples passed! |