Skip to content

Commit

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

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

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

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

0 comments on commit bf1e6bf

Please sign in to comment.