Skip to content

Commit

Permalink
include-expected-output
Browse files Browse the repository at this point in the history
  • Loading branch information
dvirtz committed Oct 27, 2020
1 parent 8f772a0 commit 8a40079
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/reveal-test/dist/reveal-test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const compile = async (info, retryOptions = {}) => {
}
})();

if (info.hasOwnProperty('expectedOutput') && !result.match(info.expectedOutput)) {
if (info.hasOwnProperty('expectedOutput') && !result.includes(info.expectedOutput)) {
throw new compilerExplorerDirectives.CompileError(-3, error(`output mismatch:\nactual: ${result}\nexpected: ${info.expectedOutput}`));
}

Expand Down
2 changes: 1 addition & 1 deletion packages/reveal-test/src/reveal-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const compile = async (info, retryOptions = {}) => {
}
})();

if (info.hasOwnProperty('expectedOutput') && !result.match(info.expectedOutput)) {
if (info.hasOwnProperty('expectedOutput') && !result.includes(info.expectedOutput)) {
throw new CompileError(-3, error(`output mismatch:\nactual: ${result}\nexpected: ${info.expectedOutput}`));
}

Expand Down

0 comments on commit 8a40079

Please sign in to comment.