Skip to content

Commit

Permalink
Add @test_throws for OffsetMatrix * Companion
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffFessler committed Nov 2, 2022
1 parent fa2b6f2 commit a52a456
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/companion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit a52a456

Please sign in to comment.