Sha256: 23f1c5f0a08fb314ce979190a806e17d1198e309766448ba3b3e372d7f311e3b
Contents?: true
Size: 1.62 KB
Versions: 13
Compression:
Stored size: 1.62 KB
Contents
{ "valid": [ { "description": "single digit strings can not be valid", "input": "1", "expected": false }, { "description": "A single zero is invalid", "input": "0", "expected": false }, { "description": "a simple valid SIN that remains valid if reversed", "input": "059", "expected": true }, { "description": "a simple valid SIN that becomes invalid if reversed", "input": "59", "expected": true }, { "description": "a valid Canadian SIN", "input": "055 444 285", "expected": true }, { "description": "invalid Canadian SIN", "input": "055 444 286", "expected": false }, { "description": "invalid credit card", "input": "8273 1232 7352 0569", "expected": false }, { "description": "valid strings with a non-digit included become invalid", "input": "055a 444 285", "expected": false }, { "description": "valid strings with punctuation included become invalid", "input": "055-444-285", "expected": false }, { "description": "valid strings with symbols included become invalid", "input": "055£ 444$ 285", "expected": false }, { "description": "single zero with space is invalid", "input": " 0", "expected": false }, { "description": "more than a single zero is valid", "input": "0000 0", "expected": true }, { "description": "input digit 9 is correctly converted to output digit 9", "input": "091", "expected": true } ] }
Version data entries
13 entries across 13 versions & 1 rubygems