We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4db80f1 commit f59bcebCopy full SHA for f59bceb
test/mapreduce.jl
@@ -90,10 +90,17 @@ using Statistics: mean
90
91
# When the mapping and/or reducing functions are unsupported,
92
# the error is thrown by `Base.mapreduce_empty`:
93
- @test_throws(
94
- ArgumentError("reducing over an empty collection is not allowed"),
95
- mapreduce(nothing, nothing, SVector{0,Int}())
96
- )
+ if Base.VERSION >= v"1.8.0-DEV.363"
+ @test_throws(
+ "reducing over an empty collection is not allowed",
+ mapreduce(nothing, nothing, SVector{0,Int}())
97
+ )
98
+ else
99
100
+ ArgumentError("reducing over an empty collection is not allowed"),
101
102
103
+ end
104
end
105
106
@testset "implemented by [map]reduce and [map]reducedim" begin
0 commit comments