diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-09-24T18·23+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-09-24T18·23+0000 |
commit | 0e705391dbe5340154d59106e591671923d107d0 (patch) | |
tree | 47a7b7bce403a3b622f59476c143a202d9163ba6 /tests | |
parent | e47e0c2dbe808f299eb912da94640b95954703f7 (diff) |
* Primop `toPath' to convert a string to a path.
* Primop `pathExists' to check for path existence.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lang/eval-okay-pathexists.exp | 1 | ||||
-rw-r--r-- | tests/lang/eval-okay-pathexists.nix | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/lang/eval-okay-pathexists.exp b/tests/lang/eval-okay-pathexists.exp new file mode 100644 index 000000000000..2015847b65e7 --- /dev/null +++ b/tests/lang/eval-okay-pathexists.exp @@ -0,0 +1 @@ +Bool(True) diff --git a/tests/lang/eval-okay-pathexists.nix b/tests/lang/eval-okay-pathexists.nix new file mode 100644 index 000000000000..cabd6d9c75f3 --- /dev/null +++ b/tests/lang/eval-okay-pathexists.nix @@ -0,0 +1,3 @@ +builtins.pathExists (builtins.toPath ./lib.nix) +&& builtins.pathExists ./lib.nix +&& !builtins.pathExists ./bla.nix |