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
5252 2
5353
5454 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:
5656
57- > a = 1
57+ iex > a = 1
5858 1
5959
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
6161 2
6262
6363 Similarly to iex you can use numbers in your "prompts":
Original file line number Diff line number Diff line change 9090defmodule ExUnit.DocTestTest do
9191 use ExUnit.Case
9292
93- doctest ExUnit.DocTest
93+ # This is intentional. The doctests in DocTest's docs fail for demonstration
94+ # purposes.
95+ #doctest ExUnit.DocTest
9496 doctest ExUnit.DocTestTest.GoodModule , import: true
9597 doctest ExUnit.DocTestTest.SomewhatGoodModule , only: [ test_fun: 0 ] , import: true
9698 doctest ExUnit.DocTestTest.SomewhatGoodModule1 , except: [ test_fun1: 0 ] , import: true
You can’t perform that action at this time.
0 commit comments