12345678910111213141516171819 |
- package kata_test
- import (
- . "github.com/onsi/ginkgo"
- . "github.com/onsi/gomega"
- )
- var _ = Describe("Fixed tests", func() {
- It("Testing for 1", func() { Expect(RowSumOddNumbers(1)).To(Equal(1)) })
- It("Testing for 2", func() { Expect(RowSumOddNumbers(2)).To(Equal(8)) })
- It("Testing for 13", func() { Expect(RowSumOddNumbers(13)).To(Equal(2197)) })
- It("Testing for 19", func() { Expect(RowSumOddNumbers(19)).To(Equal(6859)) })
- It("Testing for 41", func() { Expect(RowSumOddNumbers(41)).To(Equal(68921)) })
- It("Testing for 42", func() { Expect(RowSumOddNumbers(42)).To(Equal(74088)) })
- It("Testing for 74", func() { Expect(RowSumOddNumbers(74)).To(Equal(405224)) })
- It("Testing for 86", func() { Expect(RowSumOddNumbers(86)).To(Equal(636056)) })
- It("Testing for 93", func() { Expect(RowSumOddNumbers(93)).To(Equal(804357)) })
- It("Testing for 101", func() { Expect(RowSumOddNumbers(101)).To(Equal(1030301)) })
- })
|