Mercurial > hg > may
changeset 181:ce21d31e5a64
Another multiplexed test
author | Chris Cannam |
---|---|
date | Thu, 02 May 2013 22:39:07 +0100 |
parents | a5417e489e2b |
children | 1ab130dcf7f3 |
files | yetilab/stream/test/test_filter.yeti |
diffstat | 1 files changed, 19 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/yetilab/stream/test/test_filter.yeti Thu May 02 22:38:16 2013 +0100 +++ b/yetilab/stream/test/test_filter.yeti Thu May 02 22:39:07 2013 +0100 @@ -170,5 +170,24 @@ ( str.close (); true ) ), +"multiplexed-2-1b": \( + str = filt.multiplexed + [syn.precalculated 2 (bl.fromList [1,2]), + syn.precalculated 2 (bl.fromList [3,4]), + filt.truncatedTo 3 (syn.generated 2 (0-))]; + compare str.position 0 and + compare str.channels 3 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], [3,4], [0,-0.5]] and + compare str.available (Known 0) and + compare str.finished? true and + compare str.position 2 and + ( str.close (); true ) +), + +//!!! still no tests for filters with multi-channel inputs + ] is hash<string, () -> boolean>