aboutsummaryrefslogtreecommitdiff
path: root/gen/test/list_test.erl
diff options
context:
space:
mode:
Diffstat (limited to 'gen/test/list_test.erl')
-rw-r--r--gen/test/list_test.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/gen/test/list_test.erl b/gen/test/list_test.erl
index 1944d25..3011c7e 100644
--- a/gen/test/list_test.erl
+++ b/gen/test/list_test.erl
@@ -136,6 +136,6 @@ sort_test() ->
index_map_test() ->
expect:equal(list:index_map([3, 4, 5], fun(I, X) -> {I, X} end),
[{0, 3}, {1, 4}, {2, 5}]),
- F = fun(I, X) -> str:append(X, str:from_int(I)) end,
+ F = fun(I, X) -> str:append(X, int:to_string(I)) end,
expect:equal(list:index_map([<<"a">>, <<"b">>, <<"c">>], F),
[<<"a0">>, <<"b1">>, <<"c2">>]).