kata_test.go 904 B

12345678910111213141516
  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("Testing for []rune{'a'}", func() { Expect(AddLetters([]rune{'a'})).To(Equal('a')) })
  8. It("Testing for []rune{'a', 'b', 'c'}", func() { Expect(AddLetters([]rune{'a', 'b', 'c'})).To(Equal('f')) })
  9. It("Testing for []rune{'z'}", func() { Expect(AddLetters([]rune{'z'})).To(Equal('z')) })
  10. It("Testing for []rune{'a', 'b'}", func() { Expect(AddLetters([]rune{'a', 'b'})).To(Equal('c')) })
  11. It("Testing for []rune{'c'}", func() { Expect(AddLetters([]rune{'c'})).To(Equal('c')) })
  12. It("Testing for []rune{'z', 'a'}", func() { Expect(AddLetters([]rune{'z', 'a'})).To(Equal('a')) })
  13. It("Testing for []rune{'y', 'c', 'b'}", func() { Expect(AddLetters([]rune{'y', 'c', 'b'})).To(Equal('d')) })
  14. It("Testing for []rune{}", func() { Expect(AddLetters([]rune{})).To(Equal('z')) })
  15. })