Sha256: 9e42f3b1f8a8e621cfc3f66c9ae575a71380305a34229b5f757043c3f308e1d3
Contents?: true
Size: 1.03 KB
Versions: 78
Compression:
Stored size: 1.03 KB
Contents
{ "exercise": "reverse-string", "version": "1.1.0", "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": { "value": "" }, "expected": "" }, { "description": "a word", "property": "reverse", "input": { "value": "robot" }, "expected": "tobor" }, { "description": "a capitalized word", "property": "reverse", "input": { "value": "Ramen" }, "expected": "nemaR" }, { "description": "a sentence with punctuation", "property": "reverse", "input": { "value": "I'm hungry!" }, "expected": "!yrgnuh m'I" }, { "description": "a palindrome", "property": "reverse", "input": { "value": "racecar" }, "expected": "racecar" } ] }
Version data entries
78 entries across 78 versions & 1 rubygems