Skip to content
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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

naoussi
Copy link
Contributor

@naoussi naoussi commented Oct 26, 2024

Added unit tests

Comment on lines 38 to 46
<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>
Copy link
Contributor

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.

Comment on lines 16 to 21
@Test
fun `simpleFlow should emit 1 2 3`() = runTest {
val flow = simpleFlow().toList()

assertEquals(listOf(1, 2, 3), flow)
}
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants