Skip to content

Commit

Permalink
Tests for combinations of OneTo and Colon (#41069)
Browse files Browse the repository at this point in the history
  • Loading branch information
jishnub committed Dec 17, 2024
1 parent edda303 commit f7465c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/abstractarray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2209,6 +2209,10 @@ end
@test axes(C, 1) == 1:4
@test C == CartesianIndex.([(1,1), (2,1), (1,2), (2,2)])
end
@testset "reshape with OneTo and Colon" begin
@test reshape(1:3, Base.OneTo(1), :) == reshape(1:3, 1, 3)
@test reshape(1:3, Base.OneTo(1), :, 1) == reshape(1:3, 1, 3, 1)
end
@testset "AbstractArrayMath" begin
@testset "IsReal" begin
A = [1, 2, 3, 4]
Expand Down

0 comments on commit f7465c8

Please sign in to comment.