diff options
| author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-01-29 21:46:12 -0500 |
|---|---|---|
| committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-01-29 21:46:12 -0500 |
| commit | 9c8056f03ff0e6fac515d9b8defff68a5eeef454 (patch) | |
| tree | 2edde27d4b855bce7b89dd875bdd2fad688bfa6b /tests/transcript.txt | |
| parent | d3bab07ff700e596795b42290a17c0ec557b15da (diff) | |
| download | cmd2-git-9c8056f03ff0e6fac515d9b8defff68a5eeef454.tar.gz | |
Added a 2nd way of unit testing transcript tests which covers some additional code.
Diffstat (limited to 'tests/transcript.txt')
| -rw-r--r-- | tests/transcript.txt | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/tests/transcript.txt b/tests/transcript.txt new file mode 100644 index 00000000..91f27dff --- /dev/null +++ b/tests/transcript.txt @@ -0,0 +1,62 @@ +(Cmd) help + +Documented commands (type help <topic>): +======================================== +_load ed history list pause run set show +_relative_load edit l load py save shell speak +cmdenvironment hi li orate r say shortcuts + +Undocumented commands: +====================== +EOF eof exit help q quit + +(Cmd) help say +Repeats what you tell me to. +Usage: speak [options] (text to say) + +Options: + -h, --help show this help message and exit + -p, --piglatin atinLay + -s, --shout N00B EMULATION MODE + -r REPEAT, --repeat=REPEAT + output [n] times + +(Cmd) say goodnight, Gracie +goodnight, Gracie +(Cmd) say -ps --repeat=5 goodnight, Gracie +OODNIGHT, GRACIEGAY +OODNIGHT, GRACIEGAY +OODNIGHT, GRACIEGAY +(Cmd) set maxrepeats 5 +maxrepeats - was: 3 +now: 5 +(Cmd) say -ps --repeat=5 goodnight, Gracie +OODNIGHT, GRACIEGAY +OODNIGHT, GRACIEGAY +OODNIGHT, GRACIEGAY +OODNIGHT, GRACIEGAY +OODNIGHT, GRACIEGAY +(Cmd) hi +-------------------------[1] +help +-------------------------[2] +help say +-------------------------[3] +say goodnight, Gracie +-------------------------[4] +say -ps --repeat=5 goodnight, Gracie +-------------------------[5] +set maxrepeats 5 +-------------------------[6] +say -ps --repeat=5 goodnight, Gracie +(Cmd) run 4 +say -ps --repeat=5 goodnight, Gracie + +OODNIGHT, GRACIEGAY +OODNIGHT, GRACIEGAY +OODNIGHT, GRACIEGAY +OODNIGHT, GRACIEGAY +OODNIGHT, GRACIEGAY +(Cmd) set prompt "---> " +prompt - was: (Cmd) +now: ---> |
