{
  "expectation_type" : "expect_column_stdev_to_be_between",
  "datasets" : [{
    "data" : {
      "dist1" : [1,1,3],
      "dist2" : [-1,0,1],
      "zero": [0, 0 ,0],
      "missing": [-1, 1, null]
    },
    "tests" : [
      {
        "title": "Basic Positive test",
        "exact_match_out": false,
        "tolerance": 0.000000000001,
        "in": {
          "column": "dist1",
          "min_value": 0.5,
          "max_value": 1.5
        },
        "out": {
          "success": true,
          "observed_value": 1.1547005383792517
        }
      },
      {
        "title": "Vacuously true",
        "exact_match_out": false,
        "tolerance": 0.000000000001,
        "in": {
          "column": "dist1"
        },
        "out": {
          "success": true,
          "observed_value": 1.1547005383792517
        }
      },
      {
      "title" : "Positive test, exact min and max",
      "exact_match_out" : false,
      "in": {
        "column": "dist1",
        "min_value": 1.1547005383792517,
        "max_value": 1.1547005383792517
      },
      "out": {
        "success": true,
        "observed_value": 1.1547005383792517
      },
      "suppress_test_for": ["spark"]
    },
      {
        "title": "Basic Negative test",
        "exact_match_out": false,
        "tolerance": 0.000000000001,
        "in": {
          "column": "dist1",
          "min_value": 0,
          "max_value": 1
        },
        "out": {
          "success": false,
          "observed_value": 1.1547005383792517
        }
      },{
        "title": "Positive, Zero stdev, exact min and max",
        "exact_match_out": false,
        "in": {
          "column": "zero",
          "min_value": 0,
          "max_value": 0
        },
        "out": {
          "success": true,
          "observed_value": 0.0
        }
      },{
        "title": "Positive test, null max, exact min",
        "exact_match_out": false,
        "in": {
          "column": "dist2",
          "min_value": 1,
          "max_value": null
        },
        "out": {
          "success": true,
          "observed_value": 1
        }
      },{
        "title": "Positive test, null min, exact max",
        "exact_match_out": false,
        "in": {
          "column": "dist2",
          "min_value": null,
          "max_value": 1
        },
        "out": {
          "success": true,
          "observed_value": 1
        }
      },{
        "title": "Negative test, null max",
        "exact_match_out": false,
        "in": {
          "column": "dist2",
          "min_value": 1.5,
          "max_value": null
        },
        "out": {
          "success": false,
          "observed_value": 1
        }
      },{
        "title": "Negative test, null min",
        "exact_match_out": false,
        "in": {
          "column": "dist2",
          "min_value": null,
          "max_value": 0.5
        },
        "out": {
          "success": false,
          "observed_value": 1
        }
      },{
        "title": "Positive Test, missing value in column, COMPLETE result format",
        "exact_match_out": true,
        "in": {
          "column": "missing",
          "min_value": 1,
          "max_value": 1,
          "result_format": "COMPLETE"
        },
        "out": {
          "success": false,
          "result": {
            "observed_value": 1.4142135623730951,
            "element_count": 3,
            "missing_count": 1,
            "missing_percent": 33.3333333333333333
          }
        }
      }]
  }]
}
