changeset 412:aad4c4136321 resample

Minor tidy to tests
author Chris Cannam
date Sun, 29 Sep 2013 12:17:27 +0100
parents 3ee42c8029fb
children 8b2129ea9f1a
files src/may/stream/test/test_resample.yeti
diffstat 1 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/may/stream/test/test_resample.yeti	Sat Sep 28 19:11:39 2013 +0100
+++ b/src/may/stream/test/test_resample.yeti	Sun Sep 29 12:17:27 2013 +0100
@@ -8,9 +8,9 @@
 manip = load may.stream.manipulate;
 resample = load may.stream.resample;
 
-//pl = load may.plot;//!!!
+pl = load may.plot;//!!!
 
-pl = { plot things = true; };
+//pl = { plot things = true; };
 
 { compare, compareUsing, assert } = load may.test.test;
 
@@ -131,6 +131,7 @@
        (map vec.list (mat.asRows a)) (map vec.list (mat.asRows b));
     if not compareOutputs result expected then
         println "diff: \(mat.difference result expected)";
+\() (    pl.plot [ Vector (mat.getRow 0 (mat.difference result expected)) ] );
 	false
     else true fi
 ),
@@ -148,10 +149,6 @@
     phase = 0;
     a = vec.list data;
     b = map do i: vec.at result (i*factor + phase) done [0..vec.length data - 1];
-\() (    pl.plot [ Vector data, Vector (vec.fromList b) ] );
-\() (    pl.plot [ Vector result ] );
-println "a = \(a)";
-println "b = \(b)";
     compareClose [b] [a];
 ),