|
289 | 289 | @test ca[Not(3)] == getdata(ca)[Not(3)] |
290 | 290 | @test ca[Not(2:3)] == getdata(ca)[Not(2:3)] |
291 | 291 |
|
292 | | - # Issue #123 |
293 | | - # We had to revert this because there is no way to work around |
294 | | - # OffsetArrays' type piracy without introducing type piracy |
295 | | - # ourselves because `() isa Tuple{N, <:CombinedAxis} where {N}` |
296 | | - # @test reshape(a, axes(ca)...) isa Vector{Float64} |
297 | | - |
298 | 292 | # Issue #248: Indexing ComponentMatrix with FlatAxis components |
299 | 293 | @test cmat3[:a, :a] == cmat3check[1, 1] |
300 | 294 | @test cmat3[:a, :b] == cmat3check[1, 2:5] |
|
308 | 302 |
|
309 | 303 | # https://discourse.julialang.org/t/no-method-error-reshape-when-solving-ode-with-componentarrays-jl/126342 |
310 | 304 | x = ComponentVector(x=1.0, y=0.0, z=0.0) |
311 | | - @test reshape(x, axes(x)...) isa ComponentVector |
| 305 | + @test reshape(x, axes(x)...) === x |
| 306 | + @test reshape(x, axes(x)) === x |
312 | 307 | @test reshape(a, axes(ca)...) isa Vector{Float64} |
313 | 308 |
|
314 | 309 | # Issue #265: Multi-symbol indexing with matrix components |
|
727 | 722 | # Issue #193 |
728 | 723 | # Make sure we aren't doing type piracy on `reshape` |
729 | 724 | @test ndims(dropdims(ones(1,1), dims=(1,2))) == 0 |
| 725 | + @test reshape([1]) == fill(1, ()) |
730 | 726 |
|
731 | 727 | if VERSION >= v"1.9" |
732 | 728 | # `stack` was introduced in Julia 1.9 |
|
0 commit comments