diff --git a/.gitignore b/.gitignore index f8c35d5..94b5959 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,6 @@ *.a *.so *.dll + +# go test coverprofiles +*.coverprofile diff --git a/base/edf/thread_test.go b/base/edf/thread_test.go index 00032c6..e38f801 100644 --- a/base/edf/thread_test.go +++ b/base/edf/thread_test.go @@ -55,5 +55,6 @@ func TestThreadFindAndWrite(T *testing.T) { }) }) }) + os.Remove("hello.db") }) -} \ No newline at end of file +} diff --git a/knn/knn_test.go b/knn/knn_test.go index c398b39..3801f2e 100644 --- a/knn/knn_test.go +++ b/knn/knn_test.go @@ -33,7 +33,7 @@ func TestKnnClassifier(t *testing.T) { }) }) - Convey("When predicting the label for our first vector", func() { + Convey("When predicting the label for our second vector", func() { result2 := base.GetClass(predictions, 1) Convey("The result should be 'red", func() { So(result2, ShouldEqual, "red")