From 26a6796bc975d713102be4216bd0a1d58b38d11e Mon Sep 17 00:00:00 2001 From: Sergey Grebenshchikov Date: Wed, 9 Oct 2024 00:58:29 +0200 Subject: [PATCH] ... --- internal/testrandom/random_test.go | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 internal/testrandom/random_test.go diff --git a/internal/testrandom/random_test.go b/internal/testrandom/random_test.go new file mode 100644 index 0000000..bc9b786 --- /dev/null +++ b/internal/testrandom/random_test.go @@ -0,0 +1,29 @@ +package testrandom_test + +import ( + "testing" + + "github.com/keilerkonzept/bitknn/internal/testrandom" +) + +func TestQuery(t *testing.T) { + _ = testrandom.Query() +} +func TestData(t *testing.T) { + data := testrandom.Data(123) + if len(data) != 123 { + t.Fatal() + } +} +func TestLabels(t *testing.T) { + data := testrandom.Labels(123) + if len(data) != 123 { + t.Fatal() + } +} +func TestValues(t *testing.T) { + data := testrandom.Values(123) + if len(data) != 123 { + t.Fatal() + } +}