diff options
author | mescalinum <mescalinum@users.sourceforge.net> | 2011-11-17 10:36:08 +0000 |
---|---|---|
committer | mescalinum <mescalinum@users.sourceforge.net> | 2011-11-17 10:36:08 +0000 |
commit | 6e70f33a440fe6c7420c7406af83981be8691ef7 (patch) | |
tree | e31f6c13601a3ad71c95e5977729a767e5b71b3e /tests/basic_output_helper.tcl | |
parent | 74ec984c0b4c7b009d103f1e7169a8c862d78ccb (diff) |
minimal test system. more testcases to come.
svn path=/trunk/externals/loaders/tclpd/; revision=15783
Diffstat (limited to 'tests/basic_output_helper.tcl')
-rw-r--r-- | tests/basic_output_helper.tcl | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/basic_output_helper.tcl b/tests/basic_output_helper.tcl new file mode 100644 index 0000000..c557778 --- /dev/null +++ b/tests/basic_output_helper.tcl @@ -0,0 +1,22 @@ +package require Tclpd 0.3.0 +package require TclpdLib 0.20 + +proc basic_output_helper::constructor {self args} { + pd::add_outlet $self list +} + +proc basic_output_helper::0_symbol {self args} { + switch -exact -- [pd::arg 0 symbol] { + float { + pd::outlet $self 0 float 123 + } + symbol { + pd::outlet $self 0 symbol baz + } + list { + pd::outlet $self 0 list {{symbol foo} {float 123} {symbol bar}} + } + } +} + +pd::class basic_output_helper |