Skip to content

Commit 2954616

Browse files
committed
Fix test inconsistencies
1 parent 361bcd2 commit 2954616

14 files changed

+28
-16
lines changed

test_app/after/src/brackets.erl

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
-module(brackets).
22

3-
-format #{inline_items => all, paper => 50}.
3+
-format #{inline_items => all}.
4+
-format #{paper => 50}.
45

56
-compile(export_all).
67

test_app/after/src/brackets_ignore.erl

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
%% This module should not be formatted since it's in the list of ignored modules
22
-module(brackets_ignore).
33

4-
-format(#{paper => 50, inline_items => all}).
4+
-format(#{paper => 50}).
5+
-format(#{inline_items => all}).
56

67
-compile(export_all).
78

test_app/after/src/inline_items/inline_items_when_over.erl

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
%% per line if they're larger than 5 elements.
44
-module(inline_items_when_over).
55

6-
-format #{inline_items => {when_over, 5}, paper => 80}.
6+
-format #{paper => 80}.
7+
-format #{inline_items => {when_over, 5}}.
78

89
-export([short_tuple/0, short_list/0, short_fun/0]).
910
-export([short_bin/0, short_guard/1, short_lc/0]).

test_app/after/src/inline_items/inline_items_when_under.erl

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
-module(inline_items_when_under).
22

3-
-format #{inline_items => {when_under, 5}, paper => 80}.
3+
-format #{paper => 80}.
4+
-format #{inline_items => {when_under, 5}}.
45

56
-export([short_tuple/0, short_list/0, short_fun/0]).
67
-export([short_bin/0, short_guard/1, short_lc/0]).

test_app/after/src/inline_items/inline_no_items.erl

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
%% per line if they're large.
44
-module(inline_no_items).
55

6-
-format #{inline_items => none, paper => 80}.
6+
-format #{inline_items => none}.
7+
-format #{paper => 80}.
78

89
-export([short_tuple/0, short_list/0, short_fun/0]).
910
-export([short_bin/0, short_guard/1, short_lc/0]).

test_app/after/src/inline_qualified_function_composition/function_composition_spaces.erl

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
-module(function_composition_spaces).
22

3-
-format #{inline_qualified_function_composition => true, spaces_around_arguments => true}.
3+
-format #{inline_qualified_function_composition => true}.
4+
-format #{spaces_around_arguments => true}.
45

56
-export([local_calls/3, external_calls/0]).
67

test_app/after/src/matches.erl

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
-compile(export_all).
22

3-
-format #{paper => 80, ribbon => 75}.
3+
-format #{paper => 80}.
4+
-format #{ribbon => 75}.
45

56
matches() ->
67
% Short

test_app/src/brackets.erl

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
-module(brackets).
22

3-
-format(#{inline_items => all, paper => 50}).
3+
-format(#{inline_items => all}).
4+
-format(#{paper => 50}).
45

56
-compile(export_all).
67

test_app/src/brackets_ignore.erl

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
%% This module should not be formatted since it's in the list of ignored modules
22
-module(brackets_ignore).
33

4-
-format(#{paper => 50, inline_items => all}).
4+
-format(#{paper => 50}).
5+
-format(#{inline_items => all}).
56

67
-compile(export_all).
78

test_app/src/inline_items/inline_items_when_over.erl

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
%% per line if they're larger than 5 elements.
44
-module inline_items_when_over.
55

6-
-format #{paper => 80, inline_items => {when_over, 5}}.
6+
-format #{paper => 80}.
7+
-format #{inline_items => {when_over, 5}}.
78

89
-export [short_tuple/0, short_list/0, short_fun/0].
910
-export [short_bin/0, short_guard/1, short_lc/0].
@@ -106,4 +107,3 @@ exact() ->
106107

107108
long() ->
108109
[these, items, should, be, inlined, they, are, more, than, 25, $., 'We', can, be, sure, about, that, because, we, added, a, very, long, number, 'of', items, to, this, list].
109-

test_app/src/inline_items/inline_items_when_under.erl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
-module inline_items_when_under.
22

3-
-format #{paper => 80, inline_items => {when_under, 5}}.
3+
-format #{paper => 80}.
4+
-format #{inline_items => {when_under, 5}}.
45

56
-export [short_tuple/0, short_list/0, short_fun/0].
67
-export [short_bin/0, short_guard/1, short_lc/0].
@@ -103,4 +104,3 @@ exact() ->
103104

104105
long() ->
105106
[these, items, should, be, inlined, they, are, more, than, 25, $., 'We', can, be, sure, about, that, because, we, added, a, very, long, number, 'of', items, to, this, list].
106-

test_app/src/inline_items/inline_no_items.erl

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
%% per line if they're large.
44
-module inline_no_items.
55

6-
-format #{inline_items => none, paper => 80}.
6+
-format #{inline_items => none}.
7+
-format #{paper => 80}.
78

89
-export [short_tuple/0, short_list/0, short_fun/0].
910
-export [short_bin/0, short_guard/1, short_lc/0].

test_app/src/inline_qualified_function_composition/function_composition_spaces.erl

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
-module(function_composition_spaces).
22

3-
-format #{spaces_around_arguments => true, inline_qualified_function_composition => true}.
3+
-format #{inline_qualified_function_composition => true}.
4+
-format #{spaces_around_arguments => true}.
45

56
-export([local_calls/3, external_calls/0]).
67

test_app/src/matches.erl

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
-compile(export_all).
22

3-
-format #{paper => 80, ribbon => 75}.
3+
-format #{paper => 80}.
4+
-format #{ribbon => 75}.
45

56
matches() ->
67
% Short

0 commit comments

Comments
 (0)