k_test.go 924 B

12345678910111213141516171819
  1. package kata_test
  2. import (
  3. . "github.com/onsi/ginkgo"
  4. . "github.com/onsi/gomega"
  5. )
  6. var _ = Describe("Fixed tests", func() {
  7. It("Testing for 1", func() { Expect(RowSumOddNumbers(1)).To(Equal(1)) })
  8. It("Testing for 2", func() { Expect(RowSumOddNumbers(2)).To(Equal(8)) })
  9. It("Testing for 13", func() { Expect(RowSumOddNumbers(13)).To(Equal(2197)) })
  10. It("Testing for 19", func() { Expect(RowSumOddNumbers(19)).To(Equal(6859)) })
  11. It("Testing for 41", func() { Expect(RowSumOddNumbers(41)).To(Equal(68921)) })
  12. It("Testing for 42", func() { Expect(RowSumOddNumbers(42)).To(Equal(74088)) })
  13. It("Testing for 74", func() { Expect(RowSumOddNumbers(74)).To(Equal(405224)) })
  14. It("Testing for 86", func() { Expect(RowSumOddNumbers(86)).To(Equal(636056)) })
  15. It("Testing for 93", func() { Expect(RowSumOddNumbers(93)).To(Equal(804357)) })
  16. It("Testing for 101", func() { Expect(RowSumOddNumbers(101)).To(Equal(1030301)) })
  17. })