]> Nishi Git Mirror - gwion.git/commitdiff
:art: Test ugen_connect
authorfennecdjay <astor.jeremie@wanadoo.fr>
Sat, 12 Oct 2019 16:16:06 +0000 (18:16 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Sat, 12 Oct 2019 16:16:06 +0000 (18:16 +0200)
tests/import/ugen_connect.c [new file with mode: 0644]
tests/sh/import.sh

diff --git a/tests/import/ugen_connect.c b/tests/import/ugen_connect.c
new file mode 100644 (file)
index 0000000..dff5f5a
--- /dev/null
@@ -0,0 +1,22 @@
+#include "gwion_util.h"
+#include "gwion_ast.h"
+#include "oo.h"
+#include "vm.h"
+#include "env.h"
+#include "type.h"
+#include "object.h"
+#include "instr.h"
+#include "gwion.h"
+#include "value.h"
+#include "operator.h"
+#include "import.h"
+#include "gwi.h"
+#include "ugen.h"
+
+GWION_IMPORT(ugen_connect) {
+  const UGen ug0 = (UGen)vector_at(&gwi->gwion->vm->ugen, 0);
+  const UGen ug1 = (UGen)vector_at(&gwi->gwion->vm->ugen, 1);
+  ugen_connect(ug0, ug1);
+  ugen_disconnect(ug0, ug1);
+  return GW_OK;
+}
index 15bc6a05aaa2963839c71d8e58523dab7e99d918..7951944e57f336377b64947733bb922d482b7745 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/bash
-# [test] #53
+# [test] #54
 
 n=0
 [ "$1" ] && n="$1"