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
{{ message }}
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.
Describe the problem
Swapped expected and actual arguments
In which lesson and step of the codelab can this issue be found?
Advanced Android in Kotlin 05.1: Testing Basics - Steps 6
How to reproduce?
Docs issue.
Advanced Android in Kotlin 05.1: Testing Basics -> 6. Task: Writing your first test -> Step 2: Write your first test function -> 6. Check that result is what you expected, using assertions.
Code in docs :
// Check the result
assertEquals(result.completedTasksPercent, 0f)
assertEquals(result.activeTasksPercent, 100f)
The first parameter of assertEquals() should be the expected value and the second parameter is the actual value,
Code should be :
assertEquals(0f, result.completedTasksPercent)
assertEquals(100f, result.activeTasksPercent)
Versions
Additional information
codelab: advanced-android-kotlin
The text was updated successfully, but these errors were encountered:
Describe the problem
Swapped expected and actual arguments
In which lesson and step of the codelab can this issue be found?
Advanced Android in Kotlin 05.1: Testing Basics - Steps 6
How to reproduce?
Docs issue.
Advanced Android in Kotlin 05.1: Testing Basics -> 6. Task: Writing your first test -> Step 2: Write your first test function -> 6. Check that result is what you expected, using assertions.
Code in docs :
// Check the result
assertEquals(result.completedTasksPercent, 0f)
assertEquals(result.activeTasksPercent, 100f)
The first parameter of assertEquals() should be the expected value and the second parameter is the actual value,
Code should be :
assertEquals(0f, result.completedTasksPercent)
assertEquals(100f, result.activeTasksPercent)
Versions
Additional information
codelab: advanced-android-kotlin
The text was updated successfully, but these errors were encountered: