You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just swapped Google Truth with AssertK and found that equal assertion fails for Long/? and Int. Using equality operator in Kotlin also returns the error Operator '==' cannot be applied to 'Long?' and 'Int'. However, this succeeds with Google Truth and I think it's reasonable since they have equal values.
@Test
fun nullableLongToIntEqualityCheckIsTrue(){
val actual: Long? = 2 + 2
val expected: Int = 4
assertThat(actual).isEqualTo(expected)
}
The text was updated successfully, but these errors were encountered:
I just swapped Google Truth with AssertK and found that equal assertion fails for
Long/?
andInt
. Using equality operator in Kotlin also returns the errorOperator '==' cannot be applied to 'Long?' and 'Int'
. However, this succeeds with Google Truth and I think it's reasonable since they have equal values.The text was updated successfully, but these errors were encountered: