shithub: aubio

Download patch

ref: ab24edb4a8013101c3fbf34734419314c7bb4651
parent: adf09b28c9435d9048ee91180530a4d7b7afd620
author: Paul Brossier <piem@piem.org>
date: Mon Oct 29 19:00:12 EDT 2018

[py] [tests] start slice tests at 0

--- a/python/tests/test_slicing.py
+++ b/python/tests/test_slicing.py
@@ -34,13 +34,13 @@
 
     def test_slice_start_every_blocksize(self):
         hopsize = 200
-        regions_start = [i*hopsize for i in range(1, n_slices)]
+        regions_start = [i*hopsize for i in range(0, n_slices)]
         slice_source_at_stamps(self.source_file, regions_start, output_dir = self.output_dir,
                 hopsize = 200)
 
     def test_slice_start_every_half_blocksize(self):
         hopsize = 200
-        regions_start = [i*hopsize//2 for i in range(1, n_slices)]
+        regions_start = [i*hopsize//2 for i in range(0, n_slices)]
         slice_source_at_stamps(self.source_file, regions_start,
                 output_dir = self.output_dir, hopsize = 200)