aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorIvan Habunek <ivan@habunek.com>2022-12-08 17:48:20 +0100
committerLouis Pilfold <louis@lpil.uk>2022-12-08 16:55:46 +0000
commit39d5b221f7c28e76262fc7e8b0746152a46c97c5 (patch)
tree16711c48b676acbdcebe8288d542731807c92e02 /test
parentccd0f0dd912e15b3a4b73c2eb218c9e18c94b353 (diff)
downloadgleam_stdlib-39d5b221f7c28e76262fc7e8b0746152a46c97c5.tar.gz
gleam_stdlib-39d5b221f7c28e76262fc7e8b0746152a46c97c5.zip
Make list.at return an error given sub-zero index
Diffstat (limited to 'test')
-rw-r--r--test/gleam/list_test.gleam2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/gleam/list_test.gleam b/test/gleam/list_test.gleam
index d09dfc0..ce865e4 100644
--- a/test/gleam/list_test.gleam
+++ b/test/gleam/list_test.gleam
@@ -537,7 +537,7 @@ pub fn at_test() {
|> should.equal(Error(Nil))
list.at([1, 2, 3, 4, 5, 6], -1)
- |> should.equal(Ok(1))
+ |> should.equal(Error(Nil))
}
pub fn unique_test() {