mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 03:42:17 +00:00
Fix test
This commit is contained in:
parent
4cb3a06246
commit
b19d098e5f
1 changed files with 1 additions and 1 deletions
|
@ -666,7 +666,7 @@ replaceEachHelp = \buf, haystack, needle, flower ->
|
|||
|> Str.concat flower
|
||||
|> replaceEachHelp after needle flower
|
||||
|
||||
Err NotFound -> buf
|
||||
Err NotFound -> Str.concat buf haystack
|
||||
|
||||
expect Str.replaceEach "abXdeXghi" "X" "_" == "ab_de_ghi"
|
||||
expect Str.replaceEach "abcdefg" "nothing" "_" == "abcdefg"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue