Skip to content

Commit 1c2bef2

Browse files
authored
Merge pull request #16 from tkoolen/nightly
Use Compat.Test instead of Base.Test, adapt to JuliaLang/julia#22825
2 parents 0c3b3c6 + 0d8a9cd commit 1c2bef2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

REQUIRE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
julia 0.6
2-
Compat 0.27 # for Val constructor
2+
Compat 0.33 # for Compat.Test

src/TypeSortedCollections.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ end
181181
@generated function Base.mapreduce(f, op, v0, tsc::TypeSortedCollection{<:Any, N}) where {N}
182182
expr = Expr(:block)
183183
push!(expr.args, :(Base.@_inline_meta))
184-
push!(expr.args, :(ret = Base.r_promote(op, v0)))
184+
push!(expr.args, :(ret = v0))
185185
for i = 1 : N
186186
push!(expr.args, quote
187187
let vec = tsc.data[$i]

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Base.Test
1+
using Compat.Test
22
using TypeSortedCollections
33

44
module M

0 commit comments

Comments
 (0)