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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
Enable format assertions for optional/ecmascript-regex.json
  • Loading branch information
justin-tay committed Jul 1, 2024
commit 1ca28f230df07cc2f4d21109b014bd102095c00c
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