Skip to content

Commit d5684b7

Browse files
authored
Merge pull request #41 from codecrafters-io/andy/fix
Update test fixtures
2 parents d72e7cc + e283bef commit d5684b7

File tree

12 files changed

+108
-108
lines changed

12 files changed

+108
-108
lines changed

internal/test_helpers/fixtures/alternation/success

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -112,19 +112,19 @@
112112
[tester::#TL6] Test passed.
113113

114114
[tester::#MR9] Running tests for Stage #MR9 (mr9)
115-
[tester::#MR9] $ echo -n "apple" | ./your_grep.sh -E "\w"
116-
[your_program] apple
115+
[tester::#MR9] $ echo -n "blueberry" | ./your_grep.sh -E "\w"
116+
[your_program] blueberry
117117
[tester::#MR9] ✓ Received exit code 0.
118-
[tester::#MR9] $ echo -n "BLUEBERRY" | ./your_grep.sh -E "\w"
119-
[your_program] BLUEBERRY
118+
[tester::#MR9] $ echo -n "BANANA" | ./your_grep.sh -E "\w"
119+
[your_program] BANANA
120120
[tester::#MR9] ✓ Received exit code 0.
121-
[tester::#MR9] $ echo -n "503" | ./your_grep.sh -E "\w"
122-
[your_program] 503
121+
[tester::#MR9] $ echo -n "650" | ./your_grep.sh -E "\w"
122+
[your_program] 650
123123
[tester::#MR9] ✓ Received exit code 0.
124-
[tester::#MR9] $ echo -n "-÷€_×÷+" | ./your_grep.sh -E "\w"
125-
[your_program] -÷€_×÷+
124+
[tester::#MR9] $ echo -n "$+÷_-÷+" | ./your_grep.sh -E "\w"
125+
[your_program] $+÷_-÷+
126126
[tester::#MR9] ✓ Received exit code 0.
127-
[tester::#MR9] $ echo -n "×$€-+÷" | ./your_grep.sh -E "\w"
127+
[tester::#MR9] $ echo -n "€-×+$÷" | ./your_grep.sh -E "\w"
128128
[tester::#MR9] ✓ Received exit code 1.
129129
[tester::#MR9] Test passed.
130130

internal/test_helpers/fixtures/backreferences_multiple/success

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -194,19 +194,19 @@
194194
[tester::#TL6] Test passed.
195195

196196
[tester::#MR9] Running tests for Stage #MR9 (mr9)
197-
[tester::#MR9] $ echo -n "apple" | ./your_grep.sh -E "\w"
198-
[your_program] apple
197+
[tester::#MR9] $ echo -n "blueberry" | ./your_grep.sh -E "\w"
198+
[your_program] blueberry
199199
[tester::#MR9] ✓ Received exit code 0.
200-
[tester::#MR9] $ echo -n "BLUEBERRY" | ./your_grep.sh -E "\w"
201-
[your_program] BLUEBERRY
200+
[tester::#MR9] $ echo -n "BANANA" | ./your_grep.sh -E "\w"
201+
[your_program] BANANA
202202
[tester::#MR9] ✓ Received exit code 0.
203-
[tester::#MR9] $ echo -n "503" | ./your_grep.sh -E "\w"
204-
[your_program] 503
203+
[tester::#MR9] $ echo -n "650" | ./your_grep.sh -E "\w"
204+
[your_program] 650
205205
[tester::#MR9] ✓ Received exit code 0.
206-
[tester::#MR9] $ echo -n "-÷€_×÷+" | ./your_grep.sh -E "\w"
207-
[your_program] -÷€_×÷+
206+
[tester::#MR9] $ echo -n "$+÷_-÷+" | ./your_grep.sh -E "\w"
207+
[your_program] $+÷_-÷+
208208
[tester::#MR9] ✓ Received exit code 0.
209-
[tester::#MR9] $ echo -n "×$€-+÷" | ./your_grep.sh -E "\w"
209+
[tester::#MR9] $ echo -n "€-×+$÷" | ./your_grep.sh -E "\w"
210210
[tester::#MR9] ✓ Received exit code 1.
211211
[tester::#MR9] Test passed.
212212

internal/test_helpers/fixtures/backreferences_nested/success

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -235,19 +235,19 @@
235235
[tester::#TL6] Test passed.
236236

237237
[tester::#MR9] Running tests for Stage #MR9 (mr9)
238-
[tester::#MR9] $ echo -n "apple" | ./your_grep.sh -E "\w"
239-
[your_program] apple
238+
[tester::#MR9] $ echo -n "blueberry" | ./your_grep.sh -E "\w"
239+
[your_program] blueberry
240240
[tester::#MR9] ✓ Received exit code 0.
241-
[tester::#MR9] $ echo -n "BLUEBERRY" | ./your_grep.sh -E "\w"
242-
[your_program] BLUEBERRY
241+
[tester::#MR9] $ echo -n "BANANA" | ./your_grep.sh -E "\w"
242+
[your_program] BANANA
243243
[tester::#MR9] ✓ Received exit code 0.
244-
[tester::#MR9] $ echo -n "503" | ./your_grep.sh -E "\w"
245-
[your_program] 503
244+
[tester::#MR9] $ echo -n "650" | ./your_grep.sh -E "\w"
245+
[your_program] 650
246246
[tester::#MR9] ✓ Received exit code 0.
247-
[tester::#MR9] $ echo -n "-÷€_×÷+" | ./your_grep.sh -E "\w"
248-
[your_program] -÷€_×÷+
247+
[tester::#MR9] $ echo -n "$+÷_-÷+" | ./your_grep.sh -E "\w"
248+
[your_program] $+÷_-÷+
249249
[tester::#MR9] ✓ Received exit code 0.
250-
[tester::#MR9] $ echo -n "×$€-+÷" | ./your_grep.sh -E "\w"
250+
[tester::#MR9] $ echo -n "€-×+$÷" | ./your_grep.sh -E "\w"
251251
[tester::#MR9] ✓ Received exit code 1.
252252
[tester::#MR9] Test passed.
253253

internal/test_helpers/fixtures/backreferences_single/success

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -153,19 +153,19 @@
153153
[tester::#TL6] Test passed.
154154

155155
[tester::#MR9] Running tests for Stage #MR9 (mr9)
156-
[tester::#MR9] $ echo -n "apple" | ./your_grep.sh -E "\w"
157-
[your_program] apple
156+
[tester::#MR9] $ echo -n "blueberry" | ./your_grep.sh -E "\w"
157+
[your_program] blueberry
158158
[tester::#MR9] ✓ Received exit code 0.
159-
[tester::#MR9] $ echo -n "BLUEBERRY" | ./your_grep.sh -E "\w"
160-
[your_program] BLUEBERRY
159+
[tester::#MR9] $ echo -n "BANANA" | ./your_grep.sh -E "\w"
160+
[your_program] BANANA
161161
[tester::#MR9] ✓ Received exit code 0.
162-
[tester::#MR9] $ echo -n "503" | ./your_grep.sh -E "\w"
163-
[your_program] 503
162+
[tester::#MR9] $ echo -n "650" | ./your_grep.sh -E "\w"
163+
[your_program] 650
164164
[tester::#MR9] ✓ Received exit code 0.
165-
[tester::#MR9] $ echo -n "-÷€_×÷+" | ./your_grep.sh -E "\w"
166-
[your_program] -÷€_×÷+
165+
[tester::#MR9] $ echo -n "$+÷_-÷+" | ./your_grep.sh -E "\w"
166+
[your_program] $+÷_-÷+
167167
[tester::#MR9] ✓ Received exit code 0.
168-
[tester::#MR9] $ echo -n "×$€-+÷" | ./your_grep.sh -E "\w"
168+
[tester::#MR9] $ echo -n "€-×+$÷" | ./your_grep.sh -E "\w"
169169
[tester::#MR9] ✓ Received exit code 1.
170170
[tester::#MR9] Test passed.
171171

internal/test_helpers/fixtures/combining_character_classes/success

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,19 @@
4444
[tester::#TL6] Test passed.
4545

4646
[tester::#MR9] Running tests for Stage #MR9 (mr9)
47-
[tester::#MR9] $ echo -n "apple" | ./your_grep.sh -E "\w"
48-
[your_program] apple
47+
[tester::#MR9] $ echo -n "blueberry" | ./your_grep.sh -E "\w"
48+
[your_program] blueberry
4949
[tester::#MR9] ✓ Received exit code 0.
50-
[tester::#MR9] $ echo -n "BLUEBERRY" | ./your_grep.sh -E "\w"
51-
[your_program] BLUEBERRY
50+
[tester::#MR9] $ echo -n "BANANA" | ./your_grep.sh -E "\w"
51+
[your_program] BANANA
5252
[tester::#MR9] ✓ Received exit code 0.
53-
[tester::#MR9] $ echo -n "503" | ./your_grep.sh -E "\w"
54-
[your_program] 503
53+
[tester::#MR9] $ echo -n "650" | ./your_grep.sh -E "\w"
54+
[your_program] 650
5555
[tester::#MR9] ✓ Received exit code 0.
56-
[tester::#MR9] $ echo -n "-÷€_×÷+" | ./your_grep.sh -E "\w"
57-
[your_program] -÷€_×÷+
56+
[tester::#MR9] $ echo -n "$+÷_-÷+" | ./your_grep.sh -E "\w"
57+
[your_program] $+÷_-÷+
5858
[tester::#MR9] ✓ Received exit code 0.
59-
[tester::#MR9] $ echo -n "×$€-+÷" | ./your_grep.sh -E "\w"
59+
[tester::#MR9] $ echo -n "€-×+$÷" | ./your_grep.sh -E "\w"
6060
[tester::#MR9] ✓ Received exit code 1.
6161
[tester::#MR9] Test passed.
6262

internal/test_helpers/fixtures/end_of_string_anchor/success

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,19 @@
6060
[tester::#TL6] Test passed.
6161

6262
[tester::#MR9] Running tests for Stage #MR9 (mr9)
63-
[tester::#MR9] $ echo -n "apple" | ./your_grep.sh -E "\w"
64-
[your_program] apple
63+
[tester::#MR9] $ echo -n "blueberry" | ./your_grep.sh -E "\w"
64+
[your_program] blueberry
6565
[tester::#MR9] ✓ Received exit code 0.
66-
[tester::#MR9] $ echo -n "BLUEBERRY" | ./your_grep.sh -E "\w"
67-
[your_program] BLUEBERRY
66+
[tester::#MR9] $ echo -n "BANANA" | ./your_grep.sh -E "\w"
67+
[your_program] BANANA
6868
[tester::#MR9] ✓ Received exit code 0.
69-
[tester::#MR9] $ echo -n "503" | ./your_grep.sh -E "\w"
70-
[your_program] 503
69+
[tester::#MR9] $ echo -n "650" | ./your_grep.sh -E "\w"
70+
[your_program] 650
7171
[tester::#MR9] ✓ Received exit code 0.
72-
[tester::#MR9] $ echo -n "-÷€_×÷+" | ./your_grep.sh -E "\w"
73-
[your_program] -÷€_×÷+
72+
[tester::#MR9] $ echo -n "$+÷_-÷+" | ./your_grep.sh -E "\w"
73+
[your_program] $+÷_-÷+
7474
[tester::#MR9] ✓ Received exit code 0.
75-
[tester::#MR9] $ echo -n "×$€-+÷" | ./your_grep.sh -E "\w"
75+
[tester::#MR9] $ echo -n "€-×+$÷" | ./your_grep.sh -E "\w"
7676
[tester::#MR9] ✓ Received exit code 1.
7777
[tester::#MR9] Test passed.
7878

internal/test_helpers/fixtures/negative_character_groups/success

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@
2323
[tester::#TL6] Test passed.
2424

2525
[tester::#MR9] Running tests for Stage #MR9 (mr9)
26-
[tester::#MR9] $ echo -n "apple" | ./your_grep.sh -E "\w"
27-
[your_program] apple
26+
[tester::#MR9] $ echo -n "blueberry" | ./your_grep.sh -E "\w"
27+
[your_program] blueberry
2828
[tester::#MR9] ✓ Received exit code 0.
29-
[tester::#MR9] $ echo -n "BLUEBERRY" | ./your_grep.sh -E "\w"
30-
[your_program] BLUEBERRY
29+
[tester::#MR9] $ echo -n "BANANA" | ./your_grep.sh -E "\w"
30+
[your_program] BANANA
3131
[tester::#MR9] ✓ Received exit code 0.
32-
[tester::#MR9] $ echo -n "503" | ./your_grep.sh -E "\w"
33-
[your_program] 503
32+
[tester::#MR9] $ echo -n "650" | ./your_grep.sh -E "\w"
33+
[your_program] 650
3434
[tester::#MR9] ✓ Received exit code 0.
35-
[tester::#MR9] $ echo -n "-÷€_×÷+" | ./your_grep.sh -E "\w"
36-
[your_program] -÷€_×÷+
35+
[tester::#MR9] $ echo -n "$+÷_-÷+" | ./your_grep.sh -E "\w"
36+
[your_program] $+÷_-÷+
3737
[tester::#MR9] ✓ Received exit code 0.
38-
[tester::#MR9] $ echo -n "×$€-+÷" | ./your_grep.sh -E "\w"
38+
[tester::#MR9] $ echo -n "€-×+$÷" | ./your_grep.sh -E "\w"
3939
[tester::#MR9] ✓ Received exit code 1.
4040
[tester::#MR9] Test passed.
4141

internal/test_helpers/fixtures/one_or_more_quantifier/success

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,19 +73,19 @@
7373
[tester::#TL6] Test passed.
7474

7575
[tester::#MR9] Running tests for Stage #MR9 (mr9)
76-
[tester::#MR9] $ echo -n "apple" | ./your_grep.sh -E "\w"
77-
[your_program] apple
76+
[tester::#MR9] $ echo -n "blueberry" | ./your_grep.sh -E "\w"
77+
[your_program] blueberry
7878
[tester::#MR9] ✓ Received exit code 0.
79-
[tester::#MR9] $ echo -n "BLUEBERRY" | ./your_grep.sh -E "\w"
80-
[your_program] BLUEBERRY
79+
[tester::#MR9] $ echo -n "BANANA" | ./your_grep.sh -E "\w"
80+
[your_program] BANANA
8181
[tester::#MR9] ✓ Received exit code 0.
82-
[tester::#MR9] $ echo -n "503" | ./your_grep.sh -E "\w"
83-
[your_program] 503
82+
[tester::#MR9] $ echo -n "650" | ./your_grep.sh -E "\w"
83+
[your_program] 650
8484
[tester::#MR9] ✓ Received exit code 0.
85-
[tester::#MR9] $ echo -n "-÷€_×÷+" | ./your_grep.sh -E "\w"
86-
[your_program] -÷€_×÷+
85+
[tester::#MR9] $ echo -n "$+÷_-÷+" | ./your_grep.sh -E "\w"
86+
[your_program] $+÷_-÷+
8787
[tester::#MR9] ✓ Received exit code 0.
88-
[tester::#MR9] $ echo -n "×$€-+÷" | ./your_grep.sh -E "\w"
88+
[tester::#MR9] $ echo -n "€-×+$÷" | ./your_grep.sh -E "\w"
8989
[tester::#MR9] ✓ Received exit code 1.
9090
[tester::#MR9] Test passed.
9191

internal/test_helpers/fixtures/positive_character_groups/success

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@
99
[tester::#TL6] Test passed.
1010

1111
[tester::#MR9] Running tests for Stage #MR9 (mr9)
12-
[tester::#MR9] $ echo -n "apple" | ./your_grep.sh -E "\w"
13-
[your_program] apple
12+
[tester::#MR9] $ echo -n "blueberry" | ./your_grep.sh -E "\w"
13+
[your_program] blueberry
1414
[tester::#MR9] ✓ Received exit code 0.
15-
[tester::#MR9] $ echo -n "BLUEBERRY" | ./your_grep.sh -E "\w"
16-
[your_program] BLUEBERRY
15+
[tester::#MR9] $ echo -n "BANANA" | ./your_grep.sh -E "\w"
16+
[your_program] BANANA
1717
[tester::#MR9] ✓ Received exit code 0.
18-
[tester::#MR9] $ echo -n "503" | ./your_grep.sh -E "\w"
19-
[your_program] 503
18+
[tester::#MR9] $ echo -n "650" | ./your_grep.sh -E "\w"
19+
[your_program] 650
2020
[tester::#MR9] ✓ Received exit code 0.
21-
[tester::#MR9] $ echo -n "-÷€_×÷+" | ./your_grep.sh -E "\w"
22-
[your_program] -÷€_×÷+
21+
[tester::#MR9] $ echo -n "$+÷_-÷+" | ./your_grep.sh -E "\w"
22+
[your_program] $+÷_-÷+
2323
[tester::#MR9] ✓ Received exit code 0.
24-
[tester::#MR9] $ echo -n "×$€-+÷" | ./your_grep.sh -E "\w"
24+
[tester::#MR9] $ echo -n "€-×+$÷" | ./your_grep.sh -E "\w"
2525
[tester::#MR9] ✓ Received exit code 1.
2626
[tester::#MR9] Test passed.
2727

internal/test_helpers/fixtures/start_of_string_anchor/success

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,19 @@
5252
[tester::#TL6] Test passed.
5353

5454
[tester::#MR9] Running tests for Stage #MR9 (mr9)
55-
[tester::#MR9] $ echo -n "apple" | ./your_grep.sh -E "\w"
56-
[your_program] apple
55+
[tester::#MR9] $ echo -n "blueberry" | ./your_grep.sh -E "\w"
56+
[your_program] blueberry
5757
[tester::#MR9] ✓ Received exit code 0.
58-
[tester::#MR9] $ echo -n "BLUEBERRY" | ./your_grep.sh -E "\w"
59-
[your_program] BLUEBERRY
58+
[tester::#MR9] $ echo -n "BANANA" | ./your_grep.sh -E "\w"
59+
[your_program] BANANA
6060
[tester::#MR9] ✓ Received exit code 0.
61-
[tester::#MR9] $ echo -n "503" | ./your_grep.sh -E "\w"
62-
[your_program] 503
61+
[tester::#MR9] $ echo -n "650" | ./your_grep.sh -E "\w"
62+
[your_program] 650
6363
[tester::#MR9] ✓ Received exit code 0.
64-
[tester::#MR9] $ echo -n "-÷€_×÷+" | ./your_grep.sh -E "\w"
65-
[your_program] -÷€_×÷+
64+
[tester::#MR9] $ echo -n "$+÷_-÷+" | ./your_grep.sh -E "\w"
65+
[your_program] $+÷_-÷+
6666
[tester::#MR9] ✓ Received exit code 0.
67-
[tester::#MR9] $ echo -n "×$€-+÷" | ./your_grep.sh -E "\w"
67+
[tester::#MR9] $ echo -n "€-×+$÷" | ./your_grep.sh -E "\w"
6868
[tester::#MR9] ✓ Received exit code 1.
6969
[tester::#MR9] Test passed.
7070

0 commit comments

Comments
 (0)