File tree Expand file tree Collapse file tree 5 files changed +12
-16
lines changed Expand file tree Collapse file tree 5 files changed +12
-16
lines changed Original file line number Diff line number Diff line change @@ -17,14 +17,14 @@ func testAlternation(stageHarness *test_case_harness.TestCaseHarness) error {
17
17
ExpectedExitCode : 1 ,
18
18
},
19
19
{
20
- Pattern : "^([Ww]ill( , | |'s )?)+$" ,
21
- Input : "Will, will Will will Will Will's will " ,
20
+ Pattern : "^I see ( \\ d (cat|dog|cow)s?( , | and )?)+$" ,
21
+ Input : "I see 1 cat, 2 dogs and 3 cows " ,
22
22
ExpectedExitCode : 0 ,
23
23
},
24
24
{
25
- Pattern : "^I see (\\ d (cat|dog|cow)s? (, | and )?)+$" ,
25
+ Pattern : "^I see (\\ d (cat|dog|cow)(, | and )?)+$" ,
26
26
Input : "I see 1 cat, 2 dogs and 3 cows" ,
27
- ExpectedExitCode : 0 ,
27
+ ExpectedExitCode : 1 ,
28
28
},
29
29
}
30
30
Original file line number Diff line number Diff line change 4
4
[33m[stage-12] [0m[92m✓ Received exit code 0.[0m
5
5
[33m[stage-12] [0m[94m$ echo -n "a cow" | ./your_grep.sh -E "a (cat|dog)"[0m
6
6
[33m[stage-12] [0m[92m✓ Received exit code 1.[0m
7
- [33m[stage-12] [0m[94m$ echo -n "Will, will Will will Will Will's will" | ./your_grep.sh -E "^([Ww]ill(, | |'s )?)+$"[0m
8
- [33m[your_program] [0mWill, will Will will Will Will's will
9
- [33m[stage-12] [0m[92m✓ Received exit code 0.[0m
10
7
[33m[stage-12] [0m[94m$ echo -n "I see 1 cat, 2 dogs and 3 cows" | ./your_grep.sh -E "^I see (\d (cat|dog|cow)s?(, | and )?)+$"[0m
11
8
[33m[your_program] [0mI see 1 cat, 2 dogs and 3 cows
12
9
[33m[stage-12] [0m[92m✓ Received exit code 0.[0m
10
+ [33m[stage-12] [0m[94m$ echo -n "I see 1 cat, 2 dogs and 3 cows" | ./your_grep.sh -E "^I see (\d (cat|dog|cow)(, | and )?)+$"[0m
11
+ [33m[stage-12] [0m[92m✓ Received exit code 1.[0m
13
12
[33m[stage-12] [0m[92mTest passed.[0m
14
13
15
14
[33m[stage-11] [0m[94mRunning tests for Stage #11: zb3[0m
Original file line number Diff line number Diff line change 86
86
[33m[stage-12] [0m[92m✓ Received exit code 0.[0m
87
87
[33m[stage-12] [0m[94m$ echo -n "a cow" | ./your_grep.sh -E "a (cat|dog)"[0m
88
88
[33m[stage-12] [0m[92m✓ Received exit code 1.[0m
89
- [33m[stage-12] [0m[94m$ echo -n "Will, will Will will Will Will's will" | ./your_grep.sh -E "^([Ww]ill(, | |'s )?)+$"[0m
90
- [33m[your_program] [0mWill, will Will will Will Will's will
91
- [33m[stage-12] [0m[92m✓ Received exit code 0.[0m
92
89
[33m[stage-12] [0m[94m$ echo -n "I see 1 cat, 2 dogs and 3 cows" | ./your_grep.sh -E "^I see (\d (cat|dog|cow)s?(, | and )?)+$"[0m
93
90
[33m[your_program] [0mI see 1 cat, 2 dogs and 3 cows
94
91
[33m[stage-12] [0m[92m✓ Received exit code 0.[0m
92
+ [33m[stage-12] [0m[94m$ echo -n "I see 1 cat, 2 dogs and 3 cows" | ./your_grep.sh -E "^I see (\d (cat|dog|cow)(, | and )?)+$"[0m
93
+ [33m[stage-12] [0m[92m✓ Received exit code 1.[0m
95
94
[33m[stage-12] [0m[92mTest passed.[0m
96
95
97
96
[33m[stage-11] [0m[94mRunning tests for Stage #11: zb3[0m
Original file line number Diff line number Diff line change 127
127
[33m[stage-12] [0m[92m✓ Received exit code 0.[0m
128
128
[33m[stage-12] [0m[94m$ echo -n "a cow" | ./your_grep.sh -E "a (cat|dog)"[0m
129
129
[33m[stage-12] [0m[92m✓ Received exit code 1.[0m
130
- [33m[stage-12] [0m[94m$ echo -n "Will, will Will will Will Will's will" | ./your_grep.sh -E "^([Ww]ill(, | |'s )?)+$"[0m
131
- [33m[your_program] [0mWill, will Will will Will Will's will
132
- [33m[stage-12] [0m[92m✓ Received exit code 0.[0m
133
130
[33m[stage-12] [0m[94m$ echo -n "I see 1 cat, 2 dogs and 3 cows" | ./your_grep.sh -E "^I see (\d (cat|dog|cow)s?(, | and )?)+$"[0m
134
131
[33m[your_program] [0mI see 1 cat, 2 dogs and 3 cows
135
132
[33m[stage-12] [0m[92m✓ Received exit code 0.[0m
133
+ [33m[stage-12] [0m[94m$ echo -n "I see 1 cat, 2 dogs and 3 cows" | ./your_grep.sh -E "^I see (\d (cat|dog|cow)(, | and )?)+$"[0m
134
+ [33m[stage-12] [0m[92m✓ Received exit code 1.[0m
136
135
[33m[stage-12] [0m[92mTest passed.[0m
137
136
138
137
[33m[stage-11] [0m[94mRunning tests for Stage #11: zb3[0m
Original file line number Diff line number Diff line change 45
45
[33m[stage-12] [0m[92m✓ Received exit code 0.[0m
46
46
[33m[stage-12] [0m[94m$ echo -n "a cow" | ./your_grep.sh -E "a (cat|dog)"[0m
47
47
[33m[stage-12] [0m[92m✓ Received exit code 1.[0m
48
- [33m[stage-12] [0m[94m$ echo -n "Will, will Will will Will Will's will" | ./your_grep.sh -E "^([Ww]ill(, | |'s )?)+$"[0m
49
- [33m[your_program] [0mWill, will Will will Will Will's will
50
- [33m[stage-12] [0m[92m✓ Received exit code 0.[0m
51
48
[33m[stage-12] [0m[94m$ echo -n "I see 1 cat, 2 dogs and 3 cows" | ./your_grep.sh -E "^I see (\d (cat|dog|cow)s?(, | and )?)+$"[0m
52
49
[33m[your_program] [0mI see 1 cat, 2 dogs and 3 cows
53
50
[33m[stage-12] [0m[92m✓ Received exit code 0.[0m
51
+ [33m[stage-12] [0m[94m$ echo -n "I see 1 cat, 2 dogs and 3 cows" | ./your_grep.sh -E "^I see (\d (cat|dog|cow)(, | and )?)+$"[0m
52
+ [33m[stage-12] [0m[92m✓ Received exit code 1.[0m
54
53
[33m[stage-12] [0m[92mTest passed.[0m
55
54
56
55
[33m[stage-11] [0m[94mRunning tests for Stage #11: zb3[0m
You can’t perform that action at this time.
0 commit comments