

Task

Using a well-known testing-specific library/module/suite for your language, write some tests for your language's entry in Palindrome.

If your language does not have a testing specific library well known to the language's community then state this or omit the language.



require "spec"
 
describe "palindrome" do
  it "returns true for a word that's palindromic" do
    palindrome("racecar").should be_true
  end
 
  it "returns false for a word that's not palindromic" do
    palindrome("goodbye").should be_false
  end
end
 
def palindrome(s)
  s == s.reverse
end