-
Notifications
You must be signed in to change notification settings - Fork 185
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
Fix false positives in testkit #480
Fix false positives in testkit #480
Conversation
@@ -205,7 +205,7 @@ object Patch { | |||
case _: LintPatch => hasLintMessage = true | |||
case _ => onlyLint = false | |||
} | |||
hasLintMessage && onlyLint | |||
patch.isEmpty || hasLintMessage && onlyLint |
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.
I wrote an empty syntactic rule and I ran the SemanticSuite. It complained it was missing an output. This is because it checks if there are lint messages. It's obviously not the best way to fix this.
…xpected when assertions are empty this would make a test pass if * there are asserts but no reported messages * there are reported messages but not asserts
973b6ef
to
7e2e559
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.
LGTM 👍
.flatMap(_.headOption.map(_.lintMessage)) | ||
.toList | ||
|
||
val missmatch = |
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.
mismatch
@olafurpg look what I found :p
I should always test edge cases.