Skip to content

Commit

Permalink
Use Compat.Test instead of Base.Test, adapt to JuliaLang/julia#22825.
Browse files Browse the repository at this point in the history
  • Loading branch information
tkoolen committed Dec 4, 2017
1 parent 0c3b3c6 commit 0d8a9cd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
julia 0.6
Compat 0.27 # for Val constructor
Compat 0.33 # for Compat.Test
2 changes: 1 addition & 1 deletion src/TypeSortedCollections.jl
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ end
@generated function Base.mapreduce(f, op, v0, tsc::TypeSortedCollection{<:Any, N}) where {N}
expr = Expr(:block)
push!(expr.args, :(Base.@_inline_meta))
push!(expr.args, :(ret = Base.r_promote(op, v0)))
push!(expr.args, :(ret = v0))
for i = 1 : N
push!(expr.args, quote
let vec = tsc.data[$i]
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Base.Test
using Compat.Test
using TypeSortedCollections

module M
Expand Down

0 comments on commit 0d8a9cd

Please sign in to comment.