Skip to content

Commit

Permalink
Skip Float16 det test, add tests for #118
Browse files Browse the repository at this point in the history
  • Loading branch information
dlfivefifty committed Aug 22, 2019
1 parent 00bbeb1 commit ba677cf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion test/test_linalg.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using BandedMatrices, LazyArrays, LinearAlgebra, Test
using BandedMatrices, LazyArrays, LinearAlgebra, FillArrays, Test
import Base.Broadcast: materialize, broadcasted
import BandedMatrices: BandedMulAddStyle, BandedColumns
import LazyArrays: SymmetricLayout, MemoryLayout, Applied
Expand Down Expand Up @@ -243,5 +243,12 @@ import LazyArrays: SymmetricLayout, MemoryLayout, Applied
A = brand(10,10,1,1)
@test x'A x'Matrix(A) transpose(x)A
end

@testset "mismatched dimensions (#118)" begin
m = BandedMatrix(Eye(3), (0,0))
@test_throws DimensionMismatch m * [1,2]
@test_throws DimensionMismatch m * [1, 2, 3, 4]
@test_throws DimensionMismatch m \ [1, 2]
end
end

3 changes: 2 additions & 1 deletion test/test_symbanded.jl
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ end
y = F\b
@test x y
@test_throws DimensionMismatch F\[b;b]
@test det(F) det(SAL)

T  Float16 && (@test det(F) det(SAL))
end
for T in (Int16, Int32, Int64, BigInt)
A = BandedMatrix{T}(undef, (4,4), (1,1))
Expand Down

0 comments on commit ba677cf

Please sign in to comment.