package ixee.cryptopals.test import com.ixee.IxeeSpec import ixee.cryptopals.utils.StreamUtils class StreamUtilsSpec extends IxeeSpec { "StreamUtils" - { ".fromSeq" - { "is better written as xs.to[Stream]" in { } /* "streams the given Seq's elements non-cyclically" in { StreamUtils.fromSeq(Seq(1, 2, 3)) mustBe (1 #:: 2 #:: 3 #:: Stream.empty) } */ } ".continuous" - { "streams the given Seq's elements cyclically" in { assert( StreamUtils.continuous(Seq(1, 2)).startsWith( Seq(1, 2, 1, 2) ) ) } } } }