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

Generate an elaborate set of negative tests for ListPattern #1337

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

yogeshnikam671
Copy link
Member

What:
The changes enable generation of an elaborate set of negative patterns for ListPattern.

Why:
Earlier the only negative pattern that was getting generated from ListPattern was NullPattern.

Checklist:

@@ -95,6 +95,9 @@ data class Row(
if(requestBodyJSONExample == null)
return this

if(requestBodyJSONExample.jsonObject is JSONArrayValue)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@joelrosario , require your help here. For now we have introduced this condition to make a test pass. We are not much sure if this is right. We'll discuss.

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

Successfully merging this pull request may close these issues.

2 participants