-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
30cde34
commit 9d014d2
Showing
18 changed files
with
112 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
elixir 1.13.0-otp-24 | ||
elixir 1.13.2-otp-24 | ||
erlang 24.1.7 |
2 changes: 1 addition & 1 deletion
2
smoke_test_data/elixir-1-13/project_with_formatted_code/.formatter.exs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Used by "mix format" | ||
[ | ||
plugins: [DoctestFormatter], | ||
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}", "{docs}/**/*.md", "*.md"] | ||
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
smoke_test_data/elixir-1-13/project_with_formatted_code/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
# ProjectWithUnformattedCode | ||
# ProjectWithFormattedCode | ||
|
||
**TODO: Add description** | ||
|
||
## Installation | ||
|
||
If [available in Hex](https://hex.pm/docs/publish), the package can be installed | ||
by adding `project_with_unformatted_code` to your list of dependencies in `mix.exs`: | ||
by adding `project_with_formatted_code` to your list of dependencies in `mix.exs`: | ||
|
||
```elixir | ||
def deps do | ||
[ | ||
{:project_with_unformatted_code, "~> 0.1.0"} | ||
{:project_with_formatted_code, "~> 0.1.0"} | ||
] | ||
end | ||
``` | ||
|
||
Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc) | ||
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can | ||
be found at <https://hexdocs.pm/project_with_unformatted_code>. | ||
be found at <https://hexdocs.pm/project_with_formatted_code>. | ||
|
21 changes: 0 additions & 21 deletions
21
smoke_test_data/elixir-1-13/project_with_formatted_code/docs/hello.md
This file was deleted.
Oops, something went wrong.
42 changes: 42 additions & 0 deletions
42
smoke_test_data/elixir-1-13/project_with_formatted_code/lib/project_with_formatted_code.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
defmodule ProjectWithFormattedCode do | ||
@moduledoc """ | ||
Documentation for `ProjectWithFormattedCode`. | ||
""" | ||
|
||
@doc """ | ||
Hello world. | ||
## Examples | ||
iex> ProjectWithFormattedCode.add(1, 2) | ||
3 | ||
iex> 1 | ||
...> |> ProjectWithFormattedCode.add(2) | ||
3 | ||
""" | ||
def add(a, b) do | ||
a + b | ||
end | ||
|
||
@doc """ | ||
iex> ProjectWithFormattedCode.subtract(5, 4) | ||
1 | ||
iex> [ | ||
...> 100_000_000_000, | ||
...> 200_000_000_000, | ||
...> 300_000_000_000, | ||
...> 400_000_000_000, | ||
...> 500_000_000_000, | ||
...> 600_000_000_000, | ||
...> 700_000_000_000 | ||
...> ] | ||
...> |> Enum.map(&ProjectWithFormattedCode.subtract(&1, 100_000_000_000)) | ||
[0, 100_000_000_000, 200_000_000_000, 300_000_000_000, 400_000_000_000, 500_000_000_000, 600_000_000_000] | ||
""" | ||
def subtract(a, b) do | ||
a - b | ||
end | ||
end |
18 changes: 0 additions & 18 deletions
18
smoke_test_data/elixir-1-13/project_with_formatted_code/lib/project_with_unformatted_code.ex
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
smoke_test_data/elixir-1-13/project_with_formatted_code/mix.exs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...st_data/elixir-1-13/project_with_formatted_code/test/project_with_formatted_code_test.exs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
defmodule ProjectWithFormattedCodeTest do | ||
use ExUnit.Case | ||
doctest ProjectWithFormattedCode | ||
end |
8 changes: 0 additions & 8 deletions
8
..._data/elixir-1-13/project_with_formatted_code/test/project_with_unformatted_code_test.exs
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
smoke_test_data/elixir-1-13/project_with_unformatted_code/.formatter.exs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Used by "mix format" | ||
[ | ||
plugins: [DoctestFormatter], | ||
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}", "{docs}/**/*.md", "*.md"] | ||
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"] | ||
] |
21 changes: 0 additions & 21 deletions
21
smoke_test_data/elixir-1-13/project_with_unformatted_code/docs/hello.md
This file was deleted.
Oops, something went wrong.
67 changes: 32 additions & 35 deletions
67
smoke_test_data/elixir-1-13/project_with_unformatted_code/expected_diff.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,42 @@ | ||
defmodule ExpectedDiff do | ||
def diff do | ||
""" | ||
diff --git a/smoke_test_data/elixir-1-13/project_with_unformatted_code/README.md b/smoke_test_data/elixir-1-13/project_with_unformatted_code/README.md | ||
index d066e9b..0ccfa0b 100644 | ||
--- a/smoke_test_data/elixir-1-13/project_with_unformatted_code/README.md | ||
+++ b/smoke_test_data/elixir-1-13/project_with_unformatted_code/README.md | ||
@@ -9,9 +9,9 @@ by adding `project_with_unformatted_code` to your list of dependencies in `mix.e | ||
diff --git a/smoke_test_data/elixir-1-13/project_with_unformatted_code/lib/project_with_unformatted_code.ex b/smoke_test_data/elixir-1-13/project_with_unformatted_code/lib/project_with_unformatted_code.ex | ||
index 4014a07..e1c0611 100644 | ||
--- a/smoke_test_data/elixir-1-13/project_with_unformatted_code/lib/project_with_unformatted_code.ex | ||
+++ b/smoke_test_data/elixir-1-13/project_with_unformatted_code/lib/project_with_unformatted_code.ex | ||
@@ -12,8 +12,8 @@ defmodule ProjectWithUnformattedCode do | ||
3 | ||
#{" "} | ||
```elixir | ||
def deps do | ||
-[ | ||
-{ :project_with_unformatted_code, "~> 0.1.0" } | ||
-] | ||
+ [ | ||
+ {:project_with_unformatted_code, "~> 0.1.0"} | ||
+ ] | ||
end | ||
``` | ||
iex> 1 | ||
- ...> |> ProjectWithUnformattedCode.add(2) | ||
- 3 | ||
+ ...> |> ProjectWithUnformattedCode.add(2) | ||
+ 3 | ||
#{" "} | ||
diff --git a/smoke_test_data/elixir-1-13/project_with_unformatted_code/docs/hello.md b/smoke_test_data/elixir-1-13/project_with_unformatted_code/docs/hello.md | ||
index 114bb32..8d4ffe5 100644 | ||
--- a/smoke_test_data/elixir-1-13/project_with_unformatted_code/docs/hello.md | ||
+++ b/smoke_test_data/elixir-1-13/project_with_unformatted_code/docs/hello.md | ||
@@ -1,7 +1,7 @@ | ||
# Hello! | ||
\""" | ||
def add(a, b) do | ||
@@ -21,10 +21,18 @@ defmodule ProjectWithUnformattedCode do | ||
end | ||
#{" "} | ||
~~~~elixir | ||
-%{ x: 7, y: 8} | ||
+%{x: 7, y: 8} | ||
~~~~ | ||
@doc \""" | ||
- iex> ProjectWithUnformattedCode.subtract( 5, 4 ) | ||
+ iex> ProjectWithUnformattedCode.subtract(5, 4) | ||
1 | ||
#{" "} | ||
[//]: # (elixir-formatter-disable-next-block) | ||
@@ -11,7 +11,7 @@ | ||
~~~~ | ||
#{" "} | ||
```elixir | ||
-%{ x: 7, y: 8} | ||
+%{x: 7, y: 8} | ||
``` | ||
#{" "} | ||
```markdown | ||
- iex> [100_000_000_000, 200_000_000_000, 300_000_000_000, 400_000_000_000, 500_000_000_000, 600_000_000_000, 700_000_000_000] | ||
+ iex> [ | ||
+ ...> 100_000_000_000, | ||
+ ...> 200_000_000_000, | ||
+ ...> 300_000_000_000, | ||
+ ...> 400_000_000_000, | ||
+ ...> 500_000_000_000, | ||
+ ...> 600_000_000_000, | ||
+ ...> 700_000_000_000 | ||
+ ...> ] | ||
...> |> Enum.map(&ProjectWithUnformattedCode.subtract(&1, 100_000_000_000)) | ||
[0, 100_000_000_000, 200_000_000_000, 300_000_000_000, 400_000_000_000, 500_000_000_000, 600_000_000_000] | ||
\""" | ||
""" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Used by "mix format" | ||
[ | ||
plugins: [DoctestFormatter], | ||
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}", "{docs}/**/*.md", "*.md"] | ||
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Used by "mix format" | ||
[ | ||
plugins: [DoctestFormatter], | ||
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}", "{docs}/**/*.md", "*.md"] | ||
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"] | ||
] |