Skip to content

Instantly share code, notes, and snippets.

@maltebucksch
Last active August 19, 2022 18:32
Show Gist options
  • Save maltebucksch/d43ffc0af1170ef230b94c0bf0fe5630 to your computer and use it in GitHub Desktop.
Save maltebucksch/d43ffc0af1170ef230b94c0bf0fe5630 to your computer and use it in GitHub Desktop.
Evaluating a great developer team
fun testTeamIsAwesome() {
val quickBirdTeamMembers = fetchTeamMembers()
val awesomeTeamMembers = quickBirdTeamMembers.filter { teamMember ->
teamMember.isPassionate &&
teamMember.isFriendly &&
teamMember.isConstantlyImproving
}
assertEquals(quickBirdTeamMembers.size, awesomeTeamMembers.size)
}
@mirland
Copy link

mirland commented Aug 19, 2022

Hi! fetchTeamMembers() should be a suspend function, and you are not in a coroutine scope 🤔 . So I think that test will not work 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment