I have a question about how Kotest matche sequence...
# kotest
s
I have a question about how Kotest matche sequences: The implementation of ``io.kotest.matchers.sequences.containExactly` seems to traverse the sequence twice, once to determine the count, and then a second time for the actual element comparison. This fails for many "generated" sequences that can be traversed only once. Is there a way to match also these with Kotest, without turning them into a list beforehand?
s
Yeah I'd consider that a bug. Workaround is just turning it into a list like you don't wanna do 😞