package kata
func Solution(str string) []string {
var res []string
if len(str) % 2 != 0 {
str += "_"
}
for i := 0; i < len(str); i+=2 {
res = append(res, str[i:i+2])
}
return res
}
// 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/>
// Gomega Matcher Library <http://onsi.github.io/gomega/>
package kata_test
import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
. "codewarrior/kata"
)
var _ = Describe("Test Example", func() {
// It("should test that the solution returns the correct value", func() {
// Expect(Solution(1)).To(Equal(2))
// })
})