-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Adding unit test to provoke exception using Sch_WhiteSpaceRestriction… #35013
Conversation
Tagging subscribers to this area: @buyaa-n |
@buyaa-n |
That happens 😄, glad that you found it, thank you for your continuous effort. seems now you need to fix the tests and resolve conflict |
…1 as its message.
…h_WhiteSpaceRestriction2.
…AttributeRestrictionInvalidFromWildcard to be thrown. These cover the throw statement which is not previously covered by unit tests.
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.
Thank you @mrj001, it looks great, sorry for the delayed review
Thanks @mrj001! |
@buyaa-n
Per your suggestion in PR#33890, I'm using a second pull request.
This contains my attempt to provoke the exception using Sch_WhiteSpaceRestriction1 as its message. However, it is provoking a different exception:
I suspect this is a bug, as the XSD I'm trying to compile differs from the example in Paragraph 4.3.6 only in the name of the type and the presence of the namespace qualifier. (I'm pretty sure I've got the correct version of the spec now. :-))
The active test case is attempting to determine what was going wrong. The commented out test case is the one to actually try to provoked the exception.
Fixes #30218: