We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 201cde6 commit c7461f9Copy full SHA for c7461f9
12 files changed
tests/test_transcript.py
@@ -240,9 +240,19 @@ def test_invalid_syntax(_cmdline_app, capsys):
240
241
242
@pytest.mark.parametrize('filename, feedback_to_output', [
243
- ('regex_set.txt', False),
244
- ('multiline.txt', False),
+ ('bol_eol.txt', False),
+ ('characterclass.txt', False),
245
+ ('dotstar.txt', False),
246
+ ('extension_notation.txt', False),
247
('from_cmdloop.txt', True),
248
+ ('multiline_no_regex.txt', False),
249
+ ('multiline_regex.txt', False),
250
+ ('regex_set.txt', False),
251
+ ('singleslash.txt', False),
252
+ ('slashdot.txt', False),
253
+ ('slashslash_escaped.txt', False),
254
+ ('slashslash.txt', False),
255
+ ('spaces.txt', False),
256
])
257
def test_transcript(request, capsys, filename, feedback_to_output):
258
# Create a cmd2.Cmd() instance and make sure basic settings are like we want for test
tests/transcripts/bol_eol.txt
@@ -0,0 +1,4 @@
1
+(Cmd) say -r 3 -s yabba dabba do
2
+/^Y.*?$/
3
4
tests/transcripts/characterclass.txt
@@ -0,0 +1,2 @@
+(Cmd) say 555-1212
+/[0-9]{3}-[0-9]{4}/
tests/transcripts/dotstar.txt
+(Cmd) say Adopt the pace of nature: her secret is patience.
+Adopt the pace of /.*/ is patience.
tests/transcripts/extension_notation.txt
+(Cmd) say (?:fred)
+/(?:\(\?:fred\))/
tests/transcripts/multiline.txt tests/transcripts/multiline_no_regex.txttests/transcripts/multiline.txt renamed to tests/transcripts/multiline_no_regex.txt
tests/transcripts/multiline_regex.txt
+/\A(YA.*?DO\n?){3}/
tests/transcripts/singleslash.txt
+(Cmd) say use 2/3 cup of sugar
+use 2/3 cup of sugar
tests/transcripts/slashdot.txt
+(Cmd) say mix 2/3 c. sugar, 1/2 c. butter, and 1/2 tsp. salt
+mix 2/3 c. sugar, 1/2 c. butter, and 1/2 tsp. salt
tests/transcripts/slashslash.txt
+(Cmd) say //
+//
0 commit comments