Skip to content

Commit 585365a

Browse files
committed
stdlib: Cuddle shell_doc_SUITE:columns
The "-spec" line is not wrapped at shell_docs_column (right or wrong?). So don't use columns values shorter than its length (30).
1 parent a4a0c5c commit 585365a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/stdlib/test/shell_docs_SUITE.erl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -628,9 +628,9 @@ columns(_Config) ->
628628
lists:max(lists:map(fun string:length/1, Lines))
629629
end,
630630

631-
application:set_env(stdlib, shell_docs_columns, 30),
632-
?assert(MaxColumns(#{}) =< 30),
633-
?assert(MaxColumns(#{columns => 20}) =< 20),
631+
application:set_env(stdlib, shell_docs_columns, 40),
632+
?assert(MaxColumns(#{}) =< 40),
633+
?assert(MaxColumns(#{columns => 30}) =< 30),
634634

635635
application:set_env(stdlib, shell_docs_columns, not_an_integer),
636636
?assert(MaxColumns(#{}) > 30),
@@ -643,7 +643,7 @@ columns(_Config) ->
643643

644644
application:unset_env(stdlib, shell_docs_columns),
645645
?assert(MaxColumns(#{}) > 30),
646-
?assert(MaxColumns(#{columns => 20}) =< 20),
646+
?assert(MaxColumns(#{columns => 30}) =< 30),
647647

648648
ok.
649649

0 commit comments

Comments
 (0)