Skip to content

Commit 4b53e13

Browse files
committed
test
1 parent 79ea103 commit 4b53e13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/offsetarray.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,12 +807,13 @@ end
807807
ten = OffsetArray([1,10,100,1000], 10:13)
808808

809809
@test stack(ten) == ten
810+
@test stack(ten .+ nought') == ten .+ nought'
810811
@test stack(x^2 for x in ten) == ten.^2
811812

812813
@test axes(stack(nought for _ in ten)) == (0:2, 10:13)
813814
@test axes(stack([nought for _ in ten])) == (0:2, 10:13)
814815
@test axes(stack(nought for _ in ten; dims=1)) == (10:13, 0:2)
815-
@test axes(stack((x, x^2) for x in nought)) == 1:2, 0:2
816+
@test axes(stack((x, x^2) for x in nought)) == (1:2, 0:2)
816817
@test axes(stack(x -> x[end-1:end], ten for _ in nought, _ in nought)) == (1:2, 0:2, 0:2)
817818
@test axes(stack([ten[end-1:end] for _ in nought, _ in nought])) == (1:2, 0:2, 0:2)
818819
end

0 commit comments

Comments
 (0)