11
22# --- Start of tests ---
33
4- # Platform and Python version we're using to run tests.
5- uname
6- Darwin
74
8- python -V
9- Python 3.12.7
105
116run || expect_error
127usage: repren.py [-h] [--version] [--from FROM_PAT] [--to TO_PAT]
@@ -161,9 +156,9 @@ Using 5 patterns:
161156 'Asia' -> 'Asia!'
162157 'Europe' -> 'Europe!'
163158Found 12 files in: test4
159+ - modify: test4/stuff/trees/beech.txt: 8 matches
164160- modify: test4/stuff/trees/maple.txt: 3 matches
165161- modify: test4/stuff/trees/oak.txt: 3 matches
166- - modify: test4/stuff/trees/beech.txt: 8 matches
167162Read 12 files (3810 chars), found 14 matches (0 skipped due to overlaps)
168163Changed 3 files (3 rewritten and 0 renamed)
169164
@@ -205,12 +200,12 @@ Using 5 patterns:
205200Found 12 files in: test5
206201- modify: test5/humpty-dumpty.txt: 6 matches
207202- 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
212203- modify: test5/stuff/trees/beech.txt: 10 matches
213204- rename: test5/stuff/trees/beech.txt -> test5/stuff/trees/BEECH.txt
205+ - modify: test5/stuff/trees/maple.txt: 3 matches
206+ - modify: test5/stuff/trees/oak.txt: 3 matches
207+ - rename: test5/stuff/words/Asia -> test5/stuff/words/Asia!
208+ - rename: test5/stuff/words/Europe -> test5/stuff/words/Europe!
214209Read 12 files (3810 chars), found 22 matches (0 skipped due to overlaps)
215210Changed 6 files (4 rewritten and 4 renamed)
216211
@@ -291,17 +286,17 @@ Using 6 patterns:
291286 'c' -> 'a'
292287Found 12 files in: test7
293288- 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
289+ - modify: test7/stuff/trees/beech.txt: 180 matches
290+ - rename: test7/stuff/trees/beech.txt -> test7/stuff/trees/ceeah.txt
299291- modify: test7/stuff/trees/maple.txt: 43 matches
300292- rename: test7/stuff/trees/maple.txt -> test7/stuff/trees/mbple.txt
301293- modify: test7/stuff/trees/oak.txt: 161 matches
302294- 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
295+ - rename: test7/stuff/words/Asia -> test7/stuff/words/Bsib
296+ - rename: test7/stuff/words/Mexico -> test7/stuff/words/Mexiao
297+ - rename: test7/stuff/words/genetic -> test7/stuff/words/genetia
298+ - rename: test7/stuff/words/oak -> test7/stuff/words/obk
299+ - rename: test7/stuff/words/second -> test7/stuff/words/seaond
305300Read 12 files (3810 chars), found 424 matches (0 skipped due to overlaps)
306301Changed 9 files (4 rewritten and 8 renamed)
307302
@@ -315,17 +310,17 @@ Using 6 patterns:
315310 'c' -> 'a'
316311Found 12 files in: test7
317312- 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
323313- modify: test7/stuff/trees/ceeah.txt: 180 matches
324314- 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
327315- modify: test7/stuff/trees/mbple.txt: 43 matches
328316- rename: test7/stuff/trees/mbple.txt -> test7/stuff/trees/mcple.txt
317+ - modify: test7/stuff/trees/obk.txt: 161 matches
318+ - rename: test7/stuff/trees/obk.txt -> test7/stuff/trees/ock.txt
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/genetia -> test7/stuff/words/genetib
322+ - rename: test7/stuff/words/obk -> test7/stuff/words/ock
323+ - rename: test7/stuff/words/seaond -> test7/stuff/words/sebond
329324Read 12 files (3810 chars), found 424 matches (0 skipped due to overlaps)
330325Changed 9 files (4 rewritten and 8 renamed)
331326
@@ -339,17 +334,17 @@ Using 6 patterns:
339334 'c' -> 'a'
340335Found 12 files in: test7
341336- 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
349337- modify: test7/stuff/trees/aeebh.txt: 180 matches
350338- rename: test7/stuff/trees/aeebh.txt -> test7/stuff/trees/beech.txt
351339- modify: test7/stuff/trees/mcple.txt: 43 matches
352340- rename: test7/stuff/trees/mcple.txt -> test7/stuff/trees/maple.txt
341+ - modify: test7/stuff/trees/ock.txt: 161 matches
342+ - rename: test7/stuff/trees/ock.txt -> test7/stuff/trees/oak.txt
343+ - rename: test7/stuff/words/Csic -> test7/stuff/words/Asia
344+ - rename: test7/stuff/words/Mexibo -> test7/stuff/words/Mexico
345+ - rename: test7/stuff/words/genetib -> test7/stuff/words/genetic
346+ - rename: test7/stuff/words/ock -> test7/stuff/words/oak
347+ - rename: test7/stuff/words/sebond -> test7/stuff/words/second
353348Read 12 files (3810 chars), found 424 matches (0 skipped due to overlaps)
354349Changed 9 files (4 rewritten and 8 renamed)
355350
@@ -369,9 +364,9 @@ Using 3 patterns:
369364 '\bc\b' -> 'a'
370365Found 12 files in: test8
371366- modify: test8/humpty-dumpty.txt: 4 matches
367+ - modify: test8/stuff/trees/beech.txt: 4 matches
372368- modify: test8/stuff/trees/maple.txt: 2 matches
373369- modify: test8/stuff/trees/oak.txt: 6 matches
374- - modify: test8/stuff/trees/beech.txt: 4 matches
375370Read 12 files (3810 chars), found 16 matches (0 skipped due to overlaps)
376371Changed 4 files (4 rewritten and 0 renamed)
377372
0 commit comments