1
1
Fork 0

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:
sofiiako 2021-07-27 19:01:00 +03:00
parent 36319bf5d4
commit ffe778b345
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}
}