Skip to content

Commit

Permalink
add stem_id test
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian-Robert Stöter committed Nov 10, 2018
1 parent 226e961 commit 406acc6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_read.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@ def dtype(request):
return request.param


def test_stem_id():
S, rate = stempeg.read_stems(
"tests/data/The Easton Ellises - Falcon 69.stem.mp4"
)
for k in range(S.shape[0]):
Sk, rate = stempeg.read_stems(
"tests/data/The Easton Ellises - Falcon 69.stem.mp4",
stem_id=k
)
assert Sk.ndim == 2


def test_shape():
S, rate = stempeg.read_stems(
"tests/data/The Easton Ellises - Falcon 69.stem.mp4"
Expand Down

0 comments on commit 406acc6

Please sign in to comment.