vendredi 30 octobre 2020

How to check String equality in Google Truth assertions?

Truth.assertThat(expected).matches(actual) or Truth.assertThat(expected).isEqualTo(actual) ?

The docs say that the matches() method takes in a String in the form of a regex but not sure if a string literal works as well? That's what got me confused.

Aucun commentaire:

Enregistrer un commentaire