(input, expected)
| 240 | let numTestFailures = 0; |
| 241 | |
| 242 | function test(input, expected) { |
| 243 | const observed = runOnJsText(input); |
| 244 | if (observed != expected) { |
| 245 | console.error(`ERROR: Input: ${input}\nobserved: ${observed}\nexpected: ${expected}\n`); |
| 246 | ++numTestFailures; |
| 247 | } else { |
| 248 | console.log(`OK: ${input} -> ${expected}`); |
| 249 | } |
| 250 | } |
| 251 | |
| 252 | function runTests() { |
| 253 | // optPassSimplifyModularizeFunction: |
no test coverage detected