aboutsummaryrefslogtreecommitdiffstats
path: root/test/testdata/eval-okay-search-path.nix
diff options
context:
space:
mode:
authorRutger Broekhoff2025-07-07 21:52:08 +0200
committerRutger Broekhoff2025-07-07 21:52:08 +0200
commitba61dfd69504ec6263a9dee9931d93adeb6f3142 (patch)
treed6c9b78e50eeab24e0c1c09ab45909a6ae3fd5db /test/testdata/eval-okay-search-path.nix
downloadverified-dyn-lang-interp-ba61dfd69504ec6263a9dee9931d93adeb6f3142.tar.gz
verified-dyn-lang-interp-ba61dfd69504ec6263a9dee9931d93adeb6f3142.zip
Initialize repository
Diffstat (limited to 'test/testdata/eval-okay-search-path.nix')
-rw-r--r--test/testdata/eval-okay-search-path.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/testdata/eval-okay-search-path.nix b/test/testdata/eval-okay-search-path.nix
new file mode 100644
index 0000000..6fe33de
--- /dev/null
+++ b/test/testdata/eval-okay-search-path.nix
@@ -0,0 +1,10 @@
1with import ./lib.nix;
2with builtins;
3
4assert isFunction (import <nix/fetchurl.nix>);
5
6assert length __nixPath == 5;
7assert length (filter (x: baseNameOf x.path == "dir4") __nixPath) == 1;
8
9import <a.nix> + import <b.nix> + import <c.nix> + import <dir5/c.nix>
10 + (let __nixPath = [ { path = ./dir2; } { path = ./dir1; } ]; in import <a.nix>)