Skip to content

Commit 77d32d5

Browse files
committed
Add test
1 parent 3ae469e commit 77d32d5

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

test/structured.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ using ArrayInterface: ArrayInterface
22
using BandedMatrices: BandedMatrix, brand
33
using BlockBandedMatrices: BandedBlockBandedMatrix, BlockBandedMatrix
44
using LinearAlgebra
5+
using SparseArrays
56
using SparseMatrixColorings
67
using Test
78

@@ -58,8 +59,8 @@ end;
5859
end;
5960

6061
# See https://github.com/gdalle/SparseMatrixColorings.jl/pull/299
61-
@testset "SparsityPatternCSC" begin
62-
S = sparse([
62+
@testset "SparsityPatternCSC $T" for T in [Int, Float32]
63+
S = sparse(T[
6364
0 0 1 1 0 1
6465
1 0 0 0 1 0
6566
0 1 0 0 1 0
@@ -70,5 +71,5 @@ end;
7071
algo = GreedyColoringAlgorithm()
7172
result = coloring(P, problem, algo)
7273
B = compress(S, result)
73-
@test decompress(B, result) isa SparseMatrixCSC{Int,Int}
74+
@test decompress(B, result) isa SparseMatrixCSC{T,Int}
7475
end;

0 commit comments

Comments
 (0)