{
  "$schema": "../cases.schema.json",
  "format": 1,
  "domain": "ie",
  "title": {
    "en": "State registration (IE)",
    "pt-BR": "Inscrição estadual"
  },
  "functions": [
    {
      "id": "ie.isValid",
      "level": "extended",
      "summary": "Checks whether a Brazilian state tax registration number (IE) is valid.",
      "description": "Validates an inscrição estadual (state registration) for a given state. It uses the format and check-digit rule that the state publishes (SINTEGRA).\n\n- `params.value` is the registration, a string. Any other type, or a missing value, returns `false`. `params.stateCode` is the two-letter state code, case-insensitive, and surrounding whitespace is ignored (until 2.4.0 whitespace made the state unknown and the result `false`). An unknown or missing state returns `false`.\n- Punctuation and spaces in the registration are ignored. Letters are dropped before the check for every state but SP, where only `P` is accepted.\n- JavaScript also keeps the 2.3.0 form `isValidIe(stateCode, ie)`, deprecated. It answers like the object form. Other languages take only the parameters object.\n- Several states have special cases: GO, PA, MS, MT, SP, TO, DF, PE, AL, AM, RR, MG and RO. These are extra prefixes or formats, or readings where the SINTEGRA page is silent or disagrees with the state's own acts. When official sources disagree, the library keeps its behavior and documents what it rests on.\n- AL: the third digit is the tipo de empresa and must be 0, 3, 5, 7 or 8, the five the SINTEGRA page lists. 2.4.0 accepted any third digit.\n- DF: 13 digits with prefix 07 or 08. DF moved to 08 when the 07 numbers ran out. No SEFAZ-DF act announces it; the prefix rests on the CF/DF validator of the Receita DF portal and on software notes. 2.4.0 accepted only 07.\n- GO: 9 digits with prefix 10, 11, 15 or 20 to 29. IN 946/09-GSF (as worded by IN 1.535/22-GSE) gives 10 and 20 for companies and 11 for individuals, and the Secretaria da Economia has issued 20 to new companies since 13/01/2023. The SINTEGRA page (2022) gives 20 to 29, and only the 2012 roteiro de crítica gives 15. The check digit follows the 2012 roteiro, including its special range 10103105 to 10119997 and the dual-digit registration 11094402, so `101031050` is rejected. 2.4.0 rejected the prefixes 20 to 29. No norm names 15 or 21 to 29, so the official sources disagree and all of the prefixes are accepted. The check digit rule of the SINTEGRA page (2022) always reads a remainder of 0 or 1 as 0; this library follows the roteiro, as 2.4.0 did.\n- MT: 9 digits, the form Portaria SEFAZ-MT 59/2025 art. 8º § 1º prescribes, or the 11 digits the SINTEGRA page prints. The 9-digit form is checked as the 11-digit one padded with two zeros. 2.4.0 accepted only 11 digits.\n- PA: 9 digits with prefix 15 or 75 to 79, the six the SINTEGRA page lists. SEFA-PA announced only 75 (08/10/2024); 76 to 79 rest on the page. This is the 2.4.0 behavior.\n- PE: the 9-digit eFisco number or the old 14-digit CACEPE number (13 digits and 1 check digit, weights 5, 4, 3, 2, 1, 9 down to 2, a difference above 9 minus 10). Portaria SF 087/2007 converted the old numbers but set no date after which they are void. 2.4.0 accepted only 9 digits.\n- SP: a produtor rural registration is `P` then `0MMMSSSSD000`, so the character after `P` must be 0 (P0 + 11 digits). The `P` may be lower case. Letters other than `P` are rejected. 2.4.0 accepted any digit after the `P`.\n- MS: prefixes 28 and 50, the two the SINTEGRA page (2024) gives. A SEFAZ-MS communiqué says new companies start with 50, while the only norm, Resolução/SEF 1.344/1999, gives 28 alone. The check digit rule is the same for both.\n- RR: the prefix 24 is required. The SINTEGRA page never writes it: it is read from the page's ten valid examples, which all start with 24.\n- TO: the 9-digit form in force (Portaria SEFAZ-TO 676/2002, art. 3º; RICMS-TO, art. 90), with no prefix check, or the old 11-digit form the SINTEGRA page documents, whose tipo digits (3rd and 4th, left out of the check digit sum) must be 01, 02, 03 or 99.\n- AM: the SINTEGRA page gives a rule with two branches and leaves \"Resto\" `undefined`. The library reads it as the sum modulo 11 and gives 0 to a sum of 0 or 1, which is the shared modulus 11 rule (weights 9 down to 2, a remainder of 0 or 1 giving 0).\n- RO: the 14-digit form (13 digits and the check digit) the SINTEGRA page gives for registrations since 01/08/2000. The 9-digit form it still prints for the earlier formula (`101.62521-3`) is rejected: those numbers were converted to `0000000062521-3`.\n- MG: a first check digit of 10, from a sum that is already a multiple of ten, is read as 0.\n- An all-zero registration is accepted wherever the published formula gives a check digit of 0 for it: AM, CE, ES, MG, PB, PE (9 digits), PI, PR, RJ, RS, SC, SE and SP, plus BA with 8 or 9 digits, MT with 9 or 11 digits and TO with 9 digits. Unlike `cpf.isValid` and `cnpj.isValid`, the IE does not reject repeated digits.",
      "params": [
        {
          "name": "params",
          "type": "IsValidIeParams"
        }
      ],
      "returns": "boolean",
      "cases": [
        {
          "id": "ie.isValid#[{\"value\":\"0108368143106\",\"stateCode\":\"AC\"}]",
          "args": [
            {
              "value": "0108368143106",
              "stateCode": "AC"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: AC should return true for a valid IE, including one with formatting characters"
        },
        {
          "id": "ie.isValid#[{\"value\":\"01.349.541/474-57\",\"stateCode\":\"AC\"}]",
          "args": [
            {
              "value": "01.349.541/474-57",
              "stateCode": "AC"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: AC should return true for a valid IE, including one with formatting characters"
        },
        {
          "id": "ie.isValid#[{\"value\":\"0187634580933\",\"stateCode\":\"AC\"}]",
          "args": [
            {
              "value": "0187634580933",
              "stateCode": "AC"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: AC should return false when the second verifier digit is incorrect"
        },
        {
          "id": "ie.isValid#[{\"value\":\"0187634580924\",\"stateCode\":\"AC\"}]",
          "args": [
            {
              "value": "0187634580924",
              "stateCode": "AC"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: AC should return false when the first verifier digit is incorrect"
        },
        {
          "id": "ie.isValid#[{\"value\":\"0018763458000\",\"stateCode\":\"AC\"}]",
          "args": [
            {
              "value": "0018763458000",
              "stateCode": "AC"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: AC should return false when the IE does not start with 01"
        },
        {
          "id": "ie.isValid#[{\"value\":\"01018763458064\",\"stateCode\":\"AC\"}]",
          "args": [
            {
              "value": "01018763458064",
              "stateCode": "AC"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: AC should return false when the length is bigger than 13"
        },
        {
          "id": "ie.isValid#[{\"value\":\"0108368143116\",\"stateCode\":\"AC\"}]",
          "args": [
            {
              "value": "0108368143116",
              "stateCode": "AC"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: AC should return false when only the first verifier digit is wrong, even though the second still matches its recomputed value"
        },
        {
          "id": "ie.isValid#[{\"value\":\"01083681431069\",\"stateCode\":\"AC\"}]",
          "args": [
            {
              "value": "01083681431069",
              "stateCode": "AC"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: AC should return false when the length is 14, even though the verifier digits still sit at the valid positions"
        },
        {
          "id": "ie.isValid#[{\"value\":\"248659758\",\"stateCode\":\"AL\"}]",
          "args": [
            {
              "value": "248659758",
              "stateCode": "AL"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: AL should return true for a valid IE"
        },
        {
          "id": "ie.isValid#[{\"value\":\"247424170\",\"stateCode\":\"AL\"}]",
          "args": [
            {
              "value": "247424170",
              "stateCode": "AL"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: AL should return true when the check digit 10 is converted to 0"
        },
        {
          "id": "ie.isValid#[{\"value\":\"248659759\",\"stateCode\":\"AL\"}]",
          "args": [
            {
              "value": "248659759",
              "stateCode": "AL"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: AL should return false when the verifier digit is incorrect"
        },
        {
          "id": "ie.isValid#[{\"value\":\"258659750\",\"stateCode\":\"AL\"}]",
          "args": [
            {
              "value": "258659750",
              "stateCode": "AL"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: AL should return false when the IE does not start with 24"
        },
        {
          "id": "ie.isValid#[{\"value\":\"2486597584\",\"stateCode\":\"AL\"}]",
          "args": [
            {
              "value": "2486597584",
              "stateCode": "AL"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: AL should return false when the length is more than 9"
        },
        {
          "id": "ie.isValid#[{\"value\":\"240000005\",\"stateCode\":\"AL\"}]",
          "args": [
            {
              "value": "240000005",
              "stateCode": "AL"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: AL should return true for another valid IE"
        },
        {
          "id": "ie.isValid#[{\"value\":\"036029572\",\"stateCode\":\"AP\"}]",
          "args": [
            {
              "value": "036029572",
              "stateCode": "AP"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: AP should return true for valid IEs"
        },
        {
          "id": "ie.isValid#[{\"value\":\"030123459\",\"stateCode\":\"AP\"}]",
          "args": [
            {
              "value": "030123459",
              "stateCode": "AP"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: AP should return true for valid IEs"
        },
        {
          "id": "ie.isValid#[{\"value\":\"030000080\",\"stateCode\":\"AP\"}]",
          "args": [
            {
              "value": "030000080",
              "stateCode": "AP"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: AP should return true for valid IEs"
        },
        {
          "id": "ie.isValid#[{\"value\":\"030000160\",\"stateCode\":\"AP\"}]",
          "args": [
            {
              "value": "030000160",
              "stateCode": "AP"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: AP should return true for valid IEs"
        },
        {
          "id": "ie.isValid#[{\"value\":\"030170011\",\"stateCode\":\"AP\"}]",
          "args": [
            {
              "value": "030170011",
              "stateCode": "AP"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: AP should return true for valid IEs"
        },
        {
          "id": "ie.isValid#[{\"value\":\"030170020\",\"stateCode\":\"AP\"}]",
          "args": [
            {
              "value": "030170020",
              "stateCode": "AP"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: AP should return true for valid IEs"
        },
        {
          "id": "ie.isValid#[{\"value\":\"030170071\",\"stateCode\":\"AP\"}]",
          "args": [
            {
              "value": "030170071",
              "stateCode": "AP"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: AP should return true for valid IEs"
        },
        {
          "id": "ie.isValid#[{\"value\":\"036029573\",\"stateCode\":\"AP\"}]",
          "args": [
            {
              "value": "036029573",
              "stateCode": "AP"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: AP should return false when the verifier digit is incorrect"
        },
        {
          "id": "ie.isValid#[{\"value\":\"0306029570\",\"stateCode\":\"AP\"}]",
          "args": [
            {
              "value": "0306029570",
              "stateCode": "AP"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: AP should return false when the length is more than 9 digits"
        },
        {
          "id": "ie.isValid#[{\"value\":\"003060292\",\"stateCode\":\"AP\"}]",
          "args": [
            {
              "value": "003060292",
              "stateCode": "AP"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: AP should return false when the IE does not start with 03"
        },
        {
          "id": "ie.isValid#[{\"value\":\"030000009\",\"stateCode\":\"AP\"}]",
          "args": [
            {
              "value": "030000009",
              "stateCode": "AP"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: AP should return true when the inscricao is exactly 3000000, one below the special range starting at 3000001"
        },
        {
          "id": "ie.isValid#[{\"value\":\"030190231\",\"stateCode\":\"AP\"}]",
          "args": [
            {
              "value": "030190231",
              "stateCode": "AP"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: AP should return true when the inscricao is exactly 3019023, one above the special range ending at 3019022"
        },
        {
          "id": "ie.isValid#[{\"value\":\"030000012\",\"stateCode\":\"AP\"}]",
          "args": [
            {
              "value": "030000012",
              "stateCode": "AP"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: AP should return true when the inscricao is exactly 3000001, the inclusive lower bound of the first special range"
        },
        {
          "id": "ie.isValid#[{\"value\":\"030170007\",\"stateCode\":\"AP\"}]",
          "args": [
            {
              "value": "030170007",
              "stateCode": "AP"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: AP should return true when the inscricao is exactly 3017000, the inclusive upper bound of the first special range"
        },
        {
          "id": "ie.isValid#[{\"value\":\"030190225\",\"stateCode\":\"AP\"}]",
          "args": [
            {
              "value": "030190225",
              "stateCode": "AP"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: AP should return true when the inscricao is exactly 3019022, the inclusive upper bound of the second special range"
        },
        {
          "id": "ie.isValid#[{\"value\":\"48.063.523-4\",\"stateCode\":\"AM\"}]",
          "args": [
            {
              "value": "48.063.523-4",
              "stateCode": "AM"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: AM should return true for valid IEs, including one with formatting characters"
        },
        {
          "id": "ie.isValid#[{\"value\":\"036029572\",\"stateCode\":\"AM\"}]",
          "args": [
            {
              "value": "036029572",
              "stateCode": "AM"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: AM should return true for valid IEs, including one with formatting characters"
        },
        {
          "id": "ie.isValid#[{\"value\":\"000000019\",\"stateCode\":\"AM\"}]",
          "args": [
            {
              "value": "000000019",
              "stateCode": "AM"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: AM should return true for valid IEs, including one with formatting characters"
        },
        {
          "id": "ie.isValid#[{\"value\":\"046893830\",\"stateCode\":\"AM\"}]",
          "args": [
            {
              "value": "046893830",
              "stateCode": "AM"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: AM should return true for valid IEs, including one with formatting characters"
        },
        {
          "id": "ie.isValid#[{\"value\":\"036029573\",\"stateCode\":\"AM\"}]",
          "args": [
            {
              "value": "036029573",
              "stateCode": "AM"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: AM should return false when the verifier digit is incorrect"
        },
        {
          "id": "ie.isValid#[{\"value\":\"0036029572\",\"stateCode\":\"AM\"}]",
          "args": [
            {
              "value": "0036029572",
              "stateCode": "AM"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: AM should return false when the length is more than 9 digits"
        },
        {
          "id": "ie.isValid#[{\"value\":\"0468938309\",\"stateCode\":\"AM\"}]",
          "args": [
            {
              "value": "0468938309",
              "stateCode": "AM"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: AM should return false when the length is 10, even though the first eight digits alone would form a valid checksum"
        },
        {
          "id": "ie.isValid#[{\"value\":\"12345663\",\"stateCode\":\"BA\"}]",
          "args": [
            {
              "value": "12345663",
              "stateCode": "BA"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: BA should return true for an 8-digit IE using the mod 10 rule"
        },
        {
          "id": "ie.isValid#[{\"value\":\"74219145\",\"stateCode\":\"BA\"}]",
          "args": [
            {
              "value": "74219145",
              "stateCode": "BA"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: BA should return true for an 8-digit IE using the mod 11 rule"
        },
        {
          "id": "ie.isValid#[{\"value\":\"038343081\",\"stateCode\":\"BA\"}]",
          "args": [
            {
              "value": "038343081",
              "stateCode": "BA"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: BA should return true for a 9-digit IE using the mod 10 rule"
        },
        {
          "id": "ie.isValid#[{\"value\":\"100000306\",\"stateCode\":\"BA\"}]",
          "args": [
            {
              "value": "100000306",
              "stateCode": "BA"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: BA should return true for a 9-digit IE using the mod 10 rule"
        },
        {
          "id": "ie.isValid#[{\"value\":\"778514741\",\"stateCode\":\"BA\"}]",
          "args": [
            {
              "value": "778514741",
              "stateCode": "BA"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: BA should return true for a 9-digit IE using the mod 11 rule"
        },
        {
          "id": "ie.isValid#[{\"value\":\"078771760\",\"stateCode\":\"BA\"}]",
          "args": [
            {
              "value": "078771760",
              "stateCode": "BA"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: BA should return true for a 9-digit IE starting with 0"
        },
        {
          "id": "ie.isValid#[{\"value\":\"039474751\",\"stateCode\":\"BA\"}]",
          "args": [
            {
              "value": "039474751",
              "stateCode": "BA"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: BA should return true for a 9-digit IE starting with 0"
        },
        {
          "id": "ie.isValid#[{\"value\":\"090529323\",\"stateCode\":\"BA\"}]",
          "args": [
            {
              "value": "090529323",
              "stateCode": "BA"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: BA should return true for a 9-digit IE starting with 0"
        },
        {
          "id": "ie.isValid#[{\"value\":\"04772253\",\"stateCode\":\"BA\"}]",
          "args": [
            {
              "value": "04772253",
              "stateCode": "BA"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: BA should return true for an 8-digit IE starting with 0"
        },
        {
          "id": "ie.isValid#[{\"value\":\"12345636\",\"stateCode\":\"BA\"}]",
          "args": [
            {
              "value": "12345636",
              "stateCode": "BA"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: BA should return false for an 8-digit IE with an incorrect mod 10 digit"
        },
        {
          "id": "ie.isValid#[{\"value\":\"74219154\",\"stateCode\":\"BA\"}]",
          "args": [
            {
              "value": "74219154",
              "stateCode": "BA"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: BA should return false for an 8-digit IE with an incorrect mod 11 digit"
        },
        {
          "id": "ie.isValid#[{\"value\":\"038343001\",\"stateCode\":\"BA\"}]",
          "args": [
            {
              "value": "038343001",
              "stateCode": "BA"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: BA should return false for a 9-digit IE with an incorrect mod 10 digit"
        },
        {
          "id": "ie.isValid#[{\"value\":\"778514731\",\"stateCode\":\"BA\"}]",
          "args": [
            {
              "value": "778514731",
              "stateCode": "BA"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: BA should return false for a 9-digit IE with an incorrect mod 11 digit"
        },
        {
          "id": "ie.isValid#[{\"value\":\"0012345636\",\"stateCode\":\"BA\"}]",
          "args": [
            {
              "value": "0012345636",
              "stateCode": "BA"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: BA should return false when the length is more than 9 digits"
        },
        {
          "id": "ie.isValid#[{\"value\":\"1234567804\",\"stateCode\":\"BA\"}]",
          "args": [
            {
              "value": "1234567804",
              "stateCode": "BA"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: BA should return false when the length is 10, even though the digits would satisfy the checksum formula for that length"
        },
        {
          "id": "ie.isValid#[{\"value\":\"778514740\",\"stateCode\":\"BA\"}]",
          "args": [
            {
              "value": "778514740",
              "stateCode": "BA"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: BA should return false when only the second verifier digit is wrong, even though the first still matches its recomputed value"
        },
        {
          "id": "ie.isValid#[{\"value\":\"853511942\",\"stateCode\":\"CE\"}]",
          "args": [
            {
              "value": "853511942",
              "stateCode": "CE"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: CE should return true for a valid IE"
        },
        {
          "id": "ie.isValid#[{\"value\":\"853511943\",\"stateCode\":\"CE\"}]",
          "args": [
            {
              "value": "853511943",
              "stateCode": "CE"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: CE should return false when the digit is incorrect"
        },
        {
          "id": "ie.isValid#[{\"value\":\"0853511942\",\"stateCode\":\"CE\"}]",
          "args": [
            {
              "value": "0853511942",
              "stateCode": "CE"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: CE should return false when the length is more than 9 digits"
        },
        {
          "id": "ie.isValid#[{\"value\":\"0754002000176\",\"stateCode\":\"DF\"}]",
          "args": [
            {
              "value": "0754002000176",
              "stateCode": "DF"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: DF should return true for a valid IE"
        },
        {
          "id": "ie.isValid#[{\"value\":\"0754002000508\",\"stateCode\":\"DF\"}]",
          "args": [
            {
              "value": "0754002000508",
              "stateCode": "DF"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: DF should return true when the tenth digit is converted to 0"
        },
        {
          "id": "ie.isValid#[{\"value\":\"0108368143017\",\"stateCode\":\"DF\"}]",
          "args": [
            {
              "value": "0108368143017",
              "stateCode": "DF"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: DF should return false when the IE does not start with 07 or 08"
        },
        {
          "id": "ie.isValid#[{\"value\":\"07008368143094\",\"stateCode\":\"DF\"}]",
          "args": [
            {
              "value": "07008368143094",
              "stateCode": "DF"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: DF should return false when the length is not 13 digits"
        },
        {
          "id": "ie.isValid#[{\"value\":\"0754002000175\",\"stateCode\":\"DF\"}]",
          "args": [
            {
              "value": "0754002000175",
              "stateCode": "DF"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: DF should return false when the digit is incorrect"
        },
        {
          "id": "ie.isValid#[{\"value\":\"0754002000186\",\"stateCode\":\"DF\"}]",
          "args": [
            {
              "value": "0754002000186",
              "stateCode": "DF"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: DF should return false when only the first verifier digit is wrong, even though the second still matches its recomputed value"
        },
        {
          "id": "ie.isValid#[{\"value\":\"639191444\",\"stateCode\":\"ES\"}]",
          "args": [
            {
              "value": "639191444",
              "stateCode": "ES"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: ES should return true for a valid IE"
        },
        {
          "id": "ie.isValid#[{\"value\":\"639191445\",\"stateCode\":\"ES\"}]",
          "args": [
            {
              "value": "639191445",
              "stateCode": "ES"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: ES should return false when the digit is incorrect"
        },
        {
          "id": "ie.isValid#[{\"value\":\"0639191444\",\"stateCode\":\"ES\"}]",
          "args": [
            {
              "value": "0639191444",
              "stateCode": "ES"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: ES should return false when the length is more than 9 digits"
        },
        {
          "id": "ie.isValid#[{\"value\":\"109161793\",\"stateCode\":\"GO\"}]",
          "args": [
            {
              "value": "109161793",
              "stateCode": "GO"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: GO should return true for a valid IE using the base rule"
        },
        {
          "id": "ie.isValid#[{\"value\":\"159876540\",\"stateCode\":\"GO\"}]",
          "args": [
            {
              "value": "159876540",
              "stateCode": "GO"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: GO should return true for an IE with prefix 15"
        },
        {
          "id": "ie.isValid#[{\"value\":\"101031051\",\"stateCode\":\"GO\"}]",
          "args": [
            {
              "value": "101031051",
              "stateCode": "GO"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: GO should return true when the remainder is 1 and the inscricao falls inside the special range 10103105..10119997"
        },
        {
          "id": "ie.isValid#[{\"value\":\"101030940\",\"stateCode\":\"GO\"}]",
          "args": [
            {
              "value": "101030940",
              "stateCode": "GO"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: GO should return true when the remainder is 0"
        },
        {
          "id": "ie.isValid#[{\"value\":\"110944020\",\"stateCode\":\"GO\"}]",
          "args": [
            {
              "value": "110944020",
              "stateCode": "GO"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: GO should return true for IE 11094402, which accepts both digit 0 and digit 1"
        },
        {
          "id": "ie.isValid#[{\"value\":\"110944021\",\"stateCode\":\"GO\"}]",
          "args": [
            {
              "value": "110944021",
              "stateCode": "GO"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: GO should return true for IE 11094402, which accepts both digit 0 and digit 1"
        },
        {
          "id": "ie.isValid#[{\"value\":\"109161794\",\"stateCode\":\"GO\"}]",
          "args": [
            {
              "value": "109161794",
              "stateCode": "GO"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: GO should return false when the verified digit is incorrect"
        },
        {
          "id": "ie.isValid#[{\"value\":\"121031131\",\"stateCode\":\"GO\"}]",
          "args": [
            {
              "value": "121031131",
              "stateCode": "GO"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: GO should return false when the IE does not start with 10, 11, 15 or 20 to 29"
        },
        {
          "id": "ie.isValid#[{\"value\":\"209876549\",\"stateCode\":\"GO\"}]",
          "args": [
            {
              "value": "209876549",
              "stateCode": "GO"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "changed in 2.5.0 (#593): prefixes 20 to 29 are accepted (IN 946/09-GSF as worded by IN 1.535/22-GSE gives 20 for companies, issued since 13/01/2023; the SINTEGRA page gives 20 to 29); 2.4.0 rejected them. JavaScript's own test: GO should return true for the prefix 20, the one the Secretaria da Economia issues to companies since 13/01/2023"
        },
        {
          "id": "ie.isValid#[{\"value\":\"0101030940\",\"stateCode\":\"GO\"}]",
          "args": [
            {
              "value": "0101030940",
              "stateCode": "GO"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: GO should return false when the length is different from 9"
        },
        {
          "id": "ie.isValid#[{\"value\":\"101031131\",\"stateCode\":\"GO\"}]",
          "args": [
            {
              "value": "101031131",
              "stateCode": "GO"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: GO should return false when the remainder is 0, since the special range rule must not apply (10103113 has remainder 0, so the digit is 0, not 1)"
        },
        {
          "id": "ie.isValid#[{\"value\":\"101031130\",\"stateCode\":\"GO\"}]",
          "args": [
            {
              "value": "101031130",
              "stateCode": "GO"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: GO should return false when the remainder is 0, since the special range rule must not apply (10103113 has remainder 0, so the digit is 0, not 1)"
        },
        {
          "id": "ie.isValid#[{\"value\":\"100000071\",\"stateCode\":\"GO\"}]",
          "args": [
            {
              "value": "100000071",
              "stateCode": "GO"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: GO should return false when the remainder is 1 but the inscricao (10000007) falls outside the special range 10103105..10119997, so the digit is 0"
        },
        {
          "id": "ie.isValid#[{\"value\":\"100000070\",\"stateCode\":\"GO\"}]",
          "args": [
            {
              "value": "100000070",
              "stateCode": "GO"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: GO should return false when the remainder is 1 but the inscricao (10000007) falls outside the special range 10103105..10119997, so the digit is 0"
        },
        {
          "id": "ie.isValid#[{\"value\":\"1091617930\",\"stateCode\":\"GO\"}]",
          "args": [
            {
              "value": "1091617930",
              "stateCode": "GO"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: GO should return false when the length is 10, even though the first eight digits alone would form a valid checksum"
        },
        {
          "id": "ie.isValid#[{\"value\":\"110944022\",\"stateCode\":\"GO\"}]",
          "args": [
            {
              "value": "110944022",
              "stateCode": "GO"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: GO should return false for IE 11094402 when the digit is neither 0 nor 1"
        },
        {
          "id": "ie.isValid#[{\"value\":\"101030860\",\"stateCode\":\"GO\"}]",
          "args": [
            {
              "value": "101030860",
              "stateCode": "GO"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: GO should return true when the remainder is 1 and the inscricao (10103086) falls just below the special range 10103105..10119997, so the digit is 0"
        },
        {
          "id": "ie.isValid#[{\"value\":\"101200030\",\"stateCode\":\"GO\"}]",
          "args": [
            {
              "value": "101200030",
              "stateCode": "GO"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: GO should return true when the remainder is 1 and the inscricao (10120003) falls just above the special range 10103105..10119997, so the digit is 0"
        },
        {
          "id": "ie.isValid#[{\"value\":\"101199971\",\"stateCode\":\"GO\"}]",
          "args": [
            {
              "value": "101199971",
              "stateCode": "GO"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: GO should return true when the remainder is 1 and the inscricao is exactly 10119997, the inclusive upper bound of the special range"
        },
        {
          "id": "ie.isValid#[{\"value\":\"120000008\",\"stateCode\":\"MA\"}]",
          "args": [
            {
              "value": "120000008",
              "stateCode": "MA"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: MA should return true for a valid IE using the base rule"
        },
        {
          "id": "ie.isValid#[{\"value\":\"120000040\",\"stateCode\":\"MA\"}]",
          "args": [
            {
              "value": "120000040",
              "stateCode": "MA"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: MA should return true when digit 11 is converted to zero"
        },
        {
          "id": "ie.isValid#[{\"value\":\"120000130\",\"stateCode\":\"MA\"}]",
          "args": [
            {
              "value": "120000130",
              "stateCode": "MA"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: MA should return true when digit 10 is converted to 1"
        },
        {
          "id": "ie.isValid#[{\"value\":\"120000007\",\"stateCode\":\"MA\"}]",
          "args": [
            {
              "value": "120000007",
              "stateCode": "MA"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: MA should return false when the verified digit is incorrect"
        },
        {
          "id": "ie.isValid#[{\"value\":\"109161793\",\"stateCode\":\"MA\"}]",
          "args": [
            {
              "value": "109161793",
              "stateCode": "MA"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: MA should return false when the IE does not start with 12"
        },
        {
          "id": "ie.isValid#[{\"value\":\"0120000008\",\"stateCode\":\"MA\"}]",
          "args": [
            {
              "value": "0120000008",
              "stateCode": "MA"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: MA should return false when the length is different from 9"
        },
        {
          "id": "ie.isValid#[{\"value\":\"4333908330177\",\"stateCode\":\"MG\"}]",
          "args": [
            {
              "value": "4333908330177",
              "stateCode": "MG"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: MG should return true for a valid IE using the base rule"
        },
        {
          "id": "ie.isValid#[{\"value\":\"4333908330410\",\"stateCode\":\"MG\"}]",
          "args": [
            {
              "value": "4333908330410",
              "stateCode": "MG"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: MG should return true when the first check digit 10 is converted to 0"
        },
        {
          "id": "ie.isValid#[{\"value\":\"7489439278602\",\"stateCode\":\"MG\"}]",
          "args": [
            {
              "value": "7489439278602",
              "stateCode": "MG"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: MG should return true when the first check digit 10 is converted to 0"
        },
        {
          "id": "ie.isValid#[{\"value\":\"4333908332560\",\"stateCode\":\"MG\"}]",
          "args": [
            {
              "value": "4333908332560",
              "stateCode": "MG"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: MG should return true when the second check digit 11 is converted to 0"
        },
        {
          "id": "ie.isValid#[{\"value\":\"4333908330167\",\"stateCode\":\"MG\"}]",
          "args": [
            {
              "value": "4333908330167",
              "stateCode": "MG"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: MG should return false when the first verified digit is incorrect"
        },
        {
          "id": "ie.isValid#[{\"value\":\"04333908330177\",\"stateCode\":\"MG\"}]",
          "args": [
            {
              "value": "04333908330177",
              "stateCode": "MG"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: MG should return false when the length is different from 13"
        },
        {
          "id": "ie.isValid#[{\"value\":\"4333908330176\",\"stateCode\":\"MG\"}]",
          "args": [
            {
              "value": "4333908330176",
              "stateCode": "MG"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: MG should return false when the second verified digit is incorrect"
        },
        {
          "id": "ie.isValid#[{\"value\":\"43339083301770\",\"stateCode\":\"MG\"}]",
          "args": [
            {
              "value": "43339083301770",
              "stateCode": "MG"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: MG should return false when the length is 14, even though the verifier digits still sit at the valid positions"
        },
        {
          "id": "ie.isValid#[{\"value\":\"60474120469\",\"stateCode\":\"MT\"}]",
          "args": [
            {
              "value": "60474120469",
              "stateCode": "MT"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: MT should return true for a valid IE using the base rule"
        },
        {
          "id": "ie.isValid#[{\"value\":\"12345678901\",\"stateCode\":\"MT\"}]",
          "args": [
            {
              "value": "12345678901",
              "stateCode": "MT"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: MT should return false when the verified digit is incorrect"
        },
        {
          "id": "ie.isValid#[{\"value\":\"1234567890112\",\"stateCode\":\"MT\"}]",
          "args": [
            {
              "value": "1234567890112",
              "stateCode": "MT"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: MT should return false when the length is different from 9 or 11"
        },
        {
          "id": "ie.isValid#[{\"value\":\"604741204699\",\"stateCode\":\"MT\"}]",
          "args": [
            {
              "value": "604741204699",
              "stateCode": "MT"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: MT should return false when the length is 12, even though the first ten digits alone would form a valid checksum"
        },
        {
          "id": "ie.isValid#[{\"value\":\"280000006\",\"stateCode\":\"MS\"}]",
          "args": [
            {
              "value": "280000006",
              "stateCode": "MS"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: MS should return true for a valid IE using the base rule"
        },
        {
          "id": "ie.isValid#[{\"value\":\"280000090\",\"stateCode\":\"MS\"}]",
          "args": [
            {
              "value": "280000090",
              "stateCode": "MS"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: MS should return true when digit 10 is converted to 0"
        },
        {
          "id": "ie.isValid#[{\"value\":\"280000030\",\"stateCode\":\"MS\"}]",
          "args": [
            {
              "value": "280000030",
              "stateCode": "MS"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: MS should return true when digit 11 is converted to 0"
        },
        {
          "id": "ie.isValid#[{\"value\":\"500000000\",\"stateCode\":\"MS\"}]",
          "args": [
            {
              "value": "500000000",
              "stateCode": "MS"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: MS should return true for an IE with prefix 50"
        },
        {
          "id": "ie.isValid#[{\"value\":\"280000031\",\"stateCode\":\"MS\"}]",
          "args": [
            {
              "value": "280000031",
              "stateCode": "MS"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: MS should return false when the verified digit is incorrect"
        },
        {
          "id": "ie.isValid#[{\"value\":\"0280000006\",\"stateCode\":\"MS\"}]",
          "args": [
            {
              "value": "0280000006",
              "stateCode": "MS"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: MS should return false when the length is different from 9"
        },
        {
          "id": "ie.isValid#[{\"value\":\"853511942\",\"stateCode\":\"MS\"}]",
          "args": [
            {
              "value": "853511942",
              "stateCode": "MS"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: MS should return false when the IE does not start with 28"
        },
        {
          "id": "ie.isValid#[{\"value\":\"150000006\",\"stateCode\":\"PA\"}]",
          "args": [
            {
              "value": "150000006",
              "stateCode": "PA"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: PA should return true for a valid IE using the base rule"
        },
        {
          "id": "ie.isValid#[{\"value\":\"150000260\",\"stateCode\":\"PA\"}]",
          "args": [
            {
              "value": "150000260",
              "stateCode": "PA"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: PA should return true when digit 10 is converted to 0"
        },
        {
          "id": "ie.isValid#[{\"value\":\"150000030\",\"stateCode\":\"PA\"}]",
          "args": [
            {
              "value": "150000030",
              "stateCode": "PA"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: PA should return true when digit 11 is converted to 0"
        },
        {
          "id": "ie.isValid#[{\"value\":\"750000023\",\"stateCode\":\"PA\"}]",
          "args": [
            {
              "value": "750000023",
              "stateCode": "PA"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: PA should return true for IEs with prefixes 75 to 79"
        },
        {
          "id": "ie.isValid#[{\"value\":\"760000000\",\"stateCode\":\"PA\"}]",
          "args": [
            {
              "value": "760000000",
              "stateCode": "PA"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: PA should return true for the prefixes 76 to 79, which the SINTEGRA page lists (the 2.4.0 behaviour, kept by #593)"
        },
        {
          "id": "ie.isValid#[{\"value\":\"770000002\",\"stateCode\":\"PA\"}]",
          "args": [
            {
              "value": "770000002",
              "stateCode": "PA"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: PA should return true for the prefixes 76 to 79, which the SINTEGRA page lists (the 2.4.0 behaviour, kept by #593)"
        },
        {
          "id": "ie.isValid#[{\"value\":\"780000005\",\"stateCode\":\"PA\"}]",
          "args": [
            {
              "value": "780000005",
              "stateCode": "PA"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: PA should return true for the prefixes 76 to 79, which the SINTEGRA page lists (the 2.4.0 behaviour, kept by #593)"
        },
        {
          "id": "ie.isValid#[{\"value\":\"790000008\",\"stateCode\":\"PA\"}]",
          "args": [
            {
              "value": "790000008",
              "stateCode": "PA"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: PA should return true for the prefixes 76 to 79, which the SINTEGRA page lists (the 2.4.0 behaviour, kept by #593)"
        },
        {
          "id": "ie.isValid#[{\"value\":\"120000008\",\"stateCode\":\"PA\"}]",
          "args": [
            {
              "value": "120000008",
              "stateCode": "PA"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: PA should return false when the IE does not start with 15 or 75 to 79"
        },
        {
          "id": "ie.isValid#[{\"value\":\"0150000006\",\"stateCode\":\"PA\"}]",
          "args": [
            {
              "value": "0150000006",
              "stateCode": "PA"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: PA should return false when the length is different from 9"
        },
        {
          "id": "ie.isValid#[{\"value\":\"150000007\",\"stateCode\":\"PA\"}]",
          "args": [
            {
              "value": "150000007",
              "stateCode": "PA"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: PA should return false when the digit is incorrect"
        },
        {
          "id": "ie.isValid#[{\"value\":\"853511942\",\"stateCode\":\"PB\"}]",
          "args": [
            {
              "value": "853511942",
              "stateCode": "PB"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: PB should return true for a valid IE using the base rule"
        },
        {
          "id": "ie.isValid#[{\"value\":\"853512230\",\"stateCode\":\"PB\"}]",
          "args": [
            {
              "value": "853512230",
              "stateCode": "PB"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: PB should return true when digit 10 is converted to 0"
        },
        {
          "id": "ie.isValid#[{\"value\":\"853511950\",\"stateCode\":\"PB\"}]",
          "args": [
            {
              "value": "853511950",
              "stateCode": "PB"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: PB should return true when digit 11 is converted to 0"
        },
        {
          "id": "ie.isValid#[{\"value\":\"0853511942\",\"stateCode\":\"PB\"}]",
          "args": [
            {
              "value": "0853511942",
              "stateCode": "PB"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: PB should return false when the length is different from 9"
        },
        {
          "id": "ie.isValid#[{\"value\":\"853511943\",\"stateCode\":\"PB\"}]",
          "args": [
            {
              "value": "853511943",
              "stateCode": "PB"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: PB should return false when the digit is incorrect"
        },
        {
          "id": "ie.isValid#[{\"value\":\"288625706\",\"stateCode\":\"PE\"}]",
          "args": [
            {
              "value": "288625706",
              "stateCode": "PE"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: PE should return true for a valid IE using the base rule"
        },
        {
          "id": "ie.isValid#[{\"value\":\"0925870110\",\"stateCode\":\"PE\"}]",
          "args": [
            {
              "value": "0925870110",
              "stateCode": "PE"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: PE should return false when the length is neither 9 nor 14 digits"
        },
        {
          "id": "ie.isValid#[{\"value\":\"925870101\",\"stateCode\":\"PE\"}]",
          "args": [
            {
              "value": "925870101",
              "stateCode": "PE"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: PE should return false when the digit is incorrect"
        },
        {
          "id": "ie.isValid#[{\"value\":\"123456797\",\"stateCode\":\"PE\"}]",
          "args": [
            {
              "value": "123456797",
              "stateCode": "PE"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: PE should return true for a valid IE whose first verifier digit is not zero"
        },
        {
          "id": "ie.isValid#[{\"value\":\"123456790\",\"stateCode\":\"PE\"}]",
          "args": [
            {
              "value": "123456790",
              "stateCode": "PE"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: PE should return false when only the second verifier digit is wrong, even though the first still matches"
        },
        {
          "id": "ie.isValid#[{\"value\":\"123456787\",\"stateCode\":\"PE\"}]",
          "args": [
            {
              "value": "123456787",
              "stateCode": "PE"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: PE should return false when only the first verifier digit is wrong, even though the second still matches"
        },
        {
          "id": "ie.isValid#[{\"value\":\"052364534\",\"stateCode\":\"PI\"}]",
          "args": [
            {
              "value": "052364534",
              "stateCode": "PI"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: PI should return true for a valid IE using the base rule"
        },
        {
          "id": "ie.isValid#[{\"value\":\"4447953604\",\"stateCode\":\"PR\"}]",
          "args": [
            {
              "value": "4447953604",
              "stateCode": "PR"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: PR should return true for a valid IE using the base rule"
        },
        {
          "id": "ie.isValid#[{\"value\":\"0000000191\",\"stateCode\":\"PR\"}]",
          "args": [
            {
              "value": "0000000191",
              "stateCode": "PR"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: PR should return true when the first check digit is below 10 and needs no clamping"
        },
        {
          "id": "ie.isValid#[{\"value\":\"0000000000\",\"stateCode\":\"PR\"}]",
          "args": [
            {
              "value": "0000000000",
              "stateCode": "PR"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: PR should return true when the second check digit is the exceptional 10, clamped to 0"
        },
        {
          "id": "ie.isValid#[{\"value\":\"04447953604\",\"stateCode\":\"PR\"}]",
          "args": [
            {
              "value": "04447953604",
              "stateCode": "PR"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: PR should return false when the length is different from 10 digits"
        },
        {
          "id": "ie.isValid#[{\"value\":\"4447953640\",\"stateCode\":\"PR\"}]",
          "args": [
            {
              "value": "4447953640",
              "stateCode": "PR"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: PR should return false when the digit is incorrect"
        },
        {
          "id": "ie.isValid#[{\"value\":\"44479536044\",\"stateCode\":\"PR\"}]",
          "args": [
            {
              "value": "44479536044",
              "stateCode": "PR"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: PR should return false when the length is 11, even though the verifier digits still sit at the valid positions"
        },
        {
          "id": "ie.isValid#[{\"value\":\"4447953600\",\"stateCode\":\"PR\"}]",
          "args": [
            {
              "value": "4447953600",
              "stateCode": "PR"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: PR should return false when only the second verifier digit is wrong, even though the first still matches"
        },
        {
          "id": "ie.isValid#[{\"value\":\"4447953614\",\"stateCode\":\"PR\"}]",
          "args": [
            {
              "value": "4447953614",
              "stateCode": "PR"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: PR should return false when only the first verifier digit is wrong, even though the second still matches"
        },
        {
          "id": "ie.isValid#[{\"value\":\"62545372\",\"stateCode\":\"RJ\"}]",
          "args": [
            {
              "value": "62545372",
              "stateCode": "RJ"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: RJ should return true for a valid IE using the base rule"
        },
        {
          "id": "ie.isValid#[{\"value\":\"62545470\",\"stateCode\":\"RJ\"}]",
          "args": [
            {
              "value": "62545470",
              "stateCode": "RJ"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: RJ should return true when digit 10 is converted to 0"
        },
        {
          "id": "ie.isValid#[{\"value\":\"62545380\",\"stateCode\":\"RJ\"}]",
          "args": [
            {
              "value": "62545380",
              "stateCode": "RJ"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: RJ should return true when digit 11 is converted to 0"
        },
        {
          "id": "ie.isValid#[{\"value\":\"20441620\",\"stateCode\":\"RJ\"}]",
          "args": [
            {
              "value": "20441620",
              "stateCode": "RJ"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: RJ should return false when the first verified digit is incorrect"
        },
        {
          "id": "ie.isValid#[{\"value\":\"020441623\",\"stateCode\":\"RJ\"}]",
          "args": [
            {
              "value": "020441623",
              "stateCode": "RJ"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: RJ should return false when the length is different from 8"
        },
        {
          "id": "ie.isValid#[{\"value\":\"625453720\",\"stateCode\":\"RJ\"}]",
          "args": [
            {
              "value": "625453720",
              "stateCode": "RJ"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: RJ should return false when the length is 9, even though the verifier digit still sits at the valid position"
        },
        {
          "id": "ie.isValid#[{\"value\":\"2007693232\",\"stateCode\":\"RN\"}]",
          "args": [
            {
              "value": "2007693232",
              "stateCode": "RN"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: RN should return true for a valid IE using the base rule"
        },
        {
          "id": "ie.isValid#[{\"value\":\"2003569880\",\"stateCode\":\"RN\"}]",
          "args": [
            {
              "value": "2003569880",
              "stateCode": "RN"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: RN should return true when digit 10 is converted to 0"
        },
        {
          "id": "ie.isValid#[{\"value\":\"203569881\",\"stateCode\":\"RN\"}]",
          "args": [
            {
              "value": "203569881",
              "stateCode": "RN"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: RN should return true for an old-format IE"
        },
        {
          "id": "ie.isValid#[{\"value\":\"2007693231\",\"stateCode\":\"RN\"}]",
          "args": [
            {
              "value": "2007693231",
              "stateCode": "RN"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: RN should return false when the first verified digit is incorrect"
        },
        {
          "id": "ie.isValid#[{\"value\":\"0203569881\",\"stateCode\":\"RN\"}]",
          "args": [
            {
              "value": "0203569881",
              "stateCode": "RN"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: RN should return false when the IE does not start with 20"
        },
        {
          "id": "ie.isValid#[{\"value\":\"20356988104\",\"stateCode\":\"RN\"}]",
          "args": [
            {
              "value": "20356988104",
              "stateCode": "RN"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: RN should return false when the length is different from 9 or 10"
        },
        {
          "id": "ie.isValid#[{\"value\":\"01078042249629\",\"stateCode\":\"RO\"}]",
          "args": [
            {
              "value": "01078042249629",
              "stateCode": "RO"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: RO should return true for a valid IE using the base rule"
        },
        {
          "id": "ie.isValid#[{\"value\":\"01078042249670\",\"stateCode\":\"RO\"}]",
          "args": [
            {
              "value": "01078042249670",
              "stateCode": "RO"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: RO should return true when digit 10 is converted to 0"
        },
        {
          "id": "ie.isValid#[{\"value\":\"01078042249751\",\"stateCode\":\"RO\"}]",
          "args": [
            {
              "value": "01078042249751",
              "stateCode": "RO"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: RO should return true when digit 11 is converted to 0"
        },
        {
          "id": "ie.isValid#[{\"value\":\"01078042249756\",\"stateCode\":\"RO\"}]",
          "args": [
            {
              "value": "01078042249756",
              "stateCode": "RO"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: RO should return false when the first verified digit is incorrect"
        },
        {
          "id": "ie.isValid#[{\"value\":\"001078042249627\",\"stateCode\":\"RO\"}]",
          "args": [
            {
              "value": "001078042249627",
              "stateCode": "RO"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: RO should return false when the length is different from 14"
        },
        {
          "id": "ie.isValid#[{\"value\":\"12345678901231\",\"stateCode\":\"RO\"}]",
          "args": [
            {
              "value": "12345678901231",
              "stateCode": "RO"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: RO should return true for another valid IE that exercises the wrap-around weight"
        },
        {
          "id": "ie.isValid#[{\"value\":\"240061536\",\"stateCode\":\"RR\"}]",
          "args": [
            {
              "value": "240061536",
              "stateCode": "RR"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: RR should return true for a valid IE using the base rule"
        },
        {
          "id": "ie.isValid#[{\"value\":\"240061537\",\"stateCode\":\"RR\"}]",
          "args": [
            {
              "value": "240061537",
              "stateCode": "RR"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: RR should return false when the first verified digit is incorrect"
        },
        {
          "id": "ie.isValid#[{\"value\":\"2400615366\",\"stateCode\":\"RR\"}]",
          "args": [
            {
              "value": "2400615366",
              "stateCode": "RR"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: RR should return false when the length is different from 9"
        },
        {
          "id": "ie.isValid#[{\"value\":\"024006150\",\"stateCode\":\"RR\"}]",
          "args": [
            {
              "value": "024006150",
              "stateCode": "RR"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: RR should return false when the IE does not start with 24"
        },
        {
          "id": "ie.isValid#[{\"value\":\"240000001\",\"stateCode\":\"RR\"}]",
          "args": [
            {
              "value": "240000001",
              "stateCode": "RR"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: RR should return true for another valid IE with a non-zero check digit"
        },
        {
          "id": "ie.isValid#[{\"value\":\"0305169149\",\"stateCode\":\"RS\"}]",
          "args": [
            {
              "value": "0305169149",
              "stateCode": "RS"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: RS should return true for a valid IE using the base rule"
        },
        {
          "id": "ie.isValid#[{\"value\":\"1202762660\",\"stateCode\":\"RS\"}]",
          "args": [
            {
              "value": "1202762660",
              "stateCode": "RS"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: RS should return true when digit 10 is converted to 0"
        },
        {
          "id": "ie.isValid#[{\"value\":\"1202762120\",\"stateCode\":\"RS\"}]",
          "args": [
            {
              "value": "1202762120",
              "stateCode": "RS"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: RS should return true when digit 11 is converted to 0"
        },
        {
          "id": "ie.isValid#[{\"value\":\"2007693232\",\"stateCode\":\"RS\"}]",
          "args": [
            {
              "value": "2007693232",
              "stateCode": "RS"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: RS should return false when the first verified digit is incorrect"
        },
        {
          "id": "ie.isValid#[{\"value\":\"02007693230\",\"stateCode\":\"RS\"}]",
          "args": [
            {
              "value": "02007693230",
              "stateCode": "RS"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: RS should return false when the length is different from 10"
        },
        {
          "id": "ie.isValid#[{\"value\":\"03051691499\",\"stateCode\":\"RS\"}]",
          "args": [
            {
              "value": "03051691499",
              "stateCode": "RS"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: RS should return false when the length is 11, even though the verifier digit still sits at the valid position"
        },
        {
          "id": "ie.isValid#[{\"value\":\"330430572\",\"stateCode\":\"SC\"}]",
          "args": [
            {
              "value": "330430572",
              "stateCode": "SC"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: SC should return true for a valid IE using the base rule"
        },
        {
          "id": "ie.isValid#[{\"value\":\"017682606\",\"stateCode\":\"SE\"}]",
          "args": [
            {
              "value": "017682606",
              "stateCode": "SE"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: SE should return true for a valid IE using the base rule"
        },
        {
          "id": "ie.isValid#[{\"value\":\"110042490114\",\"stateCode\":\"SP\"}]",
          "args": [
            {
              "value": "110042490114",
              "stateCode": "SP"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: SP should return true for a valid IE using the base rule"
        },
        {
          "id": "ie.isValid#[{\"value\":\"P011004243002\",\"stateCode\":\"SP\"}]",
          "args": [
            {
              "value": "P011004243002",
              "stateCode": "SP"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: SP should return true for a produtor rural IE (P0MMMSSSSD000), including with formatting characters and lowercase prefix"
        },
        {
          "id": "ie.isValid#[{\"value\":\"P-01100424.3/002\",\"stateCode\":\"SP\"}]",
          "args": [
            {
              "value": "P-01100424.3/002",
              "stateCode": "SP"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: SP should return true for a produtor rural IE (P0MMMSSSSD000), including with formatting characters and lowercase prefix"
        },
        {
          "id": "ie.isValid#[{\"value\":\"p011004243002\",\"stateCode\":\"SP\"}]",
          "args": [
            {
              "value": "p011004243002",
              "stateCode": "SP"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: SP should return true for a produtor rural IE (P0MMMSSSSD000), including with formatting characters and lowercase prefix"
        },
        {
          "id": "ie.isValid#[{\"value\":\"1110042494114\",\"stateCode\":\"SP\"}]",
          "args": [
            {
              "value": "1110042494114",
              "stateCode": "SP"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: SP should return false when the length is bigger than 12"
        },
        {
          "id": "ie.isValid#[{\"value\":\"110042490113\",\"stateCode\":\"SP\"}]",
          "args": [
            {
              "value": "110042490113",
              "stateCode": "SP"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: SP should return false when the second verified digit is incorrect"
        },
        {
          "id": "ie.isValid#[{\"value\":\"110042498113\",\"stateCode\":\"SP\"}]",
          "args": [
            {
              "value": "110042498113",
              "stateCode": "SP"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: SP should return false when the first verified digit is incorrect"
        },
        {
          "id": "ie.isValid#[{\"value\":\"P011004244002\",\"stateCode\":\"SP\"}]",
          "args": [
            {
              "value": "P011004244002",
              "stateCode": "SP"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: SP should return false for a produtor rural IE with an incorrect verified digit"
        },
        {
          "id": "ie.isValid#[{\"value\":\"P01100424300\",\"stateCode\":\"SP\"}]",
          "args": [
            {
              "value": "P01100424300",
              "stateCode": "SP"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: SP should return false for a produtor rural IE with a length different from 13"
        },
        {
          "id": "ie.isValid#[{\"value\":\"11004249011A\",\"stateCode\":\"SP\"}]",
          "args": [
            {
              "value": "11004249011A",
              "stateCode": "SP"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: SP should return false when a letter appears in a position that must be a digit"
        },
        {
          "id": "ie.isValid#[{\"value\":\"1100424901149\",\"stateCode\":\"SP\"}]",
          "args": [
            {
              "value": "1100424901149",
              "stateCode": "SP"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: SP should return false when a company IE has an extra trailing digit, even though the first twelve digits alone would form a valid checksum"
        },
        {
          "id": "ie.isValid#[{\"value\":\"0011004243P000000000000\",\"stateCode\":\"SP\"}]",
          "args": [
            {
              "value": "0011004243P000000000000",
              "stateCode": "SP"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: SP should return false when a 'P' followed by twelve digits appears at the end of a longer string, instead of at the very start"
        },
        {
          "id": "ie.isValid#[{\"value\":\"P0110042430029\",\"stateCode\":\"SP\"}]",
          "args": [
            {
              "value": "P0110042430029",
              "stateCode": "SP"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: SP should return false when a produtor rural IE has an extra trailing digit, even though the verifier digit still sits at the valid position"
        },
        {
          "id": "ie.isValid#[{\"value\":\"01027737427\",\"stateCode\":\"TO\"}]",
          "args": [
            {
              "value": "01027737427",
              "stateCode": "TO"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: TO should return true for a valid IE using the old base rule"
        },
        {
          "id": "ie.isValid#[{\"value\":\"294467696\",\"stateCode\":\"TO\"}]",
          "args": [
            {
              "value": "294467696",
              "stateCode": "TO"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: TO should return true for a valid IE using the new base rule"
        },
        {
          "id": "ie.isValid#[{\"value\":\"294150870\",\"stateCode\":\"TO\"}]",
          "args": [
            {
              "value": "294150870",
              "stateCode": "TO"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: TO should return true when the digit is zero"
        },
        {
          "id": "ie.isValid#[{\"value\":\"01047737427\",\"stateCode\":\"TO\"}]",
          "args": [
            {
              "value": "01047737427",
              "stateCode": "TO"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: TO should return false for an old-rule IE with an invalid category"
        },
        {
          "id": "ie.isValid#[{\"value\":\"29000000947\",\"stateCode\":\"TO\"}]",
          "args": [
            {
              "value": "29000000947",
              "stateCode": "TO"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: TO should return false for an 11-digit IE with an invalid type, since it must not fall back to the 9-digit rule"
        },
        {
          "id": "ie.isValid#[{\"value\":\"099999916599\",\"stateCode\":\"TO\"}]",
          "args": [
            {
              "value": "099999916599",
              "stateCode": "TO"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: TO should return false when the length is more than 11 digits"
        },
        {
          "id": "ie.isValid#[{\"value\":\"99999916598\",\"stateCode\":\"TO\"}]",
          "args": [
            {
              "value": "99999916598",
              "stateCode": "TO"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: TO should return false when the verified digit is incorrect"
        },
        {
          "id": "ie.isValid#[{\"value\":\"294467690\",\"stateCode\":\"TO\"}]",
          "args": [
            {
              "value": "294467690",
              "stateCode": "TO"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: TO should return false for a new-rule IE with an incorrect verified digit"
        },
        {
          "id": "ie.isValid#[{\"value\":\"2944676960\",\"stateCode\":\"TO\"}]",
          "args": [
            {
              "value": "2944676960",
              "stateCode": "TO"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: TO should return false when the length is 10, even though the first eight digits alone would form a valid checksum"
        },
        {
          "id": "ie.isValid#[{\"value\":\"----\",\"stateCode\":\"RJ\"}]",
          "args": [
            {
              "value": "----",
              "stateCode": "RJ"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: state code lookup should return false when the sanitized IE is empty"
        },
        {
          "id": "ie.isValid#[{\"value\":\"625X45372\",\"stateCode\":\"RJ\"}]",
          "args": [
            {
              "value": "625X45372",
              "stateCode": "RJ"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: state code lookup should strip letters from a non-SP IE before validating it"
        },
        {
          "id": "ie.isValid#[{\"value\":\"12345\",\"stateCode\":\"RJ\"}]",
          "args": [
            {
              "value": "12345",
              "stateCode": "RJ"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: the object form should validate the registration against the state code given beside it"
        },
        {
          "id": "ie.isValid#[{}]",
          "args": [
            {}
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: the object form should return false when the object carries no usable registration or state code"
        },
        {
          "id": "ie.isValid#[{\"value\":\"110042490114\"}]",
          "args": [
            {
              "value": "110042490114"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: the object form should return false when the object carries no usable registration or state code"
        },
        {
          "id": "ie.isValid#[{\"stateCode\":\"SP\"}]",
          "args": [
            {
              "stateCode": "SP"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: the object form should return false when the object carries no usable registration or state code"
        },
        {
          "id": "ie.isValid#[{\"value\":\"110042490114\",\"stateCode\":null}]",
          "args": [
            {
              "value": "110042490114",
              "stateCode": null
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: the object form should return false when the object carries no usable registration or state code"
        },
        {
          "id": "ie.isValid#[{\"value\":\"243000006\",\"stateCode\":\"AL\"}]",
          "args": [
            {
              "value": "243000006",
              "stateCode": "AL"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: AL should return true for every tipo de empresa the SINTEGRA page lists: 0, 3, 5, 7 and 8"
        },
        {
          "id": "ie.isValid#[{\"value\":\"245000003\",\"stateCode\":\"AL\"}]",
          "args": [
            {
              "value": "245000003",
              "stateCode": "AL"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: AL should return true for every tipo de empresa the SINTEGRA page lists: 0, 3, 5, 7 and 8"
        },
        {
          "id": "ie.isValid#[{\"value\":\"247000000\",\"stateCode\":\"AL\"}]",
          "args": [
            {
              "value": "247000000",
              "stateCode": "AL"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: AL should return true for every tipo de empresa the SINTEGRA page lists: 0, 3, 5, 7 and 8"
        },
        {
          "id": "ie.isValid#[{\"value\":\"248000004\",\"stateCode\":\"AL\"}]",
          "args": [
            {
              "value": "248000004",
              "stateCode": "AL"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: AL should return true for every tipo de empresa the SINTEGRA page lists: 0, 3, 5, 7 and 8"
        },
        {
          "id": "ie.isValid#[{\"value\":\"241000009\",\"stateCode\":\"AL\"}]",
          "args": [
            {
              "value": "241000009",
              "stateCode": "AL"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "changed in 2.5.0 (#593): the third digit (tipo de empresa) is not one of 0, 3, 5, 7, 8 on the SINTEGRA page; 2.4.0 accepted it. JavaScript's own test: AL should return false for a tipo de empresa the page does not list, even with a matching digit"
        },
        {
          "id": "ie.isValid#[{\"value\":\"242000002\",\"stateCode\":\"AL\"}]",
          "args": [
            {
              "value": "242000002",
              "stateCode": "AL"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "changed in 2.5.0 (#593): the third digit (tipo de empresa) is not one of 0, 3, 5, 7, 8 on the SINTEGRA page; 2.4.0 accepted it. JavaScript's own test: AL should return false for a tipo de empresa the page does not list, even with a matching digit"
        },
        {
          "id": "ie.isValid#[{\"value\":\"244000000\",\"stateCode\":\"AL\"}]",
          "args": [
            {
              "value": "244000000",
              "stateCode": "AL"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "changed in 2.5.0 (#593): the third digit (tipo de empresa) is not one of 0, 3, 5, 7, 8 on the SINTEGRA page; 2.4.0 accepted it. JavaScript's own test: AL should return false for a tipo de empresa the page does not list, even with a matching digit"
        },
        {
          "id": "ie.isValid#[{\"value\":\"246000007\",\"stateCode\":\"AL\"}]",
          "args": [
            {
              "value": "246000007",
              "stateCode": "AL"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "changed in 2.5.0 (#593): the third digit (tipo de empresa) is not one of 0, 3, 5, 7, 8 on the SINTEGRA page; 2.4.0 accepted it. JavaScript's own test: AL should return false for a tipo de empresa the page does not list, even with a matching digit"
        },
        {
          "id": "ie.isValid#[{\"value\":\"249000008\",\"stateCode\":\"AL\"}]",
          "args": [
            {
              "value": "249000008",
              "stateCode": "AL"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "changed in 2.5.0 (#593): the third digit (tipo de empresa) is not one of 0, 3, 5, 7, 8 on the SINTEGRA page; 2.4.0 accepted it. JavaScript's own test: AL should return false for a tipo de empresa the page does not list, even with a matching digit"
        },
        {
          "id": "ie.isValid#[{\"value\":\"0830000100172\",\"stateCode\":\"DF\"}]",
          "args": [
            {
              "value": "0830000100172",
              "stateCode": "DF"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "changed in 2.5.0 (#593): 2.4.0 rejected the prefix 08. JavaScript's own test: DF should return true for the prefix 08, which DF moved to when the 07 numbers ran out"
        },
        {
          "id": "ie.isValid#[{\"value\":\"08.300001.001-72\",\"stateCode\":\"DF\"}]",
          "args": [
            {
              "value": "08.300001.001-72",
              "stateCode": "DF"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "changed in 2.5.0 (#593): 2.4.0 rejected the prefix 08. JavaScript's own test: DF should return true for the prefix 08, which DF moved to when the 07 numbers ran out"
        },
        {
          "id": "ie.isValid#[{\"value\":\"0800000000176\",\"stateCode\":\"DF\"}]",
          "args": [
            {
              "value": "0800000000176",
              "stateCode": "DF"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "changed in 2.5.0 (#593): 2.4.0 rejected the prefix 08. JavaScript's own test: DF should return true for the prefix 08, which DF moved to when the 07 numbers ran out"
        },
        {
          "id": "ie.isValid#[{\"value\":\"0899999900145\",\"stateCode\":\"DF\"}]",
          "args": [
            {
              "value": "0899999900145",
              "stateCode": "DF"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "changed in 2.5.0 (#593): 2.4.0 rejected the prefix 08. JavaScript's own test: DF should return true for the prefix 08, which DF moved to when the 07 numbers ran out"
        },
        {
          "id": "ie.isValid#[{\"value\":\"0630000100129\",\"stateCode\":\"DF\"}]",
          "args": [
            {
              "value": "0630000100129",
              "stateCode": "DF"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: DF should return false for the prefixes 06 and 09, just outside 07 and 08, even with matching digits"
        },
        {
          "id": "ie.isValid#[{\"value\":\"0930000100144\",\"stateCode\":\"DF\"}]",
          "args": [
            {
              "value": "0930000100144",
              "stateCode": "DF"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: DF should return false for the prefixes 06 and 09, just outside 07 and 08, even with matching digits"
        },
        {
          "id": "ie.isValid#[{\"value\":\"0830000100173\",\"stateCode\":\"DF\"}]",
          "args": [
            {
              "value": "0830000100173",
              "stateCode": "DF"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: DF should return false for a prefix 08 registration with an incorrect verifier digit"
        },
        {
          "id": "ie.isValid#[{\"value\":\"0830000100182\",\"stateCode\":\"DF\"}]",
          "args": [
            {
              "value": "0830000100182",
              "stateCode": "DF"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: DF should return false for a prefix 08 registration with an incorrect verifier digit"
        },
        {
          "id": "ie.isValid#[{\"value\":\"073.00001.001-09\",\"stateCode\":\"DF\"}]",
          "args": [
            {
              "value": "073.00001.001-09",
              "stateCode": "DF"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "the worked example of the SINTEGRA DF page"
        },
        {
          "id": "ie.isValid#[{\"value\":\"200000004\",\"stateCode\":\"GO\"}]",
          "args": [
            {
              "value": "200000004",
              "stateCode": "GO"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "changed in 2.5.0 (#593): 2.4.0 rejected the prefix 20. JavaScript's own test: GO should return true for the prefix 20, the one the Secretaria da Economia issues to companies since 13/01/2023"
        },
        {
          "id": "ie.isValid#[{\"value\":\"210000007\",\"stateCode\":\"GO\"}]",
          "args": [
            {
              "value": "210000007",
              "stateCode": "GO"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "changed in 2.5.0 (#593): 2.4.0 rejected the prefixes 20 to 29. JavaScript's own test: GO should return true for every prefix from 20 to 29 the SINTEGRA page lists"
        },
        {
          "id": "ie.isValid#[{\"value\":\"290000009\",\"stateCode\":\"GO\"}]",
          "args": [
            {
              "value": "290000009",
              "stateCode": "GO"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "changed in 2.5.0 (#593): 2.4.0 rejected the prefixes 20 to 29. JavaScript's own test: GO should return true for every prefix from 20 to 29 the SINTEGRA page lists"
        },
        {
          "id": "ie.isValid#[{\"value\":\"299999998\",\"stateCode\":\"GO\"}]",
          "args": [
            {
              "value": "299999998",
              "stateCode": "GO"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "changed in 2.5.0 (#593): 2.4.0 rejected the prefixes 20 to 29. JavaScript's own test: GO should return true for every prefix from 20 to 29 the SINTEGRA page lists"
        },
        {
          "id": "ie.isValid#[{\"value\":\"190000007\",\"stateCode\":\"GO\"}]",
          "args": [
            {
              "value": "190000007",
              "stateCode": "GO"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: GO should return false for the prefixes 19 and 30, just outside 20 to 29, even with a matching digit"
        },
        {
          "id": "ie.isValid#[{\"value\":\"300000006\",\"stateCode\":\"GO\"}]",
          "args": [
            {
              "value": "300000006",
              "stateCode": "GO"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: GO should return false for the prefixes 19 and 30, just outside 20 to 29, even with a matching digit"
        },
        {
          "id": "ie.isValid#[{\"value\":\"200000005\",\"stateCode\":\"GO\"}]",
          "args": [
            {
              "value": "200000005",
              "stateCode": "GO"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: GO should return false for a prefix 20 registration with an incorrect digit"
        },
        {
          "id": "ie.isValid#[{\"value\":\"101031050\",\"stateCode\":\"GO\"}]",
          "args": [
            {
              "value": "101031050",
              "stateCode": "GO"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "GO: the check digit follows the 2012 roteiro (remainder 1 gives 1 in the range 10103105 to 10119997), not the SINTEGRA page's reading of it as 0; same as 2.4.0"
        },
        {
          "id": "ie.isValid#[{\"value\":\"130000019\",\"stateCode\":\"MT\"}]",
          "args": [
            {
              "value": "130000019",
              "stateCode": "MT"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "changed in 2.5.0 (#593): 2.4.0 accepted only 11 digits. JavaScript's own test: MT should return true for the 9 digit form Portaria SEFAZ-MT nº 59/2025 art. 8º § 1º prescribes"
        },
        {
          "id": "ie.isValid#[{\"value\":\"13.000.001-9\",\"stateCode\":\"MT\"}]",
          "args": [
            {
              "value": "13.000.001-9",
              "stateCode": "MT"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "changed in 2.5.0 (#593): 2.4.0 accepted only 11 digits. JavaScript's own test: MT should return true for the 9 digit form Portaria SEFAZ-MT nº 59/2025 art. 8º § 1º prescribes"
        },
        {
          "id": "ie.isValid#[{\"value\":\"00130000019\",\"stateCode\":\"MT\"}]",
          "args": [
            {
              "value": "00130000019",
              "stateCode": "MT"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: MT should return true for the 9 digit form Portaria SEFAZ-MT nº 59/2025 art. 8º § 1º prescribes"
        },
        {
          "id": "ie.isValid#[{\"value\":\"000000000\",\"stateCode\":\"MT\"}]",
          "args": [
            {
              "value": "000000000",
              "stateCode": "MT"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "changed in 2.5.0 (#593): the 9-digit form is accepted; 2.4.0 rejected it. JavaScript's own test: MT should return true for an all zero registration in the 9 digit form, as in the 11 digit one"
        },
        {
          "id": "ie.isValid#[{\"value\":\"130000010\",\"stateCode\":\"MT\"}]",
          "args": [
            {
              "value": "130000010",
              "stateCode": "MT"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: MT should return false for a 9 digit IE with an incorrect verified digit"
        },
        {
          "id": "ie.isValid#[{\"value\":\"30000017\",\"stateCode\":\"MT\"}]",
          "args": [
            {
              "value": "30000017",
              "stateCode": "MT"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: MT should return false for 8 or 10 digits, even though padding them to 11 would give a valid checksum"
        },
        {
          "id": "ie.isValid#[{\"value\":\"0130000019\",\"stateCode\":\"MT\"}]",
          "args": [
            {
              "value": "0130000019",
              "stateCode": "MT"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: MT should return false for 8 or 10 digits, even though padding them to 11 would give a valid checksum"
        },
        {
          "id": "ie.isValid#[{\"value\":\"750000007\",\"stateCode\":\"PA\"}]",
          "args": [
            {
              "value": "750000007",
              "stateCode": "PA"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: PA should return true for the prefix 75, which SEFA-PA has issued since October 2024"
        },
        {
          "id": "ie.isValid#[{\"value\":\"759999996\",\"stateCode\":\"PA\"}]",
          "args": [
            {
              "value": "759999996",
              "stateCode": "PA"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: PA should return true for the prefix 75, which SEFA-PA has issued since October 2024"
        },
        {
          "id": "ie.isValid#[{\"value\":\"760000001\",\"stateCode\":\"PA\"}]",
          "args": [
            {
              "value": "760000001",
              "stateCode": "PA"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: PA should return false for a prefix 76 to 79 registration with an incorrect digit"
        },
        {
          "id": "ie.isValid#[{\"value\":\"790000009\",\"stateCode\":\"PA\"}]",
          "args": [
            {
              "value": "790000009",
              "stateCode": "PA"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: PA should return false for a prefix 76 to 79 registration with an incorrect digit"
        },
        {
          "id": "ie.isValid#[{\"value\":\"740000004\",\"stateCode\":\"PA\"}]",
          "args": [
            {
              "value": "740000004",
              "stateCode": "PA"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: PA should return false for the prefixes 74, 80, 14 and 16, next to 75 to 79 and 15, even with a matching digit"
        },
        {
          "id": "ie.isValid#[{\"value\":\"800000005\",\"stateCode\":\"PA\"}]",
          "args": [
            {
              "value": "800000005",
              "stateCode": "PA"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: PA should return false for the prefixes 74, 80, 14 and 16, next to 75 to 79 and 15, even with a matching digit"
        },
        {
          "id": "ie.isValid#[{\"value\":\"140000003\",\"stateCode\":\"PA\"}]",
          "args": [
            {
              "value": "140000003",
              "stateCode": "PA"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: PA should return false for the prefixes 74, 80, 14 and 16, next to 75 to 79 and 15, even with a matching digit"
        },
        {
          "id": "ie.isValid#[{\"value\":\"160000009\",\"stateCode\":\"PA\"}]",
          "args": [
            {
              "value": "160000009",
              "stateCode": "PA"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: PA should return false for the prefixes 74, 80, 14 and 16, next to 75 to 79 and 15, even with a matching digit"
        },
        {
          "id": "ie.isValid#[{\"value\":\"18.1.001.0000004-9\",\"stateCode\":\"PE\"}]",
          "args": [
            {
              "value": "18.1.001.0000004-9",
              "stateCode": "PE"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "changed in 2.5.0 (#593): the old 14-digit CACEPE number is accepted (Portaria SF 087/2007 set no end date); 2.4.0 rejected it. JavaScript's own test: PE should return true for the old 14 digit CACEPE number, the SINTEGRA page's worked example"
        },
        {
          "id": "ie.isValid#[{\"value\":\"18100100000048\",\"stateCode\":\"PE\"}]",
          "args": [
            {
              "value": "18100100000048",
              "stateCode": "PE"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: PE should return false for the old 14 digit CACEPE number with an incorrect digit"
        },
        {
          "id": "ie.isValid#[{\"value\":\"00001000000000\",\"stateCode\":\"PE\"}]",
          "args": [
            {
              "value": "00001000000000",
              "stateCode": "PE"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "changed in 2.5.0 (#593): the old 14-digit CACEPE number is accepted; 2.4.0 rejected it. JavaScript's own test: PE should subtract 10 from a difference above 9 in the old 14 digit CACEPE number"
        },
        {
          "id": "ie.isValid#[{\"value\":\"00000000000001\",\"stateCode\":\"PE\"}]",
          "args": [
            {
              "value": "00000000000001",
              "stateCode": "PE"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "changed in 2.5.0 (#593): the old 14-digit CACEPE number is accepted; 2.4.0 rejected it. JavaScript's own test: PE should subtract 10 from a difference above 9 in the old 14 digit CACEPE number"
        },
        {
          "id": "ie.isValid#[{\"value\":\"00000000000000\",\"stateCode\":\"PE\"}]",
          "args": [
            {
              "value": "00000000000000",
              "stateCode": "PE"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: PE should subtract 10 from a difference above 9 in the old 14 digit CACEPE number"
        },
        {
          "id": "ie.isValid#[{\"value\":\"1810010000004\",\"stateCode\":\"PE\"}]",
          "args": [
            {
              "value": "1810010000004",
              "stateCode": "PE"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: PE should return false when the length is neither 9 nor 14 digits"
        },
        {
          "id": "ie.isValid#[{\"value\":\"181001000000490\",\"stateCode\":\"PE\"}]",
          "args": [
            {
              "value": "181001000000490",
              "stateCode": "PE"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: PE should return false when the length is neither 9 nor 14 digits"
        },
        {
          "id": "ie.isValid#[{\"value\":\"P790674670712\",\"stateCode\":\"SP\"}]",
          "args": [
            {
              "value": "P790674670712",
              "stateCode": "SP"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "changed in 2.5.0 (#593): the character after P must be the 0 of P0MMMSSSSD000 (SINTEGRA SP page); 2.4.0 accepted any digit there. JavaScript's own test: SP should return false for a produtor rural IE whose second character is not the 0 of P0MMMSSSSD000, even with a matching digit"
        },
        {
          "id": "ie.isValid#[{\"value\":\"P111004244002\",\"stateCode\":\"SP\"}]",
          "args": [
            {
              "value": "P111004244002",
              "stateCode": "SP"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "changed in 2.5.0 (#593): the character after P must be the 0 of P0MMMSSSSD000 (SINTEGRA SP page); 2.4.0 accepted any digit there. JavaScript's own test: SP should return false for a produtor rural IE whose second character is not the 0 of P0MMMSSSSD000, even with a matching digit"
        },
        {
          "id": "ie.isValid#[{\"value\":\"p790674670712\",\"stateCode\":\"SP\"}]",
          "args": [
            {
              "value": "p790674670712",
              "stateCode": "SP"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "changed in 2.5.0 (#593): the character after P must be the 0 of P0MMMSSSSD000 (SINTEGRA SP page); 2.4.0 accepted any digit there. JavaScript's own test: SP should return false for a produtor rural IE whose second character is not the 0 of P0MMMSSSSD000, even with a matching digit"
        },
        {
          "id": "ie.isValid#[{\"value\":\"P000000000000\",\"stateCode\":\"SP\"}]",
          "args": [
            {
              "value": "P000000000000",
              "stateCode": "SP"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: SP should return true for a produtor rural IE starting with P0, the boundary of the rule"
        },
        {
          "id": "ie.isValid#[{\"value\":\"P-011000424.3/002\",\"stateCode\":\"SP\"}]",
          "args": [
            {
              "value": "P-011000424.3/002",
              "stateCode": "SP"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: SP should return false for the SINTEGRA page's closing line P-011000424.3/002, which has one 0 too many"
        },
        {
          "id": "ie.isValid#[{\"value\":\"99.999.99-3\",\"stateCode\":\"RJ\"}]",
          "args": [
            {
              "value": "99.999.99-3",
              "stateCode": "RJ"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "the mask example of the SINTEGRA RJ page"
        },
        {
          "id": "ie.isValid#[{\"value\":\"29 022783 6\",\"stateCode\":\"TO\"}]",
          "args": [
            {
              "value": "29 022783 6",
              "stateCode": "TO"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "the worked example of SEFAZ-TO's roteiro"
        },
        {
          "id": "ie.isValid#[{\"value\":\"110042490114\",\"stateCode\":\" sp \"}]",
          "args": [
            {
              "value": "110042490114",
              "stateCode": " sp "
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "changed in 2.5.0: whitespace around the state code is ignored; 2.4.0 returned false. JavaScript's own test: should ignore whitespace around the state code"
        },
        {
          "id": "ie.isValid#[{\"value\":\"109161793\",\"stateCode\":\"\\tGo\\n\"}]",
          "args": [
            {
              "value": "109161793",
              "stateCode": "\tGo\n"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "changed in 2.5.0: whitespace around the state code is ignored; 2.4.0 returned false. JavaScript's own test: should ignore whitespace around the state code"
        },
        {
          "id": "ie.isValid#[{\"value\":\"110042490114\",\"stateCode\":\" \"}]",
          "args": [
            {
              "value": "110042490114",
              "stateCode": " "
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: should ignore whitespace around the state code (a blank code is no state)"
        },
        {
          "id": "ie.isValid#[{\"value\":\"109161793\",\"stateCode\":\"go\"}]",
          "args": [
            {
              "value": "109161793",
              "stateCode": "go"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript docs example: case-insensitive"
        },
        {
          "id": "ie.isValid#[{\"value\":\"109161793\",\"stateCode\":\" GO \"}]",
          "args": [
            {
              "value": "109161793",
              "stateCode": " GO "
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "changed in 2.5.0: whitespace around the state code is ignored; 2.4.0 returned false. JavaScript docs example: surrounding whitespace ignored"
        },
        {
          "id": "ie.isValid#[{\"value\":\"110042490114\",\"stateCode\":1}]",
          "args": [
            {
              "value": "110042490114",
              "stateCode": 1
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: a non-string state code is invalid"
        },
        {
          "id": "ie.isValid#[{\"value\":null,\"stateCode\":\"SP\"}]",
          "args": [
            {
              "value": null,
              "stateCode": "SP"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: a missing value is invalid"
        },
        {
          "id": "ie.isValid#[{\"value\":62545372,\"stateCode\":\"RJ\"}]",
          "args": [
            {
              "value": 62545372,
              "stateCode": "RJ"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "JavaScript's own test: a number value is not a string, so it is invalid"
        },
        {
          "id": "ie.isValid#[{\"value\":\"0000000062521-3\",\"stateCode\":\"RO\"}]",
          "args": [
            {
              "value": "0000000062521-3",
              "stateCode": "RO"
            }
          ],
          "expect": {
            "returns": true
          },
          "note": "JavaScript's own test: RO 14-digit form, the SINTEGRA page's masked example"
        },
        {
          "id": "ie.isValid#[{\"value\":\"101.62521-3\",\"stateCode\":\"RO\"}]",
          "args": [
            {
              "value": "101.62521-3",
              "stateCode": "RO"
            }
          ],
          "expect": {
            "returns": false
          },
          "note": "the pre-2000 9-digit form the SINTEGRA page still prints is rejected (2.4.0 rejected it too)"
        }
      ]
    }
  ]
}
