11
22# --- Start of tests ---
33
4- # Platform and Python version we're using to run tests.
5- uname
6- Darwin
7-
8- python -V
9- Python 3.12.7
10-
114run || expect_error
125usage: repren.py [-h] [--version] [--from FROM_PAT] [--to TO_PAT]
136 [-p PAT_FILE] [--full] [--renames] [--literal] [-i]
@@ -161,9 +154,9 @@ Using 5 patterns:
161154 'Asia' -> 'Asia!'
162155 'Europe' -> 'Europe!'
163156Found 12 files in: test4
157+ - modify: test4/stuff/trees/beech.txt: 8 matches
164158- modify: test4/stuff/trees/maple.txt: 3 matches
165159- modify: test4/stuff/trees/oak.txt: 3 matches
166- - modify: test4/stuff/trees/beech.txt: 8 matches
167160Read 12 files (3810 chars), found 14 matches (0 skipped due to overlaps)
168161Changed 3 files (3 rewritten and 0 renamed)
169162
@@ -205,12 +198,12 @@ Using 5 patterns:
205198Found 12 files in: test5
206199- modify: test5/humpty-dumpty.txt: 6 matches
207200- rename: test5/humpty-dumpty.txt -> test5/dumpty-humpty.txt
208- - rename: test5/stuff/words/Asia -> test5/stuff/words/Asia!
209- - rename: test5/stuff/words/Europe -> test5/stuff/words/Europe!
210- - modify: test5/stuff/trees/maple.txt: 3 matches
211- - modify: test5/stuff/trees/oak.txt: 3 matches
212201- modify: test5/stuff/trees/beech.txt: 10 matches
213202- rename: test5/stuff/trees/beech.txt -> test5/stuff/trees/BEECH.txt
203+ - modify: test5/stuff/trees/maple.txt: 3 matches
204+ - modify: test5/stuff/trees/oak.txt: 3 matches
205+ - rename: test5/stuff/words/Asia -> test5/stuff/words/Asia!
206+ - rename: test5/stuff/words/Europe -> test5/stuff/words/Europe!
214207Read 12 files (3810 chars), found 22 matches (0 skipped due to overlaps)
215208Changed 6 files (4 rewritten and 4 renamed)
216209
@@ -291,17 +284,17 @@ Using 6 patterns:
291284 'c' -> 'a'
292285Found 12 files in: test7
293286- modify: test7/humpty-dumpty.txt: 40 matches
294- - rename: test7/stuff/words/oak -> test7/stuff/words/obk
295- - rename: test7/stuff/words/genetic -> test7/stuff/words/genetia
296- - rename: test7/stuff/words/second -> test7/stuff/words/seaond
297- - rename: test7/stuff/words/Asia -> test7/stuff/words/Bsib
298- - rename: test7/stuff/words/Mexico -> test7/stuff/words/Mexiao
287+ - modify: test7/stuff/trees/beech.txt: 180 matches
288+ - rename: test7/stuff/trees/beech.txt -> test7/stuff/trees/ceeah.txt
299289- modify: test7/stuff/trees/maple.txt: 43 matches
300290- rename: test7/stuff/trees/maple.txt -> test7/stuff/trees/mbple.txt
301291- modify: test7/stuff/trees/oak.txt: 161 matches
302292- rename: test7/stuff/trees/oak.txt -> test7/stuff/trees/obk.txt
303- - modify: test7/stuff/trees/beech.txt: 180 matches
304- - rename: test7/stuff/trees/beech.txt -> test7/stuff/trees/ceeah.txt
293+ - rename: test7/stuff/words/Asia -> test7/stuff/words/Bsib
294+ - rename: test7/stuff/words/Mexico -> test7/stuff/words/Mexiao
295+ - rename: test7/stuff/words/genetic -> test7/stuff/words/genetia
296+ - rename: test7/stuff/words/oak -> test7/stuff/words/obk
297+ - rename: test7/stuff/words/second -> test7/stuff/words/seaond
305298Read 12 files (3810 chars), found 424 matches (0 skipped due to overlaps)
306299Changed 9 files (4 rewritten and 8 renamed)
307300
@@ -315,17 +308,17 @@ Using 6 patterns:
315308 'c' -> 'a'
316309Found 12 files in: test7
317310- modify: test7/humpty-dumpty.txt: 40 matches
318- - rename: test7/stuff/words/obk -> test7/stuff/words/ock
319- - rename: test7/stuff/words/Bsib -> test7/stuff/words/Csic
320- - rename: test7/stuff/words/Mexiao -> test7/stuff/words/Mexibo
321- - rename: test7/stuff/words/seaond -> test7/stuff/words/sebond
322- - rename: test7/stuff/words/genetia -> test7/stuff/words/genetib
323311- modify: test7/stuff/trees/ceeah.txt: 180 matches
324312- rename: test7/stuff/trees/ceeah.txt -> test7/stuff/trees/aeebh.txt
325- - modify: test7/stuff/trees/obk.txt: 161 matches
326- - rename: test7/stuff/trees/obk.txt -> test7/stuff/trees/ock.txt
327313- modify: test7/stuff/trees/mbple.txt: 43 matches
328314- rename: test7/stuff/trees/mbple.txt -> test7/stuff/trees/mcple.txt
315+ - modify: test7/stuff/trees/obk.txt: 161 matches
316+ - rename: test7/stuff/trees/obk.txt -> test7/stuff/trees/ock.txt
317+ - rename: test7/stuff/words/Bsib -> test7/stuff/words/Csic
318+ - rename: test7/stuff/words/Mexiao -> test7/stuff/words/Mexibo
319+ - rename: test7/stuff/words/genetia -> test7/stuff/words/genetib
320+ - rename: test7/stuff/words/obk -> test7/stuff/words/ock
321+ - rename: test7/stuff/words/seaond -> test7/stuff/words/sebond
329322Read 12 files (3810 chars), found 424 matches (0 skipped due to overlaps)
330323Changed 9 files (4 rewritten and 8 renamed)
331324
@@ -339,17 +332,17 @@ Using 6 patterns:
339332 'c' -> 'a'
340333Found 12 files in: test7
341334- modify: test7/humpty-dumpty.txt: 40 matches
342- - rename: test7/stuff/words/Csic -> test7/stuff/words/Asia
343- - rename: test7/stuff/words/genetib -> test7/stuff/words/genetic
344- - rename: test7/stuff/words/Mexibo -> test7/stuff/words/Mexico
345- - rename: test7/stuff/words/sebond -> test7/stuff/words/second
346- - rename: test7/stuff/words/ock -> test7/stuff/words/oak
347- - modify: test7/stuff/trees/ock.txt: 161 matches
348- - rename: test7/stuff/trees/ock.txt -> test7/stuff/trees/oak.txt
349335- modify: test7/stuff/trees/aeebh.txt: 180 matches
350336- rename: test7/stuff/trees/aeebh.txt -> test7/stuff/trees/beech.txt
351337- modify: test7/stuff/trees/mcple.txt: 43 matches
352338- rename: test7/stuff/trees/mcple.txt -> test7/stuff/trees/maple.txt
339+ - modify: test7/stuff/trees/ock.txt: 161 matches
340+ - rename: test7/stuff/trees/ock.txt -> test7/stuff/trees/oak.txt
341+ - rename: test7/stuff/words/Csic -> test7/stuff/words/Asia
342+ - rename: test7/stuff/words/Mexibo -> test7/stuff/words/Mexico
343+ - rename: test7/stuff/words/genetib -> test7/stuff/words/genetic
344+ - rename: test7/stuff/words/ock -> test7/stuff/words/oak
345+ - rename: test7/stuff/words/sebond -> test7/stuff/words/second
353346Read 12 files (3810 chars), found 424 matches (0 skipped due to overlaps)
354347Changed 9 files (4 rewritten and 8 renamed)
355348
@@ -369,9 +362,9 @@ Using 3 patterns:
369362 '\bc\b' -> 'a'
370363Found 12 files in: test8
371364- modify: test8/humpty-dumpty.txt: 4 matches
365+ - modify: test8/stuff/trees/beech.txt: 4 matches
372366- modify: test8/stuff/trees/maple.txt: 2 matches
373367- modify: test8/stuff/trees/oak.txt: 6 matches
374- - modify: test8/stuff/trees/beech.txt: 4 matches
375368Read 12 files (3810 chars), found 16 matches (0 skipped due to overlaps)
376369Changed 4 files (4 rewritten and 0 renamed)
377370
0 commit comments