fix(Creating Classes #2 Tests ): Updated tests to handle large numbers
Replaced toIntOrNull() with toLongOrNull() in the test to prevent failure on large numbers Closes https://youtrack.jetbrains.com/issue/EDC-449
This commit is contained in:
parent
36319bf5d4
commit
ffe778b345
|
@ -23,6 +23,6 @@ class TestCreatingClassesExercise2 {
|
|||
val message = "The 'displayID' function should display the address of the object, " +
|
||||
"something like '30c7da1e'\n" +
|
||||
"was: $output"
|
||||
Assert.assertTrue(message, output.trim().toIntOrNull(16) != null)
|
||||
Assert.assertTrue(message, output.trim().toLongOrNull(16) != null)
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue