mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-02 23:27:45 +00:00

Deprecates the existing `stdlib-candidate` directories in `nu_scripts` since `std-rfc` has now transitioned to the main repo. Updates readme and renamed directories.
12 lines
367 B
Text
12 lines
367 B
Text
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"]
|
|
}
|