aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2006-06-28 15:53:02 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2006-06-28 15:53:02 +0000
commit64486ea55b949ba0b7aaa1890e4f4d745b4f7ef3 (patch)
treeeb6c9ea6544ab6713b564a19772b204820c79d1a /tests
parent3ed5f456a05316930f06fe0ea0730bc4eac3e69a (diff)
changed [l2s] argument incompatibly: the argument is now the delimiter
(analogous to [s2l]) instead of the default list to be converted. while this is an incompatible change, i noticed that the argument handling was broken anyhow (produced rather random results, even in the help-file!) and since nobody noticed i guess the arguments are not used anyhow.... svn path=/trunk/externals/zexy/; revision=5310
Diffstat (limited to 'tests')
-rw-r--r--tests/l2s/argument.pd28
-rw-r--r--tests/l2s/delimiter.pd29
-rw-r--r--tests/runtests.txt2
3 files changed, 59 insertions, 0 deletions
diff --git a/tests/l2s/argument.pd b/tests/l2s/argument.pd
new file mode 100644
index 0000000..19c689a
--- /dev/null
+++ b/tests/l2s/argument.pd
@@ -0,0 +1,28 @@
+#N canvas 349 104 581 409 10;
+#X obj 74 255 outlet;
+#X obj 74 7 inlet;
+#X obj 74 28 b;
+#X text 169 7 the argument is now the delimiter;
+#X msg 74 50 list 192 168 7 1;
+#X obj 74 89 t l l b;
+#X obj 124 126 l2s;
+#X obj 74 126 l2s .;
+#X msg 144 106 symbol .;
+#X obj 74 155 select s;
+#X msg 74 181 1;
+#X msg 133 180 0;
+#X obj 74 214 t f;
+#X connect 1 0 2 0;
+#X connect 2 0 4 0;
+#X connect 4 0 5 0;
+#X connect 5 0 7 0;
+#X connect 5 1 6 0;
+#X connect 5 2 8 0;
+#X connect 6 0 9 1;
+#X connect 7 0 9 0;
+#X connect 8 0 6 1;
+#X connect 9 0 10 0;
+#X connect 9 1 11 0;
+#X connect 10 0 12 0;
+#X connect 11 0 12 0;
+#X connect 12 0 0 0;
diff --git a/tests/l2s/delimiter.pd b/tests/l2s/delimiter.pd
new file mode 100644
index 0000000..ddde552
--- /dev/null
+++ b/tests/l2s/delimiter.pd
@@ -0,0 +1,29 @@
+#N canvas 349 104 581 409 10;
+#X obj 74 255 outlet;
+#X obj 74 7 inlet;
+#X obj 74 28 b;
+#X msg 74 50 list 192 168 7 1;
+#X obj 74 130 l2s;
+#X msg 93 110 symbol .;
+#X obj 74 155 select s;
+#X msg 74 181 1;
+#X msg 133 180 0;
+#X obj 74 214 t f;
+#X obj 74 89 t l b b;
+#X msg 133 135 symbol 192.168.7.1;
+#X text 21 -14 check whether the generated symbol is what we expect...
+;
+#X connect 1 0 2 0;
+#X connect 2 0 3 0;
+#X connect 3 0 10 0;
+#X connect 4 0 6 0;
+#X connect 5 0 4 1;
+#X connect 6 0 7 0;
+#X connect 6 1 8 0;
+#X connect 7 0 9 0;
+#X connect 8 0 9 0;
+#X connect 9 0 0 0;
+#X connect 10 0 4 0;
+#X connect 10 1 5 0;
+#X connect 10 2 11 0;
+#X connect 11 0 6 1;
diff --git a/tests/runtests.txt b/tests/runtests.txt
index 60ae970..788dcdd 100644
--- a/tests/runtests.txt
+++ b/tests/runtests.txt
@@ -68,5 +68,7 @@ help-msg/urn;
help-msg/wrap;
help-msg/zexy;
help-msg/z~;
+l2s/argument;
+l2s/delimiter;
repeat/noargs;
s2l/numsymbols;