-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
SpanDrawableMatcher with assertions and tests #70
Conversation
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.
Awesome contribution! Thanks for your work 👍
@pisanyialeksei appreciate for the contribution mate! LGTM. Please fix detekt issues and Ill happy to merge it.
|
} | ||
|
||
override fun matchesSafely(view: View?): Boolean { | ||
|
||
if (view !is TextView && drawable == null) { | ||
if (view !is TextView?) { |
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.
At first, I took this comparison from DrawableMatcher
view !is TextView && drawable == null
but I can't understand why there was a comparison of drawable with null. So I removed it. Let me know if it's a mistake and a second comparison is needed here
SpanDrawableMatcher with assertions in TextViewAssertions and test in TextViewTest