Sha256: c8263a84ef63b97a18748a9c2931affe2ef4b63e097198d942573c82f83a5d64

Contents?: true

Size: 1.6 KB

Versions: 106

Compression:

Stored size: 1.6 KB

Contents

{
  "exercise": "armstrong-numbers",
  "version": "1.0.0",
  "cases": [
    {
      "description": "Single digit numbers are Armstrong numbers",
      "property": "isArmstrongNumber",
      "input": {
        "number": 5
      },
      "expected": true
    },
    {
      "description": "There are no 2 digit Armstrong numbers",
      "property": "isArmstrongNumber",
      "input": {
        "number": 10
      },
      "expected": false
    },
    {
      "description": "Three digit number that is an Armstrong number",
      "property": "isArmstrongNumber",
      "input": {
        "number": 153
      },
      "expected": true
    },
    {
      "description": "Three digit number that is not an Armstrong number",
      "property": "isArmstrongNumber",
      "input": {
        "number": 100
      },
      "expected": false
    },
    {
      "description": "Four digit number that is an Armstrong number",
      "property": "isArmstrongNumber",
      "input": {
        "number": 9474
      },
      "expected": true
    },
    {
      "description": "Four digit number that is not an Armstrong number",
      "property": "isArmstrongNumber",
      "input": {
        "number": 9475
      },
      "expected": false
    },
    {
      "description": "Seven digit number that is an Armstrong number",
      "property": "isArmstrongNumber",
      "input": {
        "number": 9926315
      },
      "expected": true
    },
    {
      "description": "Seven digit number that is not an Armstrong number",
      "property": "isArmstrongNumber",
      "input": {
        "number": 9926314
      },
      "expected": false
    }
  ]
}

Version data entries

106 entries across 106 versions & 1 rubygems

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