about summary refs log tree commit diff
path: root/tests/lang/eval-okay-search-path.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lang/eval-okay-search-path.nix')
-rw-r--r--tests/lang/eval-okay-search-path.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/lang/eval-okay-search-path.nix b/tests/lang/eval-okay-search-path.nix
index 9b711502336b..c9ea768a417d 100644
--- a/tests/lang/eval-okay-search-path.nix
+++ b/tests/lang/eval-okay-search-path.nix
@@ -1,3 +1,10 @@
-assert builtins.pathExists <nix/buildenv.nix>;
+with import ./lib.nix;
+with builtins;
+
+assert pathExists <nix/buildenv.nix>;
+
+assert length nixPath == 3;
+assert length (filter (x: x.prefix == "nix") nixPath) == 1;
+assert length (filter (x: baseNameOf x.path == "dir4") nixPath) == 1;
 
 import <a.nix> + import <b.nix> + import <c.nix> + import <dir5/c.nix>