mirror of
https://github.com/Cian-H/dotfiles.git
synced 2025-12-31 06:31:59 +00:00
This change allows the dotfiles to work with chezmoi (e.g: on windows) and improves grepability with neovim/telescope
13 lines
367 B
Nu
13 lines
367 B
Nu
use std assert
|
|
use ../std-rfc str
|
|
|
|
export def "test append" [] {
|
|
assert equal ("foo" | str append "/") "foo/"
|
|
assert equal (["foo", "bar", "baz"] | str append "/") ["foo/", "bar/", "baz/"]
|
|
}
|
|
|
|
export def "test prepend" [] {
|
|
assert equal ("foo" | str prepend "/") "/foo"
|
|
assert equal (["foo", "bar", "baz"] | str prepend "/") ["/foo", "/bar", "/baz"]
|
|
}
|