Skip to content

Commit b1ecc46

Browse files
committed
Fix insta tests
1 parent af8fb57 commit b1ecc46

6 files changed

+18
-6
lines changed

compiler-core/src/erlang/snapshots/gleam_core__erlang__tests__integration_test19.snap

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ pub fn x() { X(x: 1, y: 2.) X(y: 3., x: 4) }
1010
-module(my@mod).
1111
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]).
1212
-define(FILEPATH, "project/test/my/mod.gleam").
13-
-export([x/0]).
13+
-export([x/2, x/0]).
1414
-export_type([x/0]).
1515

1616
-type x() :: {x, integer(), float()}.
1717

18+
x(Field@0, Field@1) -> {x, Field@0, Field@1}.
19+
1820
-file("project/test/my/mod.gleam", 2).
1921
-spec x() -> x().
2022
x() ->

compiler-core/src/erlang/snapshots/gleam_core__erlang__tests__integration_test1_1.snap

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ pub fn pound(x) { Pound(x) }
1010
-module(my@mod).
1111
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]).
1212
-define(FILEPATH, "project/test/my/mod.gleam").
13-
-export([pound/1]).
13+
-export([pound/1, pound/1]).
1414
-export_type([money/0]).
1515

1616
-type money() :: {pound, integer()}.
1717

18+
pound(Field@0) -> {pound, Field@0}.
19+
1820
-file("project/test/my/mod.gleam", 2).
1921
-spec pound(integer()) -> money().
2022
pound(X) ->

compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__guards__nested_record_access.snap

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pub fn a(a: A) {
2828
-module(my@mod).
2929
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]).
3030
-define(FILEPATH, "project/test/my/mod.gleam").
31-
-export([b/1, c/1, a/1]).
31+
-export([a/1, b/1, c/1, a/1]).
3232
-export_type([a/0, b/0, c/0]).
3333

3434
-type a() :: {a, b()}.
@@ -37,6 +37,8 @@ pub fn a(a: A) {
3737

3838
-type c() :: {c, boolean()}.
3939

40+
a(Field@0) -> {a, Field@0}.
41+
4042
b(Field@0) -> {b, Field@0}.
4143

4244
c(Field@0) -> {c, Field@0}.

compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__type_params__custom_type_named_args_count_once.snap

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ expression: "\n pub type Wibble(a, b) {\n Wibble(a, b)\n
1717
-module(my@mod).
1818
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]).
1919
-define(FILEPATH, "project/test/my/mod.gleam").
20-
-export([wibble/0]).
20+
-export([wibble/2, wibble/0]).
2121
-export_type([wibble/2]).
2222

2323
-type wibble(I, J) :: {wibble, I, J}.
2424

25+
wibble(Field@0, Field@1) -> {wibble, Field@0, Field@1}.
26+
2527
-file("project/test/my/mod.gleam", 6).
2628
-spec wibble() -> wibble(K, K).
2729
wibble() ->

compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__type_params__custom_type_nested_named_args_count_once.snap

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ expression: "\n pub type Wibble(a, b) {\n Wibble(a, b)\n
1717
-module(my@mod).
1818
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]).
1919
-define(FILEPATH, "project/test/my/mod.gleam").
20-
-export([wibble/0]).
20+
-export([wibble/2, wibble/0]).
2121
-export_type([wibble/2]).
2222

2323
-type wibble(I, J) :: {wibble, I, J}.
2424

25+
wibble(Field@0, Field@1) -> {wibble, Field@0, Field@1}.
26+
2527
-file("project/test/my/mod.gleam", 6).
2628
-spec wibble() -> wibble(K, wibble(K, any())).
2729
wibble() ->

compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__type_params__custom_type_tuple_type_params_count_twice.snap

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ expression: "\n pub type Wibble(a, b) {\n Wibble(a, b)\n
1717
-module(my@mod).
1818
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]).
1919
-define(FILEPATH, "project/test/my/mod.gleam").
20-
-export([wibble/0]).
20+
-export([wibble/2, wibble/0]).
2121
-export_type([wibble/2]).
2222

2323
-type wibble(I, J) :: {wibble, I, J}.
2424

25+
wibble(Field@0, Field@1) -> {wibble, Field@0, Field@1}.
26+
2527
-file("project/test/my/mod.gleam", 6).
2628
-spec wibble() -> {K, wibble(K, any())}.
2729
wibble() ->

0 commit comments

Comments
 (0)