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

Version Path
trackler-2.1.0.48 common/exercises/collatz-conjecture/canonical-data.json
trackler-2.1.0.47 common/exercises/collatz-conjecture/canonical-data.json
trackler-2.1.0.46 common/exercises/collatz-conjecture/canonical-data.json
trackler-2.1.0.45 common/exercises/collatz-conjecture/canonical-data.json
trackler-2.1.0.44 common/exercises/collatz-conjecture/canonical-data.json
trackler-2.1.0.43 common/exercises/collatz-conjecture/canonical-data.json
trackler-2.1.0.42 common/exercises/collatz-conjecture/canonical-data.json
trackler-2.1.0.41 common/exercises/collatz-conjecture/canonical-data.json
trackler-2.1.0.40 common/exercises/collatz-conjecture/canonical-data.json
trackler-2.1.0.39 common/exercises/collatz-conjecture/canonical-data.json
trackler-2.1.0.38 common/exercises/collatz-conjecture/canonical-data.json
trackler-2.1.0.37 common/exercises/collatz-conjecture/canonical-data.json
trackler-2.1.0.36 common/exercises/collatz-conjecture/canonical-data.json
trackler-2.1.0.34 common/exercises/collatz-conjecture/canonical-data.json
trackler-2.1.0.33 common/exercises/collatz-conjecture/canonical-data.json
trackler-2.1.0.32 common/exercises/collatz-conjecture/canonical-data.json
trackler-2.1.0.31 common/exercises/collatz-conjecture/canonical-data.json