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

Testing Suite Bug with Semantic Expressions #183

Open
CanBerker opened this issue Jan 30, 2019 · 0 comments
Open

Testing Suite Bug with Semantic Expressions #183

CanBerker opened this issue Jan 30, 2019 · 0 comments

Comments

@CanBerker
Copy link
Collaborator

The following test annotation fails with the assertion given below:
(:JIQS: ShouldCrash; ErrorCode="XPST0008"; ErrorMetadata="LINE:3:COLUMN:6:" :)
for $i in ()
where $j eq $i + 1
return $i

java.lang.AssertionError: Program did not compile when expected to.
Error output: Error [err: XPST0008]LINE:3:COLUMN:6:Uninitialized variable reference: j

It appears that this test case causes a semantic exception which later hits a shouldCompile() check that always returns true, effectively causing the given exception. If semantic exceptions are a part of test cases handled at runtime, a fix may be needed here.

Originally posted by @CanBerker in #175

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants