File tree Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,6 @@ defmodule Mudbrick.DrawingTest do
2
2
use ExUnit.Case , async: true
3
3
use ExUnitProperties
4
4
5
- import Mudbrick.TestHelper ,
6
- only: [
7
- invalid_colour: 0 ,
8
- output: 2
9
- ]
10
-
11
5
alias Mudbrick.Path
12
6
13
7
alias Mudbrick.Path . {
@@ -17,6 +11,13 @@ defmodule Mudbrick.DrawingTest do
17
11
Rectangle
18
12
}
19
13
14
+ alias Mudbrick.TestHelper
15
+
16
+ import Mudbrick.TestHelper ,
17
+ only: [
18
+ invalid_colour: 0
19
+ ]
20
+
20
21
test "can add drawings to a page" do
21
22
import Mudbrick
22
23
@@ -175,7 +176,7 @@ defmodule Mudbrick.DrawingTest do
175
176
end
176
177
177
178
defp operations ( f ) do
178
- output ( fn _ -> f . ( ) end , Mudbrick.Path.Output )
179
+ TestHelper . wrapped_output ( fn _ -> f . ( ) end , Mudbrick.Path.Output )
179
180
|> Enum . map ( & Mudbrick.TestHelper . show / 1 )
180
181
|> Enum . reverse ( )
181
182
end
Original file line number Diff line number Diff line change 1
1
defmodule Mudbrick.TextBlockTest do
2
2
use ExUnit.Case , async: true
3
3
4
- import Mudbrick.TestHelper , only: [ output: 2 , bodoni_regular: 0 ]
4
+ import Mudbrick.TestHelper , only: [ bodoni_regular: 0 ]
5
5
6
6
alias Mudbrick.Font
7
7
alias Mudbrick.TextBlock
@@ -451,7 +451,7 @@ defmodule Mudbrick.TextBlockTest do
451
451
end
452
452
453
453
defp output ( f ) do
454
- output ( f , Mudbrick. TextBlock.Output) |> Enum . reverse ( )
454
+ Mudbrick.TestHelper . wrapped_output ( f , TextBlock.Output ) |> Enum . reverse ( )
455
455
end
456
456
457
457
defp operations ( ops ) do
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ defmodule Mudbrick.TestHelper do
51
51
@ example_png
52
52
end
53
53
54
- def output ( f , output_mod ) when is_function ( f ) do
54
+ def wrapped_output ( f , output_mod ) when is_function ( f ) do
55
55
import Mudbrick
56
56
57
57
{ doc , _contents_obj } =
You can’t perform that action at this time.
0 commit comments