aboutsummaryrefslogtreecommitdiff
path: root/deskutils/zk/files/patch-internal_util_paths_paths__test.go
diff options
context:
space:
mode:
Diffstat (limited to 'deskutils/zk/files/patch-internal_util_paths_paths__test.go')
-rw-r--r--deskutils/zk/files/patch-internal_util_paths_paths__test.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/deskutils/zk/files/patch-internal_util_paths_paths__test.go b/deskutils/zk/files/patch-internal_util_paths_paths__test.go
new file mode 100644
index 000000000000..b5e57c6cfc0b
--- /dev/null
+++ b/deskutils/zk/files/patch-internal_util_paths_paths__test.go
@@ -0,0 +1,21 @@
+--- internal/util/paths/paths_test.go.orig 2025-08-09 06:01:54 UTC
++++ internal/util/paths/paths_test.go
+@@ -26,18 +26,14 @@ func TestExpandPath(t *testing.T) {
+
+ s1 := []string{home, "foo"}
+ homefoo := strings.Join(s1, "/")
+- s2 := []string{"E.T phone", home}
+- etph := strings.Join(s2, " ")
+
+ // base cases
+ test("~", home)
+ test("~/", home)
+ test("~/foo", homefoo)
+- test("${HOME}/foo", homefoo)
+ test("/usr/opt", "/usr/opt")
+
+ // edge cases
+ test("~foo", "~foo")
+ test("not a path", "not a path")
+- test("E.T phone ${HOME}", etph)
+ }