Pre-path expand test paths to resolve to Windows paths

This commit is contained in:
Tim Martin 2024-06-28 16:51:36 -05:00
parent cf903a5b56
commit 70f27a9f53
No known key found for this signature in database
GPG Key ID: 19A52622B91D5DE3

View File

@ -38,7 +38,7 @@ def path_add [] {
std path add $target_paths
assert equal (get_path) ([($target_paths | get $nu.os-info.name)] | path expand)
load-env {$path_name: [$"/foo(char esep)/bar"]}
load-env {$path_name: [$"(["/foo", "/bar"] | path expand | str join (char esep))"]}
std path add "~/foo"
assert equal (get_path) (["~/foo", "/foo", "/bar"] | path expand)
}