comparison docs/freefeatures.rst @ 396:e60e2c15f026

ignore whitespace during comparisons
author Catherine Devlin <catherine.devlin@gmail.com>
date Thu, 16 Sep 2010 07:38:26 -0400
parents 52ab96d4f179
children bfbe4241bd6b
comparison
equal deleted inserted replaced
395:9f9c69fbb78f 396:e60e2c15f026
179 a ``cmd2``-based app is copied from the screen and pasted into a text 179 a ``cmd2``-based app is copied from the screen and pasted into a text
180 file, ``transcript.txt``, then a transcript test can be run against it:: 180 file, ``transcript.txt``, then a transcript test can be run against it::
181 181
182 python app.py --test transcript.txt 182 python app.py --test transcript.txt
183 183
184 Any deviations between the output prescribed in ``transcript.txt`` and 184 Any non-whitespace deviations between the output prescribed in ``transcript.txt`` and
185 the actual output from a fresh run of the application will be reported 185 the actual output from a fresh run of the application will be reported
186 as a unit test failure. 186 as a unit test failure. (Whitespace is ignored during the comparison.)
187
188 Regular expressions can be embedded in the transcript inside paired ``/``
189 slashes. These regular expressions should not include any whitespace
190 expressions.
191