Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable format assertions for optional/ecmascript-regex.json #191

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ private JsonValidator prepareValidator(
final SchemaSpec spec, final TestSuite suite, final Implementation implementation) {
try {
final boolean format =
Paths.get("format").equals(suite.filePath().getParent().getFileName());
Paths.get("format").equals(suite.filePath().getParent().getFileName())
|| Paths.get("ecmascript-regex.json")
.equals(suite.filePath().getFileName());
return implementation.prepare(
suite.schema(), spec, additionalSchemas, suite.optional() && format);
} catch (final Throwable t) {
Expand Down
Loading