diff options
author | Ahmad Sattar <thehabbos007@gmail.com> | 2020-06-17 22:36:05 +0200 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2020-06-18 21:54:48 +0100 |
commit | 4847d930304dc6873d01da3fc290650b21c9a9bc (patch) | |
tree | 7286057e710254f84c69925f787acdb632b6c08b /test | |
parent | 56228f9a5ecfef7fb968d08894a7cc4ce0dfdbae (diff) | |
download | gleam_stdlib-4847d930304dc6873d01da3fc290650b21c9a9bc.tar.gz gleam_stdlib-4847d930304dc6873d01da3fc290650b21c9a9bc.zip |
Unique test names
Diffstat (limited to 'test')
-rw-r--r-- | test/gleam/result_test.gleam | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/gleam/result_test.gleam b/test/gleam/result_test.gleam index 2fa9298..f6d7f6d 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_test() { +pub fn map_result_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_test() { +pub fn flatten_result_test() { Ok(Ok(1)) |> result.flatten |> should.equal(Ok(1)) @@ -59,7 +59,7 @@ pub fn flatten_test() { |> should.equal(Error(Error(1))) } -pub fn then_test() { +pub fn then_result_test() { Error(1) |> result.then(fn(x) { Ok(x + 1) }) |> should.equal(Error(1)) @@ -77,7 +77,7 @@ pub fn then_test() { |> should.equal(Error(1)) } -pub fn unwrap_test() { +pub fn unwrap_result_test() { Ok(1) |> result.unwrap(50) |> should.equal(1) |