# HG changeset patch # User catherine@dellzilla # Date 1225217212 14400 # Node ID db366853074c821a40670d98ce4aca85014a220b # Parent 33cd0e1bebb858506df83865ddbb5ab0f95aaa4a test transcript won't tolerate final prompt diff -r 33cd0e1bebb8 -r db366853074c example/exampleSession.txt --- a/example/exampleSession.txt Tue Oct 28 14:05:12 2008 -0400 +++ b/example/exampleSession.txt Tue Oct 28 14:06:52 2008 -0400 @@ -1,7 +1,85 @@ +This is cut-and-pasted from an interactive example.py session. +Calling `example.py -t` runs it as a series of unit tests, +verifying that the same output is still returned. + +(Cmd) help + +Documented commands (type help ): +======================================== +_load edit history li load r save set shortcuts speak +ed hi l list orate run say shell show + +Undocumented commands: +====================== +EOF cmdenvironment eof exit help q quit + +(Cmd) help say +Repeats what you tell me to. +Usage: speak [options] arg + +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 +prompt: (Cmd) +editor: gedit +echo: False +maxrepeats: 3 +(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 +-------------------------[6] +set maxrepeats 5 +-------------------------[7] +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) orate Four score and > seven releases ago > our BDFL > blah blah blah > > -Four score and seven releases ago our BDFL blah blah blah \ No newline at end of file +Four score and seven releases ago our BDFL blah blah blah +(Cmd) & look, a shortcut! +look, a shortcut! +(Cmd) say put this in a file > myfile.txt +(Cmd) say < myfile.txt +put this in a file +(Cmd) set prompt "---> " +prompt - was: (Cmd) +now: ---> +---> say goodbye +goodbye \ No newline at end of file