Sha256: 7c5afdd516823154571cbe37f22db290439a56cf7184b05d149a0f2648d18711
Contents?: true
Size: 921 Bytes
Versions: 35
Compression:
Stored size: 921 Bytes
Contents
{ "exercise": "reverse-string", "version": "1.0.1", "comments": [ "If property based testing tools are available, a good property to test is reversing a string twice: reverse(reverse(string)) == string" ], "cases": [ { "description": "an empty string", "property": "reverse", "input": "", "expected": "" }, { "description": "a word", "property": "reverse", "input": "robot", "expected": "tobor" }, { "description": "a capitalized word", "property": "reverse", "input": "Ramen", "expected": "nemaR" }, { "description": "a sentence with punctuation", "property": "reverse", "input": "I'm hungry!", "expected": "!yrgnuh m'I" }, { "description": "a palindrome", "property": "reverse", "input": "racecar", "expected": "racecar" } ] }
Version data entries
35 entries across 35 versions & 1 rubygems