Skip to content

Commit

Permalink
a bit more
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewAnnex committed Feb 7, 2016
1 parent 9434536 commit 9483eff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/test_support_types.py
Expand Up @@ -102,6 +102,8 @@ def test_toDoubleVector():
assert len(madeFromCtypesArray) == 3
with pytest.raises(TypeError):
stypes.toDoubleVector("ABCD")
with pytest.raises(TypeError):
stypes.toDoubleVector(array.array('i', [1, 2, 3]))


def test_toIntVector():
Expand All @@ -118,6 +120,8 @@ def test_toIntVector():
assert len(madeFromCtypesArray) == 3
with pytest.raises(TypeError):
stypes.toIntVector("ABCD")
with pytest.raises(TypeError):
stypes.toIntVector(array.array('d', [1.0, 2.0, 3.0]))


def test_toDoubleMatrix():
Expand All @@ -130,4 +134,4 @@ def test_toDoubleMatrix():
madeFromNumpyMatrix = stypes.toDoubleMatrix(np.matrix([[1.0, 2.0], [3.0, 4.0]]))
assert len(madeFromNumpyMatrix) == 2
with pytest.raises(TypeError):
stypes.toDoubleMatrix("ABCD")
stypes.toDoubleMatrix("ABCD")

0 comments on commit 9483eff

Please sign in to comment.