From a52a4563ef3e8039e70a7f722cfb18e2a1b3e36d Mon Sep 17 00:00:00 2001 From: Jeff Fessler Date: Wed, 2 Nov 2022 13:39:12 -0400 Subject: [PATCH] Add @test_throws for OffsetMatrix * Companion --- test/companion.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/companion.jl b/test/companion.jl index e3813c6..75b915c 100644 --- a/test/companion.jl +++ b/test/companion.jl @@ -48,6 +48,12 @@ A = copy(B) @test A ≈ B * Zm +# OffsetMatrix * companion + +B = OffsetArray(randn(size(B)), 9, -5) # test non-1-based indexing and AbstractMatrix +@test_throws ArgumentError mul!(A, B, Z) + + # Polynomial construction using Polynomials p = Polynomial([-1,0,1])