(name)
| 21 | })) |
| 22 | |
| 23 | function runExamplesInDocs (name) { |
| 24 | mathDocs.config(originalConfig) |
| 25 | // every function should have doc.examples |
| 26 | const examples = mathDocs.evaluate(`help("${name}")`).doc.examples |
| 27 | try { |
| 28 | // validate if the examples run without errors |
| 29 | mathDocs.evaluate(examples) |
| 30 | return |
| 31 | } catch { |
| 32 | } |
| 33 | // if they still have errors try with a new math instance |
| 34 | mathDocs = math.create(math.all) |
| 35 | mathDocs.evaluate(examples) |
| 36 | } |
| 37 | |
| 38 | function hasValidSeeAlso (name) { |
| 39 | let seeAlso = [] |
no test coverage detected
searching dependent graphs…