@@ -315,8 +315,19 @@ using QuasiArrays, Base64, Test
315315 @test view (A,:,:) == view (A,:,:)
316316 @test A ≠ view (A,Inclusion (0 : 0.5 : 0.5 ),:)
317317 @test view (A,Inclusion (0 : 0.5 : 0.5 ),:) ≠ A
318- @test A ≠ view (B,Inclusion (0 : 0.5 : 1 ),:)
319- @test view (B,Inclusion (0 : 0.5 : 1 ),:) ≠ A
320- @test view (B,Inclusion (0 : 0.5 : 1 ),:) ≠ view (A,Inclusion (0 : 0.5 : 0.5 ),:)
318+ @test A ≠ view (B,Inclusion (0 : 0.5 : 1 ),:)
319+ @test view (B,Inclusion (0 : 0.5 : 1 ),:) ≠ A
320+ @test view (B,Inclusion (0 : 0.5 : 1 ),:) ≠ view (A,Inclusion (0 : 0.5 : 0.5 ),:)
321+ end
322+
323+ @testset " SubQuasiArray convert" begin
324+ a = QuasiVector (randn (3 ), 0 : 0.5 : 1 )
325+ v = view (a, :)
326+ @test convert (AbstractQuasiVector{Float64}, v) ≡ v
327+ @test convert (AbstractQuasiVector{ComplexF64}, v) isa SubQuasiArray{ComplexF64}
328+ @test convert (AbstractQuasiVector{ComplexF64}, v) == v
329+ @test convert (AbstractQuasiArray{Float64}, v) ≡ v
330+ @test convert (AbstractQuasiArray{ComplexF64}, v) isa SubQuasiArray{ComplexF64}
331+ @test convert (AbstractQuasiArray{ComplexF64}, v) == v
321332 end
322333end
0 commit comments