-
Notifications
You must be signed in to change notification settings - Fork 296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KTLN-575 Testing Flow in Kotlin #1137
base: master
Are you sure you want to change the base?
Conversation
<version>1.6.0</version> <!-- Use the latest stable version --> | ||
</dependency> | ||
|
||
<!-- Kotlin Coroutines Test --> | ||
<dependency> | ||
<groupId>org.jetbrains.kotlinx</groupId> | ||
<artifactId>kotlinx-coroutines-test</artifactId> | ||
<version>1.6.0</version> <!-- Use the latest stable version --> | ||
<scope>test</scope> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's pull these versions out into the properties block below, and we probably don't need these comments to use the latest version.
@Test | ||
fun `simpleFlow should emit 1 2 3`() = runTest { | ||
val flow = simpleFlow().toList() | ||
|
||
assertEquals(listOf(1, 2, 3), flow) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting might be a little off here.
Added unit tests