Sha256: 2a74ef82c8a2c7def2e7f53201aee93afa57b0ca501ba5ea5211d91f85c9fcb9
Contents?: true
Size: 935 Bytes
Versions: 17
Compression:
Stored size: 935 Bytes
Contents
{ "exercise": "collatz-conjecture", "version": "1.1.0", "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
17 entries across 17 versions & 1 rubygems