Skip to content

Commit 21b2bcc

Browse files
committed
Uncomment and restore BitstringTest in BitstringTest.kt.
1 parent 36e47a6 commit 21b2bcc

File tree

1 file changed

+19
-15
lines changed

1 file changed

+19
-15
lines changed
Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
package io.kotest.examples.native
22

3-
//class BitstringTest : DescribeSpec() {
4-
// init {
5-
// describe("bit strings") {
6-
// it("should set bits based on booleans 1") {
7-
// bitstring(listOf(true, false, true, false, true)) shouldBe "10101"
8-
// bitstring(listOf(false, false, false, false, false, false, false, true)) shouldBe "00000001"
9-
// }
10-
// it("should error on empty") {
11-
// shouldThrowAny {
12-
// bitstring(listOf())
13-
// }
14-
// }
15-
// }
16-
// }
17-
//}
3+
import io.kotest.assertions.throwables.shouldThrowAny
4+
import io.kotest.core.spec.style.DescribeSpec
5+
import io.kotest.matchers.shouldBe
6+
7+
class BitstringTest : DescribeSpec() {
8+
init {
9+
describe("bit strings") {
10+
it("should set bits based on booleans 1") {
11+
bitstring(listOf(true, false, true, false, true)) shouldBe "10101"
12+
bitstring(listOf(false, false, false, false, false, false, false, true)) shouldBe "00000001"
13+
}
14+
it("should error on empty") {
15+
shouldThrowAny {
16+
bitstring(listOf())
17+
}
18+
}
19+
}
20+
}
21+
}

0 commit comments

Comments
 (0)