Skip to content

Test combine? #78

Answered by JakeWharton
filnik asked this question in Q&A
Discussion options

You must be logged in to vote

The output of combining multiple flows is just a single flow, and Turbine tests single flows.

I would expect an example to look like

combine(flowOf("a"), flowOf("b"), ::Pair).test {
  assertEquals(Pair("a", "b"), awaitItem())
}

but I haven't tested it.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by filnik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants