blob: f97e92781f42648fc82ec756a3682558ee315b64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
var template_typedef_cplx2 = require("template_typedef_cplx2");
//
// double case
//
var d, e;
try {
d = template_typedef_cplx2.make_Identity_double();
// This test is not possible in JSC where all SWIG proxies inherit from Object
if (typeof print === 'undefined')
if (!d.constructor.name.includes('ArithUnaryFunction')) throw new Error;
} catch {
throw new Error(`${d} is not an ArithUnaryFunction`);
}
try {
e = template_typedef_cplx2.make_Multiplies_double_double_double_double(d, d);
if (typeof print === 'undefined')
if (!e.constructor.name.includes('ArithUnaryFunction')) throw new Error;
} catch {
throw new Error(`${e} is not an ArithUnaryFunction`);
}
|