update swig on windows

This commit is contained in:
Bassem Girgis
2019-08-04 21:38:19 -05:00
parent 8414b7136b
commit 76ad52be58
5943 changed files with 91790 additions and 71892 deletions

View File

@@ -0,0 +1,31 @@
var complextest = require("complextest");
a = [-1,2];
expected = [-1, -2];
a_c = complextest.Conj(a);
if (a_c.toString() != expected.toString())
throw "Error in Conj(a)";
a_c = complextest.Conjf(a);
if (a_c.toString() != expected.toString())
throw "Error in Conjf(a)";
a_c = complextest.Conj2(a);
if (a_c.toString() != expected.toString())
throw "Error in Conj(a)";
a_c = complextest.Conjf2(a);
if (a_c.toString() != expected.toString())
throw "Error in Conjf(a)";
v = new complextest.VectorStdCplx();
v.add([1,2]);
v.add([2,3]);
v.add([4,3]);
v.add(1);
// TODO: how to check validity?
complextest.CopyHalf(v);
complextest.CopyHalfRef(v);