package kata_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) func doTest(n int64, exp []int) { var ans = Seven(n) Expect(ans).To(Equal(exp)) } var _ = Describe("Tests Seven", func() { It("should handle basic cases", func() { //doTest(371, []int{10, 2}) doTest(371, []int{35, 1}) doTest(1603, []int{7, 2}) doTest(477557101, []int{28, 7}) doTest(477557102, []int{47, 7}) }) })