diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2005-12-15 18:29:32 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2005-12-15 18:29:32 +0000 |
commit | 7a0042776ce2db5c4959afd6f6f19a19303aebfd (patch) | |
tree | 799cbccbc0399f78920153c38c4f525c947b7eae /tests/mtx_minmax | |
parent | c14e1f6562ffed9ee93573851ff29a58ac3e7218 (diff) |
added tests for mtx_min, mtx_max and mtx_minmax
svn path=/trunk/externals/iem/iemmatrix/; revision=4227
Diffstat (limited to 'tests/mtx_minmax')
-rw-r--r-- | tests/mtx_minmax/00_exist.pd | 13 | ||||
-rw-r--r-- | tests/mtx_minmax/01_function.pd | 23 | ||||
-rw-r--r-- | tests/mtx_minmax/02_function.pd | 46 | ||||
-rw-r--r-- | tests/mtx_minmax/03_function.pd | 74 | ||||
-rw-r--r-- | tests/mtx_minmax/04_function.pd | 74 | ||||
-rw-r--r-- | tests/mtx_minmax/05_function.pd | 74 | ||||
-rw-r--r-- | tests/mtx_minmax/06_function.pd | 68 |
7 files changed, 372 insertions, 0 deletions
diff --git a/tests/mtx_minmax/00_exist.pd b/tests/mtx_minmax/00_exist.pd new file mode 100644 index 0000000..8c14457 --- /dev/null +++ b/tests/mtx_minmax/00_exist.pd @@ -0,0 +1,13 @@ +#N canvas 385 142 508 466 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_minmax; +#X text 67 37 test for existance of [mtx_minmax]; +#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_minmax/01_function.pd b/tests/mtx_minmax/01_function.pd new file mode 100644 index 0000000..ec46d50 --- /dev/null +++ b/tests/mtx_minmax/01_function.pd @@ -0,0 +1,23 @@ +#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_minmax; +#X obj 183 265 ==; +#X obj 122 299 *; +#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 3 1 8 1; +#X connect 4 0 7 0; +#X connect 5 0 9 0; +#X connect 6 0 3 0; +#X connect 7 0 5 0; +#X connect 7 1 8 0; +#X connect 8 0 9 1; +#X connect 9 0 1 0; diff --git a/tests/mtx_minmax/02_function.pd b/tests/mtx_minmax/02_function.pd new file mode 100644 index 0000000..1643058 --- /dev/null +++ b/tests/mtx_minmax/02_function.pd @@ -0,0 +1,46 @@ +#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_abs]; +#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 300 *; +#X obj 285 168 unpack 0 0 0 0; +#X obj 122 277 ==; +#X obj 153 277 ==; +#X obj 122 191 mtx_minmax; +#X obj 285 189 min; +#X obj 347 188 min; +#X obj 285 209 min; +#X obj 122 135 t l l l; +#X obj 387 167 unpack 0 0 0 0; +#X obj 387 188 max; +#X obj 449 187 max; +#X obj 387 208 max; +#X connect 0 0 4 0; +#X connect 3 0 10 0; +#X connect 4 0 5 0; +#X connect 5 0 14 0; +#X connect 6 0 1 0; +#X connect 7 0 11 0; +#X connect 7 1 11 1; +#X connect 7 2 12 0; +#X connect 7 3 12 1; +#X connect 8 0 6 0; +#X connect 9 0 6 1; +#X connect 10 0 8 0; +#X connect 10 1 9 0; +#X connect 11 0 13 0; +#X connect 12 0 13 1; +#X connect 13 0 8 1; +#X connect 14 0 3 0; +#X connect 14 1 7 0; +#X connect 14 2 15 0; +#X connect 15 0 16 0; +#X connect 15 1 16 1; +#X connect 15 2 17 0; +#X connect 15 3 17 1; +#X connect 16 0 18 0; +#X connect 17 0 18 1; +#X connect 18 0 9 1; diff --git a/tests/mtx_minmax/03_function.pd b/tests/mtx_minmax/03_function.pd new file mode 100644 index 0000000..c7a6356 --- /dev/null +++ b/tests/mtx_minmax/03_function.pd @@ -0,0 +1,74 @@ +#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_abs]; +#X obj 122 89 t b; +#X obj 122 135 t l l; +#X obj 122 300 *; +#X obj 122 326 *; +#X obj 122 277 ==; +#X obj 161 277 ==; +#X obj 201 277 ==; +#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 191 mtx_minmax :; +#X obj 216 195 unpack 0 0 0 0 0 0; +#X obj 216 216 min; +#X obj 247 216 min; +#X obj 278 215 min; +#X obj 122 255 unpack 0 0 0; +#X obj 122 357 *; +#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 333 300 *; +#X obj 333 326 *; +#X obj 333 277 ==; +#X obj 372 277 ==; +#X obj 412 277 ==; +#X obj 333 255 unpack 0 0 0; +#X connect 0 0 3 0; +#X connect 3 0 11 0; +#X connect 4 0 10 0; +#X connect 4 1 13 0; +#X connect 4 1 19 0; +#X connect 5 0 6 0; +#X connect 6 0 18 0; +#X connect 7 0 5 0; +#X connect 8 0 5 1; +#X connect 9 0 6 1; +#X connect 10 0 12 0; +#X connect 11 0 4 0; +#X connect 12 0 17 0; +#X connect 12 1 28 0; +#X connect 13 0 14 0; +#X connect 13 1 15 0; +#X connect 13 2 16 0; +#X connect 13 3 14 1; +#X connect 13 4 15 1; +#X connect 13 5 16 1; +#X connect 14 0 7 1; +#X connect 15 0 8 1; +#X connect 16 0 9 1; +#X connect 17 0 7 0; +#X connect 17 1 8 0; +#X connect 17 2 9 0; +#X connect 18 0 1 0; +#X connect 19 0 20 0; +#X connect 19 1 21 0; +#X connect 19 2 22 0; +#X connect 19 3 20 1; +#X connect 19 4 21 1; +#X connect 19 5 22 1; +#X connect 20 0 25 1; +#X connect 21 0 26 1; +#X connect 22 0 27 1; +#X connect 23 0 24 0; +#X connect 24 0 18 1; +#X connect 25 0 23 0; +#X connect 26 0 23 1; +#X connect 27 0 24 1; +#X connect 28 0 25 0; +#X connect 28 1 26 0; +#X connect 28 2 27 0; diff --git a/tests/mtx_minmax/04_function.pd b/tests/mtx_minmax/04_function.pd new file mode 100644 index 0000000..9787ca6 --- /dev/null +++ b/tests/mtx_minmax/04_function.pd @@ -0,0 +1,74 @@ +#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_abs]; +#X obj 122 89 t b; +#X obj 122 135 t l l; +#X obj 122 300 *; +#X obj 122 326 *; +#X obj 122 277 ==; +#X obj 161 277 ==; +#X obj 201 277 ==; +#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 286 195 unpack 0 0 0 0 0 0; +#X obj 286 216 min; +#X obj 317 216 min; +#X obj 348 215 min; +#X obj 122 255 unpack 0 0 0; +#X obj 122 357 *; +#X obj 419 196 unpack 0 0 0 0 0 0; +#X obj 419 217 max; +#X obj 450 217 max; +#X obj 481 216 max; +#X obj 403 300 *; +#X obj 403 326 *; +#X obj 403 277 ==; +#X obj 442 277 ==; +#X obj 482 277 ==; +#X obj 403 255 unpack 0 0 0; +#X obj 122 191 mtx_minmax col; +#X connect 0 0 3 0; +#X connect 3 0 11 0; +#X connect 4 0 10 0; +#X connect 4 1 12 0; +#X connect 4 1 18 0; +#X connect 5 0 6 0; +#X connect 6 0 17 0; +#X connect 7 0 5 0; +#X connect 8 0 5 1; +#X connect 9 0 6 1; +#X connect 10 0 28 0; +#X connect 11 0 4 0; +#X connect 12 0 13 0; +#X connect 12 1 14 0; +#X connect 12 2 15 0; +#X connect 12 3 13 1; +#X connect 12 4 14 1; +#X connect 12 5 15 1; +#X connect 13 0 7 1; +#X connect 14 0 8 1; +#X connect 15 0 9 1; +#X connect 16 0 7 0; +#X connect 16 1 8 0; +#X connect 16 2 9 0; +#X connect 17 0 1 0; +#X connect 18 0 19 0; +#X connect 18 1 20 0; +#X connect 18 2 21 0; +#X connect 18 3 19 1; +#X connect 18 4 20 1; +#X connect 18 5 21 1; +#X connect 19 0 24 1; +#X connect 20 0 25 1; +#X connect 21 0 26 1; +#X connect 22 0 23 0; +#X connect 23 0 17 1; +#X connect 24 0 22 0; +#X connect 25 0 22 1; +#X connect 26 0 23 1; +#X connect 27 0 24 0; +#X connect 27 1 25 0; +#X connect 27 2 26 0; +#X connect 28 0 16 0; +#X connect 28 1 27 0; diff --git a/tests/mtx_minmax/05_function.pd b/tests/mtx_minmax/05_function.pd new file mode 100644 index 0000000..d752d29 --- /dev/null +++ b/tests/mtx_minmax/05_function.pd @@ -0,0 +1,74 @@ +#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_abs]; +#X obj 122 89 t b; +#X obj 122 135 t l l; +#X obj 122 300 *; +#X obj 122 326 *; +#X obj 122 277 ==; +#X obj 161 277 ==; +#X obj 201 277 ==; +#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 286 195 unpack 0 0 0 0 0 0; +#X obj 286 216 min; +#X obj 317 216 min; +#X obj 348 215 min; +#X obj 122 255 unpack 0 0 0; +#X obj 122 357 *; +#X obj 419 196 unpack 0 0 0 0 0 0; +#X obj 419 217 max; +#X obj 450 217 max; +#X obj 481 216 max; +#X obj 403 300 *; +#X obj 403 326 *; +#X obj 403 277 ==; +#X obj 442 277 ==; +#X obj 482 277 ==; +#X obj 403 255 unpack 0 0 0; +#X obj 122 191 mtx_minmax column; +#X connect 0 0 3 0; +#X connect 3 0 11 0; +#X connect 4 0 10 0; +#X connect 4 1 12 0; +#X connect 4 1 18 0; +#X connect 5 0 6 0; +#X connect 6 0 17 0; +#X connect 7 0 5 0; +#X connect 8 0 5 1; +#X connect 9 0 6 1; +#X connect 10 0 28 0; +#X connect 11 0 4 0; +#X connect 12 0 13 0; +#X connect 12 1 14 0; +#X connect 12 2 15 0; +#X connect 12 3 13 1; +#X connect 12 4 14 1; +#X connect 12 5 15 1; +#X connect 13 0 7 1; +#X connect 14 0 8 1; +#X connect 15 0 9 1; +#X connect 16 0 7 0; +#X connect 16 1 8 0; +#X connect 16 2 9 0; +#X connect 17 0 1 0; +#X connect 18 0 19 0; +#X connect 18 1 20 0; +#X connect 18 2 21 0; +#X connect 18 3 19 1; +#X connect 18 4 20 1; +#X connect 18 5 21 1; +#X connect 19 0 24 1; +#X connect 20 0 25 1; +#X connect 21 0 26 1; +#X connect 22 0 23 0; +#X connect 23 0 17 1; +#X connect 24 0 22 0; +#X connect 25 0 22 1; +#X connect 26 0 23 1; +#X connect 27 0 24 0; +#X connect 27 1 25 0; +#X connect 27 2 26 0; +#X connect 28 0 16 0; +#X connect 28 1 27 0; diff --git a/tests/mtx_minmax/06_function.pd b/tests/mtx_minmax/06_function.pd new file mode 100644 index 0000000..442b66b --- /dev/null +++ b/tests/mtx_minmax/06_function.pd @@ -0,0 +1,68 @@ +#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_abs]; +#X obj 122 89 t b; +#X obj 122 135 t l l; +#X obj 122 300 *; +#X obj 122 326 *; +#X obj 122 277 ==; +#X obj 161 277 ==; +#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 214 unpack 0 0 0 0 0 0; +#X obj 138 235 min; +#X obj 169 235 min; +#X obj 122 191 mtx_minmax row; +#X obj 122 255 unpack 0 0; +#X obj 198 235 min; +#X obj 229 235 min; +#X obj 262 300 *; +#X obj 262 277 ==; +#X obj 301 277 ==; +#X obj 278 214 unpack 0 0 0 0 0 0; +#X obj 262 255 unpack 0 0; +#X obj 278 235 max; +#X obj 309 235 max; +#X obj 338 235 max; +#X obj 369 235 max; +#X connect 0 0 3 0; +#X connect 3 0 10 0; +#X connect 4 0 9 0; +#X connect 4 1 11 0; +#X connect 4 1 21 0; +#X connect 5 0 6 0; +#X connect 6 0 1 0; +#X connect 7 0 5 0; +#X connect 8 0 5 1; +#X connect 9 0 14 0; +#X connect 10 0 4 0; +#X connect 11 0 12 0; +#X connect 11 1 13 0; +#X connect 11 2 13 1; +#X connect 11 3 16 0; +#X connect 11 4 17 0; +#X connect 11 5 17 1; +#X connect 12 0 7 1; +#X connect 13 0 12 1; +#X connect 14 0 15 0; +#X connect 14 1 22 0; +#X connect 15 0 7 0; +#X connect 15 1 8 0; +#X connect 16 0 8 1; +#X connect 17 0 16 1; +#X connect 18 0 6 1; +#X connect 19 0 18 0; +#X connect 20 0 18 1; +#X connect 21 0 23 0; +#X connect 21 1 24 0; +#X connect 21 2 24 1; +#X connect 21 3 25 0; +#X connect 21 4 26 0; +#X connect 21 5 26 1; +#X connect 22 0 19 0; +#X connect 22 1 20 0; +#X connect 23 0 19 1; +#X connect 24 0 23 1; +#X connect 25 0 20 1; +#X connect 26 0 25 1; |