Skip to content

Commit af8fb57

Browse files
committed
Try to fix tests
1 parent 4247ce5 commit af8fb57

7 files changed

+7
-18
lines changed

compiler-core/src/erlang.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ fn module_document<'a>(
296296
Ok(module.append(line()))
297297
}
298298

299+
#[allow(clippy::too_many_arguments)]
299300
fn register_imports_and_exports(
300301
definition: &TypedDefinition,
301302
exports: &mut Vec<Document<'_>>,

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@ 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/2, x/0]).
13+
-export([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-
2018
-file("project/test/my/mod.gleam", 2).
2119
-spec x() -> x().
2220
x() ->

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@ 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, pound/1]).
13+
-export([pound/1]).
1414
-export_type([money/0]).
1515

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

18-
pound(Field@0) -> {pound, Field@0}.
19-
2018
-file("project/test/my/mod.gleam", 2).
2119
-spec pound(integer()) -> money().
2220
pound(X) ->

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

Lines changed: 1 addition & 3 deletions
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([a/1, b/1, c/1, a/1]).
31+
-export([b/1, c/1, a/1]).
3232
-export_type([a/0, b/0, c/0]).
3333

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

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

40-
a(Field@0) -> {a, Field@0}.
41-
4240
b(Field@0) -> {b, Field@0}.
4341

4442
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: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@ 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/2, wibble/0]).
20+
-export([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-
2725
-file("project/test/my/mod.gleam", 6).
2826
-spec wibble() -> wibble(K, K).
2927
wibble() ->

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@ 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/2, wibble/0]).
20+
-export([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-
2725
-file("project/test/my/mod.gleam", 6).
2826
-spec wibble() -> wibble(K, wibble(K, any())).
2927
wibble() ->

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@ 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/2, wibble/0]).
20+
-export([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-
2725
-file("project/test/my/mod.gleam", 6).
2826
-spec wibble() -> {K, wibble(K, any())}.
2927
wibble() ->

0 commit comments

Comments
 (0)