# HG changeset patch # User Chris Cannam # Date 1367530747 -3600 # Node ID ce21d31e5a64d77d26107c30913a12bf0937777c # Parent a5417e489e2b37da140c47fbe0fc74d3890d9cea Another multiplexed test diff -r a5417e489e2b -r ce21d31e5a64 yetilab/stream/test/test_filter.yeti --- 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 boolean>