Skip to content

Commit

Permalink
Test isassigned just to be sure.
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffFessler committed Nov 2, 2022
1 parent ba37efb commit c1f4b39
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/companion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ Z = Companion(randn(n))
#Special properties
@test Matrix(inv(Z)) inv(Matrix(Z))

@test isassigned(Z, 1)
@test isassigned(Z, n^2)
@test !isassigned(Z, 0)
@test !isassigned(Z, n^2+1)

#Matvec product
b = randn(n)
@test Z*b Matrix(Z)*b
Expand Down

0 comments on commit c1f4b39

Please sign in to comment.