aboutsummaryrefslogtreecommitdiff
path: root/test/list_test.gleam
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2019-04-22 22:33:15 +0000
committerLouis Pilfold <louis@lpil.uk>2019-04-22 22:33:15 +0000
commit077aaf3468c640b84ff53fc92171292ddae55bf4 (patch)
treea152edcc2240f053681ca6ba315dfeb9ed8fa793 /test/list_test.gleam
parentafdabad5cd2df77eb3f309aab9da3d34e36a0b49 (diff)
downloadgleam_stdlib-077aaf3468c640b84ff53fc92171292ddae55bf4.tar.gz
gleam_stdlib-077aaf3468c640b84ff53fc92171292ddae55bf4.zip
Int and float modules
Diffstat (limited to 'test/list_test.gleam')
-rw-r--r--test/list_test.gleam3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/list_test.gleam b/test/list_test.gleam
index 493dfb7..ba5c4c5 100644
--- a/test/list_test.gleam
+++ b/test/list_test.gleam
@@ -1,5 +1,6 @@
import expect
import list
+import int
import str
pub fn length_test() {
@@ -255,7 +256,7 @@ pub fn index_map_test() {
|> expect:equal(_, [{0, 3}, {1, 4}, {2, 5}])
let f = fn(i, x) {
- str:append(x, str:from_int(i))
+ str:append(x, int:to_string(i))
}
list:index_map(["a", "b", "c"], f)
|> expect:equal(_, ["a0", "b1", "c2"])