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.119 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.118 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.117 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.116 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.115 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.114 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.113 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.111 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.110 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.109 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.108 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.107 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.106 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.105 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.104 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.103 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.102 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.101 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.100 problem-specifications/exercises/armstrong-numbers/canonical-data.json
trackler-2.2.1.99 problem-specifications/exercises/armstrong-numbers/canonical-data.json