File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ using Compat
6
6
using JSON
7
7
using Base. Iterators
8
8
9
+ if VERSION >= v " 0.7.0-DEV.3052"
10
+ using Printf
11
+ end
12
+
9
13
const BENCHMARKTOOLS_VERSION = v " 0.2.2"
10
14
11
15
# #############
Original file line number Diff line number Diff line change 19
19
# Dict-like methods #
20
20
# -------------------#
21
21
22
+ if VERSION < v " 0.7.0-DEV.2731"
23
+ const empty = similar
24
+ end
25
+
22
26
@compat Base.:(== )(a:: BenchmarkGroup , b:: BenchmarkGroup ) = a. tags == b. tags && a. data == b. data
23
27
Base. copy (group:: BenchmarkGroup ) = BenchmarkGroup (copy (group. tags), copy (group. data))
24
- Base. similar (group:: BenchmarkGroup ) = BenchmarkGroup (copy (group. tags), similar (group. data))
28
+ Base. similar (group:: BenchmarkGroup ) = BenchmarkGroup (copy (group. tags), empty (group. data))
25
29
Base. isempty (group:: BenchmarkGroup ) = isempty (group. data)
26
30
Base. length (group:: BenchmarkGroup ) = length (group. data)
27
31
Base. getindex (group:: BenchmarkGroup , i... ) = getindex (group. data, i... )
Original file line number Diff line number Diff line change @@ -3,7 +3,9 @@ module ExecutionTests
3
3
using BenchmarkTools
4
4
using Compat
5
5
using Compat. Test
6
- @static if VERSION >= v " 0.7.0-DEV.2655" # IterativeEigenSolvers to stdlib
6
+ if VERSION >= v " 0.7.0-DEV.3019"
7
+ using IterativeEigensolvers
8
+ elseif VERSION >= v " 0.7.0-DEV.2655"
7
9
using IterativeEigenSolvers
8
10
end
9
11
@@ -170,7 +172,7 @@ let fname = tempname()
170
172
@test a === nothing
171
173
end
172
174
end
173
- s = readstring (fname)
175
+ s = read (fname, String )
174
176
try
175
177
@test ismatch (r" [0-9.]+ \w *s \( [0-9]* allocations?: [0-9]+ bytes\) " , s)
176
178
catch
You can’t perform that action at this time.
0 commit comments