Some tests broke for me comparing `Long`, if I get...
# android
w
Some tests broke for me comparing
Long
, if I get the
Long
from a method-call. My method call is a
public long insert(String table, String nullColumnHack, ContentValues values)
which is defined on
SQliteDatabase
In Kotlin 1.0.0 everything was fine:
Copy code
val id = insert(....)
// id has now the value: 2364137526064485012
assertTrue(id > 0, "Insert should be valid")
Kotlin 1.0.1:
Copy code
val id = insert(....)
// id has now the value: 2364137526064485012
assertTrue(id > 0, "This fails in Kotlin 1.0.1")
assertTrue(id > 0L, "This succeeds in Kotlin 1.0.1")

// strangely this works (without method call to Java)
val anotherId = 2364137526064485012L
assertTrue(anotherId > 0, "This succeeds in Kotlin 1.0.1")
assertTrue(anotherId > 0L, "This succeeds in Kotlin 1.0.1")