Mercurial > hg > may
changeset 173:2cb4c78d42db
Another test
author | Chris Cannam |
---|---|
date | Thu, 02 May 2013 17:38:23 +0100 |
parents | f1c75782e56e |
children | cd5484b642aa |
files | yetilab/stream/test/test_filter.yeti |
diffstat | 1 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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<string, () -> boolean>