about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-09-24T18·23+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-09-24T18·23+0000
commit0e705391dbe5340154d59106e591671923d107d0 (patch)
tree47a7b7bce403a3b622f59476c143a202d9163ba6 /tests
parente47e0c2dbe808f299eb912da94640b95954703f7 (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.exp1
-rw-r--r--tests/lang/eval-okay-pathexists.nix3
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 0000000000..2015847b65
--- /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 0000000000..cabd6d9c75
--- /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