(rootParser = this.compileAndReturnRootParser(), expectedErrorMessage = "")
| 19912 | } |
| 19913 | } |
| 19914 | examplesToTestBlocks(rootParser = this.compileAndReturnRootParser(), expectedErrorMessage = "") { |
| 19915 | const testBlocks = {} |
| 19916 | this.validConcreteAndAbstractParserDefinitions.forEach(def => |
| 19917 | def.examples.forEach(example => { |
| 19918 | const id = def.id + example.content |
| 19919 | testBlocks[id] = equal => { |
| 19920 | const exampleProgram = new rootParser(example.subparticlesToString()) |
| 19921 | const errors = exampleProgram.getAllErrors(example._getLineNumber() + 1) |
| 19922 | equal(errors.join("\n"), expectedErrorMessage, `Expected no errors in ${id}`) |
| 19923 | } |
| 19924 | }) |
| 19925 | ) |
| 19926 | return testBlocks |
| 19927 | } |
| 19928 | toReadMe() { |
| 19929 | const languageName = this.extensionName |
| 19930 | const rootParticleDef = this.rootParserDefinition |
nothing calls this directly
no test coverage detected