File tree 3 files changed +8
-3
lines changed
3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change
1
+ using ReferenceTests
2
+ using Plots
3
+
4
+ @test_reference " heatmap.png" heatmap ([1 0 ; 0 1 ])
Original file line number Diff line number Diff line change @@ -100,14 +100,15 @@ function test_reference(
100
100
path = file. filename
101
101
dir, filename = splitdir (path)
102
102
103
+ actual = _convert (F, raw_actual; kw... )
104
+
103
105
# infer the default rendermode here
104
106
# since `nothing` is always passed to this method from
105
- # test_reference(filename::AbstractString, raw_actual ; kw...)
107
+ # test_reference(filename::AbstractString, actual ; kw...)
106
108
if rendermode === nothing
107
- rendermode = default_rendermode (F, raw_actual )
109
+ rendermode = default_rendermode (F, actual )
108
110
end
109
111
110
- actual = _convert (F, raw_actual; kw... )
111
112
# preprocessing when reference file doesn't exists
112
113
if ! isfile (path)
113
114
@info (" Reference file for \" $filename \" does not exist. It will be created" )
You can’t perform that action at this time.
0 commit comments