rename make-mutants because these aren't mutants in the usual sense of the testing literature
This commit is contained in:
parent
bc9729358a
commit
4a3e80d22b
|
@ -24,7 +24,7 @@
|
||||||
(define (get-directories names)
|
(define (get-directories names)
|
||||||
(map get-directory names))
|
(map get-directory names))
|
||||||
|
|
||||||
(define (make-mutants directory)
|
(define (apply-diffs directory)
|
||||||
(cond
|
(cond
|
||||||
[directory
|
[directory
|
||||||
(define files
|
(define files
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
(copy-file base name #t)
|
(copy-file base name #t)
|
||||||
(system* (find-executable-path "patch") name (path->string f)))]
|
(system* (find-executable-path "patch") name (path->string f)))]
|
||||||
[else
|
[else
|
||||||
(map make-mutants (get-directories directories))]))
|
(for-each apply-diffs (get-directories directories))]))
|
||||||
|
|
||||||
(define (get-base-stem files)
|
(define (get-base-stem files)
|
||||||
(car (filter-map (λ (f) (regexp-match #rx"^(.*)-base\\.rkt$" (path->string f))) files)))
|
(car (filter-map (λ (f) (regexp-match #rx"^(.*)-base\\.rkt$" (path->string f))) files)))
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
(begin
|
(begin
|
||||||
(when dir
|
(when dir
|
||||||
(unless (member dir directories)
|
(unless (member dir directories)
|
||||||
(raise-user-error 'make-mutants.rkt
|
(raise-user-error 'apply-diffs.rkt
|
||||||
"expected one of the following directories: ~s"
|
"expected one of the following directories: ~s, got ~a"
|
||||||
directories)))
|
dir directories)))
|
||||||
(void (make-mutants dir)))))
|
(apply-diffs dir))))
|
Loading…
Reference in New Issue
Block a user