@@ -88,12 +88,12 @@ safe_minabs(A::Array{T}, region) where {T} = safe_mapslices(minimum, abs.(A), re
8888 @test @inferred (count (! , Breduc, dims= region)) ≈ safe_count (.! Breduc, region)
8989
9090 @test isequal (
91- @inferred (count (Breduc, dims= region, init= 0x02 )),
92- safe_count (Breduc, region) .% UInt8 .+ 0x02 ,
91+ @inferred (Array{UInt8, ndims (Breduc)}, count (Breduc, dims= region, init= 0x00 )),
92+ safe_count (Breduc, region),
9393 )
9494 @test isequal (
95- @inferred (count (! , Breduc, dims= region, init= Int16 (0 ))),
96- safe_count (.! Breduc, region) .% Int16 ,
95+ @inferred (Array{Int16, ndims (Breduc)}, count (! , Breduc, dims= region, init= Int16 (0 ))),
96+ safe_count (.! Breduc, region),
9797 )
9898end
9999
693693 @test_throws TypeError count! ([1 ], [1 ])
694694end
695695
696- @test @inferred (count (false : true , dims= :, init= 0x0004 )) === 0x0005
696+ @test @inferred (UInt16, count (false : true , dims= :, init= 0x0000 )) === 1
697697@test @inferred (count (isodd, reshape (1 : 9 , 3 , 3 ), dims= :, init= Int128 (0 ))) === Int128 (5 )
698698
699699@testset " reduced_index for BigInt (issue #39995)" begin
0 commit comments