From 840c84e9e3d480c3cc963e79dd55571ff17e59f7 Mon Sep 17 00:00:00 2001 From: Jishnu Bhattacharya Date: Tue, 12 Dec 2023 18:03:16 +0530 Subject: [PATCH] Update some broken tests (#283) --- test/infinitearrays.jl | 1 - test/paddedtests.jl | 2 +- test/runtests.jl | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/test/infinitearrays.jl b/test/infinitearrays.jl index 71ab3809..f2603184 100644 --- a/test/infinitearrays.jl +++ b/test/infinitearrays.jl @@ -7,7 +7,6 @@ module InfiniteArrays Base.length(r::AbstractInfUnitRange) = ℵ₀ Base.size(r::AbstractInfUnitRange) = (ℵ₀,) Base.last(r::AbstractInfUnitRange) = ℵ₀ - Base.axes(r::AbstractInfUnitRange) = (OneToInf(),) Base.IteratorSize(::Type{<:AbstractInfUnitRange}) = Base.IsInfinite() diff --git a/test/paddedtests.jl b/test/paddedtests.jl index 08b265e2..d77789f2 100644 --- a/test/paddedtests.jl +++ b/test/paddedtests.jl @@ -302,7 +302,7 @@ paddeddata(a::PaddedPadded) = a @test paddeddata(a) == [1 2 3; 4 5 6] # need to add bounds checking - @test_broken ApplyArray(setindex, Zeros(5,5), [1 2; 4 5], 2:3, 3:5) + @test_broken (try ApplyArray(setindex, Zeros(5,5), [1 2; 4 5], 2:3, 3:6) catch e; e; end) isa BoundsError @test PaddedArray(1, 3) == PaddedVector(1,3) == [1; zeros(2)] @test PaddedArray(1, 3, 3) == PaddedMatrix(1, 3, 3) == [1 zeros(1,2); zeros(2,3)] diff --git a/test/runtests.jl b/test/runtests.jl index bafcd283..dcdd7093 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -388,7 +388,7 @@ end @test rowsupport(D,3) === colsupport(D,3) === 3 Z = Zeros(5) @test rowsupport(Z,1) === colsupport(Z,1) === 1:0 - @test_broken cache(D) + C = cache(Array,D); @test colsupport(C,2) === 2:2 @test @inferred(colsupport(C,1)) === 1:1