]> git.dabkitsch.com - zeropointnine.git/commitdiff
adding tests
authorJeffrey Lubow <jml@dabkitsch.com>
Thu, 5 May 2016 21:50:42 +0000 (14:50 -0700)
committerJeffrey Lubow <jml@dabkitsch.com>
Thu, 5 May 2016 21:50:42 +0000 (14:50 -0700)
tests/closebang_test.maxpat [new file with mode: 0644]
tests/test_closebang.txt [new file with mode: 0644]

diff --git a/tests/closebang_test.maxpat b/tests/closebang_test.maxpat
new file mode 100644 (file)
index 0000000..1593f95
--- /dev/null
@@ -0,0 +1,152 @@
+{
+       "patcher" :     {
+               "fileversion" : 1,
+               "appversion" :          {
+                       "major" : 7,
+                       "minor" : 1,
+                       "revision" : 0,
+                       "architecture" : "x86",
+                       "modernui" : 1
+               }
+,
+               "rect" : [ 54.0, 86.0, 640.0, 480.0 ],
+               "bglocked" : 0,
+               "openinpresentation" : 0,
+               "default_fontsize" : 12.0,
+               "default_fontface" : 0,
+               "default_fontname" : "Arial",
+               "gridonopen" : 2,
+               "gridsize" : [ 15.0, 15.0 ],
+               "gridsnaponopen" : 2,
+               "objectsnaponopen" : 1,
+               "statusbarvisible" : 2,
+               "toolbarvisible" : 1,
+               "lefttoolbarpinned" : 0,
+               "toptoolbarpinned" : 0,
+               "righttoolbarpinned" : 0,
+               "bottomtoolbarpinned" : 0,
+               "toolbars_unpinned_last_save" : 0,
+               "tallnewobj" : 0,
+               "boxanimatetime" : 200,
+               "enablehscroll" : 1,
+               "enablevscroll" : 1,
+               "devicewidth" : 0.0,
+               "description" : "",
+               "digest" : "",
+               "tags" : "",
+               "style" : "",
+               "subpatcher_template" : "gridded",
+               "boxes" : [                     {
+                               "box" :                                 {
+                                       "id" : "obj-8",
+                                       "maxclass" : "newobj",
+                                       "numinlets" : 1,
+                                       "numoutlets" : 1,
+                                       "outlettype" : [ "bang" ],
+                                       "patching_rect" : [ 345.0, 105.0, 60.0, 22.0 ],
+                                       "style" : "",
+                                       "text" : "loadbang"
+                               }
+
+                       }
+,                      {
+                               "box" :                                 {
+                                       "id" : "obj-7",
+                                       "maxclass" : "message",
+                                       "numinlets" : 2,
+                                       "numoutlets" : 1,
+                                       "outlettype" : [ "" ],
+                                       "patching_rect" : [ 300.0, 270.0, 36.0, 22.0 ],
+                                       "style" : "",
+                                       "text" : "write"
+                               }
+
+                       }
+,                      {
+                               "box" :                                 {
+                                       "id" : "obj-5",
+                                       "maxclass" : "message",
+                                       "numinlets" : 2,
+                                       "numoutlets" : 1,
+                                       "outlettype" : [ "" ],
+                                       "patching_rect" : [ 375.0, 180.0, 260.0, 22.0 ],
+                                       "style" : "",
+                                       "text" : "read test_closebang.txt, something was written"
+                               }
+
+                       }
+,                      {
+                               "box" :                                 {
+                                       "id" : "obj-3",
+                                       "maxclass" : "newobj",
+                                       "numinlets" : 1,
+                                       "numoutlets" : 3,
+                                       "outlettype" : [ "", "bang", "int" ],
+                                       "patching_rect" : [ 360.0, 345.0, 40.0, 22.0 ],
+                                       "style" : "",
+                                       "text" : "text"
+                               }
+
+                       }
+,                      {
+                               "box" :                                 {
+                                       "id" : "obj-1",
+                                       "maxclass" : "newobj",
+                                       "numinlets" : 1,
+                                       "numoutlets" : 1,
+                                       "outlettype" : [ "bang" ],
+                                       "patching_rect" : [ 255.0, 120.0, 65.0, 22.0 ],
+                                       "style" : "",
+                                       "text" : "closebang"
+                               }
+
+                       }
+ ],
+               "lines" : [                     {
+                               "patchline" :                           {
+                                       "destination" : [ "obj-7", 0 ],
+                                       "disabled" : 0,
+                                       "hidden" : 0,
+                                       "source" : [ "obj-1", 0 ]
+                               }
+
+                       }
+,                      {
+                               "patchline" :                           {
+                                       "destination" : [ "obj-3", 0 ],
+                                       "disabled" : 0,
+                                       "hidden" : 0,
+                                       "source" : [ "obj-5", 0 ]
+                               }
+
+                       }
+,                      {
+                               "patchline" :                           {
+                                       "destination" : [ "obj-3", 0 ],
+                                       "disabled" : 0,
+                                       "hidden" : 0,
+                                       "source" : [ "obj-7", 0 ]
+                               }
+
+                       }
+,                      {
+                               "patchline" :                           {
+                                       "destination" : [ "obj-5", 0 ],
+                                       "disabled" : 0,
+                                       "hidden" : 0,
+                                       "source" : [ "obj-8", 0 ]
+                               }
+
+                       }
+ ],
+               "dependency_cache" : [  ],
+               "autosave" : 0,
+               "bgfillcolor_type" : "gradient",
+               "bgfillcolor_color1" : [ 0.376471, 0.384314, 0.4, 1.0 ],
+               "bgfillcolor_color2" : [ 0.290196, 0.309804, 0.301961, 1.0 ],
+               "bgfillcolor_color" : [ 0.290196, 0.309804, 0.301961, 1.0 ],
+               "bgfillcolor_angle" : 270.0,
+               "bgfillcolor_proportion" : 0.39
+       }
+
+}
diff --git a/tests/test_closebang.txt b/tests/test_closebang.txt
new file mode 100644 (file)
index 0000000..e61ef7b
--- /dev/null
@@ -0,0 +1 @@
+aa