aboutsummaryrefslogtreecommitdiff
path: root/tests/mtx_max
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-12-15 18:29:32 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-12-15 18:29:32 +0000
commit7a0042776ce2db5c4959afd6f6f19a19303aebfd (patch)
tree799cbccbc0399f78920153c38c4f525c947b7eae /tests/mtx_max
parentc14e1f6562ffed9ee93573851ff29a58ac3e7218 (diff)
added tests for mtx_min, mtx_max and mtx_minmax
svn path=/trunk/externals/iem/iemmatrix/; revision=4227
Diffstat (limited to 'tests/mtx_max')
-rw-r--r--tests/mtx_max/00_exist.pd13
-rw-r--r--tests/mtx_max/01_function.pd17
-rw-r--r--tests/mtx_max/02_function.pd29
-rw-r--r--tests/mtx_max/03_function.pd43
-rw-r--r--tests/mtx_max/04_function.pd43
-rw-r--r--tests/mtx_max/05_function.pd43
-rw-r--r--tests/mtx_max/06_function.pd40
7 files changed, 228 insertions, 0 deletions
diff --git a/tests/mtx_max/00_exist.pd b/tests/mtx_max/00_exist.pd
new file mode 100644
index 0000000..c8c07b2
--- /dev/null
+++ b/tests/mtx_max/00_exist.pd
@@ -0,0 +1,13 @@
+#N canvas 166 104 310 436 10;
+#X obj 122 68 inlet bang;
+#X obj 122 385 outlet 1==OK;
+#X obj 122 347 b;
+#X msg 122 366 1;
+#X msg 122 122 matrix 1 1 1;
+#X obj 122 161 mtx_max;
+#X text 67 37 test for existance of [mtx_max];
+#X connect 0 0 4 0;
+#X connect 2 0 3 0;
+#X connect 3 0 1 0;
+#X connect 4 0 5 0;
+#X connect 5 0 2 0;
diff --git a/tests/mtx_max/01_function.pd b/tests/mtx_max/01_function.pd
new file mode 100644
index 0000000..f34f13d
--- /dev/null
+++ b/tests/mtx_max/01_function.pd
@@ -0,0 +1,17 @@
+#N canvas 50 42 508 466 10;
+#X obj 122 68 inlet bang;
+#X obj 122 385 outlet 1==OK;
+#X obj 122 101 t b;
+#X obj 122 151 t f f;
+#X msg 122 190 matrix 1 1 \$1;
+#X obj 122 265 ==;
+#X msg 122 127 -2;
+#X obj 122 211 mtx_max;
+#X connect 0 0 2 0;
+#X connect 2 0 6 0;
+#X connect 3 0 4 0;
+#X connect 3 1 5 1;
+#X connect 4 0 7 0;
+#X connect 5 0 1 0;
+#X connect 6 0 3 0;
+#X connect 7 0 5 0;
diff --git a/tests/mtx_max/02_function.pd b/tests/mtx_max/02_function.pd
new file mode 100644
index 0000000..1aa68c2
--- /dev/null
+++ b/tests/mtx_max/02_function.pd
@@ -0,0 +1,29 @@
+#N canvas 175 99 591 461 10;
+#X obj 122 68 inlet bang;
+#X obj 122 385 outlet 1==OK;
+#X text 67 37 test for existance of [mtx_max];
+#X msg 122 170 matrix 2 2 \$1 \$2 \$3 \$4;
+#X obj 122 89 t b;
+#X msg 122 110 3 -1 -10.5 0;
+#X obj 122 277 ==;
+#X obj 297 167 unpack 0 0 0 0;
+#X obj 297 188 max;
+#X obj 359 187 max;
+#X obj 297 208 max;
+#X obj 122 191 mtx_max;
+#X obj 122 136 t l l;
+#X connect 0 0 4 0;
+#X connect 3 0 11 0;
+#X connect 4 0 5 0;
+#X connect 5 0 12 0;
+#X connect 6 0 1 0;
+#X connect 7 0 8 0;
+#X connect 7 1 8 1;
+#X connect 7 2 9 0;
+#X connect 7 3 9 1;
+#X connect 8 0 10 0;
+#X connect 9 0 10 1;
+#X connect 10 0 6 1;
+#X connect 11 0 6 0;
+#X connect 12 0 3 0;
+#X connect 12 1 7 0;
diff --git a/tests/mtx_max/03_function.pd b/tests/mtx_max/03_function.pd
new file mode 100644
index 0000000..d8d1b96
--- /dev/null
+++ b/tests/mtx_max/03_function.pd
@@ -0,0 +1,43 @@
+#N canvas 105 62 508 466 10;
+#X obj 122 68 inlet bang;
+#X obj 122 385 outlet 1==OK;
+#X text 67 37 test for existance of [mtx_max];
+#X obj 122 89 t b;
+#X obj 122 135 t l l;
+#X msg 122 170 matrix 2 3 \$1 \$2 \$3 \$4 \$5 \$6;
+#X msg 122 110 3 -1 10.5 0.05 0 12;
+#X obj 349 196 unpack 0 0 0 0 0 0;
+#X obj 349 217 max;
+#X obj 380 217 max;
+#X obj 411 216 max;
+#X obj 122 300 *;
+#X obj 122 326 *;
+#X obj 122 277 ==;
+#X obj 161 277 ==;
+#X obj 201 277 ==;
+#X obj 122 255 unpack 0 0 0;
+#X obj 122 191 mtx_max :;
+#X connect 0 0 3 0;
+#X connect 3 0 6 0;
+#X connect 4 0 5 0;
+#X connect 4 1 7 0;
+#X connect 5 0 17 0;
+#X connect 6 0 4 0;
+#X connect 7 0 8 0;
+#X connect 7 1 9 0;
+#X connect 7 2 10 0;
+#X connect 7 3 8 1;
+#X connect 7 4 9 1;
+#X connect 7 5 10 1;
+#X connect 8 0 13 1;
+#X connect 9 0 14 1;
+#X connect 10 0 15 1;
+#X connect 11 0 12 0;
+#X connect 12 0 1 0;
+#X connect 13 0 11 0;
+#X connect 14 0 11 1;
+#X connect 15 0 12 1;
+#X connect 16 0 13 0;
+#X connect 16 1 14 0;
+#X connect 16 2 15 0;
+#X connect 17 0 16 0;
diff --git a/tests/mtx_max/04_function.pd b/tests/mtx_max/04_function.pd
new file mode 100644
index 0000000..2fc17bc
--- /dev/null
+++ b/tests/mtx_max/04_function.pd
@@ -0,0 +1,43 @@
+#N canvas 105 62 508 466 10;
+#X obj 122 68 inlet bang;
+#X obj 122 385 outlet 1==OK;
+#X text 67 37 test for existance of [mtx_max];
+#X obj 122 89 t b;
+#X obj 122 135 t l l;
+#X msg 122 170 matrix 2 3 \$1 \$2 \$3 \$4 \$5 \$6;
+#X msg 122 110 3 -1 10.5 0.05 0 12;
+#X obj 138 226 unpack 0 0 0 0 0 0;
+#X obj 138 247 max;
+#X obj 169 247 max;
+#X obj 200 246 max;
+#X obj 122 330 *;
+#X obj 122 356 *;
+#X obj 122 307 ==;
+#X obj 161 307 ==;
+#X obj 201 307 ==;
+#X obj 122 285 unpack 0 0 0;
+#X obj 122 191 mtx_max col;
+#X connect 0 0 3 0;
+#X connect 3 0 6 0;
+#X connect 4 0 5 0;
+#X connect 4 1 7 0;
+#X connect 5 0 17 0;
+#X connect 6 0 4 0;
+#X connect 7 0 8 0;
+#X connect 7 1 9 0;
+#X connect 7 2 10 0;
+#X connect 7 3 8 1;
+#X connect 7 4 9 1;
+#X connect 7 5 10 1;
+#X connect 8 0 13 1;
+#X connect 9 0 14 1;
+#X connect 10 0 15 1;
+#X connect 11 0 12 0;
+#X connect 12 0 1 0;
+#X connect 13 0 11 0;
+#X connect 14 0 11 1;
+#X connect 15 0 12 1;
+#X connect 16 0 13 0;
+#X connect 16 1 14 0;
+#X connect 16 2 15 0;
+#X connect 17 0 16 0;
diff --git a/tests/mtx_max/05_function.pd b/tests/mtx_max/05_function.pd
new file mode 100644
index 0000000..3ba5ac6
--- /dev/null
+++ b/tests/mtx_max/05_function.pd
@@ -0,0 +1,43 @@
+#N canvas 105 62 508 466 10;
+#X obj 122 68 inlet bang;
+#X obj 122 385 outlet 1==OK;
+#X text 67 37 test for existance of [mtx_max];
+#X obj 122 89 t b;
+#X obj 122 135 t l l;
+#X msg 122 170 matrix 2 3 \$1 \$2 \$3 \$4 \$5 \$6;
+#X msg 122 110 3 -1 10.5 0.05 0 12;
+#X obj 152 216 unpack 0 0 0 0 0 0;
+#X obj 152 237 max;
+#X obj 183 237 max;
+#X obj 214 236 max;
+#X obj 122 320 *;
+#X obj 122 346 *;
+#X obj 122 297 ==;
+#X obj 161 297 ==;
+#X obj 201 297 ==;
+#X obj 122 275 unpack 0 0 0;
+#X obj 122 191 mtx_max column;
+#X connect 0 0 3 0;
+#X connect 3 0 6 0;
+#X connect 4 0 5 0;
+#X connect 4 1 7 0;
+#X connect 5 0 17 0;
+#X connect 6 0 4 0;
+#X connect 7 0 8 0;
+#X connect 7 1 9 0;
+#X connect 7 2 10 0;
+#X connect 7 3 8 1;
+#X connect 7 4 9 1;
+#X connect 7 5 10 1;
+#X connect 8 0 13 1;
+#X connect 9 0 14 1;
+#X connect 10 0 15 1;
+#X connect 11 0 12 0;
+#X connect 12 0 1 0;
+#X connect 13 0 11 0;
+#X connect 14 0 11 1;
+#X connect 15 0 12 1;
+#X connect 16 0 13 0;
+#X connect 16 1 14 0;
+#X connect 16 2 15 0;
+#X connect 17 0 16 0;
diff --git a/tests/mtx_max/06_function.pd b/tests/mtx_max/06_function.pd
new file mode 100644
index 0000000..4a899c1
--- /dev/null
+++ b/tests/mtx_max/06_function.pd
@@ -0,0 +1,40 @@
+#N canvas 105 62 508 466 10;
+#X obj 122 68 inlet bang;
+#X obj 122 385 outlet 1==OK;
+#X text 67 37 test for existance of [mtx_max];
+#X obj 122 89 t b;
+#X obj 122 135 t l l;
+#X msg 122 170 matrix 2 3 \$1 \$2 \$3 \$4 \$5 \$6;
+#X msg 122 110 3 -1 10.5 0.05 0 12;
+#X obj 122 341 *;
+#X obj 122 318 ==;
+#X obj 161 318 ==;
+#X obj 138 255 unpack 0 0 0 0 0 0;
+#X obj 122 296 unpack 0 0;
+#X obj 138 276 max;
+#X obj 169 276 max;
+#X obj 198 276 max;
+#X obj 229 276 max;
+#X obj 122 191 mtx_max row;
+#X connect 0 0 3 0;
+#X connect 3 0 6 0;
+#X connect 4 0 5 0;
+#X connect 4 1 10 0;
+#X connect 5 0 16 0;
+#X connect 6 0 4 0;
+#X connect 7 0 1 0;
+#X connect 8 0 7 0;
+#X connect 9 0 7 1;
+#X connect 10 0 12 0;
+#X connect 10 1 13 0;
+#X connect 10 2 13 1;
+#X connect 10 3 14 0;
+#X connect 10 4 15 0;
+#X connect 10 5 15 1;
+#X connect 11 0 8 0;
+#X connect 11 1 9 0;
+#X connect 12 0 8 1;
+#X connect 13 0 12 1;
+#X connect 14 0 9 1;
+#X connect 15 0 14 1;
+#X connect 16 0 11 0;