Now type "meta-x mmm-mode" to enable the MMM minor mode. Every docstest example will be higlighted using mmm-default-submode-face, and doctest-mode's syntax highlighting will be applied as well. Note that "MMM" is now shown in the Emacs modeline. Doctest examples are found by looking for optionally indented prompts (">>>"), and are terminated by blank lines. (Note: If you have set the Emacs variable mmm-global-mode to "t" or "maybe" then the MMM minor mode will be turned on automatically.) |
Regression Tests for math ========================= This is a mock-up file containing some regression tests for the Python `math module`_. .. _math module: http://docs.python.org/lib/module-math.html >>> from math import * Make sure that `math.floor()` handles negative numbers correctly: >>> [floor(x) for x in (-2.0, -1.5, -1.0, 1.0, 1.5, 2.0)] [-2.0, -2.0, -1.0, 1.0, 1.0, 2.0] . Check for rounding errors on round trips: >>> print sin(asin(0.5)), cos(acos(0.5)) 0.5 0.5 ISO8---Emacs: mytest.rst (reST MMM Font)----L15--All----------- |