diff options
author | José Valim <jose.valim@plataformatec.com.br> | 2017-10-09 14:01:09 +0200 |
---|---|---|
committer | José Valim <jose.valim@plataformatec.com.br> | 2017-10-09 14:11:38 +0200 |
commit | 0a752bb1b40bc165bc3e7b862d2eea779c2db8b3 (patch) | |
tree | 25127b4c9e47e34d37fc3c36dac3322a44f4cf1a /lib/elixir/test/elixir/code_formatter | |
parent | d0ada12a254359f3961dc030ae39249f13e71e22 (diff) | |
download | elixir-0a752bb1b40bc165bc3e7b862d2eea779c2db8b3.tar.gz |
Keep () in no args type funs for clarity
Diffstat (limited to 'lib/elixir/test/elixir/code_formatter')
-rw-r--r-- | lib/elixir/test/elixir/code_formatter/general_test.exs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/elixir/test/elixir/code_formatter/general_test.exs b/lib/elixir/test/elixir/code_formatter/general_test.exs index 3ed5cd63d..3911914b2 100644 --- a/lib/elixir/test/elixir/code_formatter/general_test.exs +++ b/lib/elixir/test/elixir/code_formatter/general_test.exs @@ -311,8 +311,8 @@ bar) describe "anonymous functions types" do test "with a single clause and no arguments" do - assert_format "(->:ok)", "(-> :ok)" - assert_same "(-> :really_long_atom)", @short_length + assert_format "(->:ok)", "(() -> :ok)" + assert_same "(() -> :really_long_atom)", @short_length assert_same "(() when node() == :nonode@nohost -> true)" end |