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