k_test.go 610 B

123456789101112131415
  1. package kata_test
  2. import (
  3. . "github.com/onsi/ginkgo"
  4. . "github.com/onsi/gomega"
  5. )
  6. var _ = Describe("Basic tests", func() {
  7. It("MaxMultiple(2, 7)", func() { Expect(MaxMultiple(2, 7)).To(Equal(6)) })
  8. It("MaxMultiple(3, 10)", func() { Expect(MaxMultiple(3, 10)).To(Equal(9)) })
  9. It("MaxMultiple(7, 17)", func() { Expect(MaxMultiple(7, 17)).To(Equal(14)) })
  10. It("MaxMultiple(10, 50)", func() { Expect(MaxMultiple(10, 50)).To(Equal(50)) })
  11. It("MaxMultiple(37, 200)", func() { Expect(MaxMultiple(37, 200)).To(Equal(185)) })
  12. It("MaxMultiple(7, 100)", func() { Expect(MaxMultiple(7, 100)).To(Equal(98)) })
  13. })