(inputFile, expectedFile)
| 25 | } |
| 26 | |
| 27 | shouldBeEqual(inputFile, expectedFile) { |
| 28 | let input = this.readFile(inputFile); |
| 29 | let expected = expectedFile ? this.readFile(expectedFile) : input; |
| 30 | |
| 31 | return this.comb.processString(input, {syntax: this.syntax}) |
| 32 | .then(string => assert.equal(string, expected)); |
| 33 | } |
| 34 | |
| 35 | /** |
| 36 | * Detect options in a file and compare result with expected. |
no test coverage detected