diff --git a/src/tests/stdlib/replace_once.ab b/src/tests/stdlib/replace_once.ab deleted file mode 100644 index 66821b5c..00000000 --- a/src/tests/stdlib/replace_once.ab +++ /dev/null @@ -1,19 +0,0 @@ -import * from "std/text" - -// Output -// TWO one one -// a\\b\c\d -// first..second -// third -// fourth -// mono -// di -// tri - -main { - echo replace_once("one one one", "one", "TWO") - echo replace_once("a\\b\\c\\d", "\\", "\\\\") - echo replace_once("first\nsecond\nthird\nfourth", "\n", "..") - // other newlines should not be touched - echo replace_once("mono\ndo\ntri", "do\n", "di\n") -} diff --git a/src/tests/stdlib/text_replace_one.ab b/src/tests/stdlib/text_replace_one.ab index e1cc16ba..54f0e4b6 100644 --- a/src/tests/stdlib/text_replace_one.ab +++ b/src/tests/stdlib/text_replace_one.ab @@ -1,5 +1,19 @@ import * from "std/text" +// Output +// TWO one one +// a\\b\c\d +// first..second +// third +// fourth +// mono +// di +// tri + main { - echo replace_one("Succinctly", "inctly", "eeded") + echo replace_one("one one one", "one", "TWO") + echo replace_one("a\\b\\c\\d", "\\", "\\\\") + echo replace_one("first\nsecond\nthird\nfourth", "\n", "..") + // other newlines should not be touched + echo replace_one("mono\ndo\ntri", "do\n", "di\n") }