comparison example/exampleSession.txt @ 118:db366853074c

test transcript won't tolerate final prompt
author catherine@dellzilla
date Tue, 28 Oct 2008 14:06:52 -0400
parents 33cd0e1bebb8
children 31674148b13c
comparison
equal deleted inserted replaced
117:33cd0e1bebb8 118:db366853074c
1 This is cut-and-pasted from an interactive example.py session.
2 Calling `example.py -t` runs it as a series of unit tests,
3 verifying that the same output is still returned.
4
5 (Cmd) help
6
7 Documented commands (type help <topic>):
8 ========================================
9 _load edit history li load r save set shortcuts speak
10 ed hi l list orate run say shell show
11
12 Undocumented commands:
13 ======================
14 EOF cmdenvironment eof exit help q quit
15
16 (Cmd) help say
17 Repeats what you tell me to.
18 Usage: speak [options] arg
19
20 Options:
21 -h, --help show this help message and exit
22 -p, --piglatin atinLay
23 -s, --shout N00B EMULATION MODE
24 -r REPEAT, --repeat=REPEAT
25 output [n] times
26
27 (Cmd) say goodnight, Gracie
28 goodnight, Gracie
29 (Cmd) say -ps --repeat=5 goodnight, Gracie
30 OODNIGHT, GRACIEGAY
31 OODNIGHT, GRACIEGAY
32 OODNIGHT, GRACIEGAY
33 (Cmd) set
34 prompt: (Cmd)
35 editor: gedit
36 echo: False
37 maxrepeats: 3
38 (Cmd) set maxrepeats 5
39 maxrepeats - was: 3
40 now: 5
41 (Cmd) say -ps --repeat=5 goodnight, Gracie
42 OODNIGHT, GRACIEGAY
43 OODNIGHT, GRACIEGAY
44 OODNIGHT, GRACIEGAY
45 OODNIGHT, GRACIEGAY
46 OODNIGHT, GRACIEGAY
47 (Cmd) hi
48 -------------------------[1]
49 help
50 -------------------------[2]
51 help say
52 -------------------------[3]
53 say goodnight, Gracie
54 -------------------------[4]
55 say -ps --repeat=5 goodnight, Gracie
56 -------------------------[5]
57 set
58 -------------------------[6]
59 set maxrepeats 5
60 -------------------------[7]
61 say -ps --repeat=5 goodnight, Gracie
62 (Cmd) run 4
63 say -ps --repeat=5 goodnight, Gracie
64 OODNIGHT, GRACIEGAY
65 OODNIGHT, GRACIEGAY
66 OODNIGHT, GRACIEGAY
67 OODNIGHT, GRACIEGAY
68 OODNIGHT, GRACIEGAY
1 (Cmd) orate Four score and 69 (Cmd) orate Four score and
2 > seven releases ago 70 > seven releases ago
3 > our BDFL 71 > our BDFL
4 > blah blah blah 72 > blah blah blah
5 > 73 >
6 > 74 >
7 Four score and seven releases ago our BDFL blah blah blah 75 Four score and seven releases ago our BDFL blah blah blah
76 (Cmd) & look, a shortcut!
77 look, a shortcut!
78 (Cmd) say put this in a file > myfile.txt
79 (Cmd) say < myfile.txt
80 put this in a file
81 (Cmd) set prompt "---> "
82 prompt - was: (Cmd)
83 now: --->
84 ---> say goodbye
85 goodbye