[
{ "name": "a real published registration, spaced as HMRC prints it", "args": ["GB 220 4302 31"], "expect": true },
{ "name": "the same registration unspaced and without the GB prefix", "args": ["220430231"], "expect": true },
{ "name": "a lower case prefix is folded", "args": ["gb220430231"], "expect": true },
{ "name": "another real published registration", "args": ["GB 980 7806 84"], "expect": true },
{ "name": "and a third, to pin the weighting rather than one lucky number", "args": ["232128892"], "expect": true },
{ "name": "a branch trader carries three extra digits outside the checksum", "args": ["GB220430231001"], "expect": true },
{ "name": "a number that only passes under the post-2010 9755 variant", "args": ["220430273"], "expect": true },
{ "name": "another 9755-only number, to pin the offset not the number", "args": ["123456727"], "expect": true },
{ "name": "the same digits with a check pair for the pre-2010 rule", "args": ["123456782"], "expect": true },
{ "name": "right length, check pair off by one", "args": ["220430232"], "expect": false },
{ "name": "the familiar dummy number fails both checksums", "args": ["GB123456789"], "expect": false },
{ "name": "the empty string is not a registration", "args": [""], "expect": false },
{ "name": "eight digits is too short", "args": ["22043023"], "expect": false },
{ "name": "ten digits is neither nine nor twelve", "args": ["2204302311"], "expect": false },
{ "name": "letters where the digits belong", "args": ["GB2204302AB"], "expect": false },
{ "name": "a valid UK number is still not an Irish one", "args": ["IE220430231"], "expect": false },
{ "name": "all zeros satisfies the arithmetic and is refused anyway", "args": ["000000000"], "expect": false },
{ "name": "spaces anywhere are ignored, including leading and trailing", "args": [" GB 2 2 0 4 3 0 2 3 1 "], "expect": true },
{ "name": "a non-breaking space is not a space and fails", "args": ["GB 220430231"], "expect": false },
{ "name": "the GD government department format is out of scope", "args": ["GBGD001"], "expect": false },
{ "name": "the HA health authority format is out of scope", "args": ["GBHA599"], "expect": false },
{ "name": "a non-string argument is not a registration", "args": [220430231], "expect": false }
]