Closed christopherperry closed 11 years ago
Seems like a bug in CharSequence
or Spannable
then. Sad.
Oh no wait, it's a failure of both you and our API. We'll add something like hasTextString
in the next version which does pure string comparison.
I don't fail!!! Haha, I tried to also compare like this as well:
assertThat(textView).hasText(Html.fromHtml("<b>Some bold text</b> with other text"));
so at least it compares the same object, but that also fails.
I'm doing
in code, and the assertion
fails with the message:
Expected text <<b>Some bold text</b> with other text> but was <<b>Some bold text</b> with other text>
I expect the assertion to pass because the text is the same.