# HG changeset patch # User Chris Cannam # Date 1367751389 -3600 # Node ID fae36c4570d59161a6c8ef3317e360529bb8dc08 # Parent 045908c861a4e2bde7171a1d50442f7133006bf3 Test for reading more than the whole delay + stream in one call diff -r 045908c861a4 -r fae36c4570d5 yetilab/stream/test/test_filter.yeti --- a/yetilab/stream/test/test_filter.yeti Fri May 03 18:17:00 2013 +0100 +++ b/yetilab/stream/test/test_filter.yeti Sun May 05 11:56:29 2013 +0100 @@ -89,6 +89,20 @@ ( str.close (); true ) ), +"delayedBy-2-3c": \( + str = filt.delayedBy 2 (filt.truncatedTo 3 (syn.generated 2 id)); + compare str.position 0 and + compare str.channels 1 and + compare str.sampleRate 2 and + compare str.available (Known 5) and + compare str.finished? false and + compare (bl.list ((str.read 7).getRow 0)) [ 0,0,0,1,2 ] and + compare str.position 5 and + compare str.available (Known 0) and + compare str.finished? true and + ( str.close (); true ) +), + "delayedBy-2-inf": \( str = filt.delayedBy 2 (syn.generated 2 id); compare str.position 0 and