(node, options)
| 154 | |
| 155 | it('should stringify a ParenthesisNode with custom toString', function () { |
| 156 | const customFunction = function (node, options) { |
| 157 | if (node.type === 'ParenthesisNode') { |
| 158 | return '[' + node.content.toString(options) + ']' |
| 159 | } |
| 160 | } |
| 161 | |
| 162 | const c = new math.ConstantNode(1) |
| 163 | const n = new math.ParenthesisNode(c) |