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