{
  "scope": "Reference examples for deterministic operations; API unit tests in local/api-tests.php",
  "vectors": [
    {
      "op": "colors/contrast",
      "input": {
        "foreground": "#000000",
        "background": "#FFFFFF"
      },
      "expected": {
        "ratio": 21,
        "aaNormal": true,
        "aaaNormal": true,
        "aaLarge": true
      }
    },
    {
      "op": "colors/convert",
      "input": {
        "hex": "#01875f"
      },
      "expectedSubset": {
        "rgb": [
          1,
          135,
          95
        ]
      }
    },
    {
      "op": "math/matrix",
      "input": {
        "a": [
          [
            1,
            2
          ],
          [
            3,
            4
          ]
        ],
        "b": [
          [
            2,
            0
          ],
          [
            1,
            2
          ]
        ]
      },
      "expected": {
        "matrix": [
          [
            4,
            4
          ],
          [
            10,
            8
          ]
        ]
      }
    },
    {
      "op": "math/statistics",
      "input": {
        "values": [
          1,
          2,
          3,
          4
        ]
      },
      "expectedSubset": {
        "mean": 2.5,
        "populationVariance": 1.25
      }
    },
    {
      "op": "text/convert",
      "input": {
        "text": "abc",
        "mode": "sha256"
      },
      "expected": {
        "text": "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad"
      }
    },
    {
      "op": "data/csv-to-json",
      "input": {
        "csv": "name,value\n\"A,B\",1"
      },
      "expected": {
        "rows": [
          {
            "name": "A,B",
            "value": "1"
          }
        ]
      }
    }
  ]
}
