Skip to content

Commit

Permalink
Update some broken tests (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
jishnub authored Dec 12, 2023
1 parent a694c0a commit 840c84e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion test/infinitearrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion test/paddedtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 840c84e

Please sign in to comment.