diff options
author | Louis Pilfold <louis@lpil.uk> | 2020-06-18 21:57:06 +0100 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2020-06-18 21:57:06 +0100 |
commit | 8acab03caea114f5abbe40af59e1f6de207bce91 (patch) | |
tree | 14f0fecf4fbe7fde584cdfb02ce238d449ab894f /test | |
parent | eb0224d3f26c4fd90894bac5fb346c2aa3533efe (diff) | |
download | gleam_stdlib-8acab03caea114f5abbe40af59e1f6de207bce91.tar.gz gleam_stdlib-8acab03caea114f5abbe40af59e1f6de207bce91.zip |
Consistent test names
Diffstat (limited to 'test')
-rw-r--r-- | test/gleam/result_test.gleam | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/gleam/result_test.gleam b/test/gleam/result_test.gleam index 9bfbe66..4abc983 100644 --- a/test/gleam/result_test.gleam +++ b/test/gleam/result_test.gleam @@ -17,7 +17,7 @@ pub fn is_error_test() { |> should.be_true } -pub fn map_result_test() { +pub fn map_test() { Ok(1) |> result.map(fn(x) { x + 1 }) |> should.equal(Ok(2)) @@ -41,7 +41,7 @@ pub fn map_error_test() { |> should.equal(Error(tuple("ok", 2))) } -pub fn flatten_result_test() { +pub fn flatten_test() { Ok(Ok(1)) |> result.flatten |> should.equal(Ok(1)) @@ -59,7 +59,7 @@ pub fn flatten_result_test() { |> should.equal(Error(Error(1))) } -pub fn then_result_test() { +pub fn then_test() { Error(1) |> result.then(fn(x) { Ok(x + 1) }) |> should.equal(Error(1)) @@ -77,7 +77,7 @@ pub fn then_result_test() { |> should.equal(Error(1)) } -pub fn unwrap_result_test() { +pub fn unwrap_test() { Ok(1) |> result.unwrap(50) |> should.equal(1) @@ -101,7 +101,7 @@ pub fn nil_error_test() { |> should.equal(Ok(1)) } -pub fn or_result_test() { +pub fn or_test() { Ok(1) |> result.or(Ok(2)) |> should.equal(Ok(1)) |