diff options
| author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-03-16 22:36:51 -0400 |
|---|---|---|
| committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-03-16 22:36:51 -0400 |
| commit | a5632e06cba42a26bb7d628631071d5cf0236e6f (patch) | |
| tree | 09eb09272c30fa90995af675ca2383788dc669e1 /tests/transcript_regex.txt | |
| parent | 2d4b43a4901122d7918af4030c440a3c93892a4f (diff) | |
| download | cmd2-git-a5632e06cba42a26bb7d628631071d5cf0236e6f.tar.gz | |
Added example of using a regular expression in a transcript test.
Also added a unit test for this feature.
Diffstat (limited to 'tests/transcript_regex.txt')
| -rw-r--r-- | tests/transcript_regex.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/transcript_regex.txt b/tests/transcript_regex.txt new file mode 100644 index 00000000..9c4c7a48 --- /dev/null +++ b/tests/transcript_regex.txt @@ -0,0 +1,18 @@ +# Run this transcript with "python example.py -t transcript_regex.txt" +# The regex for editor matches any word until first space. +(Cmd) set +abbrev: True +autorun_on_edit: True +case_insensitive: True +colors: True +continuation_prompt: > +debug: False +default_file_name: command.txt +echo: False +editor: /([^\s]+)/ +feedback_to_output: False +locals_in_py: True +maxrepeats: 3 +prompt: (Cmd) +quiet: False +timing: False |
