k_test.go 429 B

1234567891011121314151617181920212223
  1. package kata_test
  2. import (
  3. "strconv"
  4. . "github.com/onsi/ginkgo"
  5. . "github.com/onsi/gomega"
  6. )
  7. func Tester(n int, exp string) {
  8. It("Testing for " + strconv.Itoa(n), func() {
  9. Expect(Strong(n)).To(Equal(exp))
  10. })
  11. }
  12. var _ = Describe("Basic tests", func() {
  13. Tester(1, "STRONG!!!!")
  14. Tester(2, "STRONG!!!!")
  15. Tester(145, "STRONG!!!!")
  16. Tester(7, "Not Strong !!")
  17. Tester(93, "Not Strong !!")
  18. Tester(185, "Not Strong !!")
  19. })