From 36048a9922b3c6e014a969c00511414fe19240cc Mon Sep 17 00:00:00 2001 From: Amit Kumar Gupta Date: Tue, 19 Aug 2014 06:22:10 +0000 Subject: [PATCH 1/3] Fix error in test description for KnnClassifier --- knn/knn_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") From 525b4536c8417a829c9c7a48f20a892ff01cac5d Mon Sep 17 00:00:00 2001 From: Amit Kumar Gupta Date: Tue, 19 Aug 2014 06:24:22 +0000 Subject: [PATCH 2/3] Delete tmpfile after edf test --- base/edf/thread_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 +} From 5ea7253458e7a29a13ff5f0c131dff6926a54f00 Mon Sep 17 00:00:00 2001 From: Amit Kumar Gupta Date: Tue, 19 Aug 2014 07:25:19 +0000 Subject: [PATCH 3/3] ignore coverprofile files --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) 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