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.98 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.97 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.96 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.95 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.94 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.93 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.92 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.91 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.90 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.89 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.88 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.87 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.86 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.85 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.84 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.83 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.82 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.81 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.80 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.79 problem-specifications/exercises/armstrong-numbers/canonical-data.json