Fix logging tests

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
Steffen Vogel
2023-06-21 08:56:09 +02:00
parent 8e4961e1f7
commit c8e5858314
28 changed files with 250 additions and 186 deletions

View File

@@ -14,12 +14,11 @@ import (
)
func TestSuite(t *testing.T) {
test.SetupLogging()
RegisterFailHandler(Fail)
RunSpecs(t, "Test Helper Suite")
}
var _ = test.SetupLogging()
var _ = Describe("entropy", func() {
Specify("that the entropy of an empty slice is zero", func() {
Expect(test.Entropy([]byte{})).To(BeNumerically("==", 0))