Sha256: dfd3c560c6536d6344cd6138bd1015bf7b18e85e7371fd220361f084d9201d7c

Contents?: true

Size: 934 Bytes

Versions: 99

Compression:

Stored size: 934 Bytes

Contents

{
  "exercise": "collatz-conjecture",
  "version": "1.1.1",
  "cases": [
    {
      "description": "zero steps for one",
      "property": "steps",
      "number": 1,
      "expected": 0
    },
    {
      "description": "divide if even",
      "property": "steps",
      "number": 16,
      "expected": 4
    },
    {
      "description": "even and odd steps",
      "property": "steps",
      "number": 12,
      "expected": 9
    },
    {
      "description": "Large number of even and odd steps",
      "property": "steps",
      "number": 1000000,
      "expected": 152
    },
    {
      "description": "zero is an error",
      "property": "steps",
      "number": 0,
      "expected": { "error": "Only positive numbers are allowed" }
    },
    {
      "description": "negative value is an error",
      "property": "steps",
      "number": -15,
      "expected": { "error": "Only positive numbers are allowed" }
    }
  ]
}

Version data entries

99 entries across 99 versions & 1 rubygems

Version Path
trackler-2.2.1.84 problem-specifications/exercises/collatz-conjecture/canonical-data.json
trackler-2.2.1.83 problem-specifications/exercises/collatz-conjecture/canonical-data.json
trackler-2.2.1.82 problem-specifications/exercises/collatz-conjecture/canonical-data.json
trackler-2.2.1.81 problem-specifications/exercises/collatz-conjecture/canonical-data.json
trackler-2.2.1.80 problem-specifications/exercises/collatz-conjecture/canonical-data.json
trackler-2.2.1.79 problem-specifications/exercises/collatz-conjecture/canonical-data.json
trackler-2.2.1.78 problem-specifications/exercises/collatz-conjecture/canonical-data.json
trackler-2.2.1.77 problem-specifications/exercises/collatz-conjecture/canonical-data.json
trackler-2.2.1.76 problem-specifications/exercises/collatz-conjecture/canonical-data.json
trackler-2.2.1.75 problem-specifications/exercises/collatz-conjecture/canonical-data.json
trackler-2.2.1.74 problem-specifications/exercises/collatz-conjecture/canonical-data.json
trackler-2.2.1.73 problem-specifications/exercises/collatz-conjecture/canonical-data.json
trackler-2.2.1.72 problem-specifications/exercises/collatz-conjecture/canonical-data.json
trackler-2.2.1.71 problem-specifications/exercises/collatz-conjecture/canonical-data.json
trackler-2.2.1.70 problem-specifications/exercises/collatz-conjecture/canonical-data.json
trackler-2.2.1.69 problem-specifications/exercises/collatz-conjecture/canonical-data.json
trackler-2.2.1.68 problem-specifications/exercises/collatz-conjecture/canonical-data.json
trackler-2.2.1.67 problem-specifications/exercises/collatz-conjecture/canonical-data.json
trackler-2.2.1.66 problem-specifications/exercises/collatz-conjecture/canonical-data.json
trackler-2.2.1.65 problem-specifications/exercises/collatz-conjecture/canonical-data.json