-
Notifications
You must be signed in to change notification settings - Fork 17
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
Implement otherwise and combinating tests from XQ4 #660
base: master
Are you sure you want to change the base?
Conversation
BundleMonFiles updated (2)
Total files change +1.41KB +0.9% Final result: ✅ View report in BundleMon website ➡️ |
9336e4c
to
b2d34d4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice to see some 4.0 features! Left a few smaller comments.
Not sure what's going on with the tests though, most seem to simply require an update of the expected error, but something might have gone wrong with function calls?
"coverage": "nyc report --reporter=text-lcov", | ||
"integrationtests": "ts-mocha --require test/testhook.js \"test/specs/parsing/**/*.ts\" --parallel", | ||
"integrationtests": "ts-mocha --require test/testhook.js \"test/specs/parsing/**/*.ts\"", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was this intentional or removed for debugging?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Intentional. the parallel hides easy to fix errors behind confusing errors. It's CI, so a bit slower is fine
@@ -84,7 +84,7 @@ function parseXPath(xpathExpression: EvaluableExpression): Expression { | |||
|
|||
const ast = | |||
typeof xpathExpression === 'string' | |||
? parseExpression(xpathExpression, { allowXQuery: false }) | |||
? parseExpression(xpathExpression, { allowXQuery: false, version: 4 }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this depend on the options?
In that case we'd probably also need separate caches for the 3.1 vs 4 expressions.
Seems to cause issues in CI
b2d34d4
to
acc9511
Compare
Unsure why this is not wrong, but it makes sense: the unminified fontoxpath is used alongside the minified one. These have different state (registered functions)
4d7c773
to
936ad5d
Compare
936ad5d
to
b520bac
Compare
No description provided.