diff --git a/README.md b/README.md index 72c28045f1d946dce6365a464378e3feef884050..1ffad2312b55fb868cc78f75304d1abb3c1b3cea 100644 --- a/README.md +++ b/README.md @@ -21,3 +21,10 @@ brew install dep ``` TBD. + +## Test + +``` +go get github.com/onsi/ginkgo +go get github.com/onsi/gomega +``` \ No newline at end of file diff --git a/learn_go_suite_test.go b/learn_go_suite_test.go new file mode 100644 index 0000000000000000000000000000000000000000..67e8b2e4e89fea02aaf66e965fa5b2a9d340e93d --- /dev/null +++ b/learn_go_suite_test.go @@ -0,0 +1,13 @@ +package main_test + +import ( + "testing" + + . "github.com/onsi/ginkgo" + . "github.com/onsi/gomega" +) + +func TestLearnGo(t *testing.T) { + RegisterFailHandler(Fail) + RunSpecs(t, "LearnGo Suite") +} diff --git a/imp/imp_test.go b/learn_go_test.go similarity index 70% rename from imp/imp_test.go rename to learn_go_test.go index 8ebb48529f663329d890356e1625db3546ba637b..4fca29d736a23aa681e46a9d09e4e8d5dd0a5ed8 100644 --- a/imp/imp_test.go +++ b/learn_go_test.go @@ -1,7 +1,7 @@ -package imp_test +package main_test import ( - . "./" + . "./imp" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) @@ -9,7 +9,7 @@ import ( var _ = Describe("Add", func() { Context("Basic", func() { It("should return correct result", func() { - Expect(Add(1, 2)).Should(Equal(3)) + Expect(Add(1, 2)).Should(Equal(uint64(3))) }) }) }) \ No newline at end of file