Sha256: e5f1e196014675ca516a4fe35320dfb096a52ffea00ac9536b99c43a0787fc34
Contents?: true
Size: 1.93 KB
Versions: 114
Compression:
Stored size: 1.93 KB
Contents
{ "decimal": [ { "description": "binary 0 is decimal 0", "binary": "0", "expected": 0 }, { "description": "binary 1 is decimal 1", "binary": "1", "expected": 1 }, { "description": "binary 10 is decimal 2", "binary": "10", "expected": 2 }, { "description": "binary 11 is decimal 3", "binary": "11", "expected": 3 }, { "description": "binary 100 is decimal 4", "binary": "100", "expected": 4 }, { "description": "binary 1001 is decimal 9", "binary": "1001", "expected": 9 }, { "description": "binary 11010 is decimal 26", "binary": "11010", "expected": 26 }, { "description": "binary 10001101000 is decimal 1128", "binary": "10001101000", "expected": 1128 }, { "description": "binary ignores leading zeros", "binary": "000011111", "expected": 31 }, { "description": "2 is not a valid binary digit", "binary": "2", "expected": null }, { "description": "a number containing a non-binary digit is invalid", "binary": "01201", "expected": null }, { "description": "a number with trailing non-binary characters is invalid", "binary": "10nope", "expected": null }, { "description": "a number with leading non-binary characters is invalid", "binary": "nope10", "expected": null }, { "description": "a number with internal non-binary characters is invalid", "binary": "10nope10", "expected": null }, { "description": "a number and a word whitespace spearated is invalid", "binary": "001 nope", "expected": null } ] }
Version data entries
114 entries across 114 versions & 1 rubygems