Skip to content

Commit

Permalink
Update tests for main module
Browse files Browse the repository at this point in the history
  • Loading branch information
sergioburdisso committed Feb 29, 2020
1 parent bc5c4ed commit ec4ca8b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_pyss3.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,7 @@ def test_pyss3_functions():
r = [(6, 8.1), (7, 5.6), (2, 5.5), (4, 1.5),
(5, 1.3), (3, 1.2), (0, 1.1), (1, 0.4)]
assert pyss3.kmean_multilabel_size(r) == 3
with pytest.raises(ZeroDivisionError):
pyss3.kmean_multilabel_size([(0, 0), (1, 0)])
assert pyss3.kmean_multilabel_size([(0, 0), (1, 0)]) == 2

with pytest.raises(IndexError):
pyss3.mad([], 0)
Expand Down

0 comments on commit ec4ca8b

Please sign in to comment.