Skip to content

Commit

Permalink
test: refactor run_test_linearalgrbra_functions
Browse files Browse the repository at this point in the history
  • Loading branch information
AnzhiZhang committed Aug 9, 2024
1 parent 7bfc5bc commit 5aeab8e
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion test/matrices/binomial.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
])

# linear algebra functions
test_linearalgrbra_functions(Binomial.(1:5))
run_test_linearalgrbra_functions(Binomial.(1:5))

# eltype
@test test_matrix_elements(Binomial{Int32}(5))
Expand Down
2 changes: 1 addition & 1 deletion test/matrices/cauchy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
])

# linear algebra functions
test_linearalgrbra_functions(Cauchy{Float64}.(1:5))
run_test_linearalgrbra_functions(Cauchy{Float64}.(1:5))

# eltype
@test test_matrix_elements(Cauchy{Float32}(5))
Expand Down
2 changes: 1 addition & 1 deletion test/matrices/chebspec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
])

# linear algebra functions
test_linearalgrbra_functions(ChebSpec.(1:5))
run_test_linearalgrbra_functions(ChebSpec.(1:5))

# eltype
@test test_matrix_elements(ChebSpec{Float32}(5))
Expand Down
2 changes: 1 addition & 1 deletion test/matrices/chow.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
])

# linear algebra functions
test_linearalgrbra_functions([Chow.(1:5); Chow.(1:5, 2, 3)])
run_test_linearalgrbra_functions([Chow.(1:5); Chow.(1:5, 2, 3)])

# eltype
@test test_matrix_elements(Chow{Int32}(5))
Expand Down
2 changes: 1 addition & 1 deletion test/matrices/circulant.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
])

# linear algebra functions
test_linearalgrbra_functions(Circulant.(1:5))
run_test_linearalgrbra_functions(Circulant.(1:5))

# eltype
@test test_matrix_elements(Circulant{Int32}(5))
Expand Down
2 changes: 1 addition & 1 deletion test/matrices/clement.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
])

# linear algebra functions
test_linearalgrbra_functions(Clement.(1:5))
run_test_linearalgrbra_functions(Clement.(1:5))

# eltype
@test test_matrix_elements(Clement{Float32}(5))
Expand Down
2 changes: 1 addition & 1 deletion test/matrices/companion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ using Polynomials: Polynomial
])

# linear algebra functions
test_linearalgrbra_functions(Companion.(1:5))
run_test_linearalgrbra_functions(Companion.(1:5))

# eltype
@test test_matrix_elements(Companion{Float32}(5))
Expand Down
2 changes: 1 addition & 1 deletion test/matrices/dingdong.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
])

# linear algebra functions
test_linearalgrbra_functions(DingDong.(1:5))
run_test_linearalgrbra_functions(DingDong.(1:5))

# eltype
@test test_matrix_elements(DingDong{Int32}(5))
Expand Down
2 changes: 1 addition & 1 deletion test/matrices/fiedler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
])

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

# eltype
@test test_matrix_elements(Fiedler{Int32}(5))
Expand Down
2 changes: 1 addition & 1 deletion test/matrices/forsythe.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
])

# linear algebra functions
test_linearalgrbra_functions(Forsythe.(1:5))
run_test_linearalgrbra_functions(Forsythe.(1:5))

# eltype
@test test_matrix_elements(Forsythe{Float32}(5))
Expand Down
2 changes: 1 addition & 1 deletion test/matrices/frank.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
])

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

# eltype
@test test_matrix_elements(Frank{Int32}(5))
Expand Down
2 changes: 1 addition & 1 deletion test/matrices/golub.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
])

# linear algebra functions
test_linearalgrbra_functions(Golub.(1:5))
run_test_linearalgrbra_functions(Golub.(1:5))

# eltype
@test test_matrix_elements(Golub{Int32}(5))
2 changes: 1 addition & 1 deletion test/matrices/grcar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
])

# linear algebra functions
test_linearalgrbra_functions(Grcar.(1:5))
run_test_linearalgrbra_functions(Grcar.(1:5))

# eltype
@test test_matrix_elements(Grcar{Int32}(5))
Expand Down
2 changes: 1 addition & 1 deletion test/matrices/hadamard.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
])

# linear algebra functions
test_linearalgrbra_functions(Hadamard.((2) .^ (1:4)))
run_test_linearalgrbra_functions(Hadamard.((2) .^ (1:4)))

# eltype
@test test_matrix_elements(Hadamard{Int32}(4))
Expand Down
2 changes: 1 addition & 1 deletion test/matrices/hankel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
])

# linear algebra functions
test_linearalgrbra_functions(Hankel.(1:5))
run_test_linearalgrbra_functions(Hankel.(1:5))

# eltype
@test test_matrix_elements(Hankel{Int32}(5))
Expand Down
2 changes: 1 addition & 1 deletion test/matrices/hilbert.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
])

# linear algebra functions
test_linearalgrbra_functions(Hilbert.(1:5))
run_test_linearalgrbra_functions(Hilbert.(1:5))

# eltype
@test test_matrix_elements(Hilbert{Int32}(5))
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function test_linearalgrbra_functions(A::AbstractMatrix)
end
end

function test_linearalgrbra_functions(matrices::Vector{<:AbstractMatrix})
function run_test_linearalgrbra_functions(matrices::Vector{<:AbstractMatrix})
for matrix = matrices
@test test_linearalgrbra_functions(matrix)
end
Expand Down

0 comments on commit 5aeab8e

Please sign in to comment.