Sun calculation js library which is fully based on formula from http://aa.quae.nl/en/reken/zonpositie.html
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.0 KiB
42 lines
1.0 KiB
[
|
|
{
|
|
"description": "minimum validation",
|
|
"schema": {"minimum": 1.1},
|
|
"tests": [
|
|
{
|
|
"description": "above the minimum is valid",
|
|
"data": 2.6,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "below the minimum is invalid",
|
|
"data": 0.6,
|
|
"valid": false
|
|
},
|
|
{
|
|
"description": "ignores non-numbers",
|
|
"data": "x",
|
|
"valid": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"description": "exclusiveMinimum validation",
|
|
"schema": {
|
|
"minimum": 1.1,
|
|
"exclusiveMinimum": true
|
|
},
|
|
"tests": [
|
|
{
|
|
"description": "above the minimum is still valid",
|
|
"data": 1.2,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "boundary point is invalid",
|
|
"data": 1.1,
|
|
"valid": false
|
|
}
|
|
]
|
|
}
|
|
]
|
|
|