mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
store: Add tests for 'store-path-package-name'.
* tests/store.scm ("store-path-package-name", "store-path-package-name #f"): New tests.
This commit is contained in:
parent
0b7e8e9d49
commit
c61a5b4a6d
1 changed files with 11 additions and 0 deletions
|
@ -65,6 +65,17 @@ (define (random-text)
|
|||
(string-append (%store-prefix)
|
||||
"/foo/bar/283gqy39v3g9dxjy26rynl0zls82fmcg-guile-2.0.7")))
|
||||
|
||||
(test-equal "store-path-package-name"
|
||||
"guile-2.0.7"
|
||||
(store-path-package-name
|
||||
(string-append (%store-prefix)
|
||||
"/283gqy39v3g9dxjy26rynl0zls82fmcg-guile-2.0.7")))
|
||||
|
||||
(test-equal "store-path-package-name #f"
|
||||
#f
|
||||
(store-path-package-name
|
||||
"/foo/bar/283gqy39v3g9dxjy26rynl0zls82fmcg-guile-2.0.7"))
|
||||
|
||||
(test-assert "direct-store-path?"
|
||||
(and (direct-store-path?
|
||||
(string-append (%store-prefix)
|
||||
|
|
Loading…
Reference in a new issue