annotate example/exampleSession.txt @ 168:786ab5a83eea

quotes still getting snipped, ugh
author catherine@dellzilla
date Mon, 08 Dec 2008 17:58:37 -0500
parents a3414ac38677
children 429c8e984df4
rev   line source
118
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
1 This is cut-and-pasted from an interactive example.py session.
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
2 Calling `example.py -t` runs it as a series of unit tests,
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
3 verifying that the same output is still returned.
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
4
168
786ab5a83eea quotes still getting snipped, ugh
catherine@dellzilla
parents: 166
diff changeset
5 (Cmd) speak the /* hidden comment */ text
786ab5a83eea quotes still getting snipped, ugh
catherine@dellzilla
parents: 166
diff changeset
6 the text
786ab5a83eea quotes still getting snipped, ugh
catherine@dellzilla
parents: 166
diff changeset
7 (Cmd) speak the "unhidden quote" text
786ab5a83eea quotes still getting snipped, ugh
catherine@dellzilla
parents: 166
diff changeset
8 the "unhidden quote" text
786ab5a83eea quotes still getting snipped, ugh
catherine@dellzilla
parents: 166
diff changeset
9 (Cmd) speak "unhidden quote" text
786ab5a83eea quotes still getting snipped, ugh
catherine@dellzilla
parents: 166
diff changeset
10 "unhidden quote" text
786ab5a83eea quotes still getting snipped, ugh
catherine@dellzilla
parents: 166
diff changeset
11 (Cmd) orate "unhidden quote" text;
786ab5a83eea quotes still getting snipped, ugh
catherine@dellzilla
parents: 166
diff changeset
12 "unhidden quote" text
786ab5a83eea quotes still getting snipped, ugh
catherine@dellzilla
parents: 166
diff changeset
13 (Cmd) orate "not ; terminated; just; yet"
786ab5a83eea quotes still getting snipped, ugh
catherine@dellzilla
parents: 166
diff changeset
14 > now I end;
786ab5a83eea quotes still getting snipped, ugh
catherine@dellzilla
parents: 166
diff changeset
15 "not ; terminated; just; yet"
786ab5a83eea quotes still getting snipped, ugh
catherine@dellzilla
parents: 166
diff changeset
16 now I end
118
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
17 (Cmd) help
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
18
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
19 Documented commands (type help <topic>):
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
20 ========================================
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
21 _load edit history li load r save set shortcuts speak
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
22 ed hi l list orate run say shell show
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
23
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
24 Undocumented commands:
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
25 ======================
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
26 EOF cmdenvironment eof exit help q quit
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
27
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
28 (Cmd) help say
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
29 Repeats what you tell me to.
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
30 Usage: speak [options] arg
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
31
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
32 Options:
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
33 -h, --help show this help message and exit
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
34 -p, --piglatin atinLay
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
35 -s, --shout N00B EMULATION MODE
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
36 -r REPEAT, --repeat=REPEAT
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
37 output [n] times
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
38
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
39 (Cmd) say goodnight, Gracie
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
40 goodnight, Gracie
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
41 (Cmd) say -ps --repeat=5 goodnight, Gracie
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
42 OODNIGHT, GRACIEGAY
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
43 OODNIGHT, GRACIEGAY
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
44 OODNIGHT, GRACIEGAY
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
45 (Cmd) set
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
46 prompt: (Cmd)
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
47 editor: gedit
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
48 echo: False
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
49 maxrepeats: 3
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
50 (Cmd) set maxrepeats 5
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
51 maxrepeats - was: 3
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
52 now: 5
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
53 (Cmd) say -ps --repeat=5 goodnight, Gracie
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
54 OODNIGHT, GRACIEGAY
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
55 OODNIGHT, GRACIEGAY
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
56 OODNIGHT, GRACIEGAY
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
57 OODNIGHT, GRACIEGAY
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
58 OODNIGHT, GRACIEGAY
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
59 (Cmd) hi
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
60 -------------------------[1]
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
61 help
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
62 -------------------------[2]
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
63 help say
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
64 -------------------------[3]
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
65 say goodnight, Gracie
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
66 -------------------------[4]
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
67 say -ps --repeat=5 goodnight, Gracie
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
68 -------------------------[5]
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
69 set
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
70 -------------------------[6]
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
71 set maxrepeats 5
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
72 -------------------------[7]
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
73 say -ps --repeat=5 goodnight, Gracie
133
31674148b13c just beginning to make comments work
catherine@Elli.myhome.westell.com
parents: 118
diff changeset
74 (Cmd) hi 3
31674148b13c just beginning to make comments work
catherine@Elli.myhome.westell.com
parents: 118
diff changeset
75 -------------------------[3]
31674148b13c just beginning to make comments work
catherine@Elli.myhome.westell.com
parents: 118
diff changeset
76 say goodnight, Gracie
31674148b13c just beginning to make comments work
catherine@Elli.myhome.westell.com
parents: 118
diff changeset
77 (Cmd) history notappearinginthisfilm
31674148b13c just beginning to make comments work
catherine@Elli.myhome.westell.com
parents: 118
diff changeset
78 (Cmd) history goodnight
31674148b13c just beginning to make comments work
catherine@Elli.myhome.westell.com
parents: 118
diff changeset
79 -------------------------[3]
31674148b13c just beginning to make comments work
catherine@Elli.myhome.westell.com
parents: 118
diff changeset
80 say goodnight, Gracie
31674148b13c just beginning to make comments work
catherine@Elli.myhome.westell.com
parents: 118
diff changeset
81 -------------------------[4]
31674148b13c just beginning to make comments work
catherine@Elli.myhome.westell.com
parents: 118
diff changeset
82 say -ps --repeat=5 goodnight, Gracie
31674148b13c just beginning to make comments work
catherine@Elli.myhome.westell.com
parents: 118
diff changeset
83 -------------------------[7]
31674148b13c just beginning to make comments work
catherine@Elli.myhome.westell.com
parents: 118
diff changeset
84 say -ps --repeat=5 goodnight, Gracie
118
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
85 (Cmd) run 4
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
86 say -ps --repeat=5 goodnight, Gracie
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
87 OODNIGHT, GRACIEGAY
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
88 OODNIGHT, GRACIEGAY
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
89 OODNIGHT, GRACIEGAY
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
90 OODNIGHT, GRACIEGAY
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
91 OODNIGHT, GRACIEGAY
156
7e5a57df88aa kinks in assumeComplete
catherine@dellzilla
parents: 139
diff changeset
92 (Cmd) orate four score and
117
33cd0e1bebb8 stripping continuation prompts during testing
catherine@dellzilla
parents: 115
diff changeset
93 > seven releases ago
33cd0e1bebb8 stripping continuation prompts during testing
catherine@dellzilla
parents: 115
diff changeset
94 > our BDFL
33cd0e1bebb8 stripping continuation prompts during testing
catherine@dellzilla
parents: 115
diff changeset
95 >
33cd0e1bebb8 stripping continuation prompts during testing
catherine@dellzilla
parents: 115
diff changeset
96 >
166
a3414ac38677 so close - now problem with terminator in string
catherine@dellzilla
parents: 156
diff changeset
97 four score and
a3414ac38677 so close - now problem with terminator in string
catherine@dellzilla
parents: 156
diff changeset
98 seven releases ago
a3414ac38677 so close - now problem with terminator in string
catherine@dellzilla
parents: 156
diff changeset
99 our BDFL
118
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
100 (Cmd) & look, a shortcut!
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
101 look, a shortcut!
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
102 (Cmd) say put this in a file > myfile.txt
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
103 (Cmd) say < myfile.txt
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
104 put this in a file
139
e2d06e53d09c adding test for comments
catherine@Elli.myhome.westell.com
parents: 133
diff changeset
105 (Cmd) # comments do nothing
e2d06e53d09c adding test for comments
catherine@Elli.myhome.westell.com
parents: 133
diff changeset
106 (Cmd) /* C-style comments */ say are invisible
e2d06e53d09c adding test for comments
catherine@Elli.myhome.westell.com
parents: 133
diff changeset
107 are invisible
e2d06e53d09c adding test for comments
catherine@Elli.myhome.westell.com
parents: 133
diff changeset
108 (Cmd) orate and they don't /* interfere;
e2d06e53d09c adding test for comments
catherine@Elli.myhome.westell.com
parents: 133
diff changeset
109 > with multiline */ commands;
e2d06e53d09c adding test for comments
catherine@Elli.myhome.westell.com
parents: 133
diff changeset
110 and they don't commands;
118
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
111 (Cmd) set prompt "---> "
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
112 prompt - was: (Cmd)
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
113 now: --->
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
114 ---> say goodbye
db366853074c test transcript won't tolerate final prompt
catherine@dellzilla
parents: 117
diff changeset
115 goodbye