123456789101112131415161718192021222324 |
- // TODO: replace with your own tests (TDD). An example to get you started is included below.
- // Ginkgo BDD Testing Framework <http://onsi.github.io/ginkgo></http:>
- // Gomega Matcher Library <http://onsi.github.io/gomega></http:>
- package kata
- import (
- . "github.com/onsi/ginkgo"
- . "github.com/onsi/gomega"
- )
- var _ = Describe("Example test:", func() {
- It("Should work for fixed tests", func() {
- Expect(solution("", "")).To(Equal(true))
- Expect(solution(" ", "")).To(Equal(true))
- Expect(solution("abc", "c")).To(Equal(true))
- Expect(solution("banana", "ana")).To(Equal(true))
- Expect(solution("a", "z")).To(Equal(false))
- Expect(solution("", "t")).To(Equal(false))
- Expect(solution("$a = $b + 1", "+1")).To(Equal(false))
- Expect(solution(" ", " ")).To(Equal(true))
- Expect(solution("1oo", "100")).To(Equal(false))
- })
- })
|