Skip to content

Commit

Permalink
Test basic interface for SparseXXVector
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Jan 3, 2019
1 parent 1a25e16 commit 17287eb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/test_vector.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
module TestVector
include("preamble.jl")

@testset "basic interface" begin
xs0 = sprandn(100, 0.3)
xs = SparseXXVector(xs0)

@test xs[1] isa Float64
@test xs == xs0
@test sprint(show, xs) isa String
@test sprint(show, "text/plain", xs) isa String
end

@testset begin
xs0 = sprandn(100, 0.3)
xs = SparseXXVector(xs0)
Expand Down

0 comments on commit 17287eb

Please sign in to comment.