Skip to content

Commit

Permalink
fix 100 %
Browse files Browse the repository at this point in the history
  • Loading branch information
ahojukka5 committed Nov 17, 2017
1 parent f4be770 commit 2f5d7a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_sparse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ end
@test isapprox(full(b), full(b2))
end

@testset "Failure to add data to sparse vector due dimensino mismatch" begin
@testset "Failure to add data to sparse vector due dimension mismatch" begin
b = SparseVectorCOO()
@test_throws ErrorException add!(b, [1, 2], [1.0, 2.0, 3.0])
end
Expand Down Expand Up @@ -88,8 +88,8 @@ end
B = sparse(A)
@test get_nonzero_rows(B) == [1, 3]
@test get_nonzero_columns(B) == [1, 4]
@test size(B) == (3, 4)
@test size(B, 1) == 3
@test size(A) == (3, 4)
@test size(A, 1) == 3
end

@testset "isapprox" begin
Expand Down

0 comments on commit 2f5d7a6

Please sign in to comment.