# HG changeset patch # User Chris Cannam # Date 1356096670 0 # Node ID 1029454856636c570aff13ef8eebd551f634dbfb # Parent 45a57e2fb4ae3778b26fb63327507a2ea7aad881 Small simplification to tests diff -r 45a57e2fb4ae -r 102945485663 test/test_framer.yeti --- a/test/test_framer.yeti Fri Dec 21 13:30:23 2012 +0000 +++ b/test/test_framer.yeti Fri Dec 21 13:31:10 2012 +0000 @@ -64,31 +64,27 @@ "frames-2x5": \( fr = fr.frames { blocksize = 2, hop = 2 } (test.testStream 5); - expected = array [ [1,2], [3,4], [5,0] ]; - obtained = array (map block.list fr); - test.compare obtained expected; + expected = [ [1,2], [3,4], [5,0] ]; + test.compare (map block.list fr) expected; ), "frames-4.3x4": \( fr = fr.frames { blocksize = 4, hop = 3 } (test.testStream 4); - expected = array [ [0,1,2,3], [3,4,0,0] ]; - obtained = array (map block.list fr); - test.compare obtained expected; + expected = [ [0,1,2,3], [3,4,0,0] ]; + test.compare (map block.list fr) expected; ), "frames-3.2x4": \( fr = fr.frames { blocksize = 3, hop = 2 } (test.testStream 4); - expected = array [ [0,1,2], [2,3,4], [4,0,0] ]; - obtained = array (map block.list fr); - test.compare obtained expected; + expected = [ [0,1,2], [2,3,4], [4,0,0] ]; + test.compare (map block.list fr) expected; ), "frames-3.1x6": \( fr = fr.frames { blocksize = 3, hop = 1 } (test.testStream 6); - expected = array [ [0,0,1], [0,1,2], [1,2,3], [2,3,4], - [3,4,5], [4,5,6], [5,6,0], [6,0,0] ]; - obtained = array (map block.list fr); - test.compare obtained expected; + expected = [ [0,0,1], [0,1,2], [1,2,3], [2,3,4], + [3,4,5], [4,5,6], [5,6,0], [6,0,0] ]; + test.compare (map block.list fr) expected; ), ];