k_test.go 643 B

12345678910111213141516
  1. package kata_test
  2. import (
  3. . "github.com/onsi/ginkgo"
  4. . "github.com/onsi/gomega"
  5. . "code.osinet.fr/fgm/codewars/kyu7/simple_fun_74_growing_plant"
  6. )
  7. var _ = Describe("Basic tests", func() {
  8. //It("GrowingPlant(100, 10, 50)", func() { Expect(GrowingPlant(100, 10, 50)).To(Equal(1)) })
  9. //It("GrowingPlant(100, 10, 910)", func() { Expect(GrowingPlant(100, 10, 910)).To(Equal(10)) })
  10. It("GrowingPlant(10, 9, 4)", func() { Expect(GrowingPlant(10, 9, 4)).To(Equal(1)) })
  11. It("GrowingPlant(5, 2, 5)", func() { Expect(GrowingPlant(5, 2, 5)).To(Equal(1)) })
  12. It("GrowingPlant(5, 2, 6)", func() { Expect(GrowingPlant(5, 2, 6)).To(Equal(2)) })
  13. })