Skip to content

Commit

Permalink
path: Add test for next line control char in path
Browse files Browse the repository at this point in the history
  • Loading branch information
codyopel committed Sep 15, 2024
1 parent 58c3186 commit 1b00deb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions path_test.elv
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit 1b00deb

Please sign in to comment.