https://kotlinlang.org logo
#kotest
Title
# kotest
s

Sebastian Schuberth

08/12/2021, 6:20 AM
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

sam

08/13/2021, 4:47 AM
Yeah I'd consider that a bug. Workaround is just turning it into a list like you don't wanna do 😞
2 Views