From fba657511f11819897fb2f0a3e4e707af3854278 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Sat, 12 Oct 2019 18:16:06 +0200 Subject: [PATCH] :art: Test ugen_connect --- tests/import/ugen_connect.c | 22 ++++++++++++++++++++++ tests/sh/import.sh | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 tests/import/ugen_connect.c diff --git a/tests/import/ugen_connect.c b/tests/import/ugen_connect.c new file mode 100644 index 00000000..dff5f5ac --- /dev/null +++ b/tests/import/ugen_connect.c @@ -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; +} diff --git a/tests/sh/import.sh b/tests/sh/import.sh index 15bc6a05..7951944e 100644 --- a/tests/sh/import.sh +++ b/tests/sh/import.sh @@ -1,5 +1,5 @@ #!/bin/bash -# [test] #53 +# [test] #54 n=0 [ "$1" ] && n="$1" -- 2.43.0