aboutsummaryrefslogtreecommitdiff
path: root/test/std/string_test.gleam
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2019-06-25 22:48:07 +0100
committerLouis Pilfold <louis@lpil.uk>2019-06-25 22:48:07 +0100
commit2c2541750ca4b7b604070c75c18d84be833c97d5 (patch)
treef5e63d941a1c7e2c2d4dff1d81c43fa2766308ae /test/std/string_test.gleam
parent96c20b8ebf8420fbba75c97fa08eaeb34e8dc394 (diff)
downloadgleam_stdlib-2c2541750ca4b7b604070c75c18d84be833c97d5.tar.gz
gleam_stdlib-2c2541750ca4b7b604070c75c18d84be833c97d5.zip
stdlib namespace std -> gleam
Diffstat (limited to 'test/std/string_test.gleam')
-rw-r--r--test/std/string_test.gleam50
1 files changed, 0 insertions, 50 deletions
diff --git a/test/std/string_test.gleam b/test/std/string_test.gleam
deleted file mode 100644
index dd8a00e..0000000
--- a/test/std/string_test.gleam
+++ /dev/null
@@ -1,50 +0,0 @@
-import std/string
-import std/expect
-
-pub fn length_test() {
- string:length("ß↑e̊")
- |> expect:equal(_, 3)
-
- string:length("Gleam")
- |> expect:equal(_, 5)
-
- string:length("")
- |> expect:equal(_, 0)
-}
-
-pub fn lowercase_test() {
- string:lowercase("Gleam")
- |> expect:equal(_, "gleam")
-}
-
-pub fn uppercase_test() {
- string:uppercase("Gleam")
- |> expect:equal(_, "GLEAM")
-}
-
-pub fn reverse_test() {
- string:reverse("Gleam")
- |> expect:equal(_, "maelG")
-}
-
-pub fn split_test() {
- "Gleam,Erlang,Elixir"
- |> string:split(_, ",")
- |> expect:equal(_, ["Gleam", "Erlang", "Elixir"])
-
- "Gleam, Erlang,Elixir"
- |> string:split(_, ", ")
- |> expect:equal(_, ["Gleam", "Erlang,Elixir"])
-}
-
-pub fn replace_test() {
- "Gleam,Erlang,Elixir"
- |> string:replace(_, ",", "++")
- |> expect:equal(_, "Gleam++Erlang++Elixir")
-}
-
-pub fn append_test() {
- "Test"
- |> string:append(_, " Me")
- |> expect:equal(_, "Test Me")
-}