k_test.go 621 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/love_vs_friendship"
  6. )
  7. var _ = Describe("basic tests", func() {
  8. It("Testing for attitude", func() { Expect(WordsToMarks("attitude")).To(Equal(100)) })
  9. It("Testing for friends", func() { Expect(WordsToMarks("friends")).To(Equal(75)) })
  10. It("Testing for family", func() { Expect(WordsToMarks("family")).To(Equal(66)) })
  11. It("Testing for selfness", func() { Expect(WordsToMarks("selfness")).To(Equal(99)) })
  12. It("Testing for knowledge", func() { Expect(WordsToMarks("knowledge")).To(Equal(96)) })
  13. })