Tests corrected.
This commit is contained in:
@@ -50,15 +50,15 @@
|
||||
(define error-text (get-output-string errors))
|
||||
(check-true
|
||||
(regexp-match?
|
||||
#px"^real\\t[0-9]+[.][0-9]{3}s\ncpu\\t[0-9]+[.][0-9]{3}s\ngc\\t[0-9]+[.][0-9]{3}s\n$"
|
||||
#px"^real\t[0-9]+[.][0-9]{3}s\ncpu\t[0-9]+[.][0-9]{3}s\ngc\t[0-9]+[.][0-9]{3}s\n$"
|
||||
error-text))
|
||||
(define text (get-output-string output))
|
||||
(check-true (regexp-match? #rx"hello from rash-coreutils" text))
|
||||
(check-true (regexp-match? #rx"info[.]rkt" text))
|
||||
(check-true (regexp-match? #rx"42" text))
|
||||
(check-true (regexp-match? #rx"timed" text))
|
||||
(check-equal? (path->string (first edited)) "info.rkt")
|
||||
(check-true (second edited))
|
||||
(check-equal? (path->string (car edited)) "info.rkt")
|
||||
(check-true (cadr edited))
|
||||
(check-true (regexp-match? #rx"\n3\n" text))
|
||||
(check-true (regexp-match? #px"[0-9]{4}-[0-9]{2}-[0-9]{2}T" text)))
|
||||
(λ ()
|
||||
|
||||
Reference in New Issue
Block a user