# HG changeset patch # User Chris Cannam # Date 1367512703 -3600 # Node ID 2cb4c78d42dba0a05fc44b923cc5cceaced3fbb0 # Parent f1c75782e56ec1dc117f4b8112a1427309e9e2d0 Another test diff -r f1c75782e56e -r 2cb4c78d42db yetilab/stream/test/test_filter.yeti --- a/yetilab/stream/test/test_filter.yeti Thu May 02 17:36:43 2013 +0100 +++ b/yetilab/stream/test/test_filter.yeti Thu May 02 17:38:23 2013 +0100 @@ -49,5 +49,19 @@ compare str.position 3 ), +"mixed-precalc-trunc": \( + str = filt.mixed (syn.precalculated 2 (bl.fromList [1,2])) + (filt.truncatedTo 3 (syn.generated 2 (0-))); + compare str.position 0 and + compare str.channels 2 and + compare str.sampleRate 2 and + compare str.available (Known 2) and + compare str.finished? false and + compare (map bl.list (mat.asRows (str.read 4))) [[1,2], [0,-0.5]] and + compare str.available (Known 0) and + compare str.finished? true and + compare str.position 2 +), + ] is hash boolean>