From 1b00deb099b6262494d246c03f563a6240966f99 Mon Sep 17 00:00:00 2001 From: "Cody W. Opel" Date: Sun, 15 Sep 2024 14:53:34 -0500 Subject: [PATCH] path: Add test for next line control char in path --- path_test.elv | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/path_test.elv b/path_test.elv index b6b87e8..da3f177 100644 --- a/path_test.elv +++ b/path_test.elv @@ -19,3 +19,9 @@ test:assert { (path:relative-to $E:HOME'/.local' $E:HOME'/.config/elvish') ^ '../../.local' } + +test:assert { + var path_ = "File with \u0085 a next line control char.mp4" + var escaped = (path:escape-input $path_) + ==s $escaped "File` with` `\u0085` a` next` line` control` char.mp4" +}