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

Version Path
trackler-2.2.1.180 problem-specifications/exercises/reverse-string/canonical-data.json
trackler-2.2.1.179 problem-specifications/exercises/reverse-string/canonical-data.json
trackler-2.2.1.178 problem-specifications/exercises/reverse-string/canonical-data.json
trackler-2.2.1.177 problem-specifications/exercises/reverse-string/canonical-data.json
trackler-2.2.1.176 problem-specifications/exercises/reverse-string/canonical-data.json
trackler-2.2.1.175 problem-specifications/exercises/reverse-string/canonical-data.json
trackler-2.2.1.174 problem-specifications/exercises/reverse-string/canonical-data.json
trackler-2.2.1.173 problem-specifications/exercises/reverse-string/canonical-data.json
trackler-2.2.1.172 problem-specifications/exercises/reverse-string/canonical-data.json
trackler-2.2.1.171 problem-specifications/exercises/reverse-string/canonical-data.json
trackler-2.2.1.170 problem-specifications/exercises/reverse-string/canonical-data.json
trackler-2.2.1.169 problem-specifications/exercises/reverse-string/canonical-data.json
trackler-2.2.1.167 problem-specifications/exercises/reverse-string/canonical-data.json
trackler-2.2.1.166 problem-specifications/exercises/reverse-string/canonical-data.json
trackler-2.2.1.165 problem-specifications/exercises/reverse-string/canonical-data.json
trackler-2.2.1.164 problem-specifications/exercises/reverse-string/canonical-data.json
trackler-2.2.1.163 problem-specifications/exercises/reverse-string/canonical-data.json
trackler-2.2.1.162 problem-specifications/exercises/reverse-string/canonical-data.json
trackler-2.2.1.161 problem-specifications/exercises/reverse-string/canonical-data.json
trackler-2.2.1.160 problem-specifications/exercises/reverse-string/canonical-data.json