mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
Rename trimLeft to trimStart and trimRight to trimEnd
This commit is contained in:
parent
d10d71cdec
commit
97fa6758d0
16 changed files with 110 additions and 110 deletions
|
@ -286,12 +286,12 @@ fn list_concat_empty_list_zero_sized_type() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn str_trim_right_capacity() {
|
||||
fn str_trim_end_capacity() {
|
||||
valgrind_test(indoc!(
|
||||
r#"
|
||||
(
|
||||
str = "a" |> Str.reserve 30
|
||||
out = str |> Str.trimRight
|
||||
out = str |> Str.trimEnd
|
||||
|
||||
if out == "" then "A" else "B"
|
||||
)
|
||||
|
@ -300,12 +300,12 @@ fn str_trim_right_capacity() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn str_trim_left_capacity() {
|
||||
fn str_trim_start_capacity() {
|
||||
valgrind_test(indoc!(
|
||||
r#"
|
||||
(
|
||||
str = " a" |> Str.reserve 30
|
||||
out = str |> Str.trimLeft
|
||||
out = str |> Str.trimStart
|
||||
|
||||
if out == "" then "A" else "B"
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue