File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -52,12 +52,12 @@ defmodule ExUnit.DocTest do
52
52
2
53
53
54
54
If you want to keep any two tests separate from each other,
55
- add an empty line between them (assume > to stand for iex> here) :
55
+ add an empty line between them:
56
56
57
- > a = 1
57
+ iex > a = 1
58
58
1
59
59
60
- > a + 1 # will fail with a "function a/0 undefined" error
60
+ iex > a + 1 # will fail with a "function a/0 undefined" error
61
61
2
62
62
63
63
Similarly to iex you can use numbers in your "prompts":
Original file line number Diff line number Diff line change 90
90
defmodule ExUnit.DocTestTest do
91
91
use ExUnit.Case
92
92
93
- doctest ExUnit.DocTest
93
+ # This is intentional. The doctests in DocTest's docs fail for demonstration
94
+ # purposes.
95
+ #doctest ExUnit.DocTest
94
96
doctest ExUnit.DocTestTest.GoodModule , import: true
95
97
doctest ExUnit.DocTestTest.SomewhatGoodModule , only: [ test_fun: 0 ] , import: true
96
98
doctest ExUnit.DocTestTest.SomewhatGoodModule1 , except: [ test_fun1: 0 ] , import: true
You can’t perform that action at this time.
0 commit comments