(args, _math, _scope)
| 108 | it('should compile a FunctionNode with a raw function', function () { |
| 109 | const mymath = math.create() |
| 110 | function myFunction (args, _math, _scope) { |
| 111 | assert.strictEqual(args.length, 2) |
| 112 | assert(args[0] instanceof mymath.Node) |
| 113 | assert(args[1] instanceof mymath.Node) |
| 114 | assert.deepStrictEqual(toObject(_scope), scope) |
| 115 | return 'myFunction(' + args.join(', ') + ')' |
| 116 | } |
| 117 | myFunction.rawArgs = true |
| 118 | mymath.import({ myFunction }) |
| 119 |
nothing calls this directly
no test coverage detected
searching dependent graphs…