aboutsummaryrefslogtreecommitdiff
path: root/gen/test
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2019-08-17 10:35:47 +0100
committerLouis Pilfold <louis@lpil.uk>2019-08-17 10:43:15 +0100
commitf90bd89adba09502b5a7ff188a910750257ef1b0 (patch)
tree10887e506df6ee671b41c2760c55cb14f72ddba4 /gen/test
parent46ae58fb4bf6c3229ee96c842aff66087ba1aa26 (diff)
downloadgleam_stdlib-f90bd89adba09502b5a7ff188a910750257ef1b0.tar.gz
gleam_stdlib-f90bd89adba09502b5a7ff188a910750257ef1b0.zip
Update stdlib for new struct syntax
Diffstat (limited to 'gen/test')
-rw-r--r--gen/test/gleam@any_test.erl14
1 files changed, 7 insertions, 7 deletions
diff --git a/gen/test/gleam@any_test.erl b/gen/test/gleam@any_test.erl
index 6c65706..c8deb45 100644
--- a/gen/test/gleam@any_test.erl
+++ b/gen/test/gleam@any_test.erl
@@ -1,7 +1,7 @@
-module(gleam@any_test).
-compile(no_auto_import).
--export([string_test/0, int_test/0, float_test/0, thunk_test/0, bool_test/0, atom_test/0, list_test/0, tuple_test/0, field_test/0]).
+-export([string_test/0, int_test/0, float_test/0, thunk_test/0, bool_test/0, atom_test/0, list_test/0, struct2_test/0, field_test/0]).
string_test() ->
gleam@expect:equal(gleam@any:string(gleam@any:from(<<"">>)), {ok, <<"">>}),
@@ -117,21 +117,21 @@ list_test() ->
)
).
-tuple_test() ->
+struct2_test() ->
gleam@expect:equal(
- gleam@any:tuple(gleam@any:from({1, []})),
+ gleam@any:struct2(gleam@any:from({1, []})),
{ok, {gleam@any:from(1), gleam@any:from([])}}
),
gleam@expect:equal(
- gleam@any:tuple(gleam@any:from({<<"ok">>, <<"ok">>})),
+ gleam@any:struct2(gleam@any:from({<<"ok">>, <<"ok">>})),
{ok, {gleam@any:from(<<"ok">>), gleam@any:from(<<"ok">>)}}
),
- gleam@expect:is_error(gleam@any:tuple(gleam@any:from({1}))),
- gleam@expect:is_error(gleam@any:tuple(gleam@any:from({1, 2, 3}))),
+ gleam@expect:is_error(gleam@any:struct2(gleam@any:from({1}))),
+ gleam@expect:is_error(gleam@any:struct2(gleam@any:from({1, 2, 3}))),
gleam@expect:equal(
gleam@result:then(
gleam@result:then(
- gleam@any:tuple(gleam@any:from({1, 2.0})),
+ gleam@any:struct2(gleam@any:from({1, 2.0})),
fun(X) ->
gleam@result:map(
gleam@any:int(gleam@tuple:first(X)),