Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
purr-data
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sanket Bhukan
purr-data
Commits
281543ac
Commit
281543ac
authored
4 years ago
by
Jonathan Wilkes
Browse files
Options
Downloads
Patches
Plain Diff
add some regression tests
parent
779f31dc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/regression_tests.pd
+3
-1
3 additions, 1 deletion
scripts/regression_tests.pd
scripts/regression_tests/select_bang.pd
+67
-0
67 additions, 0 deletions
scripts/regression_tests/select_bang.pd
with
70 additions
and
1 deletion
scripts/regression_tests.pd
+
3
−
1
View file @
281543ac
#N canvas 1
1 16
6 749 571 12;
#N canvas 1
26 9
6 749 571 12;
#X obj 465 281 r \$0-result;
#X obj 212 239 bng 31 250 50 0 empty empty Run_all 39 13 0 12 -262144
-1 -1;
...
...
@@ -51,6 +51,7 @@ is handy for some binbuf tests.;
#X msg 127 146 all tests succeeded.;
#X obj 127 172 print Done;
#X obj 198 1701 rtest wrap~_compatibility_bug;
#X obj 198 1756 rtest select_bang;
#X connect 0 0 27 0;
#X connect 1 0 4 0;
#X connect 2 0 42 0;
...
...
@@ -87,3 +88,4 @@ is handy for some binbuf tests.;
#X connect 42 2 4 0;
#X connect 42 3 3 0;
#X connect 43 0 44 0;
#X connect 45 0 46 0;
This diff is collapsed.
Click to expand it.
scripts/regression_tests/select_bang.pd
0 → 100644
+
67
−
0
View file @
281543ac
#N canvas 52 178 1182 741 12;
#X obj 100 33 inlet;
#X msg 307 359 0;
#X obj 101 566 outlet;
#X obj 176 131 unpost;
#X obj 307 329 select bang;
#X obj 151 290 list;
#X obj 342 101 unpost;
#X obj 294 133 list;
#X obj 294 162 list length;
#X obj 294 191 != 0;
#X obj 294 223 list append right inlet of select should not accept
"bang" message;
#X obj 151 319 list length;
#X obj 151 348 != 0;
#X obj 151 497 list append left inlet of select should not accept "bang"
;
#X obj 232 413 f;
#X msg 355 359 0;
#X msg 403 359 1;
#X obj 232 285 trigger bang bang bang;
#X obj 101 497 list;
#X obj 100 62 trigger bang bang bang bang bang bang bang;
#X obj 232 443 list append "bang" message to left inlet should not
trigger output;
#X obj 856 311 t a;
#X obj 856 490 t a;
#X text 508 134 These tests ensure that a "bang" message triggers an
error on both inlets \, and that a "bang" message doesn't match argument
bang or produce any output whatsoever.;
#X text 508 34 For awhile pd-l2ork would match an incoming "bang" message
against argument "bang". This created an ambiguity because argument
"bang" is supposed to match "symbol bang". (Besides \, [route bang]
may be used to match bang messages unambiguously.);
#X connect 0 0 19 0;
#X connect 1 0 14 1;
#X connect 3 0 5 1;
#X connect 3 1 17 0;
#X connect 4 0 1 0;
#X connect 4 1 15 0;
#X connect 5 0 11 0;
#X connect 6 0 7 1;
#X connect 6 1 4 1;
#X connect 7 0 8 0;
#X connect 8 0 9 0;
#X connect 9 0 10 0;
#X connect 10 0 21 0;
#X connect 11 0 12 0;
#X connect 12 0 13 0;
#X connect 13 0 2 0;
#X connect 14 0 20 0;
#X connect 15 0 14 1;
#X connect 16 0 14 1;
#X connect 17 0 14 0;
#X connect 17 1 4 0;
#X connect 17 2 16 0;
#X connect 18 0 2 0;
#X connect 19 0 18 0;
#X connect 19 1 5 0;
#X connect 19 2 3 0;
#X connect 19 3 5 1;
#X connect 19 4 7 0;
#X connect 19 5 6 0;
#X connect 19 6 7 1;
#X connect 20 0 18 1;
#X connect 21 0 22 0;
#X connect 22 0 2 0;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment