From ba61dfd69504ec6263a9dee9931d93adeb6f3142 Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Mon, 7 Jul 2025 21:52:08 +0200 Subject: Initialize repository --- test/testdata/eval-okay-search-path.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/testdata/eval-okay-search-path.nix (limited to 'test/testdata/eval-okay-search-path.nix') 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 @@ +with import ./lib.nix; +with builtins; + +assert isFunction (import ); + +assert length __nixPath == 5; +assert length (filter (x: baseNameOf x.path == "dir4") __nixPath) == 1; + +import + import + import + import + + (let __nixPath = [ { path = ./dir2; } { path = ./dir1; } ]; in import ) -- cgit v1.2.3