aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/gleam/string_test.gleam10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/gleam/string_test.gleam b/test/gleam/string_test.gleam
index 937df50..a98a2e2 100644
--- a/test/gleam/string_test.gleam
+++ b/test/gleam/string_test.gleam
@@ -364,3 +364,13 @@ pub fn to_option_test() {
|> string.to_option
|> should.equal(Some("ok"))
}
+
+pub fn first_test() {
+ ""
+ |> string.first
+ |> should.equal(None)
+
+ "gleam"
+ |> string.first
+ |> should.equal(Some("g"))
+}