diff options
Diffstat (limited to 'tests/inferior.scm')
| -rw-r--r-- | tests/inferior.scm | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/tests/inferior.scm b/tests/inferior.scm index 5e0f8ae66e0..ff5cad4210a 100644 --- a/tests/inferior.scm +++ b/tests/inferior.scm | |||
| @@ -45,9 +45,11 @@ | |||
| 45 | 45 | ||
| 46 | (test-equal "inferior-packages" | 46 | (test-equal "inferior-packages" |
| 47 | (take (sort (fold-packages (lambda (package lst) | 47 | (take (sort (fold-packages (lambda (package lst) |
| 48 | (alist-cons (package-name package) | 48 | (cons (list (package-name package) |
| 49 | (package-version package) | 49 | (package-version package) |
| 50 | lst)) | 50 | (package-home-page package) |
| 51 | (package-location package)) | ||
| 52 | lst)) | ||
| 51 | '()) | 53 | '()) |
| 52 | (lambda (x y) | 54 | (lambda (x y) |
| 53 | (string<? (car x) (car y)))) | 55 | (string<? (car x) (car y)))) |
| @@ -56,14 +58,18 @@ | |||
| 56 | #:command "scripts/guix")) | 58 | #:command "scripts/guix")) |
| 57 | (packages (inferior-packages inferior))) | 59 | (packages (inferior-packages inferior))) |
| 58 | (and (every string? (map inferior-package-synopsis packages)) | 60 | (and (every string? (map inferior-package-synopsis packages)) |
| 59 | (begin | 61 | (let () |
| 62 | (define result | ||
| 63 | (take (sort (map (lambda (package) | ||
| 64 | (list (inferior-package-name package) | ||
| 65 | (inferior-package-version package) | ||
| 66 | (inferior-package-home-page package) | ||
| 67 | (inferior-package-location package))) | ||
| 68 | packages) | ||
| 69 | (lambda (x y) | ||
| 70 | (string<? (car x) (car y)))) | ||
| 71 | 10)) | ||
| 60 | (close-inferior inferior) | 72 | (close-inferior inferior) |
| 61 | (take (sort (map (lambda (package) | 73 | result)))) |
| 62 | (cons (inferior-package-name package) | ||
| 63 | (inferior-package-version package))) | ||
| 64 | packages) | ||
| 65 | (lambda (x y) | ||
| 66 | (string<? (car x) (car y)))) | ||
| 67 | 10))))) | ||
| 68 | 74 | ||
| 69 | (test-end "inferior") | 75 | (test-end "inferior") |
