Skip to content

Commit

Permalink
Drastically increased the number of dashes (from 4 to 10) required fo…
Browse files Browse the repository at this point in the history
…r separations in test files, to prevent conflicts with languages syntax.
  • Loading branch information
Golmote committed Aug 30, 2015
1 parent c20c3ec commit a896f0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test-suite.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ <h2>Writing your test</h2>
----
... the simplified token stream you expect ...</code></pre>

<p>Your file is built up of two or three sections, separated by four or more dashes <code>-</code>, starting at the begin of the line:</p>
<p>Your file is built up of two or three sections, separated by ten or more dashes <code>-</code>, starting at the begin of the line:</p>
<ol>
<li>Your language snippet. The code you want to compile using Prism. (<strong>required</strong>)</li>
<li>The simplified token stream you expect. Needs to be valid JSON. (<strong>required</strong>)</li>
Expand Down
2 changes: 1 addition & 1 deletion tests/helper/test-case.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ module.exports = {
*/
parseTestCaseFile: function (filePath) {
var testCaseSource = fs.readFileSync(filePath, "utf8");
var testCaseParts = testCaseSource.split(/^-{4,}\w*$/m);
var testCaseParts = testCaseSource.split(/^-{10,}\w*$/m);

try {
var testCase = {
Expand Down

0 comments on commit a896f0a

Please sign in to comment.