Skip to content

Commit

Permalink
Added more tests [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Jun 9, 2024
1 parent b3851e5 commit 33eb182
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_sparse_vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ def test_from_coordinates(self):
def test_from_sparse(self):
arr = coo_array(np.array([1, 0, 2, 0, 3, 0]))
assert SparseVector.from_sparse(arr).to_list() == [1, 0, 2, 0, 3, 0]
assert SparseVector.from_sparse(arr.tocsc()).to_list() == [1, 0, 2, 0, 3, 0]
assert SparseVector.from_sparse(arr.tocsr()).to_list() == [1, 0, 2, 0, 3, 0]
assert SparseVector.from_sparse(arr.todok()).to_list() == [1, 0, 2, 0, 3, 0]

def test_repr(self):
Expand Down

0 comments on commit 33eb182

Please sign in to comment.