blob: b9a710c242d7450f5c3b257630ba11e035831d9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
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)
)
)
}
}
}
}
|