/palindrome

code test

Primary LanguageGo

Why

Appscore Golang Coding Test

What

Palindrome Two

Have the function PalindromeTwo(str) take the str parameter being passed and return the string true if the parameter is a palindrome, (the string is the same forward as it is backward) otherwise return the string false. The parameter entered may have punctuation and symbols but they should not affect whether the string is in fact a palindrome. For example: "Anne, I vote more cars race Rome-to-Vienna" should return true.

Examples

Input: "Noel - sees Leon"
Output: true
Input: "A war at Tarawa!"
Output: true

How

Checkout and Install

git clone https://github.com/simonmittag/palindrome.git && cd palindrome

Run main program

go run palindrome.go

Unit tests

go test