Skip to content

Commit

Permalink
test(matrices): add cauchy tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AnzhiZhang committed Aug 8, 2024
1 parent ff45115 commit 9d7052d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/matrices/fiedler.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# constructors
@test allequal([
Fiedler(5),
Fiedler{Int}(5),
Fiedler([1:5;]),
])

# linear algebra functions
test_linearalgrbra_functions(Fiedler.(1:5))

# eltype
@test test_matrix_elements(Fiedler{Int32}(5))

# content
@test Fiedler(5) [0 1 2 3 4; 1 0 1 2 3; 2 1 0 1 2; 3 2 1 0 1; 4 3 2 1 0]

0 comments on commit 9d7052d

Please sign in to comment.