File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -90,10 +90,17 @@ using Statistics: mean
9090
9191 # When the mapping and/or reducing functions are unsupported,
9292 # 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- )
93+ if Base. VERSION >= v " 1.8.0-DEV.363"
94+ @test_throws (
95+ " reducing over an empty collection is not allowed" ,
96+ mapreduce (nothing , nothing , SVector {0,Int} ())
97+ )
98+ else
99+ @test_throws (
100+ ArgumentError (" reducing over an empty collection is not allowed" ),
101+ mapreduce (nothing , nothing , SVector {0,Int} ())
102+ )
103+ end
97104 end
98105
99106 @testset " implemented by [map]reduce and [map]reducedim" begin
You can’t perform that action at this time.
0 commit comments