diff --git a/scripts/quality-schemas-tests-mirror.sh b/scripts/quality-schemas-tests-mirror.sh index 6cba1aa0..52ab7291 100755 --- a/scripts/quality-schemas-tests-mirror.sh +++ b/scripts/quality-schemas-tests-mirror.sh @@ -4,7 +4,7 @@ set -o errexit set -o nounset SCHEMAS_DIR="$(pwd)/schemas" -TESTS_DIR="$(pwd)/test" +TESTS_DIR="$(pwd)/test/schemas" EXIT_CODE=0 find "$SCHEMAS_DIR" -type f -name "*.json" | while IFS= read -r schema_file diff --git a/test/bipm/si/2019/base/prefixed/attoampere/v1.test.json b/test/bipm/si/2019/base/prefixed/attoampere/v1.test.json deleted file mode 100644 index 1a25df6b..00000000 --- a/test/bipm/si/2019/base/prefixed/attoampere/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/attoampere/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/attocandela/v1.test.json b/test/bipm/si/2019/base/prefixed/attocandela/v1.test.json deleted file mode 100644 index 1c1df402..00000000 --- a/test/bipm/si/2019/base/prefixed/attocandela/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/attocandela/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/attogram/v1.test.json b/test/bipm/si/2019/base/prefixed/attogram/v1.test.json deleted file mode 100644 index 77f047fb..00000000 --- a/test/bipm/si/2019/base/prefixed/attogram/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/attogram/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/attokelvin/v1.test.json b/test/bipm/si/2019/base/prefixed/attokelvin/v1.test.json deleted file mode 100644 index a5f6b077..00000000 --- a/test/bipm/si/2019/base/prefixed/attokelvin/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/attokelvin/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/attometre/v1.test.json b/test/bipm/si/2019/base/prefixed/attometre/v1.test.json deleted file mode 100644 index 0f374ca1..00000000 --- a/test/bipm/si/2019/base/prefixed/attometre/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/attometre/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/attomole/v1.test.json b/test/bipm/si/2019/base/prefixed/attomole/v1.test.json deleted file mode 100644 index 1b505278..00000000 --- a/test/bipm/si/2019/base/prefixed/attomole/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/attomole/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/attosecond/v1.test.json b/test/bipm/si/2019/base/prefixed/attosecond/v1.test.json deleted file mode 100644 index ae4088e9..00000000 --- a/test/bipm/si/2019/base/prefixed/attosecond/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/attosecond/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/centiampere/v1.test.json b/test/bipm/si/2019/base/prefixed/centiampere/v1.test.json deleted file mode 100644 index 3931adb4..00000000 --- a/test/bipm/si/2019/base/prefixed/centiampere/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/centiampere/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/centicandela/v1.test.json b/test/bipm/si/2019/base/prefixed/centicandela/v1.test.json deleted file mode 100644 index adcc017b..00000000 --- a/test/bipm/si/2019/base/prefixed/centicandela/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/centicandela/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/centigram/v1.test.json b/test/bipm/si/2019/base/prefixed/centigram/v1.test.json deleted file mode 100644 index a6be6e02..00000000 --- a/test/bipm/si/2019/base/prefixed/centigram/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/centigram/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/centikelvin/v1.test.json b/test/bipm/si/2019/base/prefixed/centikelvin/v1.test.json deleted file mode 100644 index ece52cbc..00000000 --- a/test/bipm/si/2019/base/prefixed/centikelvin/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/centikelvin/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/centimetre/v1.test.json b/test/bipm/si/2019/base/prefixed/centimetre/v1.test.json deleted file mode 100644 index 32605bee..00000000 --- a/test/bipm/si/2019/base/prefixed/centimetre/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/centimetre/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/centimole/v1.test.json b/test/bipm/si/2019/base/prefixed/centimole/v1.test.json deleted file mode 100644 index 1bd2c894..00000000 --- a/test/bipm/si/2019/base/prefixed/centimole/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/centimole/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/centisecond/v1.test.json b/test/bipm/si/2019/base/prefixed/centisecond/v1.test.json deleted file mode 100644 index 203a2462..00000000 --- a/test/bipm/si/2019/base/prefixed/centisecond/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/centisecond/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/decaampere/v1.test.json b/test/bipm/si/2019/base/prefixed/decaampere/v1.test.json deleted file mode 100644 index dc925c8a..00000000 --- a/test/bipm/si/2019/base/prefixed/decaampere/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/decaampere/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/decacandela/v1.test.json b/test/bipm/si/2019/base/prefixed/decacandela/v1.test.json deleted file mode 100644 index 667d6022..00000000 --- a/test/bipm/si/2019/base/prefixed/decacandela/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/decacandela/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/decagram/v1.test.json b/test/bipm/si/2019/base/prefixed/decagram/v1.test.json deleted file mode 100644 index 811871cc..00000000 --- a/test/bipm/si/2019/base/prefixed/decagram/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/decagram/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/decakelvin/v1.test.json b/test/bipm/si/2019/base/prefixed/decakelvin/v1.test.json deleted file mode 100644 index f646a608..00000000 --- a/test/bipm/si/2019/base/prefixed/decakelvin/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/decakelvin/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/decametre/v1.test.json b/test/bipm/si/2019/base/prefixed/decametre/v1.test.json deleted file mode 100644 index 8c68efc0..00000000 --- a/test/bipm/si/2019/base/prefixed/decametre/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/decametre/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/decamole/v1.test.json b/test/bipm/si/2019/base/prefixed/decamole/v1.test.json deleted file mode 100644 index 09a693ef..00000000 --- a/test/bipm/si/2019/base/prefixed/decamole/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/decamole/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/decasecond/v1.test.json b/test/bipm/si/2019/base/prefixed/decasecond/v1.test.json deleted file mode 100644 index 89563fc6..00000000 --- a/test/bipm/si/2019/base/prefixed/decasecond/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/decasecond/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/deciampere/v1.test.json b/test/bipm/si/2019/base/prefixed/deciampere/v1.test.json deleted file mode 100644 index ec1e2b1d..00000000 --- a/test/bipm/si/2019/base/prefixed/deciampere/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/deciampere/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/decicandela/v1.test.json b/test/bipm/si/2019/base/prefixed/decicandela/v1.test.json deleted file mode 100644 index e2200c36..00000000 --- a/test/bipm/si/2019/base/prefixed/decicandela/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/decicandela/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/decigram/v1.test.json b/test/bipm/si/2019/base/prefixed/decigram/v1.test.json deleted file mode 100644 index 692f9cea..00000000 --- a/test/bipm/si/2019/base/prefixed/decigram/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/decigram/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/decikelvin/v1.test.json b/test/bipm/si/2019/base/prefixed/decikelvin/v1.test.json deleted file mode 100644 index 02f6b724..00000000 --- a/test/bipm/si/2019/base/prefixed/decikelvin/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/decikelvin/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/decimetre/v1.test.json b/test/bipm/si/2019/base/prefixed/decimetre/v1.test.json deleted file mode 100644 index 193dec71..00000000 --- a/test/bipm/si/2019/base/prefixed/decimetre/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/decimetre/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/decimole/v1.test.json b/test/bipm/si/2019/base/prefixed/decimole/v1.test.json deleted file mode 100644 index 5f8e461c..00000000 --- a/test/bipm/si/2019/base/prefixed/decimole/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/decimole/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/decisecond/v1.test.json b/test/bipm/si/2019/base/prefixed/decisecond/v1.test.json deleted file mode 100644 index b954efc7..00000000 --- a/test/bipm/si/2019/base/prefixed/decisecond/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/decisecond/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/exaampere/v1.test.json b/test/bipm/si/2019/base/prefixed/exaampere/v1.test.json deleted file mode 100644 index 14fdf46b..00000000 --- a/test/bipm/si/2019/base/prefixed/exaampere/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/exaampere/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/exacandela/v1.test.json b/test/bipm/si/2019/base/prefixed/exacandela/v1.test.json deleted file mode 100644 index 0fc9701d..00000000 --- a/test/bipm/si/2019/base/prefixed/exacandela/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/exacandela/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/exagram/v1.test.json b/test/bipm/si/2019/base/prefixed/exagram/v1.test.json deleted file mode 100644 index d7d0dfd4..00000000 --- a/test/bipm/si/2019/base/prefixed/exagram/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/exagram/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/exakelvin/v1.test.json b/test/bipm/si/2019/base/prefixed/exakelvin/v1.test.json deleted file mode 100644 index decea0a6..00000000 --- a/test/bipm/si/2019/base/prefixed/exakelvin/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/exakelvin/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/exametre/v1.test.json b/test/bipm/si/2019/base/prefixed/exametre/v1.test.json deleted file mode 100644 index 70b5079f..00000000 --- a/test/bipm/si/2019/base/prefixed/exametre/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/exametre/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/examole/v1.test.json b/test/bipm/si/2019/base/prefixed/examole/v1.test.json deleted file mode 100644 index c4c5db42..00000000 --- a/test/bipm/si/2019/base/prefixed/examole/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/examole/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/exasecond/v1.test.json b/test/bipm/si/2019/base/prefixed/exasecond/v1.test.json deleted file mode 100644 index a5190cd6..00000000 --- a/test/bipm/si/2019/base/prefixed/exasecond/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/exasecond/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/femtoampere/v1.test.json b/test/bipm/si/2019/base/prefixed/femtoampere/v1.test.json deleted file mode 100644 index 6d4676fb..00000000 --- a/test/bipm/si/2019/base/prefixed/femtoampere/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/femtoampere/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/femtocandela/v1.test.json b/test/bipm/si/2019/base/prefixed/femtocandela/v1.test.json deleted file mode 100644 index 001818d7..00000000 --- a/test/bipm/si/2019/base/prefixed/femtocandela/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/femtocandela/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/femtogram/v1.test.json b/test/bipm/si/2019/base/prefixed/femtogram/v1.test.json deleted file mode 100644 index f90ecb23..00000000 --- a/test/bipm/si/2019/base/prefixed/femtogram/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/femtogram/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/femtokelvin/v1.test.json b/test/bipm/si/2019/base/prefixed/femtokelvin/v1.test.json deleted file mode 100644 index 1a4bda29..00000000 --- a/test/bipm/si/2019/base/prefixed/femtokelvin/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/femtokelvin/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/femtometre/v1.test.json b/test/bipm/si/2019/base/prefixed/femtometre/v1.test.json deleted file mode 100644 index f6cbc6c0..00000000 --- a/test/bipm/si/2019/base/prefixed/femtometre/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/femtometre/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/femtomole/v1.test.json b/test/bipm/si/2019/base/prefixed/femtomole/v1.test.json deleted file mode 100644 index 242d07f0..00000000 --- a/test/bipm/si/2019/base/prefixed/femtomole/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/femtomole/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/femtosecond/v1.test.json b/test/bipm/si/2019/base/prefixed/femtosecond/v1.test.json deleted file mode 100644 index 3bd338e7..00000000 --- a/test/bipm/si/2019/base/prefixed/femtosecond/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/femtosecond/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/gigaampere/v1.test.json b/test/bipm/si/2019/base/prefixed/gigaampere/v1.test.json deleted file mode 100644 index f210251a..00000000 --- a/test/bipm/si/2019/base/prefixed/gigaampere/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/gigaampere/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/gigacandela/v1.test.json b/test/bipm/si/2019/base/prefixed/gigacandela/v1.test.json deleted file mode 100644 index 1f6e0001..00000000 --- a/test/bipm/si/2019/base/prefixed/gigacandela/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/gigacandela/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/gigagram/v1.test.json b/test/bipm/si/2019/base/prefixed/gigagram/v1.test.json deleted file mode 100644 index fb5d2bb9..00000000 --- a/test/bipm/si/2019/base/prefixed/gigagram/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/gigagram/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/gigakelvin/v1.test.json b/test/bipm/si/2019/base/prefixed/gigakelvin/v1.test.json deleted file mode 100644 index 7496bf32..00000000 --- a/test/bipm/si/2019/base/prefixed/gigakelvin/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/gigakelvin/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/gigametre/v1.test.json b/test/bipm/si/2019/base/prefixed/gigametre/v1.test.json deleted file mode 100644 index 78aec312..00000000 --- a/test/bipm/si/2019/base/prefixed/gigametre/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/gigametre/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/gigamole/v1.test.json b/test/bipm/si/2019/base/prefixed/gigamole/v1.test.json deleted file mode 100644 index 6590da57..00000000 --- a/test/bipm/si/2019/base/prefixed/gigamole/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/gigamole/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/gigasecond/v1.test.json b/test/bipm/si/2019/base/prefixed/gigasecond/v1.test.json deleted file mode 100644 index 0cf72bfa..00000000 --- a/test/bipm/si/2019/base/prefixed/gigasecond/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/gigasecond/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/gram/v1.test.json b/test/bipm/si/2019/base/prefixed/gram/v1.test.json deleted file mode 100644 index 4090b1e9..00000000 --- a/test/bipm/si/2019/base/prefixed/gram/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/gram/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/hectoampere/v1.test.json b/test/bipm/si/2019/base/prefixed/hectoampere/v1.test.json deleted file mode 100644 index 48683bea..00000000 --- a/test/bipm/si/2019/base/prefixed/hectoampere/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/hectoampere/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/hectocandela/v1.test.json b/test/bipm/si/2019/base/prefixed/hectocandela/v1.test.json deleted file mode 100644 index e6fd8751..00000000 --- a/test/bipm/si/2019/base/prefixed/hectocandela/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/hectocandela/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/hectogram/v1.test.json b/test/bipm/si/2019/base/prefixed/hectogram/v1.test.json deleted file mode 100644 index f73e3028..00000000 --- a/test/bipm/si/2019/base/prefixed/hectogram/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/hectogram/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/hectokelvin/v1.test.json b/test/bipm/si/2019/base/prefixed/hectokelvin/v1.test.json deleted file mode 100644 index 6a3e5db6..00000000 --- a/test/bipm/si/2019/base/prefixed/hectokelvin/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/hectokelvin/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/hectometre/v1.test.json b/test/bipm/si/2019/base/prefixed/hectometre/v1.test.json deleted file mode 100644 index 7a4bf51c..00000000 --- a/test/bipm/si/2019/base/prefixed/hectometre/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/hectometre/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/hectomole/v1.test.json b/test/bipm/si/2019/base/prefixed/hectomole/v1.test.json deleted file mode 100644 index 1192bb30..00000000 --- a/test/bipm/si/2019/base/prefixed/hectomole/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/hectomole/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/hectosecond/v1.test.json b/test/bipm/si/2019/base/prefixed/hectosecond/v1.test.json deleted file mode 100644 index 3ec61cf6..00000000 --- a/test/bipm/si/2019/base/prefixed/hectosecond/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/hectosecond/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/kiloampere/v1.test.json b/test/bipm/si/2019/base/prefixed/kiloampere/v1.test.json deleted file mode 100644 index 1dcaba12..00000000 --- a/test/bipm/si/2019/base/prefixed/kiloampere/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/kiloampere/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/kilocandela/v1.test.json b/test/bipm/si/2019/base/prefixed/kilocandela/v1.test.json deleted file mode 100644 index 094df6c2..00000000 --- a/test/bipm/si/2019/base/prefixed/kilocandela/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/kilocandela/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/kilokelvin/v1.test.json b/test/bipm/si/2019/base/prefixed/kilokelvin/v1.test.json deleted file mode 100644 index 3782330b..00000000 --- a/test/bipm/si/2019/base/prefixed/kilokelvin/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/kilokelvin/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/kilometre/v1.test.json b/test/bipm/si/2019/base/prefixed/kilometre/v1.test.json deleted file mode 100644 index 9ceb1bc6..00000000 --- a/test/bipm/si/2019/base/prefixed/kilometre/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/kilometre/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/kilomole/v1.test.json b/test/bipm/si/2019/base/prefixed/kilomole/v1.test.json deleted file mode 100644 index 716da4ab..00000000 --- a/test/bipm/si/2019/base/prefixed/kilomole/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/kilomole/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/kilosecond/v1.test.json b/test/bipm/si/2019/base/prefixed/kilosecond/v1.test.json deleted file mode 100644 index 82eff60f..00000000 --- a/test/bipm/si/2019/base/prefixed/kilosecond/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/kilosecond/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/megaampere/v1.test.json b/test/bipm/si/2019/base/prefixed/megaampere/v1.test.json deleted file mode 100644 index 449a49f9..00000000 --- a/test/bipm/si/2019/base/prefixed/megaampere/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/megaampere/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/megacandela/v1.test.json b/test/bipm/si/2019/base/prefixed/megacandela/v1.test.json deleted file mode 100644 index eaecf8f8..00000000 --- a/test/bipm/si/2019/base/prefixed/megacandela/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/megacandela/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/megagram/v1.test.json b/test/bipm/si/2019/base/prefixed/megagram/v1.test.json deleted file mode 100644 index a4ba0a6f..00000000 --- a/test/bipm/si/2019/base/prefixed/megagram/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/megagram/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/megakelvin/v1.test.json b/test/bipm/si/2019/base/prefixed/megakelvin/v1.test.json deleted file mode 100644 index 16817908..00000000 --- a/test/bipm/si/2019/base/prefixed/megakelvin/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/megakelvin/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/megametre/v1.test.json b/test/bipm/si/2019/base/prefixed/megametre/v1.test.json deleted file mode 100644 index 74728e58..00000000 --- a/test/bipm/si/2019/base/prefixed/megametre/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/megametre/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/megamole/v1.test.json b/test/bipm/si/2019/base/prefixed/megamole/v1.test.json deleted file mode 100644 index e73f6cf9..00000000 --- a/test/bipm/si/2019/base/prefixed/megamole/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/megamole/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/megasecond/v1.test.json b/test/bipm/si/2019/base/prefixed/megasecond/v1.test.json deleted file mode 100644 index 6aac1ff8..00000000 --- a/test/bipm/si/2019/base/prefixed/megasecond/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/megasecond/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/microampere/v1.test.json b/test/bipm/si/2019/base/prefixed/microampere/v1.test.json deleted file mode 100644 index e615f598..00000000 --- a/test/bipm/si/2019/base/prefixed/microampere/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/microampere/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/microcandela/v1.test.json b/test/bipm/si/2019/base/prefixed/microcandela/v1.test.json deleted file mode 100644 index c6138949..00000000 --- a/test/bipm/si/2019/base/prefixed/microcandela/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/microcandela/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/microgram/v1.test.json b/test/bipm/si/2019/base/prefixed/microgram/v1.test.json deleted file mode 100644 index 434afbbe..00000000 --- a/test/bipm/si/2019/base/prefixed/microgram/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/microgram/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/microkelvin/v1.test.json b/test/bipm/si/2019/base/prefixed/microkelvin/v1.test.json deleted file mode 100644 index 089ac106..00000000 --- a/test/bipm/si/2019/base/prefixed/microkelvin/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/microkelvin/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/micrometre/v1.test.json b/test/bipm/si/2019/base/prefixed/micrometre/v1.test.json deleted file mode 100644 index b2e9e342..00000000 --- a/test/bipm/si/2019/base/prefixed/micrometre/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/micrometre/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/micromole/v1.test.json b/test/bipm/si/2019/base/prefixed/micromole/v1.test.json deleted file mode 100644 index b689ca04..00000000 --- a/test/bipm/si/2019/base/prefixed/micromole/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/micromole/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/microsecond/v1.test.json b/test/bipm/si/2019/base/prefixed/microsecond/v1.test.json deleted file mode 100644 index 6ad7000f..00000000 --- a/test/bipm/si/2019/base/prefixed/microsecond/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/microsecond/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/milliampere/v1.test.json b/test/bipm/si/2019/base/prefixed/milliampere/v1.test.json deleted file mode 100644 index 832f8979..00000000 --- a/test/bipm/si/2019/base/prefixed/milliampere/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/milliampere/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/millicandela/v1.test.json b/test/bipm/si/2019/base/prefixed/millicandela/v1.test.json deleted file mode 100644 index 8086b92e..00000000 --- a/test/bipm/si/2019/base/prefixed/millicandela/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/millicandela/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/milligram/v1.test.json b/test/bipm/si/2019/base/prefixed/milligram/v1.test.json deleted file mode 100644 index 8d85fa59..00000000 --- a/test/bipm/si/2019/base/prefixed/milligram/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/milligram/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/millikelvin/v1.test.json b/test/bipm/si/2019/base/prefixed/millikelvin/v1.test.json deleted file mode 100644 index ba49a607..00000000 --- a/test/bipm/si/2019/base/prefixed/millikelvin/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/millikelvin/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/millimetre/v1.test.json b/test/bipm/si/2019/base/prefixed/millimetre/v1.test.json deleted file mode 100644 index 5f7da73e..00000000 --- a/test/bipm/si/2019/base/prefixed/millimetre/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/millimetre/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/millimole/v1.test.json b/test/bipm/si/2019/base/prefixed/millimole/v1.test.json deleted file mode 100644 index 2db38880..00000000 --- a/test/bipm/si/2019/base/prefixed/millimole/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/millimole/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/millisecond/v1.test.json b/test/bipm/si/2019/base/prefixed/millisecond/v1.test.json deleted file mode 100644 index de99f6db..00000000 --- a/test/bipm/si/2019/base/prefixed/millisecond/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/millisecond/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/nanoampere/v1.test.json b/test/bipm/si/2019/base/prefixed/nanoampere/v1.test.json deleted file mode 100644 index 22e23284..00000000 --- a/test/bipm/si/2019/base/prefixed/nanoampere/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/nanoampere/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/nanocandela/v1.test.json b/test/bipm/si/2019/base/prefixed/nanocandela/v1.test.json deleted file mode 100644 index 92be0c67..00000000 --- a/test/bipm/si/2019/base/prefixed/nanocandela/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/nanocandela/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/nanogram/v1.test.json b/test/bipm/si/2019/base/prefixed/nanogram/v1.test.json deleted file mode 100644 index b0857ed6..00000000 --- a/test/bipm/si/2019/base/prefixed/nanogram/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/nanogram/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/nanokelvin/v1.test.json b/test/bipm/si/2019/base/prefixed/nanokelvin/v1.test.json deleted file mode 100644 index 48f14a6c..00000000 --- a/test/bipm/si/2019/base/prefixed/nanokelvin/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/nanokelvin/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/nanometre/v1.test.json b/test/bipm/si/2019/base/prefixed/nanometre/v1.test.json deleted file mode 100644 index 3a355d4f..00000000 --- a/test/bipm/si/2019/base/prefixed/nanometre/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/nanometre/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/nanomole/v1.test.json b/test/bipm/si/2019/base/prefixed/nanomole/v1.test.json deleted file mode 100644 index 8747b57d..00000000 --- a/test/bipm/si/2019/base/prefixed/nanomole/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/nanomole/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/nanosecond/v1.test.json b/test/bipm/si/2019/base/prefixed/nanosecond/v1.test.json deleted file mode 100644 index bf5ec678..00000000 --- a/test/bipm/si/2019/base/prefixed/nanosecond/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/nanosecond/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/petaampere/v1.test.json b/test/bipm/si/2019/base/prefixed/petaampere/v1.test.json deleted file mode 100644 index ad2000c1..00000000 --- a/test/bipm/si/2019/base/prefixed/petaampere/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/petaampere/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/petacandela/v1.test.json b/test/bipm/si/2019/base/prefixed/petacandela/v1.test.json deleted file mode 100644 index c83cbd2e..00000000 --- a/test/bipm/si/2019/base/prefixed/petacandela/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/petacandela/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/petagram/v1.test.json b/test/bipm/si/2019/base/prefixed/petagram/v1.test.json deleted file mode 100644 index bc9a094b..00000000 --- a/test/bipm/si/2019/base/prefixed/petagram/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/petagram/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/petakelvin/v1.test.json b/test/bipm/si/2019/base/prefixed/petakelvin/v1.test.json deleted file mode 100644 index 28fc3554..00000000 --- a/test/bipm/si/2019/base/prefixed/petakelvin/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/petakelvin/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/petametre/v1.test.json b/test/bipm/si/2019/base/prefixed/petametre/v1.test.json deleted file mode 100644 index 652282db..00000000 --- a/test/bipm/si/2019/base/prefixed/petametre/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/petametre/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/petamole/v1.test.json b/test/bipm/si/2019/base/prefixed/petamole/v1.test.json deleted file mode 100644 index 91435f02..00000000 --- a/test/bipm/si/2019/base/prefixed/petamole/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/petamole/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/petasecond/v1.test.json b/test/bipm/si/2019/base/prefixed/petasecond/v1.test.json deleted file mode 100644 index 778ba149..00000000 --- a/test/bipm/si/2019/base/prefixed/petasecond/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/petasecond/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/picoampere/v1.test.json b/test/bipm/si/2019/base/prefixed/picoampere/v1.test.json deleted file mode 100644 index dba4e4ff..00000000 --- a/test/bipm/si/2019/base/prefixed/picoampere/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/picoampere/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/picocandela/v1.test.json b/test/bipm/si/2019/base/prefixed/picocandela/v1.test.json deleted file mode 100644 index 84730a8c..00000000 --- a/test/bipm/si/2019/base/prefixed/picocandela/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/picocandela/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/picogram/v1.test.json b/test/bipm/si/2019/base/prefixed/picogram/v1.test.json deleted file mode 100644 index c7599a35..00000000 --- a/test/bipm/si/2019/base/prefixed/picogram/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/picogram/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/picokelvin/v1.test.json b/test/bipm/si/2019/base/prefixed/picokelvin/v1.test.json deleted file mode 100644 index f3f43cde..00000000 --- a/test/bipm/si/2019/base/prefixed/picokelvin/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/picokelvin/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/picometre/v1.test.json b/test/bipm/si/2019/base/prefixed/picometre/v1.test.json deleted file mode 100644 index 6ae6b15b..00000000 --- a/test/bipm/si/2019/base/prefixed/picometre/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/picometre/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/picomole/v1.test.json b/test/bipm/si/2019/base/prefixed/picomole/v1.test.json deleted file mode 100644 index 994905f4..00000000 --- a/test/bipm/si/2019/base/prefixed/picomole/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/picomole/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/picosecond/v1.test.json b/test/bipm/si/2019/base/prefixed/picosecond/v1.test.json deleted file mode 100644 index 7b014307..00000000 --- a/test/bipm/si/2019/base/prefixed/picosecond/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/picosecond/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/quectoampere/v1.test.json b/test/bipm/si/2019/base/prefixed/quectoampere/v1.test.json deleted file mode 100644 index 154802b8..00000000 --- a/test/bipm/si/2019/base/prefixed/quectoampere/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/quectoampere/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/quectocandela/v1.test.json b/test/bipm/si/2019/base/prefixed/quectocandela/v1.test.json deleted file mode 100644 index a618fbb2..00000000 --- a/test/bipm/si/2019/base/prefixed/quectocandela/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/quectocandela/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/quectogram/v1.test.json b/test/bipm/si/2019/base/prefixed/quectogram/v1.test.json deleted file mode 100644 index e2fd6d45..00000000 --- a/test/bipm/si/2019/base/prefixed/quectogram/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/quectogram/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/quectokelvin/v1.test.json b/test/bipm/si/2019/base/prefixed/quectokelvin/v1.test.json deleted file mode 100644 index 86001913..00000000 --- a/test/bipm/si/2019/base/prefixed/quectokelvin/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/quectokelvin/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/quectometre/v1.test.json b/test/bipm/si/2019/base/prefixed/quectometre/v1.test.json deleted file mode 100644 index f8653406..00000000 --- a/test/bipm/si/2019/base/prefixed/quectometre/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/quectometre/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/quectomole/v1.test.json b/test/bipm/si/2019/base/prefixed/quectomole/v1.test.json deleted file mode 100644 index 27decf33..00000000 --- a/test/bipm/si/2019/base/prefixed/quectomole/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/quectomole/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/quectosecond/v1.test.json b/test/bipm/si/2019/base/prefixed/quectosecond/v1.test.json deleted file mode 100644 index c91cd264..00000000 --- a/test/bipm/si/2019/base/prefixed/quectosecond/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/quectosecond/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/quettaampere/v1.test.json b/test/bipm/si/2019/base/prefixed/quettaampere/v1.test.json deleted file mode 100644 index 2ffa1ffd..00000000 --- a/test/bipm/si/2019/base/prefixed/quettaampere/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/quettaampere/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/quettacandela/v1.test.json b/test/bipm/si/2019/base/prefixed/quettacandela/v1.test.json deleted file mode 100644 index cc1fe9ad..00000000 --- a/test/bipm/si/2019/base/prefixed/quettacandela/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/quettacandela/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/quettagram/v1.test.json b/test/bipm/si/2019/base/prefixed/quettagram/v1.test.json deleted file mode 100644 index 30f4c95f..00000000 --- a/test/bipm/si/2019/base/prefixed/quettagram/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/quettagram/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/quettakelvin/v1.test.json b/test/bipm/si/2019/base/prefixed/quettakelvin/v1.test.json deleted file mode 100644 index 98ed5eea..00000000 --- a/test/bipm/si/2019/base/prefixed/quettakelvin/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/quettakelvin/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/quettametre/v1.test.json b/test/bipm/si/2019/base/prefixed/quettametre/v1.test.json deleted file mode 100644 index 05658306..00000000 --- a/test/bipm/si/2019/base/prefixed/quettametre/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/quettametre/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/quettamole/v1.test.json b/test/bipm/si/2019/base/prefixed/quettamole/v1.test.json deleted file mode 100644 index 48e4df74..00000000 --- a/test/bipm/si/2019/base/prefixed/quettamole/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/quettamole/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/quettasecond/v1.test.json b/test/bipm/si/2019/base/prefixed/quettasecond/v1.test.json deleted file mode 100644 index e17339bb..00000000 --- a/test/bipm/si/2019/base/prefixed/quettasecond/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/quettasecond/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/ronnaampere/v1.test.json b/test/bipm/si/2019/base/prefixed/ronnaampere/v1.test.json deleted file mode 100644 index 24cb2f0c..00000000 --- a/test/bipm/si/2019/base/prefixed/ronnaampere/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/ronnaampere/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/ronnacandela/v1.test.json b/test/bipm/si/2019/base/prefixed/ronnacandela/v1.test.json deleted file mode 100644 index e23e3577..00000000 --- a/test/bipm/si/2019/base/prefixed/ronnacandela/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/ronnacandela/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/ronnagram/v1.test.json b/test/bipm/si/2019/base/prefixed/ronnagram/v1.test.json deleted file mode 100644 index 59809994..00000000 --- a/test/bipm/si/2019/base/prefixed/ronnagram/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/ronnagram/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/ronnakelvin/v1.test.json b/test/bipm/si/2019/base/prefixed/ronnakelvin/v1.test.json deleted file mode 100644 index 7dfd9367..00000000 --- a/test/bipm/si/2019/base/prefixed/ronnakelvin/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/ronnakelvin/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/ronnametre/v1.test.json b/test/bipm/si/2019/base/prefixed/ronnametre/v1.test.json deleted file mode 100644 index 90ece88d..00000000 --- a/test/bipm/si/2019/base/prefixed/ronnametre/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/ronnametre/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/ronnamole/v1.test.json b/test/bipm/si/2019/base/prefixed/ronnamole/v1.test.json deleted file mode 100644 index 4724cf9b..00000000 --- a/test/bipm/si/2019/base/prefixed/ronnamole/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/ronnamole/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/ronnasecond/v1.test.json b/test/bipm/si/2019/base/prefixed/ronnasecond/v1.test.json deleted file mode 100644 index fe1af14b..00000000 --- a/test/bipm/si/2019/base/prefixed/ronnasecond/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/ronnasecond/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/rontoampere/v1.test.json b/test/bipm/si/2019/base/prefixed/rontoampere/v1.test.json deleted file mode 100644 index 0478a54b..00000000 --- a/test/bipm/si/2019/base/prefixed/rontoampere/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/rontoampere/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/rontocandela/v1.test.json b/test/bipm/si/2019/base/prefixed/rontocandela/v1.test.json deleted file mode 100644 index 05cb8b37..00000000 --- a/test/bipm/si/2019/base/prefixed/rontocandela/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/rontocandela/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/rontogram/v1.test.json b/test/bipm/si/2019/base/prefixed/rontogram/v1.test.json deleted file mode 100644 index ad7e9a72..00000000 --- a/test/bipm/si/2019/base/prefixed/rontogram/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/rontogram/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/rontokelvin/v1.test.json b/test/bipm/si/2019/base/prefixed/rontokelvin/v1.test.json deleted file mode 100644 index c7906ae9..00000000 --- a/test/bipm/si/2019/base/prefixed/rontokelvin/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/rontokelvin/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/rontometre/v1.test.json b/test/bipm/si/2019/base/prefixed/rontometre/v1.test.json deleted file mode 100644 index ce54ea73..00000000 --- a/test/bipm/si/2019/base/prefixed/rontometre/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/rontometre/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/rontomole/v1.test.json b/test/bipm/si/2019/base/prefixed/rontomole/v1.test.json deleted file mode 100644 index e2c91bd4..00000000 --- a/test/bipm/si/2019/base/prefixed/rontomole/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/rontomole/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/rontosecond/v1.test.json b/test/bipm/si/2019/base/prefixed/rontosecond/v1.test.json deleted file mode 100644 index dc5d8a10..00000000 --- a/test/bipm/si/2019/base/prefixed/rontosecond/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/rontosecond/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/teraampere/v1.test.json b/test/bipm/si/2019/base/prefixed/teraampere/v1.test.json deleted file mode 100644 index acaed151..00000000 --- a/test/bipm/si/2019/base/prefixed/teraampere/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/teraampere/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/teracandela/v1.test.json b/test/bipm/si/2019/base/prefixed/teracandela/v1.test.json deleted file mode 100644 index 502c0d96..00000000 --- a/test/bipm/si/2019/base/prefixed/teracandela/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/teracandela/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/teragram/v1.test.json b/test/bipm/si/2019/base/prefixed/teragram/v1.test.json deleted file mode 100644 index 0c52d526..00000000 --- a/test/bipm/si/2019/base/prefixed/teragram/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/teragram/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/terakelvin/v1.test.json b/test/bipm/si/2019/base/prefixed/terakelvin/v1.test.json deleted file mode 100644 index f4e4656b..00000000 --- a/test/bipm/si/2019/base/prefixed/terakelvin/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/terakelvin/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/terametre/v1.test.json b/test/bipm/si/2019/base/prefixed/terametre/v1.test.json deleted file mode 100644 index 2cd3957d..00000000 --- a/test/bipm/si/2019/base/prefixed/terametre/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/terametre/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/teramole/v1.test.json b/test/bipm/si/2019/base/prefixed/teramole/v1.test.json deleted file mode 100644 index 85800bef..00000000 --- a/test/bipm/si/2019/base/prefixed/teramole/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/teramole/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/terasecond/v1.test.json b/test/bipm/si/2019/base/prefixed/terasecond/v1.test.json deleted file mode 100644 index 4d2a9780..00000000 --- a/test/bipm/si/2019/base/prefixed/terasecond/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/terasecond/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/yoctoampere/v1.test.json b/test/bipm/si/2019/base/prefixed/yoctoampere/v1.test.json deleted file mode 100644 index c2668f90..00000000 --- a/test/bipm/si/2019/base/prefixed/yoctoampere/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/yoctoampere/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/yoctocandela/v1.test.json b/test/bipm/si/2019/base/prefixed/yoctocandela/v1.test.json deleted file mode 100644 index afb27d55..00000000 --- a/test/bipm/si/2019/base/prefixed/yoctocandela/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/yoctocandela/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/yoctogram/v1.test.json b/test/bipm/si/2019/base/prefixed/yoctogram/v1.test.json deleted file mode 100644 index de42f17f..00000000 --- a/test/bipm/si/2019/base/prefixed/yoctogram/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/yoctogram/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/yoctokelvin/v1.test.json b/test/bipm/si/2019/base/prefixed/yoctokelvin/v1.test.json deleted file mode 100644 index 6390d941..00000000 --- a/test/bipm/si/2019/base/prefixed/yoctokelvin/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/yoctokelvin/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/yoctometre/v1.test.json b/test/bipm/si/2019/base/prefixed/yoctometre/v1.test.json deleted file mode 100644 index c91aadc3..00000000 --- a/test/bipm/si/2019/base/prefixed/yoctometre/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/yoctometre/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/yoctomole/v1.test.json b/test/bipm/si/2019/base/prefixed/yoctomole/v1.test.json deleted file mode 100644 index e46c2a8c..00000000 --- a/test/bipm/si/2019/base/prefixed/yoctomole/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/yoctomole/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/yoctosecond/v1.test.json b/test/bipm/si/2019/base/prefixed/yoctosecond/v1.test.json deleted file mode 100644 index ff39b6f4..00000000 --- a/test/bipm/si/2019/base/prefixed/yoctosecond/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/yoctosecond/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/yottaampere/v1.test.json b/test/bipm/si/2019/base/prefixed/yottaampere/v1.test.json deleted file mode 100644 index a423002f..00000000 --- a/test/bipm/si/2019/base/prefixed/yottaampere/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/yottaampere/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/yottacandela/v1.test.json b/test/bipm/si/2019/base/prefixed/yottacandela/v1.test.json deleted file mode 100644 index c7b2229f..00000000 --- a/test/bipm/si/2019/base/prefixed/yottacandela/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/yottacandela/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/yottagram/v1.test.json b/test/bipm/si/2019/base/prefixed/yottagram/v1.test.json deleted file mode 100644 index 96e02ddf..00000000 --- a/test/bipm/si/2019/base/prefixed/yottagram/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/yottagram/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/yottakelvin/v1.test.json b/test/bipm/si/2019/base/prefixed/yottakelvin/v1.test.json deleted file mode 100644 index de85496b..00000000 --- a/test/bipm/si/2019/base/prefixed/yottakelvin/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/yottakelvin/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/yottametre/v1.test.json b/test/bipm/si/2019/base/prefixed/yottametre/v1.test.json deleted file mode 100644 index a89183d9..00000000 --- a/test/bipm/si/2019/base/prefixed/yottametre/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/yottametre/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/yottamole/v1.test.json b/test/bipm/si/2019/base/prefixed/yottamole/v1.test.json deleted file mode 100644 index 5b6faba4..00000000 --- a/test/bipm/si/2019/base/prefixed/yottamole/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/yottamole/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/yottasecond/v1.test.json b/test/bipm/si/2019/base/prefixed/yottasecond/v1.test.json deleted file mode 100644 index a648ac72..00000000 --- a/test/bipm/si/2019/base/prefixed/yottasecond/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/yottasecond/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/zeptoampere/v1.test.json b/test/bipm/si/2019/base/prefixed/zeptoampere/v1.test.json deleted file mode 100644 index 100e0c81..00000000 --- a/test/bipm/si/2019/base/prefixed/zeptoampere/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/zeptoampere/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/zeptocandela/v1.test.json b/test/bipm/si/2019/base/prefixed/zeptocandela/v1.test.json deleted file mode 100644 index ec71ce27..00000000 --- a/test/bipm/si/2019/base/prefixed/zeptocandela/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/zeptocandela/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/zeptogram/v1.test.json b/test/bipm/si/2019/base/prefixed/zeptogram/v1.test.json deleted file mode 100644 index 294352c4..00000000 --- a/test/bipm/si/2019/base/prefixed/zeptogram/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/zeptogram/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/zeptokelvin/v1.test.json b/test/bipm/si/2019/base/prefixed/zeptokelvin/v1.test.json deleted file mode 100644 index f648bae5..00000000 --- a/test/bipm/si/2019/base/prefixed/zeptokelvin/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/zeptokelvin/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/zeptometre/v1.test.json b/test/bipm/si/2019/base/prefixed/zeptometre/v1.test.json deleted file mode 100644 index 582d7ac1..00000000 --- a/test/bipm/si/2019/base/prefixed/zeptometre/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/zeptometre/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/zeptomole/v1.test.json b/test/bipm/si/2019/base/prefixed/zeptomole/v1.test.json deleted file mode 100644 index d1169543..00000000 --- a/test/bipm/si/2019/base/prefixed/zeptomole/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/zeptomole/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/zeptosecond/v1.test.json b/test/bipm/si/2019/base/prefixed/zeptosecond/v1.test.json deleted file mode 100644 index d75bee6d..00000000 --- a/test/bipm/si/2019/base/prefixed/zeptosecond/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/zeptosecond/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/zettaampere/v1.test.json b/test/bipm/si/2019/base/prefixed/zettaampere/v1.test.json deleted file mode 100644 index 4015c4b5..00000000 --- a/test/bipm/si/2019/base/prefixed/zettaampere/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/zettaampere/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/zettacandela/v1.test.json b/test/bipm/si/2019/base/prefixed/zettacandela/v1.test.json deleted file mode 100644 index fa52d57e..00000000 --- a/test/bipm/si/2019/base/prefixed/zettacandela/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/zettacandela/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/zettagram/v1.test.json b/test/bipm/si/2019/base/prefixed/zettagram/v1.test.json deleted file mode 100644 index 21ff5cdf..00000000 --- a/test/bipm/si/2019/base/prefixed/zettagram/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/zettagram/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/zettakelvin/v1.test.json b/test/bipm/si/2019/base/prefixed/zettakelvin/v1.test.json deleted file mode 100644 index e758146b..00000000 --- a/test/bipm/si/2019/base/prefixed/zettakelvin/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/zettakelvin/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/zettametre/v1.test.json b/test/bipm/si/2019/base/prefixed/zettametre/v1.test.json deleted file mode 100644 index 6b6757d8..00000000 --- a/test/bipm/si/2019/base/prefixed/zettametre/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/zettametre/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/zettamole/v1.test.json b/test/bipm/si/2019/base/prefixed/zettamole/v1.test.json deleted file mode 100644 index 50c26e85..00000000 --- a/test/bipm/si/2019/base/prefixed/zettamole/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/zettamole/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/prefixed/zettasecond/v1.test.json b/test/bipm/si/2019/base/prefixed/zettasecond/v1.test.json deleted file mode 100644 index 313e4316..00000000 --- a/test/bipm/si/2019/base/prefixed/zettasecond/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/prefixed/zettasecond/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/quantity/amount-of-substance/v1.test.json b/test/bipm/si/2019/base/quantity/amount-of-substance/v1.test.json deleted file mode 100644 index 80dabe1b..00000000 --- a/test/bipm/si/2019/base/quantity/amount-of-substance/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/quantity/amount-of-substance/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/quantity/electric-current/v1.test.json b/test/bipm/si/2019/base/quantity/electric-current/v1.test.json deleted file mode 100644 index 0061de35..00000000 --- a/test/bipm/si/2019/base/quantity/electric-current/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/quantity/electric-current/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/quantity/length/v1.test.json b/test/bipm/si/2019/base/quantity/length/v1.test.json deleted file mode 100644 index e83dff2e..00000000 --- a/test/bipm/si/2019/base/quantity/length/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/quantity/length/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/quantity/luminous-intensity/v1.test.json b/test/bipm/si/2019/base/quantity/luminous-intensity/v1.test.json deleted file mode 100644 index 6a659667..00000000 --- a/test/bipm/si/2019/base/quantity/luminous-intensity/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/quantity/luminous-intensity/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/quantity/mass/v1.test.json b/test/bipm/si/2019/base/quantity/mass/v1.test.json deleted file mode 100644 index 4a9d2598..00000000 --- a/test/bipm/si/2019/base/quantity/mass/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/quantity/mass/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/quantity/thermodynamic-temperature/v1.test.json b/test/bipm/si/2019/base/quantity/thermodynamic-temperature/v1.test.json deleted file mode 100644 index 1e7014ee..00000000 --- a/test/bipm/si/2019/base/quantity/thermodynamic-temperature/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/quantity/thermodynamic-temperature/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/quantity/time/v1.test.json b/test/bipm/si/2019/base/quantity/time/v1.test.json deleted file mode 100644 index e09da144..00000000 --- a/test/bipm/si/2019/base/quantity/time/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/quantity/time/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/symbol/v1.test.json b/test/bipm/si/2019/base/symbol/v1.test.json deleted file mode 100644 index 978f2555..00000000 --- a/test/bipm/si/2019/base/symbol/v1.test.json +++ /dev/null @@ -1,145 +0,0 @@ -{ - "target": "../../../../../../schemas/bipm/si/2019/base/symbol/v1.json", - "tests": [ - { - "description": "Valid - second", - "data": "s", - "valid": true - }, - { - "description": "Valid - metre", - "data": "m", - "valid": true - }, - { - "description": "Valid - kilogram", - "data": "kg", - "valid": true - }, - { - "description": "Valid - ampere", - "data": "A", - "valid": true - }, - { - "description": "Valid - kelvin", - "data": "K", - "valid": true - }, - { - "description": "Valid - mole", - "data": "mol", - "valid": true - }, - { - "description": "Valid - candela", - "data": "cd", - "valid": true - }, - { - "description": "Valid - millisecond", - "data": "ms", - "valid": true - }, - { - "description": "Valid - kilometre", - "data": "km", - "valid": true - }, - { - "description": "Valid - gram", - "data": "g", - "valid": true - }, - { - "description": "Valid - milligram", - "data": "mg", - "valid": true - }, - { - "description": "Valid - microampere", - "data": "µA", - "valid": true - }, - { - "description": "Valid - milliampere", - "data": "mA", - "valid": true - }, - { - "description": "Valid - millikelvin", - "data": "mK", - "valid": true - }, - { - "description": "Valid - micromole", - "data": "µmol", - "valid": true - }, - { - "description": "Valid - millicandela", - "data": "mcd", - "valid": true - }, - { - "description": "Valid - nanosecond", - "data": "ns", - "valid": true - }, - { - "description": "Valid - centimetre", - "data": "cm", - "valid": true - }, - { - "description": "Valid - megagram", - "data": "Mg", - "valid": true - }, - { - "description": "Valid - quettametre", - "data": "Qm", - "valid": true - }, - { - "description": "Valid - quectosecond", - "data": "qs", - "valid": true - }, - { - "description": "Invalid - derived unit symbol", - "data": "Hz", - "valid": false - }, - { - "description": "Invalid - unknown symbol", - "data": "xyz", - "valid": false - }, - { - "description": "Invalid type - number", - "data": 1, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/unit/ampere/v1.test.json b/test/bipm/si/2019/base/unit/ampere/v1.test.json deleted file mode 100644 index 488c6dc1..00000000 --- a/test/bipm/si/2019/base/unit/ampere/v1.test.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/unit/ampere/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 5, - "valid": true - }, - { - "description": "Valid - negative", - "data": -1.5, - "valid": true - }, - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - small negative", - "data": -0.001, - "valid": true - }, - { - "description": "Valid - large positive", - "data": 100, - "valid": true - }, - { - "description": "Valid - large negative", - "data": -100, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "2", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/unit/candela/v1.test.json b/test/bipm/si/2019/base/unit/candela/v1.test.json deleted file mode 100644 index 6083adbb..00000000 --- a/test/bipm/si/2019/base/unit/candela/v1.test.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/unit/candela/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - small positive", - "data": 0.1, - "valid": true - }, - { - "description": "Valid - one candela", - "data": 1, - "valid": true - }, - { - "description": "Valid - typical bulb", - "data": 100, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 12.5, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -5, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/unit/kelvin/v1.test.json b/test/bipm/si/2019/base/unit/kelvin/v1.test.json deleted file mode 100644 index 186cb031..00000000 --- a/test/bipm/si/2019/base/unit/kelvin/v1.test.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/unit/kelvin/v1.json", - "tests": [ - { - "description": "Valid - absolute zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - room temperature", - "data": 293.15, - "valid": true - }, - { - "description": "Valid - water freezing point", - "data": 273.15, - "valid": true - }, - { - "description": "Valid - water boiling point", - "data": 373.15, - "valid": true - }, - { - "description": "Valid - small positive", - "data": 0.01, - "valid": true - }, - { - "description": "Valid - high temperature", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - negative (below absolute zero)", - "data": -1, - "valid": false - }, - { - "description": "Invalid - negative decimal", - "data": -0.01, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "273.15", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/unit/kilogram/v1.test.json b/test/bipm/si/2019/base/unit/kilogram/v1.test.json deleted file mode 100644 index cd2a71bc..00000000 --- a/test/bipm/si/2019/base/unit/kilogram/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/unit/kilogram/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive integer", - "data": 70, - "valid": true - }, - { - "description": "Valid - positive decimal", - "data": 1.5, - "valid": true - }, - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - large value", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -10, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "50", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/unit/metre/v1.test.json b/test/bipm/si/2019/base/unit/metre/v1.test.json deleted file mode 100644 index 882fee63..00000000 --- a/test/bipm/si/2019/base/unit/metre/v1.test.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/unit/metre/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive integer", - "data": 100, - "valid": true - }, - { - "description": "Valid - positive decimal", - "data": 1.75, - "valid": true - }, - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - large value", - "data": 1000000, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -5, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [ 1 ], - "valid": false - }, - { - "description": "Invalid type - object", - "data": { - "value": 1 - }, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/unit/mole/v1.test.json b/test/bipm/si/2019/base/unit/mole/v1.test.json deleted file mode 100644 index 049e92fb..00000000 --- a/test/bipm/si/2019/base/unit/mole/v1.test.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/unit/mole/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - one mole", - "data": 1, - "valid": true - }, - { - "description": "Valid - multiple moles", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 2.5, - "valid": true - }, - { - "description": "Valid - large value", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -1, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "1", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/base/unit/second/v1.test.json b/test/bipm/si/2019/base/unit/second/v1.test.json deleted file mode 100644 index 20a9e1ec..00000000 --- a/test/bipm/si/2019/base/unit/second/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/base/unit/second/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive integer", - "data": 60, - "valid": true - }, - { - "description": "Valid - positive decimal", - "data": 1.5, - "valid": true - }, - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - large value", - "data": 86400, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -1, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "1", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/compound/joule-per-kelvin/v1.test.json b/test/bipm/si/2019/compound/joule-per-kelvin/v1.test.json deleted file mode 100644 index 78d6598b..00000000 --- a/test/bipm/si/2019/compound/joule-per-kelvin/v1.test.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "target": "../../../../../../schemas/bipm/si/2019/compound/joule-per-kelvin/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/compound/joule-second/v1.test.json b/test/bipm/si/2019/compound/joule-second/v1.test.json deleted file mode 100644 index be3a7c85..00000000 --- a/test/bipm/si/2019/compound/joule-second/v1.test.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "target": "../../../../../../schemas/bipm/si/2019/compound/joule-second/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/compound/lumen-per-watt/v1.test.json b/test/bipm/si/2019/compound/lumen-per-watt/v1.test.json deleted file mode 100644 index b95323cd..00000000 --- a/test/bipm/si/2019/compound/lumen-per-watt/v1.test.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "target": "../../../../../../schemas/bipm/si/2019/compound/lumen-per-watt/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/compound/metre-per-second/v1.test.json b/test/bipm/si/2019/compound/metre-per-second/v1.test.json deleted file mode 100644 index ab2b90a0..00000000 --- a/test/bipm/si/2019/compound/metre-per-second/v1.test.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "target": "../../../../../../schemas/bipm/si/2019/compound/metre-per-second/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/constant/avogadro/v1.test.json b/test/bipm/si/2019/constant/avogadro/v1.test.json deleted file mode 100644 index eb2bc6ea..00000000 --- a/test/bipm/si/2019/constant/avogadro/v1.test.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "target": "../../../../../../schemas/bipm/si/2019/constant/avogadro/v1.json", - "tests": [ - { - "description": "Valid - exact value", - "data": 6.02214076000000000000000e+23, - "valid": true - }, - { - "description": "Invalid - different value", - "data": 6.02214077000000000000000e+23, - "valid": false - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "6.02214076e23", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/constant/boltzmann/v1.test.json b/test/bipm/si/2019/constant/boltzmann/v1.test.json deleted file mode 100644 index 411bf7af..00000000 --- a/test/bipm/si/2019/constant/boltzmann/v1.test.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "target": "../../../../../../schemas/bipm/si/2019/constant/boltzmann/v1.json", - "tests": [ - { - "description": "Valid - exact value", - "data": 1.380649e-23, - "valid": true - }, - { - "description": "Invalid - different value", - "data": 1.380650e-23, - "valid": false - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "1.380649e-23", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/constant/caesium-frequency/v1.test.json b/test/bipm/si/2019/constant/caesium-frequency/v1.test.json deleted file mode 100644 index 589e31c6..00000000 --- a/test/bipm/si/2019/constant/caesium-frequency/v1.test.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "target": "../../../../../../schemas/bipm/si/2019/constant/caesium-frequency/v1.json", - "tests": [ - { - "description": "Valid - exact value", - "data": 9192631770, - "valid": true - }, - { - "description": "Invalid - different value", - "data": 9192631771, - "valid": false - }, - { - "description": "Invalid - decimal", - "data": 9192630000.0, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "9192631770", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/constant/elementary-charge/v1.test.json b/test/bipm/si/2019/constant/elementary-charge/v1.test.json deleted file mode 100644 index 9344c73a..00000000 --- a/test/bipm/si/2019/constant/elementary-charge/v1.test.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "target": "../../../../../../schemas/bipm/si/2019/constant/elementary-charge/v1.json", - "tests": [ - { - "description": "Valid - exact value", - "data": 1.602176634e-19, - "valid": true - }, - { - "description": "Invalid - different value", - "data": 1.602176635e-19, - "valid": false - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "1.602176634e-19", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/constant/light-speed/v1.test.json b/test/bipm/si/2019/constant/light-speed/v1.test.json deleted file mode 100644 index 6762431f..00000000 --- a/test/bipm/si/2019/constant/light-speed/v1.test.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "target": "../../../../../../schemas/bipm/si/2019/constant/light-speed/v1.json", - "tests": [ - { - "description": "Valid - exact value", - "data": 299792458, - "valid": true - }, - { - "description": "Invalid - different value", - "data": 299792459, - "valid": false - }, - { - "description": "Invalid - decimal", - "data": 299792000.0, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "299792458", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/constant/luminous-efficacy/v1.test.json b/test/bipm/si/2019/constant/luminous-efficacy/v1.test.json deleted file mode 100644 index 27176a28..00000000 --- a/test/bipm/si/2019/constant/luminous-efficacy/v1.test.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "target": "../../../../../../schemas/bipm/si/2019/constant/luminous-efficacy/v1.json", - "tests": [ - { - "description": "Valid - exact value", - "data": 683, - "valid": true - }, - { - "description": "Invalid - different value", - "data": 684, - "valid": false - }, - { - "description": "Invalid - decimal", - "data": 683.5, - "valid": false - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "683", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/constant/planck/v1.test.json b/test/bipm/si/2019/constant/planck/v1.test.json deleted file mode 100644 index 554e06c5..00000000 --- a/test/bipm/si/2019/constant/planck/v1.test.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "target": "../../../../../../schemas/bipm/si/2019/constant/planck/v1.json", - "tests": [ - { - "description": "Valid - exact value", - "data": 6.62607015e-34, - "valid": true - }, - { - "description": "Invalid - different value", - "data": 6.62607016e-34, - "valid": false - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "6.62607015e-34", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/attobecquerel/v1.test.json b/test/bipm/si/2019/derived/prefixed/attobecquerel/v1.test.json deleted file mode 100644 index 4f5207f6..00000000 --- a/test/bipm/si/2019/derived/prefixed/attobecquerel/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/attobecquerel/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/attocoulomb/v1.test.json b/test/bipm/si/2019/derived/prefixed/attocoulomb/v1.test.json deleted file mode 100644 index b5dad62e..00000000 --- a/test/bipm/si/2019/derived/prefixed/attocoulomb/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/attocoulomb/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/attodegree-celsius/v1.test.json b/test/bipm/si/2019/derived/prefixed/attodegree-celsius/v1.test.json deleted file mode 100644 index 21fa3f5e..00000000 --- a/test/bipm/si/2019/derived/prefixed/attodegree-celsius/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/attodegree-celsius/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/attofarad/v1.test.json b/test/bipm/si/2019/derived/prefixed/attofarad/v1.test.json deleted file mode 100644 index 37e3a27f..00000000 --- a/test/bipm/si/2019/derived/prefixed/attofarad/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/attofarad/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/attogray/v1.test.json b/test/bipm/si/2019/derived/prefixed/attogray/v1.test.json deleted file mode 100644 index 37675972..00000000 --- a/test/bipm/si/2019/derived/prefixed/attogray/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/attogray/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/attohenry/v1.test.json b/test/bipm/si/2019/derived/prefixed/attohenry/v1.test.json deleted file mode 100644 index 494ba560..00000000 --- a/test/bipm/si/2019/derived/prefixed/attohenry/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/attohenry/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/attohertz/v1.test.json b/test/bipm/si/2019/derived/prefixed/attohertz/v1.test.json deleted file mode 100644 index 0f62ef1c..00000000 --- a/test/bipm/si/2019/derived/prefixed/attohertz/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/attohertz/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/attojoule/v1.test.json b/test/bipm/si/2019/derived/prefixed/attojoule/v1.test.json deleted file mode 100644 index 7d8a56af..00000000 --- a/test/bipm/si/2019/derived/prefixed/attojoule/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/attojoule/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/attokatal/v1.test.json b/test/bipm/si/2019/derived/prefixed/attokatal/v1.test.json deleted file mode 100644 index a3f20a61..00000000 --- a/test/bipm/si/2019/derived/prefixed/attokatal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/attokatal/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/attolumen/v1.test.json b/test/bipm/si/2019/derived/prefixed/attolumen/v1.test.json deleted file mode 100644 index 75bcd080..00000000 --- a/test/bipm/si/2019/derived/prefixed/attolumen/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/attolumen/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/attolux/v1.test.json b/test/bipm/si/2019/derived/prefixed/attolux/v1.test.json deleted file mode 100644 index 89056318..00000000 --- a/test/bipm/si/2019/derived/prefixed/attolux/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/attolux/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/attonewton/v1.test.json b/test/bipm/si/2019/derived/prefixed/attonewton/v1.test.json deleted file mode 100644 index 441e9ae9..00000000 --- a/test/bipm/si/2019/derived/prefixed/attonewton/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/attonewton/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/attoohm/v1.test.json b/test/bipm/si/2019/derived/prefixed/attoohm/v1.test.json deleted file mode 100644 index 9792fdd8..00000000 --- a/test/bipm/si/2019/derived/prefixed/attoohm/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/attoohm/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/attopascal/v1.test.json b/test/bipm/si/2019/derived/prefixed/attopascal/v1.test.json deleted file mode 100644 index 50685c35..00000000 --- a/test/bipm/si/2019/derived/prefixed/attopascal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/attopascal/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/attoradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/attoradian/v1.test.json deleted file mode 100644 index c2e413a4..00000000 --- a/test/bipm/si/2019/derived/prefixed/attoradian/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/attoradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/attosiemens/v1.test.json b/test/bipm/si/2019/derived/prefixed/attosiemens/v1.test.json deleted file mode 100644 index 4e6a227e..00000000 --- a/test/bipm/si/2019/derived/prefixed/attosiemens/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/attosiemens/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/attosievert/v1.test.json b/test/bipm/si/2019/derived/prefixed/attosievert/v1.test.json deleted file mode 100644 index 61156347..00000000 --- a/test/bipm/si/2019/derived/prefixed/attosievert/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/attosievert/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/attosteradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/attosteradian/v1.test.json deleted file mode 100644 index 85de8812..00000000 --- a/test/bipm/si/2019/derived/prefixed/attosteradian/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/attosteradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/attotesla/v1.test.json b/test/bipm/si/2019/derived/prefixed/attotesla/v1.test.json deleted file mode 100644 index 7640348e..00000000 --- a/test/bipm/si/2019/derived/prefixed/attotesla/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/attotesla/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/attovolt/v1.test.json b/test/bipm/si/2019/derived/prefixed/attovolt/v1.test.json deleted file mode 100644 index 632b197f..00000000 --- a/test/bipm/si/2019/derived/prefixed/attovolt/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/attovolt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/attowatt/v1.test.json b/test/bipm/si/2019/derived/prefixed/attowatt/v1.test.json deleted file mode 100644 index fd349d3c..00000000 --- a/test/bipm/si/2019/derived/prefixed/attowatt/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/attowatt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/attoweber/v1.test.json b/test/bipm/si/2019/derived/prefixed/attoweber/v1.test.json deleted file mode 100644 index 1817a144..00000000 --- a/test/bipm/si/2019/derived/prefixed/attoweber/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/attoweber/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/centibecquerel/v1.test.json b/test/bipm/si/2019/derived/prefixed/centibecquerel/v1.test.json deleted file mode 100644 index f47c2059..00000000 --- a/test/bipm/si/2019/derived/prefixed/centibecquerel/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/centibecquerel/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/centicoulomb/v1.test.json b/test/bipm/si/2019/derived/prefixed/centicoulomb/v1.test.json deleted file mode 100644 index 8082d272..00000000 --- a/test/bipm/si/2019/derived/prefixed/centicoulomb/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/centicoulomb/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/centidegree-celsius/v1.test.json b/test/bipm/si/2019/derived/prefixed/centidegree-celsius/v1.test.json deleted file mode 100644 index 26120494..00000000 --- a/test/bipm/si/2019/derived/prefixed/centidegree-celsius/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/centidegree-celsius/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/centifarad/v1.test.json b/test/bipm/si/2019/derived/prefixed/centifarad/v1.test.json deleted file mode 100644 index 15cf333c..00000000 --- a/test/bipm/si/2019/derived/prefixed/centifarad/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/centifarad/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/centigray/v1.test.json b/test/bipm/si/2019/derived/prefixed/centigray/v1.test.json deleted file mode 100644 index d6a6ab5e..00000000 --- a/test/bipm/si/2019/derived/prefixed/centigray/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/centigray/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/centihenry/v1.test.json b/test/bipm/si/2019/derived/prefixed/centihenry/v1.test.json deleted file mode 100644 index 2173c117..00000000 --- a/test/bipm/si/2019/derived/prefixed/centihenry/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/centihenry/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/centihertz/v1.test.json b/test/bipm/si/2019/derived/prefixed/centihertz/v1.test.json deleted file mode 100644 index 4d1d3e58..00000000 --- a/test/bipm/si/2019/derived/prefixed/centihertz/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/centihertz/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/centijoule/v1.test.json b/test/bipm/si/2019/derived/prefixed/centijoule/v1.test.json deleted file mode 100644 index 0cfda613..00000000 --- a/test/bipm/si/2019/derived/prefixed/centijoule/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/centijoule/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/centikatal/v1.test.json b/test/bipm/si/2019/derived/prefixed/centikatal/v1.test.json deleted file mode 100644 index 99590ffd..00000000 --- a/test/bipm/si/2019/derived/prefixed/centikatal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/centikatal/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/centilumen/v1.test.json b/test/bipm/si/2019/derived/prefixed/centilumen/v1.test.json deleted file mode 100644 index addf7561..00000000 --- a/test/bipm/si/2019/derived/prefixed/centilumen/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/centilumen/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/centilux/v1.test.json b/test/bipm/si/2019/derived/prefixed/centilux/v1.test.json deleted file mode 100644 index 1daf7416..00000000 --- a/test/bipm/si/2019/derived/prefixed/centilux/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/centilux/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/centinewton/v1.test.json b/test/bipm/si/2019/derived/prefixed/centinewton/v1.test.json deleted file mode 100644 index a1d15dc7..00000000 --- a/test/bipm/si/2019/derived/prefixed/centinewton/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/centinewton/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/centiohm/v1.test.json b/test/bipm/si/2019/derived/prefixed/centiohm/v1.test.json deleted file mode 100644 index 77ac3764..00000000 --- a/test/bipm/si/2019/derived/prefixed/centiohm/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/centiohm/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/centipascal/v1.test.json b/test/bipm/si/2019/derived/prefixed/centipascal/v1.test.json deleted file mode 100644 index 52e248e0..00000000 --- a/test/bipm/si/2019/derived/prefixed/centipascal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/centipascal/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/centiradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/centiradian/v1.test.json deleted file mode 100644 index 8c643b5f..00000000 --- a/test/bipm/si/2019/derived/prefixed/centiradian/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/centiradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/centisiemens/v1.test.json b/test/bipm/si/2019/derived/prefixed/centisiemens/v1.test.json deleted file mode 100644 index 26f6857c..00000000 --- a/test/bipm/si/2019/derived/prefixed/centisiemens/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/centisiemens/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/centisievert/v1.test.json b/test/bipm/si/2019/derived/prefixed/centisievert/v1.test.json deleted file mode 100644 index 335a354f..00000000 --- a/test/bipm/si/2019/derived/prefixed/centisievert/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/centisievert/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/centisteradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/centisteradian/v1.test.json deleted file mode 100644 index 8e1c9d03..00000000 --- a/test/bipm/si/2019/derived/prefixed/centisteradian/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/centisteradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/centitesla/v1.test.json b/test/bipm/si/2019/derived/prefixed/centitesla/v1.test.json deleted file mode 100644 index c0d14f35..00000000 --- a/test/bipm/si/2019/derived/prefixed/centitesla/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/centitesla/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/centivolt/v1.test.json b/test/bipm/si/2019/derived/prefixed/centivolt/v1.test.json deleted file mode 100644 index 6dcfae6f..00000000 --- a/test/bipm/si/2019/derived/prefixed/centivolt/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/centivolt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/centiwatt/v1.test.json b/test/bipm/si/2019/derived/prefixed/centiwatt/v1.test.json deleted file mode 100644 index 5efdafeb..00000000 --- a/test/bipm/si/2019/derived/prefixed/centiwatt/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/centiwatt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/centiweber/v1.test.json b/test/bipm/si/2019/derived/prefixed/centiweber/v1.test.json deleted file mode 100644 index 11ecd6f5..00000000 --- a/test/bipm/si/2019/derived/prefixed/centiweber/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/centiweber/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decabecquerel/v1.test.json b/test/bipm/si/2019/derived/prefixed/decabecquerel/v1.test.json deleted file mode 100644 index 251e59fb..00000000 --- a/test/bipm/si/2019/derived/prefixed/decabecquerel/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decabecquerel/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decacoulomb/v1.test.json b/test/bipm/si/2019/derived/prefixed/decacoulomb/v1.test.json deleted file mode 100644 index 740c3012..00000000 --- a/test/bipm/si/2019/derived/prefixed/decacoulomb/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decacoulomb/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decadegree-celsius/v1.test.json b/test/bipm/si/2019/derived/prefixed/decadegree-celsius/v1.test.json deleted file mode 100644 index dc659ee5..00000000 --- a/test/bipm/si/2019/derived/prefixed/decadegree-celsius/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decadegree-celsius/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative within the scaled range", - "data": -13.6575, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decafarad/v1.test.json b/test/bipm/si/2019/derived/prefixed/decafarad/v1.test.json deleted file mode 100644 index f04585ae..00000000 --- a/test/bipm/si/2019/derived/prefixed/decafarad/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decafarad/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decagray/v1.test.json b/test/bipm/si/2019/derived/prefixed/decagray/v1.test.json deleted file mode 100644 index 9420c3ec..00000000 --- a/test/bipm/si/2019/derived/prefixed/decagray/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decagray/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decahenry/v1.test.json b/test/bipm/si/2019/derived/prefixed/decahenry/v1.test.json deleted file mode 100644 index 07ac3cd9..00000000 --- a/test/bipm/si/2019/derived/prefixed/decahenry/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decahenry/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decahertz/v1.test.json b/test/bipm/si/2019/derived/prefixed/decahertz/v1.test.json deleted file mode 100644 index 4a2df837..00000000 --- a/test/bipm/si/2019/derived/prefixed/decahertz/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decahertz/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decajoule/v1.test.json b/test/bipm/si/2019/derived/prefixed/decajoule/v1.test.json deleted file mode 100644 index 4b7a41cb..00000000 --- a/test/bipm/si/2019/derived/prefixed/decajoule/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decajoule/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decakatal/v1.test.json b/test/bipm/si/2019/derived/prefixed/decakatal/v1.test.json deleted file mode 100644 index 55a0f5c9..00000000 --- a/test/bipm/si/2019/derived/prefixed/decakatal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decakatal/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decalumen/v1.test.json b/test/bipm/si/2019/derived/prefixed/decalumen/v1.test.json deleted file mode 100644 index 44afd17f..00000000 --- a/test/bipm/si/2019/derived/prefixed/decalumen/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decalumen/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decalux/v1.test.json b/test/bipm/si/2019/derived/prefixed/decalux/v1.test.json deleted file mode 100644 index 28faceba..00000000 --- a/test/bipm/si/2019/derived/prefixed/decalux/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decalux/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decanewton/v1.test.json b/test/bipm/si/2019/derived/prefixed/decanewton/v1.test.json deleted file mode 100644 index 0a974161..00000000 --- a/test/bipm/si/2019/derived/prefixed/decanewton/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decanewton/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decaohm/v1.test.json b/test/bipm/si/2019/derived/prefixed/decaohm/v1.test.json deleted file mode 100644 index 58ba358a..00000000 --- a/test/bipm/si/2019/derived/prefixed/decaohm/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decaohm/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decapascal/v1.test.json b/test/bipm/si/2019/derived/prefixed/decapascal/v1.test.json deleted file mode 100644 index e1f5b349..00000000 --- a/test/bipm/si/2019/derived/prefixed/decapascal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decapascal/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decaradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/decaradian/v1.test.json deleted file mode 100644 index 75e32ad8..00000000 --- a/test/bipm/si/2019/derived/prefixed/decaradian/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decaradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decasiemens/v1.test.json b/test/bipm/si/2019/derived/prefixed/decasiemens/v1.test.json deleted file mode 100644 index e5af095e..00000000 --- a/test/bipm/si/2019/derived/prefixed/decasiemens/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decasiemens/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decasievert/v1.test.json b/test/bipm/si/2019/derived/prefixed/decasievert/v1.test.json deleted file mode 100644 index 7e9de876..00000000 --- a/test/bipm/si/2019/derived/prefixed/decasievert/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decasievert/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decasteradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/decasteradian/v1.test.json deleted file mode 100644 index 1170a811..00000000 --- a/test/bipm/si/2019/derived/prefixed/decasteradian/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decasteradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decatesla/v1.test.json b/test/bipm/si/2019/derived/prefixed/decatesla/v1.test.json deleted file mode 100644 index d30c03d7..00000000 --- a/test/bipm/si/2019/derived/prefixed/decatesla/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decatesla/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decavolt/v1.test.json b/test/bipm/si/2019/derived/prefixed/decavolt/v1.test.json deleted file mode 100644 index a0424628..00000000 --- a/test/bipm/si/2019/derived/prefixed/decavolt/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decavolt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decawatt/v1.test.json b/test/bipm/si/2019/derived/prefixed/decawatt/v1.test.json deleted file mode 100644 index fd7100df..00000000 --- a/test/bipm/si/2019/derived/prefixed/decawatt/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decawatt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decaweber/v1.test.json b/test/bipm/si/2019/derived/prefixed/decaweber/v1.test.json deleted file mode 100644 index 47f5701f..00000000 --- a/test/bipm/si/2019/derived/prefixed/decaweber/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decaweber/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decibecquerel/v1.test.json b/test/bipm/si/2019/derived/prefixed/decibecquerel/v1.test.json deleted file mode 100644 index 0449cfa9..00000000 --- a/test/bipm/si/2019/derived/prefixed/decibecquerel/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decibecquerel/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decicoulomb/v1.test.json b/test/bipm/si/2019/derived/prefixed/decicoulomb/v1.test.json deleted file mode 100644 index f9b0ddd1..00000000 --- a/test/bipm/si/2019/derived/prefixed/decicoulomb/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decicoulomb/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decidegree-celsius/v1.test.json b/test/bipm/si/2019/derived/prefixed/decidegree-celsius/v1.test.json deleted file mode 100644 index 5c95d68a..00000000 --- a/test/bipm/si/2019/derived/prefixed/decidegree-celsius/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decidegree-celsius/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decifarad/v1.test.json b/test/bipm/si/2019/derived/prefixed/decifarad/v1.test.json deleted file mode 100644 index 6beca712..00000000 --- a/test/bipm/si/2019/derived/prefixed/decifarad/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decifarad/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decigray/v1.test.json b/test/bipm/si/2019/derived/prefixed/decigray/v1.test.json deleted file mode 100644 index 42e5730a..00000000 --- a/test/bipm/si/2019/derived/prefixed/decigray/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decigray/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decihenry/v1.test.json b/test/bipm/si/2019/derived/prefixed/decihenry/v1.test.json deleted file mode 100644 index 29e43f9c..00000000 --- a/test/bipm/si/2019/derived/prefixed/decihenry/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decihenry/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decihertz/v1.test.json b/test/bipm/si/2019/derived/prefixed/decihertz/v1.test.json deleted file mode 100644 index 6d45e908..00000000 --- a/test/bipm/si/2019/derived/prefixed/decihertz/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decihertz/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decijoule/v1.test.json b/test/bipm/si/2019/derived/prefixed/decijoule/v1.test.json deleted file mode 100644 index b3c7cdb3..00000000 --- a/test/bipm/si/2019/derived/prefixed/decijoule/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decijoule/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decikatal/v1.test.json b/test/bipm/si/2019/derived/prefixed/decikatal/v1.test.json deleted file mode 100644 index d323fbc2..00000000 --- a/test/bipm/si/2019/derived/prefixed/decikatal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decikatal/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decilumen/v1.test.json b/test/bipm/si/2019/derived/prefixed/decilumen/v1.test.json deleted file mode 100644 index b918267e..00000000 --- a/test/bipm/si/2019/derived/prefixed/decilumen/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decilumen/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decilux/v1.test.json b/test/bipm/si/2019/derived/prefixed/decilux/v1.test.json deleted file mode 100644 index 23447df4..00000000 --- a/test/bipm/si/2019/derived/prefixed/decilux/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decilux/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decinewton/v1.test.json b/test/bipm/si/2019/derived/prefixed/decinewton/v1.test.json deleted file mode 100644 index 620ad101..00000000 --- a/test/bipm/si/2019/derived/prefixed/decinewton/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decinewton/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/deciohm/v1.test.json b/test/bipm/si/2019/derived/prefixed/deciohm/v1.test.json deleted file mode 100644 index b423c441..00000000 --- a/test/bipm/si/2019/derived/prefixed/deciohm/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/deciohm/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decipascal/v1.test.json b/test/bipm/si/2019/derived/prefixed/decipascal/v1.test.json deleted file mode 100644 index 4e08e376..00000000 --- a/test/bipm/si/2019/derived/prefixed/decipascal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decipascal/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/deciradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/deciradian/v1.test.json deleted file mode 100644 index 461c64b1..00000000 --- a/test/bipm/si/2019/derived/prefixed/deciradian/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/deciradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decisiemens/v1.test.json b/test/bipm/si/2019/derived/prefixed/decisiemens/v1.test.json deleted file mode 100644 index d1ad3fb0..00000000 --- a/test/bipm/si/2019/derived/prefixed/decisiemens/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decisiemens/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decisievert/v1.test.json b/test/bipm/si/2019/derived/prefixed/decisievert/v1.test.json deleted file mode 100644 index 89d1a274..00000000 --- a/test/bipm/si/2019/derived/prefixed/decisievert/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decisievert/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decisteradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/decisteradian/v1.test.json deleted file mode 100644 index d6c42e4e..00000000 --- a/test/bipm/si/2019/derived/prefixed/decisteradian/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decisteradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decitesla/v1.test.json b/test/bipm/si/2019/derived/prefixed/decitesla/v1.test.json deleted file mode 100644 index d6af0c23..00000000 --- a/test/bipm/si/2019/derived/prefixed/decitesla/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decitesla/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/decivolt/v1.test.json b/test/bipm/si/2019/derived/prefixed/decivolt/v1.test.json deleted file mode 100644 index 0693f937..00000000 --- a/test/bipm/si/2019/derived/prefixed/decivolt/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/decivolt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/deciwatt/v1.test.json b/test/bipm/si/2019/derived/prefixed/deciwatt/v1.test.json deleted file mode 100644 index 470e749f..00000000 --- a/test/bipm/si/2019/derived/prefixed/deciwatt/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/deciwatt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/deciweber/v1.test.json b/test/bipm/si/2019/derived/prefixed/deciweber/v1.test.json deleted file mode 100644 index 1faa537c..00000000 --- a/test/bipm/si/2019/derived/prefixed/deciweber/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/deciweber/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/exabecquerel/v1.test.json b/test/bipm/si/2019/derived/prefixed/exabecquerel/v1.test.json deleted file mode 100644 index 2ce992d5..00000000 --- a/test/bipm/si/2019/derived/prefixed/exabecquerel/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/exabecquerel/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/exacoulomb/v1.test.json b/test/bipm/si/2019/derived/prefixed/exacoulomb/v1.test.json deleted file mode 100644 index ba51bc45..00000000 --- a/test/bipm/si/2019/derived/prefixed/exacoulomb/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/exacoulomb/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/exadegree-celsius/v1.test.json b/test/bipm/si/2019/derived/prefixed/exadegree-celsius/v1.test.json deleted file mode 100644 index 4d269a6b..00000000 --- a/test/bipm/si/2019/derived/prefixed/exadegree-celsius/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/exadegree-celsius/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative within the scaled range", - "data": -1.36575e-16, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/exafarad/v1.test.json b/test/bipm/si/2019/derived/prefixed/exafarad/v1.test.json deleted file mode 100644 index 280aa21f..00000000 --- a/test/bipm/si/2019/derived/prefixed/exafarad/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/exafarad/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/exagray/v1.test.json b/test/bipm/si/2019/derived/prefixed/exagray/v1.test.json deleted file mode 100644 index 8cfad869..00000000 --- a/test/bipm/si/2019/derived/prefixed/exagray/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/exagray/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/exahenry/v1.test.json b/test/bipm/si/2019/derived/prefixed/exahenry/v1.test.json deleted file mode 100644 index b97e12d1..00000000 --- a/test/bipm/si/2019/derived/prefixed/exahenry/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/exahenry/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/exahertz/v1.test.json b/test/bipm/si/2019/derived/prefixed/exahertz/v1.test.json deleted file mode 100644 index 3ecd81f0..00000000 --- a/test/bipm/si/2019/derived/prefixed/exahertz/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/exahertz/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/exajoule/v1.test.json b/test/bipm/si/2019/derived/prefixed/exajoule/v1.test.json deleted file mode 100644 index 0dacbc78..00000000 --- a/test/bipm/si/2019/derived/prefixed/exajoule/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/exajoule/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/exakatal/v1.test.json b/test/bipm/si/2019/derived/prefixed/exakatal/v1.test.json deleted file mode 100644 index a73883c8..00000000 --- a/test/bipm/si/2019/derived/prefixed/exakatal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/exakatal/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/exalumen/v1.test.json b/test/bipm/si/2019/derived/prefixed/exalumen/v1.test.json deleted file mode 100644 index 8e65d82d..00000000 --- a/test/bipm/si/2019/derived/prefixed/exalumen/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/exalumen/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/exalux/v1.test.json b/test/bipm/si/2019/derived/prefixed/exalux/v1.test.json deleted file mode 100644 index c2be38b6..00000000 --- a/test/bipm/si/2019/derived/prefixed/exalux/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/exalux/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/exanewton/v1.test.json b/test/bipm/si/2019/derived/prefixed/exanewton/v1.test.json deleted file mode 100644 index cf45f7e8..00000000 --- a/test/bipm/si/2019/derived/prefixed/exanewton/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/exanewton/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/exaohm/v1.test.json b/test/bipm/si/2019/derived/prefixed/exaohm/v1.test.json deleted file mode 100644 index 97305661..00000000 --- a/test/bipm/si/2019/derived/prefixed/exaohm/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/exaohm/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/exapascal/v1.test.json b/test/bipm/si/2019/derived/prefixed/exapascal/v1.test.json deleted file mode 100644 index acc7d0a8..00000000 --- a/test/bipm/si/2019/derived/prefixed/exapascal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/exapascal/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/exaradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/exaradian/v1.test.json deleted file mode 100644 index 1e66056d..00000000 --- a/test/bipm/si/2019/derived/prefixed/exaradian/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/exaradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/exasiemens/v1.test.json b/test/bipm/si/2019/derived/prefixed/exasiemens/v1.test.json deleted file mode 100644 index b9c0d32c..00000000 --- a/test/bipm/si/2019/derived/prefixed/exasiemens/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/exasiemens/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/exasievert/v1.test.json b/test/bipm/si/2019/derived/prefixed/exasievert/v1.test.json deleted file mode 100644 index 0921ddc4..00000000 --- a/test/bipm/si/2019/derived/prefixed/exasievert/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/exasievert/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/exasteradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/exasteradian/v1.test.json deleted file mode 100644 index 5e3fa7cd..00000000 --- a/test/bipm/si/2019/derived/prefixed/exasteradian/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/exasteradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/exatesla/v1.test.json b/test/bipm/si/2019/derived/prefixed/exatesla/v1.test.json deleted file mode 100644 index 6aeac1ca..00000000 --- a/test/bipm/si/2019/derived/prefixed/exatesla/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/exatesla/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/exavolt/v1.test.json b/test/bipm/si/2019/derived/prefixed/exavolt/v1.test.json deleted file mode 100644 index 41f0b5a7..00000000 --- a/test/bipm/si/2019/derived/prefixed/exavolt/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/exavolt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/exawatt/v1.test.json b/test/bipm/si/2019/derived/prefixed/exawatt/v1.test.json deleted file mode 100644 index c3954546..00000000 --- a/test/bipm/si/2019/derived/prefixed/exawatt/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/exawatt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/exaweber/v1.test.json b/test/bipm/si/2019/derived/prefixed/exaweber/v1.test.json deleted file mode 100644 index c8fd7854..00000000 --- a/test/bipm/si/2019/derived/prefixed/exaweber/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/exaweber/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/femtobecquerel/v1.test.json b/test/bipm/si/2019/derived/prefixed/femtobecquerel/v1.test.json deleted file mode 100644 index d978b030..00000000 --- a/test/bipm/si/2019/derived/prefixed/femtobecquerel/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtobecquerel/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/femtocoulomb/v1.test.json b/test/bipm/si/2019/derived/prefixed/femtocoulomb/v1.test.json deleted file mode 100644 index 8b1aa935..00000000 --- a/test/bipm/si/2019/derived/prefixed/femtocoulomb/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtocoulomb/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/femtodegree-celsius/v1.test.json b/test/bipm/si/2019/derived/prefixed/femtodegree-celsius/v1.test.json deleted file mode 100644 index 63eb836f..00000000 --- a/test/bipm/si/2019/derived/prefixed/femtodegree-celsius/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtodegree-celsius/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/femtofarad/v1.test.json b/test/bipm/si/2019/derived/prefixed/femtofarad/v1.test.json deleted file mode 100644 index fe2b87ff..00000000 --- a/test/bipm/si/2019/derived/prefixed/femtofarad/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtofarad/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/femtogray/v1.test.json b/test/bipm/si/2019/derived/prefixed/femtogray/v1.test.json deleted file mode 100644 index 167f3408..00000000 --- a/test/bipm/si/2019/derived/prefixed/femtogray/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtogray/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/femtohenry/v1.test.json b/test/bipm/si/2019/derived/prefixed/femtohenry/v1.test.json deleted file mode 100644 index 0ce0550e..00000000 --- a/test/bipm/si/2019/derived/prefixed/femtohenry/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtohenry/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/femtohertz/v1.test.json b/test/bipm/si/2019/derived/prefixed/femtohertz/v1.test.json deleted file mode 100644 index 8b2f14fa..00000000 --- a/test/bipm/si/2019/derived/prefixed/femtohertz/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtohertz/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/femtojoule/v1.test.json b/test/bipm/si/2019/derived/prefixed/femtojoule/v1.test.json deleted file mode 100644 index b2d32926..00000000 --- a/test/bipm/si/2019/derived/prefixed/femtojoule/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtojoule/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/femtokatal/v1.test.json b/test/bipm/si/2019/derived/prefixed/femtokatal/v1.test.json deleted file mode 100644 index 6660e6ec..00000000 --- a/test/bipm/si/2019/derived/prefixed/femtokatal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtokatal/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/femtolumen/v1.test.json b/test/bipm/si/2019/derived/prefixed/femtolumen/v1.test.json deleted file mode 100644 index 7e3c882b..00000000 --- a/test/bipm/si/2019/derived/prefixed/femtolumen/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtolumen/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/femtolux/v1.test.json b/test/bipm/si/2019/derived/prefixed/femtolux/v1.test.json deleted file mode 100644 index 024f8dc5..00000000 --- a/test/bipm/si/2019/derived/prefixed/femtolux/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtolux/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/femtonewton/v1.test.json b/test/bipm/si/2019/derived/prefixed/femtonewton/v1.test.json deleted file mode 100644 index c5366814..00000000 --- a/test/bipm/si/2019/derived/prefixed/femtonewton/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtonewton/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/femtoohm/v1.test.json b/test/bipm/si/2019/derived/prefixed/femtoohm/v1.test.json deleted file mode 100644 index aa619e84..00000000 --- a/test/bipm/si/2019/derived/prefixed/femtoohm/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtoohm/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/femtopascal/v1.test.json b/test/bipm/si/2019/derived/prefixed/femtopascal/v1.test.json deleted file mode 100644 index 71271232..00000000 --- a/test/bipm/si/2019/derived/prefixed/femtopascal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtopascal/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/femtoradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/femtoradian/v1.test.json deleted file mode 100644 index 73722b19..00000000 --- a/test/bipm/si/2019/derived/prefixed/femtoradian/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtoradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/femtosiemens/v1.test.json b/test/bipm/si/2019/derived/prefixed/femtosiemens/v1.test.json deleted file mode 100644 index 29bfc199..00000000 --- a/test/bipm/si/2019/derived/prefixed/femtosiemens/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtosiemens/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/femtosievert/v1.test.json b/test/bipm/si/2019/derived/prefixed/femtosievert/v1.test.json deleted file mode 100644 index 305d78c7..00000000 --- a/test/bipm/si/2019/derived/prefixed/femtosievert/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtosievert/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/femtosteradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/femtosteradian/v1.test.json deleted file mode 100644 index 79ee79d8..00000000 --- a/test/bipm/si/2019/derived/prefixed/femtosteradian/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtosteradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/femtotesla/v1.test.json b/test/bipm/si/2019/derived/prefixed/femtotesla/v1.test.json deleted file mode 100644 index 03988c0b..00000000 --- a/test/bipm/si/2019/derived/prefixed/femtotesla/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtotesla/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/femtovolt/v1.test.json b/test/bipm/si/2019/derived/prefixed/femtovolt/v1.test.json deleted file mode 100644 index 9232a58b..00000000 --- a/test/bipm/si/2019/derived/prefixed/femtovolt/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtovolt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/femtowatt/v1.test.json b/test/bipm/si/2019/derived/prefixed/femtowatt/v1.test.json deleted file mode 100644 index 0c78f107..00000000 --- a/test/bipm/si/2019/derived/prefixed/femtowatt/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtowatt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/femtoweber/v1.test.json b/test/bipm/si/2019/derived/prefixed/femtoweber/v1.test.json deleted file mode 100644 index 0f3d6515..00000000 --- a/test/bipm/si/2019/derived/prefixed/femtoweber/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtoweber/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/gigabecquerel/v1.test.json b/test/bipm/si/2019/derived/prefixed/gigabecquerel/v1.test.json deleted file mode 100644 index 955fcee3..00000000 --- a/test/bipm/si/2019/derived/prefixed/gigabecquerel/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigabecquerel/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/gigacoulomb/v1.test.json b/test/bipm/si/2019/derived/prefixed/gigacoulomb/v1.test.json deleted file mode 100644 index 1926d819..00000000 --- a/test/bipm/si/2019/derived/prefixed/gigacoulomb/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigacoulomb/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/gigadegree-celsius/v1.test.json b/test/bipm/si/2019/derived/prefixed/gigadegree-celsius/v1.test.json deleted file mode 100644 index fba534a3..00000000 --- a/test/bipm/si/2019/derived/prefixed/gigadegree-celsius/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigadegree-celsius/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative within the scaled range", - "data": -1.36575e-7, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/gigafarad/v1.test.json b/test/bipm/si/2019/derived/prefixed/gigafarad/v1.test.json deleted file mode 100644 index c81f7952..00000000 --- a/test/bipm/si/2019/derived/prefixed/gigafarad/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigafarad/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/gigagray/v1.test.json b/test/bipm/si/2019/derived/prefixed/gigagray/v1.test.json deleted file mode 100644 index cf3911ac..00000000 --- a/test/bipm/si/2019/derived/prefixed/gigagray/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigagray/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/gigahenry/v1.test.json b/test/bipm/si/2019/derived/prefixed/gigahenry/v1.test.json deleted file mode 100644 index c9825509..00000000 --- a/test/bipm/si/2019/derived/prefixed/gigahenry/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigahenry/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/gigahertz/v1.test.json b/test/bipm/si/2019/derived/prefixed/gigahertz/v1.test.json deleted file mode 100644 index f6fb73ec..00000000 --- a/test/bipm/si/2019/derived/prefixed/gigahertz/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigahertz/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/gigajoule/v1.test.json b/test/bipm/si/2019/derived/prefixed/gigajoule/v1.test.json deleted file mode 100644 index 15c00738..00000000 --- a/test/bipm/si/2019/derived/prefixed/gigajoule/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigajoule/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/gigakatal/v1.test.json b/test/bipm/si/2019/derived/prefixed/gigakatal/v1.test.json deleted file mode 100644 index 5e84a90f..00000000 --- a/test/bipm/si/2019/derived/prefixed/gigakatal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigakatal/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/gigalumen/v1.test.json b/test/bipm/si/2019/derived/prefixed/gigalumen/v1.test.json deleted file mode 100644 index 38ec4a9a..00000000 --- a/test/bipm/si/2019/derived/prefixed/gigalumen/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigalumen/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/gigalux/v1.test.json b/test/bipm/si/2019/derived/prefixed/gigalux/v1.test.json deleted file mode 100644 index 2a1f6c12..00000000 --- a/test/bipm/si/2019/derived/prefixed/gigalux/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigalux/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/giganewton/v1.test.json b/test/bipm/si/2019/derived/prefixed/giganewton/v1.test.json deleted file mode 100644 index 42c1ffc4..00000000 --- a/test/bipm/si/2019/derived/prefixed/giganewton/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/giganewton/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/gigaohm/v1.test.json b/test/bipm/si/2019/derived/prefixed/gigaohm/v1.test.json deleted file mode 100644 index e45f1507..00000000 --- a/test/bipm/si/2019/derived/prefixed/gigaohm/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigaohm/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/gigapascal/v1.test.json b/test/bipm/si/2019/derived/prefixed/gigapascal/v1.test.json deleted file mode 100644 index 1ba0bc9c..00000000 --- a/test/bipm/si/2019/derived/prefixed/gigapascal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigapascal/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/gigaradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/gigaradian/v1.test.json deleted file mode 100644 index 81d8b597..00000000 --- a/test/bipm/si/2019/derived/prefixed/gigaradian/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigaradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/gigasiemens/v1.test.json b/test/bipm/si/2019/derived/prefixed/gigasiemens/v1.test.json deleted file mode 100644 index 7309c13f..00000000 --- a/test/bipm/si/2019/derived/prefixed/gigasiemens/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigasiemens/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/gigasievert/v1.test.json b/test/bipm/si/2019/derived/prefixed/gigasievert/v1.test.json deleted file mode 100644 index 22925097..00000000 --- a/test/bipm/si/2019/derived/prefixed/gigasievert/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigasievert/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/gigasteradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/gigasteradian/v1.test.json deleted file mode 100644 index fb726ba9..00000000 --- a/test/bipm/si/2019/derived/prefixed/gigasteradian/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigasteradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/gigatesla/v1.test.json b/test/bipm/si/2019/derived/prefixed/gigatesla/v1.test.json deleted file mode 100644 index c7ab29f7..00000000 --- a/test/bipm/si/2019/derived/prefixed/gigatesla/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigatesla/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/gigavolt/v1.test.json b/test/bipm/si/2019/derived/prefixed/gigavolt/v1.test.json deleted file mode 100644 index 2d4235cd..00000000 --- a/test/bipm/si/2019/derived/prefixed/gigavolt/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigavolt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/gigawatt/v1.test.json b/test/bipm/si/2019/derived/prefixed/gigawatt/v1.test.json deleted file mode 100644 index 1b9f3be5..00000000 --- a/test/bipm/si/2019/derived/prefixed/gigawatt/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigawatt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/gigaweber/v1.test.json b/test/bipm/si/2019/derived/prefixed/gigaweber/v1.test.json deleted file mode 100644 index cdc62fd5..00000000 --- a/test/bipm/si/2019/derived/prefixed/gigaweber/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigaweber/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/hectobecquerel/v1.test.json b/test/bipm/si/2019/derived/prefixed/hectobecquerel/v1.test.json deleted file mode 100644 index 03a2b726..00000000 --- a/test/bipm/si/2019/derived/prefixed/hectobecquerel/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectobecquerel/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/hectocoulomb/v1.test.json b/test/bipm/si/2019/derived/prefixed/hectocoulomb/v1.test.json deleted file mode 100644 index 580eaf56..00000000 --- a/test/bipm/si/2019/derived/prefixed/hectocoulomb/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectocoulomb/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/hectodegree-celsius/v1.test.json b/test/bipm/si/2019/derived/prefixed/hectodegree-celsius/v1.test.json deleted file mode 100644 index 63a7298b..00000000 --- a/test/bipm/si/2019/derived/prefixed/hectodegree-celsius/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectodegree-celsius/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative within the scaled range", - "data": -1.36575, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/hectofarad/v1.test.json b/test/bipm/si/2019/derived/prefixed/hectofarad/v1.test.json deleted file mode 100644 index 73eb593c..00000000 --- a/test/bipm/si/2019/derived/prefixed/hectofarad/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectofarad/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/hectogray/v1.test.json b/test/bipm/si/2019/derived/prefixed/hectogray/v1.test.json deleted file mode 100644 index 2342e001..00000000 --- a/test/bipm/si/2019/derived/prefixed/hectogray/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectogray/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/hectohenry/v1.test.json b/test/bipm/si/2019/derived/prefixed/hectohenry/v1.test.json deleted file mode 100644 index 8305308d..00000000 --- a/test/bipm/si/2019/derived/prefixed/hectohenry/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectohenry/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/hectohertz/v1.test.json b/test/bipm/si/2019/derived/prefixed/hectohertz/v1.test.json deleted file mode 100644 index 2be6e43b..00000000 --- a/test/bipm/si/2019/derived/prefixed/hectohertz/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectohertz/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/hectojoule/v1.test.json b/test/bipm/si/2019/derived/prefixed/hectojoule/v1.test.json deleted file mode 100644 index 23c8c37b..00000000 --- a/test/bipm/si/2019/derived/prefixed/hectojoule/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectojoule/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/hectokatal/v1.test.json b/test/bipm/si/2019/derived/prefixed/hectokatal/v1.test.json deleted file mode 100644 index 36ee40e4..00000000 --- a/test/bipm/si/2019/derived/prefixed/hectokatal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectokatal/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/hectolumen/v1.test.json b/test/bipm/si/2019/derived/prefixed/hectolumen/v1.test.json deleted file mode 100644 index 876d93ec..00000000 --- a/test/bipm/si/2019/derived/prefixed/hectolumen/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectolumen/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/hectolux/v1.test.json b/test/bipm/si/2019/derived/prefixed/hectolux/v1.test.json deleted file mode 100644 index e46171ec..00000000 --- a/test/bipm/si/2019/derived/prefixed/hectolux/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectolux/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/hectonewton/v1.test.json b/test/bipm/si/2019/derived/prefixed/hectonewton/v1.test.json deleted file mode 100644 index fdc2a536..00000000 --- a/test/bipm/si/2019/derived/prefixed/hectonewton/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectonewton/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/hectoohm/v1.test.json b/test/bipm/si/2019/derived/prefixed/hectoohm/v1.test.json deleted file mode 100644 index 0ba77a10..00000000 --- a/test/bipm/si/2019/derived/prefixed/hectoohm/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectoohm/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/hectopascal/v1.test.json b/test/bipm/si/2019/derived/prefixed/hectopascal/v1.test.json deleted file mode 100644 index 7ad17f38..00000000 --- a/test/bipm/si/2019/derived/prefixed/hectopascal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectopascal/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/hectoradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/hectoradian/v1.test.json deleted file mode 100644 index fca6260c..00000000 --- a/test/bipm/si/2019/derived/prefixed/hectoradian/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectoradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/hectosiemens/v1.test.json b/test/bipm/si/2019/derived/prefixed/hectosiemens/v1.test.json deleted file mode 100644 index 52cfdb16..00000000 --- a/test/bipm/si/2019/derived/prefixed/hectosiemens/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectosiemens/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/hectosievert/v1.test.json b/test/bipm/si/2019/derived/prefixed/hectosievert/v1.test.json deleted file mode 100644 index 38a33ef6..00000000 --- a/test/bipm/si/2019/derived/prefixed/hectosievert/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectosievert/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/hectosteradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/hectosteradian/v1.test.json deleted file mode 100644 index 6b40106e..00000000 --- a/test/bipm/si/2019/derived/prefixed/hectosteradian/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectosteradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/hectotesla/v1.test.json b/test/bipm/si/2019/derived/prefixed/hectotesla/v1.test.json deleted file mode 100644 index 7f3d2acc..00000000 --- a/test/bipm/si/2019/derived/prefixed/hectotesla/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectotesla/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/hectovolt/v1.test.json b/test/bipm/si/2019/derived/prefixed/hectovolt/v1.test.json deleted file mode 100644 index 769f020c..00000000 --- a/test/bipm/si/2019/derived/prefixed/hectovolt/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectovolt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/hectowatt/v1.test.json b/test/bipm/si/2019/derived/prefixed/hectowatt/v1.test.json deleted file mode 100644 index a5b89b68..00000000 --- a/test/bipm/si/2019/derived/prefixed/hectowatt/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectowatt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/hectoweber/v1.test.json b/test/bipm/si/2019/derived/prefixed/hectoweber/v1.test.json deleted file mode 100644 index 20b1d9f5..00000000 --- a/test/bipm/si/2019/derived/prefixed/hectoweber/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectoweber/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/kilobecquerel/v1.test.json b/test/bipm/si/2019/derived/prefixed/kilobecquerel/v1.test.json deleted file mode 100644 index 5a524bd6..00000000 --- a/test/bipm/si/2019/derived/prefixed/kilobecquerel/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilobecquerel/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/kilocoulomb/v1.test.json b/test/bipm/si/2019/derived/prefixed/kilocoulomb/v1.test.json deleted file mode 100644 index 861469a2..00000000 --- a/test/bipm/si/2019/derived/prefixed/kilocoulomb/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilocoulomb/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/kilodegree-celsius/v1.test.json b/test/bipm/si/2019/derived/prefixed/kilodegree-celsius/v1.test.json deleted file mode 100644 index 06cae147..00000000 --- a/test/bipm/si/2019/derived/prefixed/kilodegree-celsius/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilodegree-celsius/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative within the scaled range", - "data": -0.136575, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Invalid - below the scaled absolute zero floor", - "valid": false, - "data": -0.27316 - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/kilofarad/v1.test.json b/test/bipm/si/2019/derived/prefixed/kilofarad/v1.test.json deleted file mode 100644 index 55b5da0f..00000000 --- a/test/bipm/si/2019/derived/prefixed/kilofarad/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilofarad/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/kilogray/v1.test.json b/test/bipm/si/2019/derived/prefixed/kilogray/v1.test.json deleted file mode 100644 index e48d4f80..00000000 --- a/test/bipm/si/2019/derived/prefixed/kilogray/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilogray/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/kilohenry/v1.test.json b/test/bipm/si/2019/derived/prefixed/kilohenry/v1.test.json deleted file mode 100644 index 24faa463..00000000 --- a/test/bipm/si/2019/derived/prefixed/kilohenry/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilohenry/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/kilohertz/v1.test.json b/test/bipm/si/2019/derived/prefixed/kilohertz/v1.test.json deleted file mode 100644 index e21f855d..00000000 --- a/test/bipm/si/2019/derived/prefixed/kilohertz/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilohertz/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/kilojoule/v1.test.json b/test/bipm/si/2019/derived/prefixed/kilojoule/v1.test.json deleted file mode 100644 index 0f8da6dd..00000000 --- a/test/bipm/si/2019/derived/prefixed/kilojoule/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilojoule/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/kilokatal/v1.test.json b/test/bipm/si/2019/derived/prefixed/kilokatal/v1.test.json deleted file mode 100644 index 1bd76d3f..00000000 --- a/test/bipm/si/2019/derived/prefixed/kilokatal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilokatal/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/kilolumen/v1.test.json b/test/bipm/si/2019/derived/prefixed/kilolumen/v1.test.json deleted file mode 100644 index f22e6bd9..00000000 --- a/test/bipm/si/2019/derived/prefixed/kilolumen/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilolumen/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/kilolux/v1.test.json b/test/bipm/si/2019/derived/prefixed/kilolux/v1.test.json deleted file mode 100644 index c99f3749..00000000 --- a/test/bipm/si/2019/derived/prefixed/kilolux/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilolux/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/kilonewton/v1.test.json b/test/bipm/si/2019/derived/prefixed/kilonewton/v1.test.json deleted file mode 100644 index 7f39264a..00000000 --- a/test/bipm/si/2019/derived/prefixed/kilonewton/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilonewton/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/kiloohm/v1.test.json b/test/bipm/si/2019/derived/prefixed/kiloohm/v1.test.json deleted file mode 100644 index 7713141f..00000000 --- a/test/bipm/si/2019/derived/prefixed/kiloohm/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/kiloohm/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/kilopascal/v1.test.json b/test/bipm/si/2019/derived/prefixed/kilopascal/v1.test.json deleted file mode 100644 index 23a9b549..00000000 --- a/test/bipm/si/2019/derived/prefixed/kilopascal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilopascal/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/kiloradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/kiloradian/v1.test.json deleted file mode 100644 index 6a57a291..00000000 --- a/test/bipm/si/2019/derived/prefixed/kiloradian/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/kiloradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/kilosiemens/v1.test.json b/test/bipm/si/2019/derived/prefixed/kilosiemens/v1.test.json deleted file mode 100644 index b06aca8d..00000000 --- a/test/bipm/si/2019/derived/prefixed/kilosiemens/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilosiemens/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/kilosievert/v1.test.json b/test/bipm/si/2019/derived/prefixed/kilosievert/v1.test.json deleted file mode 100644 index 553ad42a..00000000 --- a/test/bipm/si/2019/derived/prefixed/kilosievert/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilosievert/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/kilosteradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/kilosteradian/v1.test.json deleted file mode 100644 index d6c8dedf..00000000 --- a/test/bipm/si/2019/derived/prefixed/kilosteradian/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilosteradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/kilotesla/v1.test.json b/test/bipm/si/2019/derived/prefixed/kilotesla/v1.test.json deleted file mode 100644 index 37d79255..00000000 --- a/test/bipm/si/2019/derived/prefixed/kilotesla/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilotesla/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/kilovolt/v1.test.json b/test/bipm/si/2019/derived/prefixed/kilovolt/v1.test.json deleted file mode 100644 index 856c2c3b..00000000 --- a/test/bipm/si/2019/derived/prefixed/kilovolt/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilovolt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/kilowatt/v1.test.json b/test/bipm/si/2019/derived/prefixed/kilowatt/v1.test.json deleted file mode 100644 index e74e5ec1..00000000 --- a/test/bipm/si/2019/derived/prefixed/kilowatt/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilowatt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/kiloweber/v1.test.json b/test/bipm/si/2019/derived/prefixed/kiloweber/v1.test.json deleted file mode 100644 index 61bafe85..00000000 --- a/test/bipm/si/2019/derived/prefixed/kiloweber/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/kiloweber/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/megabecquerel/v1.test.json b/test/bipm/si/2019/derived/prefixed/megabecquerel/v1.test.json deleted file mode 100644 index 177f0548..00000000 --- a/test/bipm/si/2019/derived/prefixed/megabecquerel/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/megabecquerel/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/megacoulomb/v1.test.json b/test/bipm/si/2019/derived/prefixed/megacoulomb/v1.test.json deleted file mode 100644 index d1e1bdee..00000000 --- a/test/bipm/si/2019/derived/prefixed/megacoulomb/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/megacoulomb/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/megadegree-celsius/v1.test.json b/test/bipm/si/2019/derived/prefixed/megadegree-celsius/v1.test.json deleted file mode 100644 index 04b5f636..00000000 --- a/test/bipm/si/2019/derived/prefixed/megadegree-celsius/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/megadegree-celsius/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative within the scaled range", - "data": -0.000136575, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/megafarad/v1.test.json b/test/bipm/si/2019/derived/prefixed/megafarad/v1.test.json deleted file mode 100644 index 9cf102b4..00000000 --- a/test/bipm/si/2019/derived/prefixed/megafarad/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/megafarad/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/megagray/v1.test.json b/test/bipm/si/2019/derived/prefixed/megagray/v1.test.json deleted file mode 100644 index efb00697..00000000 --- a/test/bipm/si/2019/derived/prefixed/megagray/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/megagray/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/megahenry/v1.test.json b/test/bipm/si/2019/derived/prefixed/megahenry/v1.test.json deleted file mode 100644 index caa8ccf5..00000000 --- a/test/bipm/si/2019/derived/prefixed/megahenry/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/megahenry/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/megahertz/v1.test.json b/test/bipm/si/2019/derived/prefixed/megahertz/v1.test.json deleted file mode 100644 index 05ee430c..00000000 --- a/test/bipm/si/2019/derived/prefixed/megahertz/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/megahertz/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/megajoule/v1.test.json b/test/bipm/si/2019/derived/prefixed/megajoule/v1.test.json deleted file mode 100644 index 0440d51b..00000000 --- a/test/bipm/si/2019/derived/prefixed/megajoule/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/megajoule/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/megakatal/v1.test.json b/test/bipm/si/2019/derived/prefixed/megakatal/v1.test.json deleted file mode 100644 index c9d8b861..00000000 --- a/test/bipm/si/2019/derived/prefixed/megakatal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/megakatal/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/megalumen/v1.test.json b/test/bipm/si/2019/derived/prefixed/megalumen/v1.test.json deleted file mode 100644 index 99cdb3e9..00000000 --- a/test/bipm/si/2019/derived/prefixed/megalumen/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/megalumen/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/megalux/v1.test.json b/test/bipm/si/2019/derived/prefixed/megalux/v1.test.json deleted file mode 100644 index 96d53a4c..00000000 --- a/test/bipm/si/2019/derived/prefixed/megalux/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/megalux/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/meganewton/v1.test.json b/test/bipm/si/2019/derived/prefixed/meganewton/v1.test.json deleted file mode 100644 index 60526b2d..00000000 --- a/test/bipm/si/2019/derived/prefixed/meganewton/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/meganewton/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/megaohm/v1.test.json b/test/bipm/si/2019/derived/prefixed/megaohm/v1.test.json deleted file mode 100644 index 2b4cf5bb..00000000 --- a/test/bipm/si/2019/derived/prefixed/megaohm/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/megaohm/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/megapascal/v1.test.json b/test/bipm/si/2019/derived/prefixed/megapascal/v1.test.json deleted file mode 100644 index adca40cc..00000000 --- a/test/bipm/si/2019/derived/prefixed/megapascal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/megapascal/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/megaradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/megaradian/v1.test.json deleted file mode 100644 index 443a1ddc..00000000 --- a/test/bipm/si/2019/derived/prefixed/megaradian/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/megaradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/megasiemens/v1.test.json b/test/bipm/si/2019/derived/prefixed/megasiemens/v1.test.json deleted file mode 100644 index 77bdb2f9..00000000 --- a/test/bipm/si/2019/derived/prefixed/megasiemens/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/megasiemens/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/megasievert/v1.test.json b/test/bipm/si/2019/derived/prefixed/megasievert/v1.test.json deleted file mode 100644 index 36fe61e2..00000000 --- a/test/bipm/si/2019/derived/prefixed/megasievert/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/megasievert/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/megasteradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/megasteradian/v1.test.json deleted file mode 100644 index e108256d..00000000 --- a/test/bipm/si/2019/derived/prefixed/megasteradian/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/megasteradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/megatesla/v1.test.json b/test/bipm/si/2019/derived/prefixed/megatesla/v1.test.json deleted file mode 100644 index ac4ec84c..00000000 --- a/test/bipm/si/2019/derived/prefixed/megatesla/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/megatesla/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/megavolt/v1.test.json b/test/bipm/si/2019/derived/prefixed/megavolt/v1.test.json deleted file mode 100644 index c70b5733..00000000 --- a/test/bipm/si/2019/derived/prefixed/megavolt/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/megavolt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/megawatt/v1.test.json b/test/bipm/si/2019/derived/prefixed/megawatt/v1.test.json deleted file mode 100644 index 20e6d688..00000000 --- a/test/bipm/si/2019/derived/prefixed/megawatt/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/megawatt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/megaweber/v1.test.json b/test/bipm/si/2019/derived/prefixed/megaweber/v1.test.json deleted file mode 100644 index b1d4ef4d..00000000 --- a/test/bipm/si/2019/derived/prefixed/megaweber/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/megaweber/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/microbecquerel/v1.test.json b/test/bipm/si/2019/derived/prefixed/microbecquerel/v1.test.json deleted file mode 100644 index 8342605a..00000000 --- a/test/bipm/si/2019/derived/prefixed/microbecquerel/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/microbecquerel/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/microcoulomb/v1.test.json b/test/bipm/si/2019/derived/prefixed/microcoulomb/v1.test.json deleted file mode 100644 index de2f31b8..00000000 --- a/test/bipm/si/2019/derived/prefixed/microcoulomb/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/microcoulomb/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/microdegree-celsius/v1.test.json b/test/bipm/si/2019/derived/prefixed/microdegree-celsius/v1.test.json deleted file mode 100644 index 1aeb1806..00000000 --- a/test/bipm/si/2019/derived/prefixed/microdegree-celsius/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/microdegree-celsius/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/microfarad/v1.test.json b/test/bipm/si/2019/derived/prefixed/microfarad/v1.test.json deleted file mode 100644 index a74843d4..00000000 --- a/test/bipm/si/2019/derived/prefixed/microfarad/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/microfarad/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/microgray/v1.test.json b/test/bipm/si/2019/derived/prefixed/microgray/v1.test.json deleted file mode 100644 index d5f4c8ea..00000000 --- a/test/bipm/si/2019/derived/prefixed/microgray/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/microgray/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/microhenry/v1.test.json b/test/bipm/si/2019/derived/prefixed/microhenry/v1.test.json deleted file mode 100644 index bf86e828..00000000 --- a/test/bipm/si/2019/derived/prefixed/microhenry/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/microhenry/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/microhertz/v1.test.json b/test/bipm/si/2019/derived/prefixed/microhertz/v1.test.json deleted file mode 100644 index 936d2f53..00000000 --- a/test/bipm/si/2019/derived/prefixed/microhertz/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/microhertz/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/microjoule/v1.test.json b/test/bipm/si/2019/derived/prefixed/microjoule/v1.test.json deleted file mode 100644 index 49d79ee0..00000000 --- a/test/bipm/si/2019/derived/prefixed/microjoule/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/microjoule/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/microkatal/v1.test.json b/test/bipm/si/2019/derived/prefixed/microkatal/v1.test.json deleted file mode 100644 index 13ec2f94..00000000 --- a/test/bipm/si/2019/derived/prefixed/microkatal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/microkatal/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/microlumen/v1.test.json b/test/bipm/si/2019/derived/prefixed/microlumen/v1.test.json deleted file mode 100644 index 76c65a7c..00000000 --- a/test/bipm/si/2019/derived/prefixed/microlumen/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/microlumen/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/microlux/v1.test.json b/test/bipm/si/2019/derived/prefixed/microlux/v1.test.json deleted file mode 100644 index 8d52ec35..00000000 --- a/test/bipm/si/2019/derived/prefixed/microlux/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/microlux/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/micronewton/v1.test.json b/test/bipm/si/2019/derived/prefixed/micronewton/v1.test.json deleted file mode 100644 index 0dd7d282..00000000 --- a/test/bipm/si/2019/derived/prefixed/micronewton/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/micronewton/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/microohm/v1.test.json b/test/bipm/si/2019/derived/prefixed/microohm/v1.test.json deleted file mode 100644 index a81c432f..00000000 --- a/test/bipm/si/2019/derived/prefixed/microohm/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/microohm/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/micropascal/v1.test.json b/test/bipm/si/2019/derived/prefixed/micropascal/v1.test.json deleted file mode 100644 index f0b66db3..00000000 --- a/test/bipm/si/2019/derived/prefixed/micropascal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/micropascal/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/microradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/microradian/v1.test.json deleted file mode 100644 index 6ea816c2..00000000 --- a/test/bipm/si/2019/derived/prefixed/microradian/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/microradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/microsiemens/v1.test.json b/test/bipm/si/2019/derived/prefixed/microsiemens/v1.test.json deleted file mode 100644 index beb9cd0b..00000000 --- a/test/bipm/si/2019/derived/prefixed/microsiemens/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/microsiemens/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/microsievert/v1.test.json b/test/bipm/si/2019/derived/prefixed/microsievert/v1.test.json deleted file mode 100644 index 9f87d2bf..00000000 --- a/test/bipm/si/2019/derived/prefixed/microsievert/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/microsievert/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/microsteradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/microsteradian/v1.test.json deleted file mode 100644 index fd161cd1..00000000 --- a/test/bipm/si/2019/derived/prefixed/microsteradian/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/microsteradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/microtesla/v1.test.json b/test/bipm/si/2019/derived/prefixed/microtesla/v1.test.json deleted file mode 100644 index 1b2c28a4..00000000 --- a/test/bipm/si/2019/derived/prefixed/microtesla/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/microtesla/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/microvolt/v1.test.json b/test/bipm/si/2019/derived/prefixed/microvolt/v1.test.json deleted file mode 100644 index ae325eb6..00000000 --- a/test/bipm/si/2019/derived/prefixed/microvolt/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/microvolt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/microwatt/v1.test.json b/test/bipm/si/2019/derived/prefixed/microwatt/v1.test.json deleted file mode 100644 index 00321825..00000000 --- a/test/bipm/si/2019/derived/prefixed/microwatt/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/microwatt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/microweber/v1.test.json b/test/bipm/si/2019/derived/prefixed/microweber/v1.test.json deleted file mode 100644 index 8664e655..00000000 --- a/test/bipm/si/2019/derived/prefixed/microweber/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/microweber/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/millibecquerel/v1.test.json b/test/bipm/si/2019/derived/prefixed/millibecquerel/v1.test.json deleted file mode 100644 index b6ca71b1..00000000 --- a/test/bipm/si/2019/derived/prefixed/millibecquerel/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/millibecquerel/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/millicoulomb/v1.test.json b/test/bipm/si/2019/derived/prefixed/millicoulomb/v1.test.json deleted file mode 100644 index 2f0a7226..00000000 --- a/test/bipm/si/2019/derived/prefixed/millicoulomb/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/millicoulomb/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/millidegree-celsius/v1.test.json b/test/bipm/si/2019/derived/prefixed/millidegree-celsius/v1.test.json deleted file mode 100644 index e2341d39..00000000 --- a/test/bipm/si/2019/derived/prefixed/millidegree-celsius/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/millidegree-celsius/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Invalid - below the scaled absolute zero floor", - "valid": false, - "data": -273151 - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/millifarad/v1.test.json b/test/bipm/si/2019/derived/prefixed/millifarad/v1.test.json deleted file mode 100644 index 22046d03..00000000 --- a/test/bipm/si/2019/derived/prefixed/millifarad/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/millifarad/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/milligray/v1.test.json b/test/bipm/si/2019/derived/prefixed/milligray/v1.test.json deleted file mode 100644 index 5024a43a..00000000 --- a/test/bipm/si/2019/derived/prefixed/milligray/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/milligray/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/millihenry/v1.test.json b/test/bipm/si/2019/derived/prefixed/millihenry/v1.test.json deleted file mode 100644 index 4cc63856..00000000 --- a/test/bipm/si/2019/derived/prefixed/millihenry/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/millihenry/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/millihertz/v1.test.json b/test/bipm/si/2019/derived/prefixed/millihertz/v1.test.json deleted file mode 100644 index 212e2ea8..00000000 --- a/test/bipm/si/2019/derived/prefixed/millihertz/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/millihertz/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/millijoule/v1.test.json b/test/bipm/si/2019/derived/prefixed/millijoule/v1.test.json deleted file mode 100644 index 2133b8d9..00000000 --- a/test/bipm/si/2019/derived/prefixed/millijoule/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/millijoule/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/millikatal/v1.test.json b/test/bipm/si/2019/derived/prefixed/millikatal/v1.test.json deleted file mode 100644 index ec99f6a0..00000000 --- a/test/bipm/si/2019/derived/prefixed/millikatal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/millikatal/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/millilumen/v1.test.json b/test/bipm/si/2019/derived/prefixed/millilumen/v1.test.json deleted file mode 100644 index a66e14f2..00000000 --- a/test/bipm/si/2019/derived/prefixed/millilumen/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/millilumen/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/millilux/v1.test.json b/test/bipm/si/2019/derived/prefixed/millilux/v1.test.json deleted file mode 100644 index 6d282150..00000000 --- a/test/bipm/si/2019/derived/prefixed/millilux/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/millilux/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/millinewton/v1.test.json b/test/bipm/si/2019/derived/prefixed/millinewton/v1.test.json deleted file mode 100644 index f1237436..00000000 --- a/test/bipm/si/2019/derived/prefixed/millinewton/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/millinewton/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/milliohm/v1.test.json b/test/bipm/si/2019/derived/prefixed/milliohm/v1.test.json deleted file mode 100644 index dbb81be3..00000000 --- a/test/bipm/si/2019/derived/prefixed/milliohm/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/milliohm/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/millipascal/v1.test.json b/test/bipm/si/2019/derived/prefixed/millipascal/v1.test.json deleted file mode 100644 index d9b47af9..00000000 --- a/test/bipm/si/2019/derived/prefixed/millipascal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/millipascal/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/milliradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/milliradian/v1.test.json deleted file mode 100644 index c9a7f857..00000000 --- a/test/bipm/si/2019/derived/prefixed/milliradian/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/milliradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/millisiemens/v1.test.json b/test/bipm/si/2019/derived/prefixed/millisiemens/v1.test.json deleted file mode 100644 index 4786ff70..00000000 --- a/test/bipm/si/2019/derived/prefixed/millisiemens/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/millisiemens/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/millisievert/v1.test.json b/test/bipm/si/2019/derived/prefixed/millisievert/v1.test.json deleted file mode 100644 index aef86a35..00000000 --- a/test/bipm/si/2019/derived/prefixed/millisievert/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/millisievert/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/millisteradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/millisteradian/v1.test.json deleted file mode 100644 index ad00d70c..00000000 --- a/test/bipm/si/2019/derived/prefixed/millisteradian/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/millisteradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/millitesla/v1.test.json b/test/bipm/si/2019/derived/prefixed/millitesla/v1.test.json deleted file mode 100644 index 086145e7..00000000 --- a/test/bipm/si/2019/derived/prefixed/millitesla/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/millitesla/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/millivolt/v1.test.json b/test/bipm/si/2019/derived/prefixed/millivolt/v1.test.json deleted file mode 100644 index a73dc072..00000000 --- a/test/bipm/si/2019/derived/prefixed/millivolt/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/millivolt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/milliwatt/v1.test.json b/test/bipm/si/2019/derived/prefixed/milliwatt/v1.test.json deleted file mode 100644 index a375048b..00000000 --- a/test/bipm/si/2019/derived/prefixed/milliwatt/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/milliwatt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/milliweber/v1.test.json b/test/bipm/si/2019/derived/prefixed/milliweber/v1.test.json deleted file mode 100644 index 02d409da..00000000 --- a/test/bipm/si/2019/derived/prefixed/milliweber/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/milliweber/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/nanobecquerel/v1.test.json b/test/bipm/si/2019/derived/prefixed/nanobecquerel/v1.test.json deleted file mode 100644 index a9029cbf..00000000 --- a/test/bipm/si/2019/derived/prefixed/nanobecquerel/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanobecquerel/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/nanocoulomb/v1.test.json b/test/bipm/si/2019/derived/prefixed/nanocoulomb/v1.test.json deleted file mode 100644 index 6c2c165a..00000000 --- a/test/bipm/si/2019/derived/prefixed/nanocoulomb/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanocoulomb/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/nanodegree-celsius/v1.test.json b/test/bipm/si/2019/derived/prefixed/nanodegree-celsius/v1.test.json deleted file mode 100644 index 675ebd9e..00000000 --- a/test/bipm/si/2019/derived/prefixed/nanodegree-celsius/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanodegree-celsius/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/nanofarad/v1.test.json b/test/bipm/si/2019/derived/prefixed/nanofarad/v1.test.json deleted file mode 100644 index 5b17e030..00000000 --- a/test/bipm/si/2019/derived/prefixed/nanofarad/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanofarad/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/nanogray/v1.test.json b/test/bipm/si/2019/derived/prefixed/nanogray/v1.test.json deleted file mode 100644 index 3456830d..00000000 --- a/test/bipm/si/2019/derived/prefixed/nanogray/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanogray/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/nanohenry/v1.test.json b/test/bipm/si/2019/derived/prefixed/nanohenry/v1.test.json deleted file mode 100644 index b143edba..00000000 --- a/test/bipm/si/2019/derived/prefixed/nanohenry/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanohenry/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/nanohertz/v1.test.json b/test/bipm/si/2019/derived/prefixed/nanohertz/v1.test.json deleted file mode 100644 index b65085a2..00000000 --- a/test/bipm/si/2019/derived/prefixed/nanohertz/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanohertz/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/nanojoule/v1.test.json b/test/bipm/si/2019/derived/prefixed/nanojoule/v1.test.json deleted file mode 100644 index 664d6869..00000000 --- a/test/bipm/si/2019/derived/prefixed/nanojoule/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanojoule/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/nanokatal/v1.test.json b/test/bipm/si/2019/derived/prefixed/nanokatal/v1.test.json deleted file mode 100644 index 022f9235..00000000 --- a/test/bipm/si/2019/derived/prefixed/nanokatal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanokatal/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/nanolumen/v1.test.json b/test/bipm/si/2019/derived/prefixed/nanolumen/v1.test.json deleted file mode 100644 index d3c1c219..00000000 --- a/test/bipm/si/2019/derived/prefixed/nanolumen/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanolumen/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/nanolux/v1.test.json b/test/bipm/si/2019/derived/prefixed/nanolux/v1.test.json deleted file mode 100644 index 586b3faa..00000000 --- a/test/bipm/si/2019/derived/prefixed/nanolux/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanolux/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/nanonewton/v1.test.json b/test/bipm/si/2019/derived/prefixed/nanonewton/v1.test.json deleted file mode 100644 index 4cac41e6..00000000 --- a/test/bipm/si/2019/derived/prefixed/nanonewton/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanonewton/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/nanoohm/v1.test.json b/test/bipm/si/2019/derived/prefixed/nanoohm/v1.test.json deleted file mode 100644 index c2d12c9d..00000000 --- a/test/bipm/si/2019/derived/prefixed/nanoohm/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanoohm/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/nanopascal/v1.test.json b/test/bipm/si/2019/derived/prefixed/nanopascal/v1.test.json deleted file mode 100644 index f1fd3d55..00000000 --- a/test/bipm/si/2019/derived/prefixed/nanopascal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanopascal/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/nanoradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/nanoradian/v1.test.json deleted file mode 100644 index 3d6348ca..00000000 --- a/test/bipm/si/2019/derived/prefixed/nanoradian/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanoradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/nanosiemens/v1.test.json b/test/bipm/si/2019/derived/prefixed/nanosiemens/v1.test.json deleted file mode 100644 index 87eff0a7..00000000 --- a/test/bipm/si/2019/derived/prefixed/nanosiemens/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanosiemens/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/nanosievert/v1.test.json b/test/bipm/si/2019/derived/prefixed/nanosievert/v1.test.json deleted file mode 100644 index 67aa4abd..00000000 --- a/test/bipm/si/2019/derived/prefixed/nanosievert/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanosievert/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/nanosteradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/nanosteradian/v1.test.json deleted file mode 100644 index d1798263..00000000 --- a/test/bipm/si/2019/derived/prefixed/nanosteradian/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanosteradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/nanotesla/v1.test.json b/test/bipm/si/2019/derived/prefixed/nanotesla/v1.test.json deleted file mode 100644 index ac83a2a7..00000000 --- a/test/bipm/si/2019/derived/prefixed/nanotesla/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanotesla/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/nanovolt/v1.test.json b/test/bipm/si/2019/derived/prefixed/nanovolt/v1.test.json deleted file mode 100644 index 05db743c..00000000 --- a/test/bipm/si/2019/derived/prefixed/nanovolt/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanovolt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/nanowatt/v1.test.json b/test/bipm/si/2019/derived/prefixed/nanowatt/v1.test.json deleted file mode 100644 index 51273f28..00000000 --- a/test/bipm/si/2019/derived/prefixed/nanowatt/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanowatt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/nanoweber/v1.test.json b/test/bipm/si/2019/derived/prefixed/nanoweber/v1.test.json deleted file mode 100644 index d58c3a39..00000000 --- a/test/bipm/si/2019/derived/prefixed/nanoweber/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanoweber/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/petabecquerel/v1.test.json b/test/bipm/si/2019/derived/prefixed/petabecquerel/v1.test.json deleted file mode 100644 index 332bb0b6..00000000 --- a/test/bipm/si/2019/derived/prefixed/petabecquerel/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/petabecquerel/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/petacoulomb/v1.test.json b/test/bipm/si/2019/derived/prefixed/petacoulomb/v1.test.json deleted file mode 100644 index 8be0f9fe..00000000 --- a/test/bipm/si/2019/derived/prefixed/petacoulomb/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/petacoulomb/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/petadegree-celsius/v1.test.json b/test/bipm/si/2019/derived/prefixed/petadegree-celsius/v1.test.json deleted file mode 100644 index f2dc05b3..00000000 --- a/test/bipm/si/2019/derived/prefixed/petadegree-celsius/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/petadegree-celsius/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative within the scaled range", - "data": -1.36575e-13, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/petafarad/v1.test.json b/test/bipm/si/2019/derived/prefixed/petafarad/v1.test.json deleted file mode 100644 index 4d81d0be..00000000 --- a/test/bipm/si/2019/derived/prefixed/petafarad/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/petafarad/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/petagray/v1.test.json b/test/bipm/si/2019/derived/prefixed/petagray/v1.test.json deleted file mode 100644 index d10bcfd2..00000000 --- a/test/bipm/si/2019/derived/prefixed/petagray/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/petagray/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/petahenry/v1.test.json b/test/bipm/si/2019/derived/prefixed/petahenry/v1.test.json deleted file mode 100644 index 083a5fb5..00000000 --- a/test/bipm/si/2019/derived/prefixed/petahenry/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/petahenry/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/petahertz/v1.test.json b/test/bipm/si/2019/derived/prefixed/petahertz/v1.test.json deleted file mode 100644 index 32c12f87..00000000 --- a/test/bipm/si/2019/derived/prefixed/petahertz/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/petahertz/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/petajoule/v1.test.json b/test/bipm/si/2019/derived/prefixed/petajoule/v1.test.json deleted file mode 100644 index b5d9bc9e..00000000 --- a/test/bipm/si/2019/derived/prefixed/petajoule/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/petajoule/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/petakatal/v1.test.json b/test/bipm/si/2019/derived/prefixed/petakatal/v1.test.json deleted file mode 100644 index bd86107c..00000000 --- a/test/bipm/si/2019/derived/prefixed/petakatal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/petakatal/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/petalumen/v1.test.json b/test/bipm/si/2019/derived/prefixed/petalumen/v1.test.json deleted file mode 100644 index f8641c00..00000000 --- a/test/bipm/si/2019/derived/prefixed/petalumen/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/petalumen/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/petalux/v1.test.json b/test/bipm/si/2019/derived/prefixed/petalux/v1.test.json deleted file mode 100644 index f63bea45..00000000 --- a/test/bipm/si/2019/derived/prefixed/petalux/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/petalux/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/petanewton/v1.test.json b/test/bipm/si/2019/derived/prefixed/petanewton/v1.test.json deleted file mode 100644 index 1739c5d8..00000000 --- a/test/bipm/si/2019/derived/prefixed/petanewton/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/petanewton/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/petaohm/v1.test.json b/test/bipm/si/2019/derived/prefixed/petaohm/v1.test.json deleted file mode 100644 index 7715de78..00000000 --- a/test/bipm/si/2019/derived/prefixed/petaohm/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/petaohm/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/petapascal/v1.test.json b/test/bipm/si/2019/derived/prefixed/petapascal/v1.test.json deleted file mode 100644 index 507df585..00000000 --- a/test/bipm/si/2019/derived/prefixed/petapascal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/petapascal/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/petaradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/petaradian/v1.test.json deleted file mode 100644 index 375ded0d..00000000 --- a/test/bipm/si/2019/derived/prefixed/petaradian/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/petaradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/petasiemens/v1.test.json b/test/bipm/si/2019/derived/prefixed/petasiemens/v1.test.json deleted file mode 100644 index a8b075be..00000000 --- a/test/bipm/si/2019/derived/prefixed/petasiemens/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/petasiemens/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/petasievert/v1.test.json b/test/bipm/si/2019/derived/prefixed/petasievert/v1.test.json deleted file mode 100644 index 79acf68c..00000000 --- a/test/bipm/si/2019/derived/prefixed/petasievert/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/petasievert/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/petasteradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/petasteradian/v1.test.json deleted file mode 100644 index eac0b70b..00000000 --- a/test/bipm/si/2019/derived/prefixed/petasteradian/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/petasteradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/petatesla/v1.test.json b/test/bipm/si/2019/derived/prefixed/petatesla/v1.test.json deleted file mode 100644 index 2a5d862c..00000000 --- a/test/bipm/si/2019/derived/prefixed/petatesla/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/petatesla/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/petavolt/v1.test.json b/test/bipm/si/2019/derived/prefixed/petavolt/v1.test.json deleted file mode 100644 index c4594687..00000000 --- a/test/bipm/si/2019/derived/prefixed/petavolt/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/petavolt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/petawatt/v1.test.json b/test/bipm/si/2019/derived/prefixed/petawatt/v1.test.json deleted file mode 100644 index df406b9c..00000000 --- a/test/bipm/si/2019/derived/prefixed/petawatt/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/petawatt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/petaweber/v1.test.json b/test/bipm/si/2019/derived/prefixed/petaweber/v1.test.json deleted file mode 100644 index 8d215387..00000000 --- a/test/bipm/si/2019/derived/prefixed/petaweber/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/petaweber/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/picobecquerel/v1.test.json b/test/bipm/si/2019/derived/prefixed/picobecquerel/v1.test.json deleted file mode 100644 index df32b431..00000000 --- a/test/bipm/si/2019/derived/prefixed/picobecquerel/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/picobecquerel/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/picocoulomb/v1.test.json b/test/bipm/si/2019/derived/prefixed/picocoulomb/v1.test.json deleted file mode 100644 index 7ba06e91..00000000 --- a/test/bipm/si/2019/derived/prefixed/picocoulomb/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/picocoulomb/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/picodegree-celsius/v1.test.json b/test/bipm/si/2019/derived/prefixed/picodegree-celsius/v1.test.json deleted file mode 100644 index 21370316..00000000 --- a/test/bipm/si/2019/derived/prefixed/picodegree-celsius/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/picodegree-celsius/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/picofarad/v1.test.json b/test/bipm/si/2019/derived/prefixed/picofarad/v1.test.json deleted file mode 100644 index a33eb9b9..00000000 --- a/test/bipm/si/2019/derived/prefixed/picofarad/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/picofarad/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/picogray/v1.test.json b/test/bipm/si/2019/derived/prefixed/picogray/v1.test.json deleted file mode 100644 index d96b61d0..00000000 --- a/test/bipm/si/2019/derived/prefixed/picogray/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/picogray/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/picohenry/v1.test.json b/test/bipm/si/2019/derived/prefixed/picohenry/v1.test.json deleted file mode 100644 index 21c2c1f0..00000000 --- a/test/bipm/si/2019/derived/prefixed/picohenry/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/picohenry/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/picohertz/v1.test.json b/test/bipm/si/2019/derived/prefixed/picohertz/v1.test.json deleted file mode 100644 index d80a56ec..00000000 --- a/test/bipm/si/2019/derived/prefixed/picohertz/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/picohertz/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/picojoule/v1.test.json b/test/bipm/si/2019/derived/prefixed/picojoule/v1.test.json deleted file mode 100644 index 6907b1e3..00000000 --- a/test/bipm/si/2019/derived/prefixed/picojoule/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/picojoule/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/picokatal/v1.test.json b/test/bipm/si/2019/derived/prefixed/picokatal/v1.test.json deleted file mode 100644 index 90ad5ec1..00000000 --- a/test/bipm/si/2019/derived/prefixed/picokatal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/picokatal/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/picolumen/v1.test.json b/test/bipm/si/2019/derived/prefixed/picolumen/v1.test.json deleted file mode 100644 index aacc0a68..00000000 --- a/test/bipm/si/2019/derived/prefixed/picolumen/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/picolumen/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/picolux/v1.test.json b/test/bipm/si/2019/derived/prefixed/picolux/v1.test.json deleted file mode 100644 index 1caa840b..00000000 --- a/test/bipm/si/2019/derived/prefixed/picolux/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/picolux/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/piconewton/v1.test.json b/test/bipm/si/2019/derived/prefixed/piconewton/v1.test.json deleted file mode 100644 index 7dbf6df2..00000000 --- a/test/bipm/si/2019/derived/prefixed/piconewton/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/piconewton/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/picoohm/v1.test.json b/test/bipm/si/2019/derived/prefixed/picoohm/v1.test.json deleted file mode 100644 index c403b093..00000000 --- a/test/bipm/si/2019/derived/prefixed/picoohm/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/picoohm/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/picopascal/v1.test.json b/test/bipm/si/2019/derived/prefixed/picopascal/v1.test.json deleted file mode 100644 index 6d450739..00000000 --- a/test/bipm/si/2019/derived/prefixed/picopascal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/picopascal/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/picoradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/picoradian/v1.test.json deleted file mode 100644 index ca8e9a33..00000000 --- a/test/bipm/si/2019/derived/prefixed/picoradian/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/picoradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/picosiemens/v1.test.json b/test/bipm/si/2019/derived/prefixed/picosiemens/v1.test.json deleted file mode 100644 index ec6d146a..00000000 --- a/test/bipm/si/2019/derived/prefixed/picosiemens/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/picosiemens/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/picosievert/v1.test.json b/test/bipm/si/2019/derived/prefixed/picosievert/v1.test.json deleted file mode 100644 index 31899f71..00000000 --- a/test/bipm/si/2019/derived/prefixed/picosievert/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/picosievert/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/picosteradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/picosteradian/v1.test.json deleted file mode 100644 index b5b0a7a4..00000000 --- a/test/bipm/si/2019/derived/prefixed/picosteradian/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/picosteradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/picotesla/v1.test.json b/test/bipm/si/2019/derived/prefixed/picotesla/v1.test.json deleted file mode 100644 index 7f9eefb1..00000000 --- a/test/bipm/si/2019/derived/prefixed/picotesla/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/picotesla/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/picovolt/v1.test.json b/test/bipm/si/2019/derived/prefixed/picovolt/v1.test.json deleted file mode 100644 index cbb2571f..00000000 --- a/test/bipm/si/2019/derived/prefixed/picovolt/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/picovolt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/picowatt/v1.test.json b/test/bipm/si/2019/derived/prefixed/picowatt/v1.test.json deleted file mode 100644 index c5ae43e5..00000000 --- a/test/bipm/si/2019/derived/prefixed/picowatt/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/picowatt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/picoweber/v1.test.json b/test/bipm/si/2019/derived/prefixed/picoweber/v1.test.json deleted file mode 100644 index 8ad529e3..00000000 --- a/test/bipm/si/2019/derived/prefixed/picoweber/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/picoweber/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quectobecquerel/v1.test.json b/test/bipm/si/2019/derived/prefixed/quectobecquerel/v1.test.json deleted file mode 100644 index cd71505f..00000000 --- a/test/bipm/si/2019/derived/prefixed/quectobecquerel/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectobecquerel/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quectocoulomb/v1.test.json b/test/bipm/si/2019/derived/prefixed/quectocoulomb/v1.test.json deleted file mode 100644 index 13c76273..00000000 --- a/test/bipm/si/2019/derived/prefixed/quectocoulomb/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectocoulomb/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quectodegree-celsius/v1.test.json b/test/bipm/si/2019/derived/prefixed/quectodegree-celsius/v1.test.json deleted file mode 100644 index ea42408c..00000000 --- a/test/bipm/si/2019/derived/prefixed/quectodegree-celsius/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectodegree-celsius/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quectofarad/v1.test.json b/test/bipm/si/2019/derived/prefixed/quectofarad/v1.test.json deleted file mode 100644 index 5f250c48..00000000 --- a/test/bipm/si/2019/derived/prefixed/quectofarad/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectofarad/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quectogray/v1.test.json b/test/bipm/si/2019/derived/prefixed/quectogray/v1.test.json deleted file mode 100644 index 8f49e913..00000000 --- a/test/bipm/si/2019/derived/prefixed/quectogray/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectogray/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quectohenry/v1.test.json b/test/bipm/si/2019/derived/prefixed/quectohenry/v1.test.json deleted file mode 100644 index 51575f68..00000000 --- a/test/bipm/si/2019/derived/prefixed/quectohenry/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectohenry/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quectohertz/v1.test.json b/test/bipm/si/2019/derived/prefixed/quectohertz/v1.test.json deleted file mode 100644 index 3a7680e8..00000000 --- a/test/bipm/si/2019/derived/prefixed/quectohertz/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectohertz/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quectojoule/v1.test.json b/test/bipm/si/2019/derived/prefixed/quectojoule/v1.test.json deleted file mode 100644 index 013ca556..00000000 --- a/test/bipm/si/2019/derived/prefixed/quectojoule/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectojoule/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quectokatal/v1.test.json b/test/bipm/si/2019/derived/prefixed/quectokatal/v1.test.json deleted file mode 100644 index 67de422e..00000000 --- a/test/bipm/si/2019/derived/prefixed/quectokatal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectokatal/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quectolumen/v1.test.json b/test/bipm/si/2019/derived/prefixed/quectolumen/v1.test.json deleted file mode 100644 index 984f00f6..00000000 --- a/test/bipm/si/2019/derived/prefixed/quectolumen/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectolumen/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quectolux/v1.test.json b/test/bipm/si/2019/derived/prefixed/quectolux/v1.test.json deleted file mode 100644 index c41192f5..00000000 --- a/test/bipm/si/2019/derived/prefixed/quectolux/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectolux/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quectonewton/v1.test.json b/test/bipm/si/2019/derived/prefixed/quectonewton/v1.test.json deleted file mode 100644 index 3fb2039d..00000000 --- a/test/bipm/si/2019/derived/prefixed/quectonewton/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectonewton/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quectoohm/v1.test.json b/test/bipm/si/2019/derived/prefixed/quectoohm/v1.test.json deleted file mode 100644 index 708b643e..00000000 --- a/test/bipm/si/2019/derived/prefixed/quectoohm/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectoohm/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quectopascal/v1.test.json b/test/bipm/si/2019/derived/prefixed/quectopascal/v1.test.json deleted file mode 100644 index 32e85acc..00000000 --- a/test/bipm/si/2019/derived/prefixed/quectopascal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectopascal/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quectoradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/quectoradian/v1.test.json deleted file mode 100644 index 6322837e..00000000 --- a/test/bipm/si/2019/derived/prefixed/quectoradian/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectoradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quectosiemens/v1.test.json b/test/bipm/si/2019/derived/prefixed/quectosiemens/v1.test.json deleted file mode 100644 index 9561154d..00000000 --- a/test/bipm/si/2019/derived/prefixed/quectosiemens/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectosiemens/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quectosievert/v1.test.json b/test/bipm/si/2019/derived/prefixed/quectosievert/v1.test.json deleted file mode 100644 index 4d9ee08a..00000000 --- a/test/bipm/si/2019/derived/prefixed/quectosievert/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectosievert/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quectosteradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/quectosteradian/v1.test.json deleted file mode 100644 index 3a3938a3..00000000 --- a/test/bipm/si/2019/derived/prefixed/quectosteradian/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectosteradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quectotesla/v1.test.json b/test/bipm/si/2019/derived/prefixed/quectotesla/v1.test.json deleted file mode 100644 index 597242d0..00000000 --- a/test/bipm/si/2019/derived/prefixed/quectotesla/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectotesla/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quectovolt/v1.test.json b/test/bipm/si/2019/derived/prefixed/quectovolt/v1.test.json deleted file mode 100644 index ccbeacfd..00000000 --- a/test/bipm/si/2019/derived/prefixed/quectovolt/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectovolt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quectowatt/v1.test.json b/test/bipm/si/2019/derived/prefixed/quectowatt/v1.test.json deleted file mode 100644 index 1f812ccf..00000000 --- a/test/bipm/si/2019/derived/prefixed/quectowatt/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectowatt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quectoweber/v1.test.json b/test/bipm/si/2019/derived/prefixed/quectoweber/v1.test.json deleted file mode 100644 index d9bf6cb9..00000000 --- a/test/bipm/si/2019/derived/prefixed/quectoweber/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectoweber/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quettabecquerel/v1.test.json b/test/bipm/si/2019/derived/prefixed/quettabecquerel/v1.test.json deleted file mode 100644 index 5ba3e2c8..00000000 --- a/test/bipm/si/2019/derived/prefixed/quettabecquerel/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettabecquerel/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quettacoulomb/v1.test.json b/test/bipm/si/2019/derived/prefixed/quettacoulomb/v1.test.json deleted file mode 100644 index 11d2010d..00000000 --- a/test/bipm/si/2019/derived/prefixed/quettacoulomb/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettacoulomb/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quettadegree-celsius/v1.test.json b/test/bipm/si/2019/derived/prefixed/quettadegree-celsius/v1.test.json deleted file mode 100644 index 04c85431..00000000 --- a/test/bipm/si/2019/derived/prefixed/quettadegree-celsius/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettadegree-celsius/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative within the scaled range", - "data": -1.36575e-28, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quettafarad/v1.test.json b/test/bipm/si/2019/derived/prefixed/quettafarad/v1.test.json deleted file mode 100644 index 86f3a9bb..00000000 --- a/test/bipm/si/2019/derived/prefixed/quettafarad/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettafarad/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quettagray/v1.test.json b/test/bipm/si/2019/derived/prefixed/quettagray/v1.test.json deleted file mode 100644 index 29ec1f19..00000000 --- a/test/bipm/si/2019/derived/prefixed/quettagray/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettagray/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quettahenry/v1.test.json b/test/bipm/si/2019/derived/prefixed/quettahenry/v1.test.json deleted file mode 100644 index 595cc3be..00000000 --- a/test/bipm/si/2019/derived/prefixed/quettahenry/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettahenry/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quettahertz/v1.test.json b/test/bipm/si/2019/derived/prefixed/quettahertz/v1.test.json deleted file mode 100644 index 12c6a159..00000000 --- a/test/bipm/si/2019/derived/prefixed/quettahertz/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettahertz/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quettajoule/v1.test.json b/test/bipm/si/2019/derived/prefixed/quettajoule/v1.test.json deleted file mode 100644 index 3012b5f2..00000000 --- a/test/bipm/si/2019/derived/prefixed/quettajoule/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettajoule/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quettakatal/v1.test.json b/test/bipm/si/2019/derived/prefixed/quettakatal/v1.test.json deleted file mode 100644 index fc3a6b6c..00000000 --- a/test/bipm/si/2019/derived/prefixed/quettakatal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettakatal/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quettalumen/v1.test.json b/test/bipm/si/2019/derived/prefixed/quettalumen/v1.test.json deleted file mode 100644 index 2c1c6294..00000000 --- a/test/bipm/si/2019/derived/prefixed/quettalumen/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettalumen/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quettalux/v1.test.json b/test/bipm/si/2019/derived/prefixed/quettalux/v1.test.json deleted file mode 100644 index 3d072ed5..00000000 --- a/test/bipm/si/2019/derived/prefixed/quettalux/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettalux/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quettanewton/v1.test.json b/test/bipm/si/2019/derived/prefixed/quettanewton/v1.test.json deleted file mode 100644 index 729daf1c..00000000 --- a/test/bipm/si/2019/derived/prefixed/quettanewton/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettanewton/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quettaohm/v1.test.json b/test/bipm/si/2019/derived/prefixed/quettaohm/v1.test.json deleted file mode 100644 index 0ac30c34..00000000 --- a/test/bipm/si/2019/derived/prefixed/quettaohm/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettaohm/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quettapascal/v1.test.json b/test/bipm/si/2019/derived/prefixed/quettapascal/v1.test.json deleted file mode 100644 index 42780256..00000000 --- a/test/bipm/si/2019/derived/prefixed/quettapascal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettapascal/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quettaradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/quettaradian/v1.test.json deleted file mode 100644 index ec75e482..00000000 --- a/test/bipm/si/2019/derived/prefixed/quettaradian/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettaradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quettasiemens/v1.test.json b/test/bipm/si/2019/derived/prefixed/quettasiemens/v1.test.json deleted file mode 100644 index f946aa4c..00000000 --- a/test/bipm/si/2019/derived/prefixed/quettasiemens/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettasiemens/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quettasievert/v1.test.json b/test/bipm/si/2019/derived/prefixed/quettasievert/v1.test.json deleted file mode 100644 index e3bff846..00000000 --- a/test/bipm/si/2019/derived/prefixed/quettasievert/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettasievert/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quettasteradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/quettasteradian/v1.test.json deleted file mode 100644 index 1f240b10..00000000 --- a/test/bipm/si/2019/derived/prefixed/quettasteradian/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettasteradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quettatesla/v1.test.json b/test/bipm/si/2019/derived/prefixed/quettatesla/v1.test.json deleted file mode 100644 index fc677eb5..00000000 --- a/test/bipm/si/2019/derived/prefixed/quettatesla/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettatesla/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quettavolt/v1.test.json b/test/bipm/si/2019/derived/prefixed/quettavolt/v1.test.json deleted file mode 100644 index 9d1c6ce6..00000000 --- a/test/bipm/si/2019/derived/prefixed/quettavolt/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettavolt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quettawatt/v1.test.json b/test/bipm/si/2019/derived/prefixed/quettawatt/v1.test.json deleted file mode 100644 index 1c846024..00000000 --- a/test/bipm/si/2019/derived/prefixed/quettawatt/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettawatt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/quettaweber/v1.test.json b/test/bipm/si/2019/derived/prefixed/quettaweber/v1.test.json deleted file mode 100644 index 921ea8f7..00000000 --- a/test/bipm/si/2019/derived/prefixed/quettaweber/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettaweber/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/ronnabecquerel/v1.test.json b/test/bipm/si/2019/derived/prefixed/ronnabecquerel/v1.test.json deleted file mode 100644 index 59ad2559..00000000 --- a/test/bipm/si/2019/derived/prefixed/ronnabecquerel/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnabecquerel/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/ronnacoulomb/v1.test.json b/test/bipm/si/2019/derived/prefixed/ronnacoulomb/v1.test.json deleted file mode 100644 index a6c5a31d..00000000 --- a/test/bipm/si/2019/derived/prefixed/ronnacoulomb/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnacoulomb/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/ronnadegree-celsius/v1.test.json b/test/bipm/si/2019/derived/prefixed/ronnadegree-celsius/v1.test.json deleted file mode 100644 index b020e8cb..00000000 --- a/test/bipm/si/2019/derived/prefixed/ronnadegree-celsius/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnadegree-celsius/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative within the scaled range", - "data": -1.36575e-25, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/ronnafarad/v1.test.json b/test/bipm/si/2019/derived/prefixed/ronnafarad/v1.test.json deleted file mode 100644 index 3659f62e..00000000 --- a/test/bipm/si/2019/derived/prefixed/ronnafarad/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnafarad/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/ronnagray/v1.test.json b/test/bipm/si/2019/derived/prefixed/ronnagray/v1.test.json deleted file mode 100644 index 5dc4a848..00000000 --- a/test/bipm/si/2019/derived/prefixed/ronnagray/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnagray/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/ronnahenry/v1.test.json b/test/bipm/si/2019/derived/prefixed/ronnahenry/v1.test.json deleted file mode 100644 index 3af027b6..00000000 --- a/test/bipm/si/2019/derived/prefixed/ronnahenry/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnahenry/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/ronnahertz/v1.test.json b/test/bipm/si/2019/derived/prefixed/ronnahertz/v1.test.json deleted file mode 100644 index ba85c74f..00000000 --- a/test/bipm/si/2019/derived/prefixed/ronnahertz/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnahertz/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/ronnajoule/v1.test.json b/test/bipm/si/2019/derived/prefixed/ronnajoule/v1.test.json deleted file mode 100644 index a8edb9c5..00000000 --- a/test/bipm/si/2019/derived/prefixed/ronnajoule/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnajoule/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/ronnakatal/v1.test.json b/test/bipm/si/2019/derived/prefixed/ronnakatal/v1.test.json deleted file mode 100644 index 21daa9a4..00000000 --- a/test/bipm/si/2019/derived/prefixed/ronnakatal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnakatal/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/ronnalumen/v1.test.json b/test/bipm/si/2019/derived/prefixed/ronnalumen/v1.test.json deleted file mode 100644 index a1ead09d..00000000 --- a/test/bipm/si/2019/derived/prefixed/ronnalumen/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnalumen/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/ronnalux/v1.test.json b/test/bipm/si/2019/derived/prefixed/ronnalux/v1.test.json deleted file mode 100644 index d6fb824d..00000000 --- a/test/bipm/si/2019/derived/prefixed/ronnalux/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnalux/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/ronnanewton/v1.test.json b/test/bipm/si/2019/derived/prefixed/ronnanewton/v1.test.json deleted file mode 100644 index 056ce3cb..00000000 --- a/test/bipm/si/2019/derived/prefixed/ronnanewton/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnanewton/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/ronnaohm/v1.test.json b/test/bipm/si/2019/derived/prefixed/ronnaohm/v1.test.json deleted file mode 100644 index 6e4723c7..00000000 --- a/test/bipm/si/2019/derived/prefixed/ronnaohm/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnaohm/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/ronnapascal/v1.test.json b/test/bipm/si/2019/derived/prefixed/ronnapascal/v1.test.json deleted file mode 100644 index 1f4725e0..00000000 --- a/test/bipm/si/2019/derived/prefixed/ronnapascal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnapascal/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/ronnaradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/ronnaradian/v1.test.json deleted file mode 100644 index e214410d..00000000 --- a/test/bipm/si/2019/derived/prefixed/ronnaradian/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnaradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/ronnasiemens/v1.test.json b/test/bipm/si/2019/derived/prefixed/ronnasiemens/v1.test.json deleted file mode 100644 index 93974536..00000000 --- a/test/bipm/si/2019/derived/prefixed/ronnasiemens/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnasiemens/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/ronnasievert/v1.test.json b/test/bipm/si/2019/derived/prefixed/ronnasievert/v1.test.json deleted file mode 100644 index 3a833bc4..00000000 --- a/test/bipm/si/2019/derived/prefixed/ronnasievert/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnasievert/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/ronnasteradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/ronnasteradian/v1.test.json deleted file mode 100644 index fcc227ed..00000000 --- a/test/bipm/si/2019/derived/prefixed/ronnasteradian/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnasteradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/ronnatesla/v1.test.json b/test/bipm/si/2019/derived/prefixed/ronnatesla/v1.test.json deleted file mode 100644 index 2b26c434..00000000 --- a/test/bipm/si/2019/derived/prefixed/ronnatesla/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnatesla/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/ronnavolt/v1.test.json b/test/bipm/si/2019/derived/prefixed/ronnavolt/v1.test.json deleted file mode 100644 index 6a7999d9..00000000 --- a/test/bipm/si/2019/derived/prefixed/ronnavolt/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnavolt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/ronnawatt/v1.test.json b/test/bipm/si/2019/derived/prefixed/ronnawatt/v1.test.json deleted file mode 100644 index bd661a68..00000000 --- a/test/bipm/si/2019/derived/prefixed/ronnawatt/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnawatt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/ronnaweber/v1.test.json b/test/bipm/si/2019/derived/prefixed/ronnaweber/v1.test.json deleted file mode 100644 index ece017ec..00000000 --- a/test/bipm/si/2019/derived/prefixed/ronnaweber/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnaweber/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/rontobecquerel/v1.test.json b/test/bipm/si/2019/derived/prefixed/rontobecquerel/v1.test.json deleted file mode 100644 index 47bc5019..00000000 --- a/test/bipm/si/2019/derived/prefixed/rontobecquerel/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontobecquerel/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/rontocoulomb/v1.test.json b/test/bipm/si/2019/derived/prefixed/rontocoulomb/v1.test.json deleted file mode 100644 index f9170738..00000000 --- a/test/bipm/si/2019/derived/prefixed/rontocoulomb/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontocoulomb/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/rontodegree-celsius/v1.test.json b/test/bipm/si/2019/derived/prefixed/rontodegree-celsius/v1.test.json deleted file mode 100644 index 18923f1a..00000000 --- a/test/bipm/si/2019/derived/prefixed/rontodegree-celsius/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontodegree-celsius/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/rontofarad/v1.test.json b/test/bipm/si/2019/derived/prefixed/rontofarad/v1.test.json deleted file mode 100644 index 4ba6414b..00000000 --- a/test/bipm/si/2019/derived/prefixed/rontofarad/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontofarad/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/rontogray/v1.test.json b/test/bipm/si/2019/derived/prefixed/rontogray/v1.test.json deleted file mode 100644 index fdcbca46..00000000 --- a/test/bipm/si/2019/derived/prefixed/rontogray/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontogray/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/rontohenry/v1.test.json b/test/bipm/si/2019/derived/prefixed/rontohenry/v1.test.json deleted file mode 100644 index 8713d904..00000000 --- a/test/bipm/si/2019/derived/prefixed/rontohenry/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontohenry/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/rontohertz/v1.test.json b/test/bipm/si/2019/derived/prefixed/rontohertz/v1.test.json deleted file mode 100644 index ceb3b1cc..00000000 --- a/test/bipm/si/2019/derived/prefixed/rontohertz/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontohertz/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/rontojoule/v1.test.json b/test/bipm/si/2019/derived/prefixed/rontojoule/v1.test.json deleted file mode 100644 index f96be1dc..00000000 --- a/test/bipm/si/2019/derived/prefixed/rontojoule/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontojoule/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/rontokatal/v1.test.json b/test/bipm/si/2019/derived/prefixed/rontokatal/v1.test.json deleted file mode 100644 index 9fd882fd..00000000 --- a/test/bipm/si/2019/derived/prefixed/rontokatal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontokatal/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/rontolumen/v1.test.json b/test/bipm/si/2019/derived/prefixed/rontolumen/v1.test.json deleted file mode 100644 index fe695d9b..00000000 --- a/test/bipm/si/2019/derived/prefixed/rontolumen/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontolumen/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/rontolux/v1.test.json b/test/bipm/si/2019/derived/prefixed/rontolux/v1.test.json deleted file mode 100644 index ae7461b2..00000000 --- a/test/bipm/si/2019/derived/prefixed/rontolux/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontolux/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/rontonewton/v1.test.json b/test/bipm/si/2019/derived/prefixed/rontonewton/v1.test.json deleted file mode 100644 index b2309d1b..00000000 --- a/test/bipm/si/2019/derived/prefixed/rontonewton/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontonewton/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/rontoohm/v1.test.json b/test/bipm/si/2019/derived/prefixed/rontoohm/v1.test.json deleted file mode 100644 index b8c9618b..00000000 --- a/test/bipm/si/2019/derived/prefixed/rontoohm/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontoohm/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/rontopascal/v1.test.json b/test/bipm/si/2019/derived/prefixed/rontopascal/v1.test.json deleted file mode 100644 index 68e74ede..00000000 --- a/test/bipm/si/2019/derived/prefixed/rontopascal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontopascal/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/rontoradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/rontoradian/v1.test.json deleted file mode 100644 index ad311e02..00000000 --- a/test/bipm/si/2019/derived/prefixed/rontoradian/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontoradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/rontosiemens/v1.test.json b/test/bipm/si/2019/derived/prefixed/rontosiemens/v1.test.json deleted file mode 100644 index d9bccd40..00000000 --- a/test/bipm/si/2019/derived/prefixed/rontosiemens/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontosiemens/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/rontosievert/v1.test.json b/test/bipm/si/2019/derived/prefixed/rontosievert/v1.test.json deleted file mode 100644 index 9dbfcf47..00000000 --- a/test/bipm/si/2019/derived/prefixed/rontosievert/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontosievert/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/rontosteradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/rontosteradian/v1.test.json deleted file mode 100644 index 72d3d0b9..00000000 --- a/test/bipm/si/2019/derived/prefixed/rontosteradian/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontosteradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/rontotesla/v1.test.json b/test/bipm/si/2019/derived/prefixed/rontotesla/v1.test.json deleted file mode 100644 index 9aba1471..00000000 --- a/test/bipm/si/2019/derived/prefixed/rontotesla/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontotesla/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/rontovolt/v1.test.json b/test/bipm/si/2019/derived/prefixed/rontovolt/v1.test.json deleted file mode 100644 index 9cb9db38..00000000 --- a/test/bipm/si/2019/derived/prefixed/rontovolt/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontovolt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/rontowatt/v1.test.json b/test/bipm/si/2019/derived/prefixed/rontowatt/v1.test.json deleted file mode 100644 index f65ec9a9..00000000 --- a/test/bipm/si/2019/derived/prefixed/rontowatt/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontowatt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/rontoweber/v1.test.json b/test/bipm/si/2019/derived/prefixed/rontoweber/v1.test.json deleted file mode 100644 index b159baba..00000000 --- a/test/bipm/si/2019/derived/prefixed/rontoweber/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontoweber/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/terabecquerel/v1.test.json b/test/bipm/si/2019/derived/prefixed/terabecquerel/v1.test.json deleted file mode 100644 index a669e628..00000000 --- a/test/bipm/si/2019/derived/prefixed/terabecquerel/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/terabecquerel/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/teracoulomb/v1.test.json b/test/bipm/si/2019/derived/prefixed/teracoulomb/v1.test.json deleted file mode 100644 index 17472aa2..00000000 --- a/test/bipm/si/2019/derived/prefixed/teracoulomb/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/teracoulomb/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/teradegree-celsius/v1.test.json b/test/bipm/si/2019/derived/prefixed/teradegree-celsius/v1.test.json deleted file mode 100644 index 500b4e71..00000000 --- a/test/bipm/si/2019/derived/prefixed/teradegree-celsius/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/teradegree-celsius/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative within the scaled range", - "data": -1.36575e-10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/terafarad/v1.test.json b/test/bipm/si/2019/derived/prefixed/terafarad/v1.test.json deleted file mode 100644 index ed0650b9..00000000 --- a/test/bipm/si/2019/derived/prefixed/terafarad/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/terafarad/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/teragray/v1.test.json b/test/bipm/si/2019/derived/prefixed/teragray/v1.test.json deleted file mode 100644 index f699ea21..00000000 --- a/test/bipm/si/2019/derived/prefixed/teragray/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/teragray/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/terahenry/v1.test.json b/test/bipm/si/2019/derived/prefixed/terahenry/v1.test.json deleted file mode 100644 index c0dbd519..00000000 --- a/test/bipm/si/2019/derived/prefixed/terahenry/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/terahenry/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/terahertz/v1.test.json b/test/bipm/si/2019/derived/prefixed/terahertz/v1.test.json deleted file mode 100644 index fdf9ca57..00000000 --- a/test/bipm/si/2019/derived/prefixed/terahertz/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/terahertz/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/terajoule/v1.test.json b/test/bipm/si/2019/derived/prefixed/terajoule/v1.test.json deleted file mode 100644 index f9df353e..00000000 --- a/test/bipm/si/2019/derived/prefixed/terajoule/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/terajoule/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/terakatal/v1.test.json b/test/bipm/si/2019/derived/prefixed/terakatal/v1.test.json deleted file mode 100644 index b680276d..00000000 --- a/test/bipm/si/2019/derived/prefixed/terakatal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/terakatal/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/teralumen/v1.test.json b/test/bipm/si/2019/derived/prefixed/teralumen/v1.test.json deleted file mode 100644 index deabac34..00000000 --- a/test/bipm/si/2019/derived/prefixed/teralumen/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/teralumen/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/teralux/v1.test.json b/test/bipm/si/2019/derived/prefixed/teralux/v1.test.json deleted file mode 100644 index dd11a9a9..00000000 --- a/test/bipm/si/2019/derived/prefixed/teralux/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/teralux/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/teranewton/v1.test.json b/test/bipm/si/2019/derived/prefixed/teranewton/v1.test.json deleted file mode 100644 index 41718c1f..00000000 --- a/test/bipm/si/2019/derived/prefixed/teranewton/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/teranewton/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/teraohm/v1.test.json b/test/bipm/si/2019/derived/prefixed/teraohm/v1.test.json deleted file mode 100644 index 1de98bed..00000000 --- a/test/bipm/si/2019/derived/prefixed/teraohm/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/teraohm/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/terapascal/v1.test.json b/test/bipm/si/2019/derived/prefixed/terapascal/v1.test.json deleted file mode 100644 index 79dd65d6..00000000 --- a/test/bipm/si/2019/derived/prefixed/terapascal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/terapascal/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/teraradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/teraradian/v1.test.json deleted file mode 100644 index 5bdbb38a..00000000 --- a/test/bipm/si/2019/derived/prefixed/teraradian/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/teraradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/terasiemens/v1.test.json b/test/bipm/si/2019/derived/prefixed/terasiemens/v1.test.json deleted file mode 100644 index 2815274f..00000000 --- a/test/bipm/si/2019/derived/prefixed/terasiemens/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/terasiemens/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/terasievert/v1.test.json b/test/bipm/si/2019/derived/prefixed/terasievert/v1.test.json deleted file mode 100644 index eff27199..00000000 --- a/test/bipm/si/2019/derived/prefixed/terasievert/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/terasievert/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/terasteradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/terasteradian/v1.test.json deleted file mode 100644 index 5f7fce65..00000000 --- a/test/bipm/si/2019/derived/prefixed/terasteradian/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/terasteradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/teratesla/v1.test.json b/test/bipm/si/2019/derived/prefixed/teratesla/v1.test.json deleted file mode 100644 index f8ec534e..00000000 --- a/test/bipm/si/2019/derived/prefixed/teratesla/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/teratesla/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/teravolt/v1.test.json b/test/bipm/si/2019/derived/prefixed/teravolt/v1.test.json deleted file mode 100644 index 5974dd0c..00000000 --- a/test/bipm/si/2019/derived/prefixed/teravolt/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/teravolt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/terawatt/v1.test.json b/test/bipm/si/2019/derived/prefixed/terawatt/v1.test.json deleted file mode 100644 index c5abbf52..00000000 --- a/test/bipm/si/2019/derived/prefixed/terawatt/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/terawatt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/teraweber/v1.test.json b/test/bipm/si/2019/derived/prefixed/teraweber/v1.test.json deleted file mode 100644 index c75157be..00000000 --- a/test/bipm/si/2019/derived/prefixed/teraweber/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/teraweber/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yoctobecquerel/v1.test.json b/test/bipm/si/2019/derived/prefixed/yoctobecquerel/v1.test.json deleted file mode 100644 index e52413c4..00000000 --- a/test/bipm/si/2019/derived/prefixed/yoctobecquerel/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctobecquerel/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yoctocoulomb/v1.test.json b/test/bipm/si/2019/derived/prefixed/yoctocoulomb/v1.test.json deleted file mode 100644 index 317f27ee..00000000 --- a/test/bipm/si/2019/derived/prefixed/yoctocoulomb/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctocoulomb/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yoctodegree-celsius/v1.test.json b/test/bipm/si/2019/derived/prefixed/yoctodegree-celsius/v1.test.json deleted file mode 100644 index 074cd1bd..00000000 --- a/test/bipm/si/2019/derived/prefixed/yoctodegree-celsius/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctodegree-celsius/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yoctofarad/v1.test.json b/test/bipm/si/2019/derived/prefixed/yoctofarad/v1.test.json deleted file mode 100644 index c4dba985..00000000 --- a/test/bipm/si/2019/derived/prefixed/yoctofarad/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctofarad/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yoctogray/v1.test.json b/test/bipm/si/2019/derived/prefixed/yoctogray/v1.test.json deleted file mode 100644 index 308f8fc5..00000000 --- a/test/bipm/si/2019/derived/prefixed/yoctogray/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctogray/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yoctohenry/v1.test.json b/test/bipm/si/2019/derived/prefixed/yoctohenry/v1.test.json deleted file mode 100644 index b6fbc65d..00000000 --- a/test/bipm/si/2019/derived/prefixed/yoctohenry/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctohenry/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yoctohertz/v1.test.json b/test/bipm/si/2019/derived/prefixed/yoctohertz/v1.test.json deleted file mode 100644 index 5ec381ba..00000000 --- a/test/bipm/si/2019/derived/prefixed/yoctohertz/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctohertz/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yoctojoule/v1.test.json b/test/bipm/si/2019/derived/prefixed/yoctojoule/v1.test.json deleted file mode 100644 index b921c097..00000000 --- a/test/bipm/si/2019/derived/prefixed/yoctojoule/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctojoule/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yoctokatal/v1.test.json b/test/bipm/si/2019/derived/prefixed/yoctokatal/v1.test.json deleted file mode 100644 index 8092b9d3..00000000 --- a/test/bipm/si/2019/derived/prefixed/yoctokatal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctokatal/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yoctolumen/v1.test.json b/test/bipm/si/2019/derived/prefixed/yoctolumen/v1.test.json deleted file mode 100644 index 1afa038c..00000000 --- a/test/bipm/si/2019/derived/prefixed/yoctolumen/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctolumen/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yoctolux/v1.test.json b/test/bipm/si/2019/derived/prefixed/yoctolux/v1.test.json deleted file mode 100644 index 26319012..00000000 --- a/test/bipm/si/2019/derived/prefixed/yoctolux/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctolux/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yoctonewton/v1.test.json b/test/bipm/si/2019/derived/prefixed/yoctonewton/v1.test.json deleted file mode 100644 index e859d76a..00000000 --- a/test/bipm/si/2019/derived/prefixed/yoctonewton/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctonewton/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yoctoohm/v1.test.json b/test/bipm/si/2019/derived/prefixed/yoctoohm/v1.test.json deleted file mode 100644 index 2b58886a..00000000 --- a/test/bipm/si/2019/derived/prefixed/yoctoohm/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctoohm/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yoctopascal/v1.test.json b/test/bipm/si/2019/derived/prefixed/yoctopascal/v1.test.json deleted file mode 100644 index 817e829b..00000000 --- a/test/bipm/si/2019/derived/prefixed/yoctopascal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctopascal/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yoctoradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/yoctoradian/v1.test.json deleted file mode 100644 index bc38e90a..00000000 --- a/test/bipm/si/2019/derived/prefixed/yoctoradian/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctoradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yoctosiemens/v1.test.json b/test/bipm/si/2019/derived/prefixed/yoctosiemens/v1.test.json deleted file mode 100644 index 2d3278ff..00000000 --- a/test/bipm/si/2019/derived/prefixed/yoctosiemens/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctosiemens/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yoctosievert/v1.test.json b/test/bipm/si/2019/derived/prefixed/yoctosievert/v1.test.json deleted file mode 100644 index e3e794b5..00000000 --- a/test/bipm/si/2019/derived/prefixed/yoctosievert/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctosievert/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yoctosteradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/yoctosteradian/v1.test.json deleted file mode 100644 index 369fba39..00000000 --- a/test/bipm/si/2019/derived/prefixed/yoctosteradian/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctosteradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yoctotesla/v1.test.json b/test/bipm/si/2019/derived/prefixed/yoctotesla/v1.test.json deleted file mode 100644 index fdb52d80..00000000 --- a/test/bipm/si/2019/derived/prefixed/yoctotesla/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctotesla/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yoctovolt/v1.test.json b/test/bipm/si/2019/derived/prefixed/yoctovolt/v1.test.json deleted file mode 100644 index d8b9e178..00000000 --- a/test/bipm/si/2019/derived/prefixed/yoctovolt/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctovolt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yoctowatt/v1.test.json b/test/bipm/si/2019/derived/prefixed/yoctowatt/v1.test.json deleted file mode 100644 index f0a3d8b4..00000000 --- a/test/bipm/si/2019/derived/prefixed/yoctowatt/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctowatt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yoctoweber/v1.test.json b/test/bipm/si/2019/derived/prefixed/yoctoweber/v1.test.json deleted file mode 100644 index 7118e3ce..00000000 --- a/test/bipm/si/2019/derived/prefixed/yoctoweber/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctoweber/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yottabecquerel/v1.test.json b/test/bipm/si/2019/derived/prefixed/yottabecquerel/v1.test.json deleted file mode 100644 index 7d76c147..00000000 --- a/test/bipm/si/2019/derived/prefixed/yottabecquerel/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottabecquerel/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yottacoulomb/v1.test.json b/test/bipm/si/2019/derived/prefixed/yottacoulomb/v1.test.json deleted file mode 100644 index 08e2bc33..00000000 --- a/test/bipm/si/2019/derived/prefixed/yottacoulomb/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottacoulomb/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yottadegree-celsius/v1.test.json b/test/bipm/si/2019/derived/prefixed/yottadegree-celsius/v1.test.json deleted file mode 100644 index e38de59c..00000000 --- a/test/bipm/si/2019/derived/prefixed/yottadegree-celsius/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottadegree-celsius/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative within the scaled range", - "data": -1.36575e-22, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yottafarad/v1.test.json b/test/bipm/si/2019/derived/prefixed/yottafarad/v1.test.json deleted file mode 100644 index 72aee246..00000000 --- a/test/bipm/si/2019/derived/prefixed/yottafarad/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottafarad/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yottagray/v1.test.json b/test/bipm/si/2019/derived/prefixed/yottagray/v1.test.json deleted file mode 100644 index 7fdd1c11..00000000 --- a/test/bipm/si/2019/derived/prefixed/yottagray/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottagray/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yottahenry/v1.test.json b/test/bipm/si/2019/derived/prefixed/yottahenry/v1.test.json deleted file mode 100644 index a4dbca4f..00000000 --- a/test/bipm/si/2019/derived/prefixed/yottahenry/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottahenry/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yottahertz/v1.test.json b/test/bipm/si/2019/derived/prefixed/yottahertz/v1.test.json deleted file mode 100644 index 2a7d17e3..00000000 --- a/test/bipm/si/2019/derived/prefixed/yottahertz/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottahertz/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yottajoule/v1.test.json b/test/bipm/si/2019/derived/prefixed/yottajoule/v1.test.json deleted file mode 100644 index c8091377..00000000 --- a/test/bipm/si/2019/derived/prefixed/yottajoule/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottajoule/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yottakatal/v1.test.json b/test/bipm/si/2019/derived/prefixed/yottakatal/v1.test.json deleted file mode 100644 index b29a9ceb..00000000 --- a/test/bipm/si/2019/derived/prefixed/yottakatal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottakatal/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yottalumen/v1.test.json b/test/bipm/si/2019/derived/prefixed/yottalumen/v1.test.json deleted file mode 100644 index e9fdce65..00000000 --- a/test/bipm/si/2019/derived/prefixed/yottalumen/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottalumen/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yottalux/v1.test.json b/test/bipm/si/2019/derived/prefixed/yottalux/v1.test.json deleted file mode 100644 index 139cafe5..00000000 --- a/test/bipm/si/2019/derived/prefixed/yottalux/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottalux/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yottanewton/v1.test.json b/test/bipm/si/2019/derived/prefixed/yottanewton/v1.test.json deleted file mode 100644 index 4d4b441e..00000000 --- a/test/bipm/si/2019/derived/prefixed/yottanewton/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottanewton/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yottaohm/v1.test.json b/test/bipm/si/2019/derived/prefixed/yottaohm/v1.test.json deleted file mode 100644 index fea13185..00000000 --- a/test/bipm/si/2019/derived/prefixed/yottaohm/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottaohm/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yottapascal/v1.test.json b/test/bipm/si/2019/derived/prefixed/yottapascal/v1.test.json deleted file mode 100644 index f09c2533..00000000 --- a/test/bipm/si/2019/derived/prefixed/yottapascal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottapascal/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yottaradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/yottaradian/v1.test.json deleted file mode 100644 index f9ad1835..00000000 --- a/test/bipm/si/2019/derived/prefixed/yottaradian/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottaradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yottasiemens/v1.test.json b/test/bipm/si/2019/derived/prefixed/yottasiemens/v1.test.json deleted file mode 100644 index 876bff9c..00000000 --- a/test/bipm/si/2019/derived/prefixed/yottasiemens/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottasiemens/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yottasievert/v1.test.json b/test/bipm/si/2019/derived/prefixed/yottasievert/v1.test.json deleted file mode 100644 index a1f61d4f..00000000 --- a/test/bipm/si/2019/derived/prefixed/yottasievert/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottasievert/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yottasteradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/yottasteradian/v1.test.json deleted file mode 100644 index e2ecc56a..00000000 --- a/test/bipm/si/2019/derived/prefixed/yottasteradian/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottasteradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yottatesla/v1.test.json b/test/bipm/si/2019/derived/prefixed/yottatesla/v1.test.json deleted file mode 100644 index dc06f5d4..00000000 --- a/test/bipm/si/2019/derived/prefixed/yottatesla/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottatesla/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yottavolt/v1.test.json b/test/bipm/si/2019/derived/prefixed/yottavolt/v1.test.json deleted file mode 100644 index 9efa49c6..00000000 --- a/test/bipm/si/2019/derived/prefixed/yottavolt/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottavolt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yottawatt/v1.test.json b/test/bipm/si/2019/derived/prefixed/yottawatt/v1.test.json deleted file mode 100644 index 3e03a94e..00000000 --- a/test/bipm/si/2019/derived/prefixed/yottawatt/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottawatt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/yottaweber/v1.test.json b/test/bipm/si/2019/derived/prefixed/yottaweber/v1.test.json deleted file mode 100644 index 6b965e30..00000000 --- a/test/bipm/si/2019/derived/prefixed/yottaweber/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottaweber/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zeptobecquerel/v1.test.json b/test/bipm/si/2019/derived/prefixed/zeptobecquerel/v1.test.json deleted file mode 100644 index f72eaf5d..00000000 --- a/test/bipm/si/2019/derived/prefixed/zeptobecquerel/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptobecquerel/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zeptocoulomb/v1.test.json b/test/bipm/si/2019/derived/prefixed/zeptocoulomb/v1.test.json deleted file mode 100644 index aaaee949..00000000 --- a/test/bipm/si/2019/derived/prefixed/zeptocoulomb/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptocoulomb/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zeptodegree-celsius/v1.test.json b/test/bipm/si/2019/derived/prefixed/zeptodegree-celsius/v1.test.json deleted file mode 100644 index 8e82fccf..00000000 --- a/test/bipm/si/2019/derived/prefixed/zeptodegree-celsius/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptodegree-celsius/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zeptofarad/v1.test.json b/test/bipm/si/2019/derived/prefixed/zeptofarad/v1.test.json deleted file mode 100644 index 47787525..00000000 --- a/test/bipm/si/2019/derived/prefixed/zeptofarad/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptofarad/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zeptogray/v1.test.json b/test/bipm/si/2019/derived/prefixed/zeptogray/v1.test.json deleted file mode 100644 index fdf53ae1..00000000 --- a/test/bipm/si/2019/derived/prefixed/zeptogray/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptogray/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zeptohenry/v1.test.json b/test/bipm/si/2019/derived/prefixed/zeptohenry/v1.test.json deleted file mode 100644 index 76979be3..00000000 --- a/test/bipm/si/2019/derived/prefixed/zeptohenry/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptohenry/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zeptohertz/v1.test.json b/test/bipm/si/2019/derived/prefixed/zeptohertz/v1.test.json deleted file mode 100644 index 4f9d8fc7..00000000 --- a/test/bipm/si/2019/derived/prefixed/zeptohertz/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptohertz/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zeptojoule/v1.test.json b/test/bipm/si/2019/derived/prefixed/zeptojoule/v1.test.json deleted file mode 100644 index e16e6f4e..00000000 --- a/test/bipm/si/2019/derived/prefixed/zeptojoule/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptojoule/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zeptokatal/v1.test.json b/test/bipm/si/2019/derived/prefixed/zeptokatal/v1.test.json deleted file mode 100644 index 77a3387e..00000000 --- a/test/bipm/si/2019/derived/prefixed/zeptokatal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptokatal/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zeptolumen/v1.test.json b/test/bipm/si/2019/derived/prefixed/zeptolumen/v1.test.json deleted file mode 100644 index dc7c20dc..00000000 --- a/test/bipm/si/2019/derived/prefixed/zeptolumen/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptolumen/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zeptolux/v1.test.json b/test/bipm/si/2019/derived/prefixed/zeptolux/v1.test.json deleted file mode 100644 index c694ce3e..00000000 --- a/test/bipm/si/2019/derived/prefixed/zeptolux/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptolux/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zeptonewton/v1.test.json b/test/bipm/si/2019/derived/prefixed/zeptonewton/v1.test.json deleted file mode 100644 index 3d9d982c..00000000 --- a/test/bipm/si/2019/derived/prefixed/zeptonewton/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptonewton/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zeptoohm/v1.test.json b/test/bipm/si/2019/derived/prefixed/zeptoohm/v1.test.json deleted file mode 100644 index 4a8cafdd..00000000 --- a/test/bipm/si/2019/derived/prefixed/zeptoohm/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptoohm/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zeptopascal/v1.test.json b/test/bipm/si/2019/derived/prefixed/zeptopascal/v1.test.json deleted file mode 100644 index ecf03526..00000000 --- a/test/bipm/si/2019/derived/prefixed/zeptopascal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptopascal/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zeptoradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/zeptoradian/v1.test.json deleted file mode 100644 index d63af716..00000000 --- a/test/bipm/si/2019/derived/prefixed/zeptoradian/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptoradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zeptosiemens/v1.test.json b/test/bipm/si/2019/derived/prefixed/zeptosiemens/v1.test.json deleted file mode 100644 index 00820bf4..00000000 --- a/test/bipm/si/2019/derived/prefixed/zeptosiemens/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptosiemens/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zeptosievert/v1.test.json b/test/bipm/si/2019/derived/prefixed/zeptosievert/v1.test.json deleted file mode 100644 index 231ea3e7..00000000 --- a/test/bipm/si/2019/derived/prefixed/zeptosievert/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptosievert/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zeptosteradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/zeptosteradian/v1.test.json deleted file mode 100644 index ccda9224..00000000 --- a/test/bipm/si/2019/derived/prefixed/zeptosteradian/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptosteradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zeptotesla/v1.test.json b/test/bipm/si/2019/derived/prefixed/zeptotesla/v1.test.json deleted file mode 100644 index 36021a95..00000000 --- a/test/bipm/si/2019/derived/prefixed/zeptotesla/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptotesla/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zeptovolt/v1.test.json b/test/bipm/si/2019/derived/prefixed/zeptovolt/v1.test.json deleted file mode 100644 index 2a7a4df3..00000000 --- a/test/bipm/si/2019/derived/prefixed/zeptovolt/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptovolt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zeptowatt/v1.test.json b/test/bipm/si/2019/derived/prefixed/zeptowatt/v1.test.json deleted file mode 100644 index 7903a3cb..00000000 --- a/test/bipm/si/2019/derived/prefixed/zeptowatt/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptowatt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zeptoweber/v1.test.json b/test/bipm/si/2019/derived/prefixed/zeptoweber/v1.test.json deleted file mode 100644 index 6d4823b7..00000000 --- a/test/bipm/si/2019/derived/prefixed/zeptoweber/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptoweber/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zettabecquerel/v1.test.json b/test/bipm/si/2019/derived/prefixed/zettabecquerel/v1.test.json deleted file mode 100644 index 507448d6..00000000 --- a/test/bipm/si/2019/derived/prefixed/zettabecquerel/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettabecquerel/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zettacoulomb/v1.test.json b/test/bipm/si/2019/derived/prefixed/zettacoulomb/v1.test.json deleted file mode 100644 index ec40d3cf..00000000 --- a/test/bipm/si/2019/derived/prefixed/zettacoulomb/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettacoulomb/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zettadegree-celsius/v1.test.json b/test/bipm/si/2019/derived/prefixed/zettadegree-celsius/v1.test.json deleted file mode 100644 index 0c49ac92..00000000 --- a/test/bipm/si/2019/derived/prefixed/zettadegree-celsius/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettadegree-celsius/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative within the scaled range", - "data": -1.36575e-19, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zettafarad/v1.test.json b/test/bipm/si/2019/derived/prefixed/zettafarad/v1.test.json deleted file mode 100644 index 1a66e49a..00000000 --- a/test/bipm/si/2019/derived/prefixed/zettafarad/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettafarad/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zettagray/v1.test.json b/test/bipm/si/2019/derived/prefixed/zettagray/v1.test.json deleted file mode 100644 index bd59cbcf..00000000 --- a/test/bipm/si/2019/derived/prefixed/zettagray/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettagray/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zettahenry/v1.test.json b/test/bipm/si/2019/derived/prefixed/zettahenry/v1.test.json deleted file mode 100644 index 90646bef..00000000 --- a/test/bipm/si/2019/derived/prefixed/zettahenry/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettahenry/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zettahertz/v1.test.json b/test/bipm/si/2019/derived/prefixed/zettahertz/v1.test.json deleted file mode 100644 index a8082021..00000000 --- a/test/bipm/si/2019/derived/prefixed/zettahertz/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettahertz/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zettajoule/v1.test.json b/test/bipm/si/2019/derived/prefixed/zettajoule/v1.test.json deleted file mode 100644 index 1b6be219..00000000 --- a/test/bipm/si/2019/derived/prefixed/zettajoule/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettajoule/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zettakatal/v1.test.json b/test/bipm/si/2019/derived/prefixed/zettakatal/v1.test.json deleted file mode 100644 index 8228a626..00000000 --- a/test/bipm/si/2019/derived/prefixed/zettakatal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettakatal/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zettalumen/v1.test.json b/test/bipm/si/2019/derived/prefixed/zettalumen/v1.test.json deleted file mode 100644 index 4768eb8a..00000000 --- a/test/bipm/si/2019/derived/prefixed/zettalumen/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettalumen/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zettalux/v1.test.json b/test/bipm/si/2019/derived/prefixed/zettalux/v1.test.json deleted file mode 100644 index 5eb7e65c..00000000 --- a/test/bipm/si/2019/derived/prefixed/zettalux/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettalux/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zettanewton/v1.test.json b/test/bipm/si/2019/derived/prefixed/zettanewton/v1.test.json deleted file mode 100644 index fd1bf527..00000000 --- a/test/bipm/si/2019/derived/prefixed/zettanewton/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettanewton/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zettaohm/v1.test.json b/test/bipm/si/2019/derived/prefixed/zettaohm/v1.test.json deleted file mode 100644 index d2cbdfb4..00000000 --- a/test/bipm/si/2019/derived/prefixed/zettaohm/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettaohm/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zettapascal/v1.test.json b/test/bipm/si/2019/derived/prefixed/zettapascal/v1.test.json deleted file mode 100644 index bcc3e1e2..00000000 --- a/test/bipm/si/2019/derived/prefixed/zettapascal/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettapascal/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zettaradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/zettaradian/v1.test.json deleted file mode 100644 index de251527..00000000 --- a/test/bipm/si/2019/derived/prefixed/zettaradian/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettaradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zettasiemens/v1.test.json b/test/bipm/si/2019/derived/prefixed/zettasiemens/v1.test.json deleted file mode 100644 index 7a734fb6..00000000 --- a/test/bipm/si/2019/derived/prefixed/zettasiemens/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettasiemens/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - unit value", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - thousand", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zettasievert/v1.test.json b/test/bipm/si/2019/derived/prefixed/zettasievert/v1.test.json deleted file mode 100644 index d8f6a87d..00000000 --- a/test/bipm/si/2019/derived/prefixed/zettasievert/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettasievert/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zettasteradian/v1.test.json b/test/bipm/si/2019/derived/prefixed/zettasteradian/v1.test.json deleted file mode 100644 index 7829c10b..00000000 --- a/test/bipm/si/2019/derived/prefixed/zettasteradian/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettasteradian/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zettatesla/v1.test.json b/test/bipm/si/2019/derived/prefixed/zettatesla/v1.test.json deleted file mode 100644 index 7b9a9ffe..00000000 --- a/test/bipm/si/2019/derived/prefixed/zettatesla/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettatesla/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zettavolt/v1.test.json b/test/bipm/si/2019/derived/prefixed/zettavolt/v1.test.json deleted file mode 100644 index ce05be29..00000000 --- a/test/bipm/si/2019/derived/prefixed/zettavolt/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettavolt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zettawatt/v1.test.json b/test/bipm/si/2019/derived/prefixed/zettawatt/v1.test.json deleted file mode 100644 index 5cc03e48..00000000 --- a/test/bipm/si/2019/derived/prefixed/zettawatt/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettawatt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - large value", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/prefixed/zettaweber/v1.test.json b/test/bipm/si/2019/derived/prefixed/zettaweber/v1.test.json deleted file mode 100644 index 0170b8ec..00000000 --- a/test/bipm/si/2019/derived/prefixed/zettaweber/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettaweber/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive", - "data": 1, - "valid": true - }, - { - "description": "Valid - hundred", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative", - "data": -50, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/quantity/absorbed-dose/v1.test.json b/test/bipm/si/2019/derived/quantity/absorbed-dose/v1.test.json deleted file mode 100644 index a33cfc08..00000000 --- a/test/bipm/si/2019/derived/quantity/absorbed-dose/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/quantity/absorbed-dose/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/quantity/activity-referred-to-radionuclide/v1.test.json b/test/bipm/si/2019/derived/quantity/activity-referred-to-radionuclide/v1.test.json deleted file mode 100644 index a8d5fc0c..00000000 --- a/test/bipm/si/2019/derived/quantity/activity-referred-to-radionuclide/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/quantity/activity-referred-to-radionuclide/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/quantity/amount-of-heat/v1.test.json b/test/bipm/si/2019/derived/quantity/amount-of-heat/v1.test.json deleted file mode 100644 index 721c4681..00000000 --- a/test/bipm/si/2019/derived/quantity/amount-of-heat/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/quantity/amount-of-heat/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/quantity/capacitance/v1.test.json b/test/bipm/si/2019/derived/quantity/capacitance/v1.test.json deleted file mode 100644 index caa35744..00000000 --- a/test/bipm/si/2019/derived/quantity/capacitance/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/quantity/capacitance/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/quantity/catalytic-activity/v1.test.json b/test/bipm/si/2019/derived/quantity/catalytic-activity/v1.test.json deleted file mode 100644 index 444a3046..00000000 --- a/test/bipm/si/2019/derived/quantity/catalytic-activity/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/quantity/catalytic-activity/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/quantity/celsius-temperature/v1.test.json b/test/bipm/si/2019/derived/quantity/celsius-temperature/v1.test.json deleted file mode 100644 index 530d0c06..00000000 --- a/test/bipm/si/2019/derived/quantity/celsius-temperature/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/quantity/celsius-temperature/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/quantity/dose-equivalent/v1.test.json b/test/bipm/si/2019/derived/quantity/dose-equivalent/v1.test.json deleted file mode 100644 index f3404bbe..00000000 --- a/test/bipm/si/2019/derived/quantity/dose-equivalent/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/quantity/dose-equivalent/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/quantity/electric-charge/v1.test.json b/test/bipm/si/2019/derived/quantity/electric-charge/v1.test.json deleted file mode 100644 index 03bd1e73..00000000 --- a/test/bipm/si/2019/derived/quantity/electric-charge/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/quantity/electric-charge/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/quantity/electric-conductance/v1.test.json b/test/bipm/si/2019/derived/quantity/electric-conductance/v1.test.json deleted file mode 100644 index 2e6d4083..00000000 --- a/test/bipm/si/2019/derived/quantity/electric-conductance/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/quantity/electric-conductance/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/quantity/electric-potential-difference/v1.test.json b/test/bipm/si/2019/derived/quantity/electric-potential-difference/v1.test.json deleted file mode 100644 index 96a124c2..00000000 --- a/test/bipm/si/2019/derived/quantity/electric-potential-difference/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/quantity/electric-potential-difference/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/quantity/electric-resistance/v1.test.json b/test/bipm/si/2019/derived/quantity/electric-resistance/v1.test.json deleted file mode 100644 index be4071a1..00000000 --- a/test/bipm/si/2019/derived/quantity/electric-resistance/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/quantity/electric-resistance/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/quantity/energy/v1.test.json b/test/bipm/si/2019/derived/quantity/energy/v1.test.json deleted file mode 100644 index 129f4464..00000000 --- a/test/bipm/si/2019/derived/quantity/energy/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/quantity/energy/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/quantity/force/v1.test.json b/test/bipm/si/2019/derived/quantity/force/v1.test.json deleted file mode 100644 index 0eb58901..00000000 --- a/test/bipm/si/2019/derived/quantity/force/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/quantity/force/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/quantity/frequency/v1.test.json b/test/bipm/si/2019/derived/quantity/frequency/v1.test.json deleted file mode 100644 index d263baf4..00000000 --- a/test/bipm/si/2019/derived/quantity/frequency/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/quantity/frequency/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/quantity/illuminance/v1.test.json b/test/bipm/si/2019/derived/quantity/illuminance/v1.test.json deleted file mode 100644 index 99671c00..00000000 --- a/test/bipm/si/2019/derived/quantity/illuminance/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/quantity/illuminance/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/quantity/inductance/v1.test.json b/test/bipm/si/2019/derived/quantity/inductance/v1.test.json deleted file mode 100644 index 8cb31c70..00000000 --- a/test/bipm/si/2019/derived/quantity/inductance/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/quantity/inductance/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/quantity/kerma/v1.test.json b/test/bipm/si/2019/derived/quantity/kerma/v1.test.json deleted file mode 100644 index c153dd52..00000000 --- a/test/bipm/si/2019/derived/quantity/kerma/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/quantity/kerma/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/quantity/luminous-flux/v1.test.json b/test/bipm/si/2019/derived/quantity/luminous-flux/v1.test.json deleted file mode 100644 index 50b615f7..00000000 --- a/test/bipm/si/2019/derived/quantity/luminous-flux/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/quantity/luminous-flux/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/quantity/magnetic-flux-density/v1.test.json b/test/bipm/si/2019/derived/quantity/magnetic-flux-density/v1.test.json deleted file mode 100644 index 56c2f1a9..00000000 --- a/test/bipm/si/2019/derived/quantity/magnetic-flux-density/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/quantity/magnetic-flux-density/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/quantity/magnetic-flux/v1.test.json b/test/bipm/si/2019/derived/quantity/magnetic-flux/v1.test.json deleted file mode 100644 index 2712a01d..00000000 --- a/test/bipm/si/2019/derived/quantity/magnetic-flux/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/quantity/magnetic-flux/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/quantity/plane-angle/v1.test.json b/test/bipm/si/2019/derived/quantity/plane-angle/v1.test.json deleted file mode 100644 index 9a997fbb..00000000 --- a/test/bipm/si/2019/derived/quantity/plane-angle/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/quantity/plane-angle/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/quantity/power/v1.test.json b/test/bipm/si/2019/derived/quantity/power/v1.test.json deleted file mode 100644 index cb6ce434..00000000 --- a/test/bipm/si/2019/derived/quantity/power/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/quantity/power/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/quantity/pressure/v1.test.json b/test/bipm/si/2019/derived/quantity/pressure/v1.test.json deleted file mode 100644 index eda548d6..00000000 --- a/test/bipm/si/2019/derived/quantity/pressure/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/quantity/pressure/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/quantity/radiant-flux/v1.test.json b/test/bipm/si/2019/derived/quantity/radiant-flux/v1.test.json deleted file mode 100644 index a5380a7a..00000000 --- a/test/bipm/si/2019/derived/quantity/radiant-flux/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/quantity/radiant-flux/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/quantity/solid-angle/v1.test.json b/test/bipm/si/2019/derived/quantity/solid-angle/v1.test.json deleted file mode 100644 index 4536bcc9..00000000 --- a/test/bipm/si/2019/derived/quantity/solid-angle/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/quantity/solid-angle/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/quantity/stress/v1.test.json b/test/bipm/si/2019/derived/quantity/stress/v1.test.json deleted file mode 100644 index f22928cc..00000000 --- a/test/bipm/si/2019/derived/quantity/stress/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/quantity/stress/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/quantity/work/v1.test.json b/test/bipm/si/2019/derived/quantity/work/v1.test.json deleted file mode 100644 index f71868c9..00000000 --- a/test/bipm/si/2019/derived/quantity/work/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/quantity/work/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/symbol/v1.test.json b/test/bipm/si/2019/derived/symbol/v1.test.json deleted file mode 100644 index 1639622c..00000000 --- a/test/bipm/si/2019/derived/symbol/v1.test.json +++ /dev/null @@ -1,165 +0,0 @@ -{ - "target": "../../../../../../schemas/bipm/si/2019/derived/symbol/v1.json", - "tests": [ - { - "description": "Valid - hertz", - "data": "Hz", - "valid": true - }, - { - "description": "Valid - newton", - "data": "N", - "valid": true - }, - { - "description": "Valid - pascal", - "data": "Pa", - "valid": true - }, - { - "description": "Valid - joule", - "data": "J", - "valid": true - }, - { - "description": "Valid - watt", - "data": "W", - "valid": true - }, - { - "description": "Valid - ohm", - "data": "Ω", - "valid": true - }, - { - "description": "Valid - degree Celsius", - "data": "°C", - "valid": true - }, - { - "description": "Valid - katal", - "data": "kat", - "valid": true - }, - { - "description": "Valid - millihertz", - "data": "mHz", - "valid": true - }, - { - "description": "Valid - kilonewton", - "data": "kN", - "valid": true - }, - { - "description": "Valid - megapascal", - "data": "MPa", - "valid": true - }, - { - "description": "Valid - kilojoule", - "data": "kJ", - "valid": true - }, - { - "description": "Valid - milliwatt", - "data": "mW", - "valid": true - }, - { - "description": "Valid - microvolt", - "data": "µV", - "valid": true - }, - { - "description": "Valid - picofarad", - "data": "pF", - "valid": true - }, - { - "description": "Valid - microohm", - "data": "µΩ", - "valid": true - }, - { - "description": "Valid - nanotesla", - "data": "nT", - "valid": true - }, - { - "description": "Valid - microhenry", - "data": "µH", - "valid": true - }, - { - "description": "Valid - microdegree celsius", - "data": "µ°C", - "valid": true - }, - { - "description": "Valid - gigabecquerel", - "data": "GBq", - "valid": true - }, - { - "description": "Valid - milligray", - "data": "mGy", - "valid": true - }, - { - "description": "Valid - millisievert", - "data": "mSv", - "valid": true - }, - { - "description": "Valid - nanokatal", - "data": "nkat", - "valid": true - }, - { - "description": "Valid - quettahertz", - "data": "QHz", - "valid": true - }, - { - "description": "Valid - quectojoule", - "data": "qJ", - "valid": true - }, - { - "description": "Invalid - base unit symbol", - "data": "m", - "valid": false - }, - { - "description": "Invalid - unknown symbol", - "data": "XYZ", - "valid": false - }, - { - "description": "Invalid type - number", - "data": 1, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/unit/becquerel/v1.test.json b/test/bipm/si/2019/derived/unit/becquerel/v1.test.json deleted file mode 100644 index 6d5447bb..00000000 --- a/test/bipm/si/2019/derived/unit/becquerel/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/unit/becquerel/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/unit/coulomb/v1.test.json b/test/bipm/si/2019/derived/unit/coulomb/v1.test.json deleted file mode 100644 index 4615fbf6..00000000 --- a/test/bipm/si/2019/derived/unit/coulomb/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/unit/coulomb/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/unit/degree-celsius/v1.test.json b/test/bipm/si/2019/derived/unit/degree-celsius/v1.test.json deleted file mode 100644 index 34340630..00000000 --- a/test/bipm/si/2019/derived/unit/degree-celsius/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/unit/degree-celsius/v1.json", - "tests": [ - { - "description": "Valid - absolute zero in Celsius", - "data": -273.15, - "valid": true - }, - { - "description": "Valid - water freezing point", - "data": 0, - "valid": true - }, - { - "description": "Valid - room temperature", - "data": 20, - "valid": true - }, - { - "description": "Valid - water boiling point", - "data": 100, - "valid": true - }, - { - "description": "Valid - high temperature", - "data": 500, - "valid": true - }, - { - "description": "Invalid - below absolute zero", - "data": -274, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "20", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/unit/farad/v1.test.json b/test/bipm/si/2019/derived/unit/farad/v1.test.json deleted file mode 100644 index 3414dde4..00000000 --- a/test/bipm/si/2019/derived/unit/farad/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/unit/farad/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/unit/gray/v1.test.json b/test/bipm/si/2019/derived/unit/gray/v1.test.json deleted file mode 100644 index 471fef51..00000000 --- a/test/bipm/si/2019/derived/unit/gray/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/unit/gray/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/unit/henry/v1.test.json b/test/bipm/si/2019/derived/unit/henry/v1.test.json deleted file mode 100644 index 58b1a486..00000000 --- a/test/bipm/si/2019/derived/unit/henry/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/unit/henry/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/unit/hertz/v1.test.json b/test/bipm/si/2019/derived/unit/hertz/v1.test.json deleted file mode 100644 index 09df5073..00000000 --- a/test/bipm/si/2019/derived/unit/hertz/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/unit/hertz/v1.json", - "tests": [ - { - "description": "Valid - small positive", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - power line frequency", - "data": 50, - "valid": true - }, - { - "description": "Valid - typical frequency", - "data": 1000, - "valid": true - }, - { - "description": "Valid - radio frequency", - "data": 2400000000, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -50, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "50", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/unit/joule/v1.test.json b/test/bipm/si/2019/derived/unit/joule/v1.test.json deleted file mode 100644 index 80298576..00000000 --- a/test/bipm/si/2019/derived/unit/joule/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/unit/joule/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/unit/katal/v1.test.json b/test/bipm/si/2019/derived/unit/katal/v1.test.json deleted file mode 100644 index 50c621f6..00000000 --- a/test/bipm/si/2019/derived/unit/katal/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/unit/katal/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/unit/lumen/v1.test.json b/test/bipm/si/2019/derived/unit/lumen/v1.test.json deleted file mode 100644 index dda20ea8..00000000 --- a/test/bipm/si/2019/derived/unit/lumen/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/unit/lumen/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/unit/lux/v1.test.json b/test/bipm/si/2019/derived/unit/lux/v1.test.json deleted file mode 100644 index cd2f2640..00000000 --- a/test/bipm/si/2019/derived/unit/lux/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/unit/lux/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/unit/newton/v1.test.json b/test/bipm/si/2019/derived/unit/newton/v1.test.json deleted file mode 100644 index 2c27d859..00000000 --- a/test/bipm/si/2019/derived/unit/newton/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/unit/newton/v1.json", - "tests": [ - { - "description": "Valid - zero force", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive force", - "data": 9.8, - "valid": true - }, - { - "description": "Valid - negative force", - "data": -50, - "valid": true - }, - { - "description": "Valid - large force", - "data": 10000, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 1.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/unit/ohm/v1.test.json b/test/bipm/si/2019/derived/unit/ohm/v1.test.json deleted file mode 100644 index 607c2ff7..00000000 --- a/test/bipm/si/2019/derived/unit/ohm/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/unit/ohm/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/unit/pascal/v1.test.json b/test/bipm/si/2019/derived/unit/pascal/v1.test.json deleted file mode 100644 index cc057572..00000000 --- a/test/bipm/si/2019/derived/unit/pascal/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/unit/pascal/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/unit/radian/v1.test.json b/test/bipm/si/2019/derived/unit/radian/v1.test.json deleted file mode 100644 index 2170557d..00000000 --- a/test/bipm/si/2019/derived/unit/radian/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/unit/radian/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/unit/siemens/v1.test.json b/test/bipm/si/2019/derived/unit/siemens/v1.test.json deleted file mode 100644 index 41315cf2..00000000 --- a/test/bipm/si/2019/derived/unit/siemens/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/unit/siemens/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/unit/sievert/v1.test.json b/test/bipm/si/2019/derived/unit/sievert/v1.test.json deleted file mode 100644 index e1e899e3..00000000 --- a/test/bipm/si/2019/derived/unit/sievert/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/unit/sievert/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/unit/steradian/v1.test.json b/test/bipm/si/2019/derived/unit/steradian/v1.test.json deleted file mode 100644 index d0ec0933..00000000 --- a/test/bipm/si/2019/derived/unit/steradian/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/unit/steradian/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/unit/tesla/v1.test.json b/test/bipm/si/2019/derived/unit/tesla/v1.test.json deleted file mode 100644 index faaf519a..00000000 --- a/test/bipm/si/2019/derived/unit/tesla/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/unit/tesla/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/unit/volt/v1.test.json b/test/bipm/si/2019/derived/unit/volt/v1.test.json deleted file mode 100644 index 10a30683..00000000 --- a/test/bipm/si/2019/derived/unit/volt/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/unit/volt/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/unit/watt/v1.test.json b/test/bipm/si/2019/derived/unit/watt/v1.test.json deleted file mode 100644 index 2c24565f..00000000 --- a/test/bipm/si/2019/derived/unit/watt/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/unit/watt/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/derived/unit/weber/v1.test.json b/test/bipm/si/2019/derived/unit/weber/v1.test.json deleted file mode 100644 index 146073f7..00000000 --- a/test/bipm/si/2019/derived/unit/weber/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/derived/unit/weber/v1.json", - "tests": [ - { - "description": "Valid - positive number", - "data": 10, - "valid": true - }, - { - "description": "Valid - decimal", - "data": 5.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "10", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/non-si/unit/arcminute/v1.test.json b/test/bipm/si/2019/non-si/unit/arcminute/v1.test.json deleted file mode 100644 index ef122ae0..00000000 --- a/test/bipm/si/2019/non-si/unit/arcminute/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/non-si/unit/arcminute/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - one arcminute", - "data": 1, - "valid": true - }, - { - "description": "Valid - one degree in arcminutes", - "data": 60, - "valid": true - }, - { - "description": "Valid - negative", - "data": -30, - "valid": true - }, - { - "description": "Valid - fractional", - "data": 15.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "30", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/non-si/unit/arcsecond/v1.test.json b/test/bipm/si/2019/non-si/unit/arcsecond/v1.test.json deleted file mode 100644 index 16fed8a7..00000000 --- a/test/bipm/si/2019/non-si/unit/arcsecond/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/non-si/unit/arcsecond/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - one arcsecond", - "data": 1, - "valid": true - }, - { - "description": "Valid - one arcminute in arcseconds", - "data": 60, - "valid": true - }, - { - "description": "Valid - negative", - "data": -30, - "valid": true - }, - { - "description": "Valid - fractional", - "data": 15.5, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "30", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/non-si/unit/astronomical-unit/v1.test.json b/test/bipm/si/2019/non-si/unit/astronomical-unit/v1.test.json deleted file mode 100644 index 39c3111f..00000000 --- a/test/bipm/si/2019/non-si/unit/astronomical-unit/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/non-si/unit/astronomical-unit/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - Earth-Sun distance", - "data": 1, - "valid": true - }, - { - "description": "Valid - Mercury distance", - "data": 0.387, - "valid": true - }, - { - "description": "Valid - Mars distance", - "data": 1.524, - "valid": true - }, - { - "description": "Valid - Pluto distance", - "data": 39.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -1, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "1", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/non-si/unit/dalton/v1.test.json b/test/bipm/si/2019/non-si/unit/dalton/v1.test.json deleted file mode 100644 index 624f8f91..00000000 --- a/test/bipm/si/2019/non-si/unit/dalton/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/non-si/unit/dalton/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - hydrogen atomic mass", - "data": 1, - "valid": true - }, - { - "description": "Valid - carbon atomic mass", - "data": 12, - "valid": true - }, - { - "description": "Valid - water molecular mass", - "data": 18, - "valid": true - }, - { - "description": "Valid - glucose molecular mass", - "data": 180.16, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -1, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "12", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/non-si/unit/day/v1.test.json b/test/bipm/si/2019/non-si/unit/day/v1.test.json deleted file mode 100644 index d17b33c8..00000000 --- a/test/bipm/si/2019/non-si/unit/day/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/non-si/unit/day/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - one day", - "data": 1, - "valid": true - }, - { - "description": "Valid - one week in days", - "data": 7, - "valid": true - }, - { - "description": "Valid - one year in days", - "data": 365, - "valid": true - }, - { - "description": "Valid - fractional", - "data": 0.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -1, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "7", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/non-si/unit/degree/v1.test.json b/test/bipm/si/2019/non-si/unit/degree/v1.test.json deleted file mode 100644 index 396f4ac5..00000000 --- a/test/bipm/si/2019/non-si/unit/degree/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/non-si/unit/degree/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - right angle", - "data": 90, - "valid": true - }, - { - "description": "Valid - straight angle", - "data": 180, - "valid": true - }, - { - "description": "Valid - full rotation", - "data": 360, - "valid": true - }, - { - "description": "Valid - negative angle", - "data": -90, - "valid": true - }, - { - "description": "Valid - decimal degrees", - "data": 37.7749, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "90", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/non-si/unit/electronvolt/v1.test.json b/test/bipm/si/2019/non-si/unit/electronvolt/v1.test.json deleted file mode 100644 index 6f63eed1..00000000 --- a/test/bipm/si/2019/non-si/unit/electronvolt/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/non-si/unit/electronvolt/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - one electronvolt", - "data": 1, - "valid": true - }, - { - "description": "Valid - hydrogen ionization energy", - "data": 13.6, - "valid": true - }, - { - "description": "Valid - electron rest mass energy", - "data": 511000, - "valid": true - }, - { - "description": "Valid - GeV scale", - "data": 1e+9, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -1, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "1", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/non-si/unit/hectare/v1.test.json b/test/bipm/si/2019/non-si/unit/hectare/v1.test.json deleted file mode 100644 index 0c2d2097..00000000 --- a/test/bipm/si/2019/non-si/unit/hectare/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/non-si/unit/hectare/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - one hectare", - "data": 1, - "valid": true - }, - { - "description": "Valid - fractional", - "data": 0.5, - "valid": true - }, - { - "description": "Valid - large area", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -1, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "1", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/non-si/unit/hour/v1.test.json b/test/bipm/si/2019/non-si/unit/hour/v1.test.json deleted file mode 100644 index 802568ca..00000000 --- a/test/bipm/si/2019/non-si/unit/hour/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/non-si/unit/hour/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - one hour", - "data": 1, - "valid": true - }, - { - "description": "Valid - one day in hours", - "data": 24, - "valid": true - }, - { - "description": "Valid - fractional", - "data": 1.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -5, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "24", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/non-si/unit/litre/v1.test.json b/test/bipm/si/2019/non-si/unit/litre/v1.test.json deleted file mode 100644 index a4b7eda4..00000000 --- a/test/bipm/si/2019/non-si/unit/litre/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/non-si/unit/litre/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - one litre", - "data": 1, - "valid": true - }, - { - "description": "Valid - half litre", - "data": 0.5, - "valid": true - }, - { - "description": "Valid - large volume", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -1, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "1", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/non-si/unit/minute/v1.test.json b/test/bipm/si/2019/non-si/unit/minute/v1.test.json deleted file mode 100644 index 876023c1..00000000 --- a/test/bipm/si/2019/non-si/unit/minute/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/non-si/unit/minute/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - one minute", - "data": 1, - "valid": true - }, - { - "description": "Valid - one hour in minutes", - "data": 60, - "valid": true - }, - { - "description": "Valid - fractional", - "data": 1.5, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -5, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "60", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/non-si/unit/tonne/v1.test.json b/test/bipm/si/2019/non-si/unit/tonne/v1.test.json deleted file mode 100644 index 2658b578..00000000 --- a/test/bipm/si/2019/non-si/unit/tonne/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../../schemas/bipm/si/2019/non-si/unit/tonne/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - one tonne", - "data": 1, - "valid": true - }, - { - "description": "Valid - fractional", - "data": 0.5, - "valid": true - }, - { - "description": "Valid - large mass", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - negative", - "data": -1, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "1", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/bipm/si/2019/symbol/v1.test.json b/test/bipm/si/2019/symbol/v1.test.json deleted file mode 100644 index ab6bd208..00000000 --- a/test/bipm/si/2019/symbol/v1.test.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "target": "../../../../../schemas/bipm/si/2019/symbol/v1.json", - "tests": [ - { - "description": "Valid - base unit second", - "data": "s", - "valid": true - }, - { - "description": "Valid - base unit metre", - "data": "m", - "valid": true - }, - { - "description": "Valid - base unit kilogram", - "data": "kg", - "valid": true - }, - { - "description": "Valid - derived unit hertz", - "data": "Hz", - "valid": true - }, - { - "description": "Valid - derived unit newton", - "data": "N", - "valid": true - }, - { - "description": "Valid - derived unit ohm", - "data": "Ω", - "valid": true - }, - { - "description": "Valid - derived unit degree Celsius", - "data": "°C", - "valid": true - }, - { - "description": "Invalid - unknown symbol", - "data": "foo", - "valid": false - }, - { - "description": "Invalid type - number", - "data": 100, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/ieee/floating-point/2019/binary16-special/v1.test.json b/test/ieee/floating-point/2019/binary16-special/v1.test.json deleted file mode 100644 index e19b194c..00000000 --- a/test/ieee/floating-point/2019/binary16-special/v1.test.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "target": "../../../../../schemas/ieee/floating-point/2019/binary16-special/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0.0, - "valid": true - }, - { - "description": "Valid - positive value", - "data": 1.0, - "valid": true - }, - { - "description": "Valid - negative value", - "data": -1.0, - "valid": true - }, - { - "description": "Valid - maximum value", - "data": 65504.0, - "valid": true - }, - { - "description": "Valid - minimum value", - "data": -65504.0, - "valid": true - }, - { - "description": "Valid - NaN", - "data": "NaN", - "valid": true - }, - { - "description": "Valid - qNaN", - "data": "qNaN", - "valid": true - }, - { - "description": "Valid - sNaN", - "data": "sNaN", - "valid": true - }, - { - "description": "Valid - +Inf", - "data": "+Inf", - "valid": true - }, - { - "description": "Valid - -Inf", - "data": "-Inf", - "valid": true - }, - { - "description": "Invalid - above maximum", - "data": 70000.0, - "valid": false - }, - { - "description": "Invalid - below minimum", - "data": -70000.0, - "valid": false - }, - { - "description": "Invalid - lowercase nan", - "data": "nan", - "valid": false - }, - { - "description": "Invalid - C23 style NAN", - "data": "NAN", - "valid": false - }, - { - "description": "Invalid - C23 style INFINITY", - "data": "INFINITY", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/ieee/floating-point/2019/binary16/v1.test.json b/test/ieee/floating-point/2019/binary16/v1.test.json deleted file mode 100644 index 93df5193..00000000 --- a/test/ieee/floating-point/2019/binary16/v1.test.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "target": "../../../../../schemas/ieee/floating-point/2019/binary16/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0.0, - "valid": true - }, - { - "description": "Valid - positive value", - "data": 1.0, - "valid": true - }, - { - "description": "Valid - negative value", - "data": -1.0, - "valid": true - }, - { - "description": "Valid - pi approximation", - "data": 3.14, - "valid": true - }, - { - "description": "Valid - maximum value", - "data": 65504.0, - "valid": true - }, - { - "description": "Valid - minimum value", - "data": -65504.0, - "valid": true - }, - { - "description": "Valid - small positive value", - "data": 6.10352e-5, - "valid": true - }, - { - "description": "Valid - small negative value", - "data": -6.10352e-5, - "valid": true - }, - { - "description": "Invalid - above maximum", - "data": 70000.0, - "valid": false - }, - { - "description": "Invalid - below minimum", - "data": -70000.0, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "1.0", - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/ieee/floating-point/2019/binary32-special/v1.test.json b/test/ieee/floating-point/2019/binary32-special/v1.test.json deleted file mode 100644 index a132eb3c..00000000 --- a/test/ieee/floating-point/2019/binary32-special/v1.test.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "target": "../../../../../schemas/ieee/floating-point/2019/binary32-special/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0.0, - "valid": true - }, - { - "description": "Valid - positive value", - "data": 1.5, - "valid": true - }, - { - "description": "Valid - negative value", - "data": -3.14, - "valid": true - }, - { - "description": "Valid - maximum value", - "data": 3.402823466385288598117041834845169254400e+38, - "valid": true - }, - { - "description": "Valid - minimum value", - "data": -3.402823466385288598117041834845169254400e+38, - "valid": true - }, - { - "description": "Valid - NaN", - "data": "NaN", - "valid": true - }, - { - "description": "Valid - qNaN", - "data": "qNaN", - "valid": true - }, - { - "description": "Valid - sNaN", - "data": "sNaN", - "valid": true - }, - { - "description": "Valid - +Inf", - "data": "+Inf", - "valid": true - }, - { - "description": "Valid - -Inf", - "data": "-Inf", - "valid": true - }, - { - "description": "Invalid - above maximum", - "data": 3.500000000000000015655673478354095308800e+38, - "valid": false - }, - { - "description": "Invalid - below minimum", - "data": -3.500000000000000015655673478354095308800e+38, - "valid": false - }, - { - "description": "Invalid - lowercase nan", - "data": "nan", - "valid": false - }, - { - "description": "Invalid - C23 style NAN", - "data": "NAN", - "valid": false - }, - { - "description": "Invalid - C23 style INFINITY", - "data": "INFINITY", - "valid": false - }, - { - "description": "Invalid - JavaScript style Infinity", - "data": "Infinity", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/ieee/floating-point/2019/binary32/v1.test.json b/test/ieee/floating-point/2019/binary32/v1.test.json deleted file mode 100644 index 2f37fb5b..00000000 --- a/test/ieee/floating-point/2019/binary32/v1.test.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "target": "../../../../../schemas/ieee/floating-point/2019/binary32/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0.0, - "valid": true - }, - { - "description": "Valid - positive value", - "data": 1.5, - "valid": true - }, - { - "description": "Valid - negative value", - "data": -3.14, - "valid": true - }, - { - "description": "Valid - maximum value", - "data": 3.402823466385288598117041834845169254400e+38, - "valid": true - }, - { - "description": "Valid - minimum value", - "data": -3.402823466385288598117041834845169254400e+38, - "valid": true - }, - { - "description": "Valid - small positive", - "data": 1.4013e-45, - "valid": true - }, - { - "description": "Valid - integer", - "data": 42, - "valid": true - }, - { - "description": "Invalid - above maximum", - "data": 3.500000000000000015655673478354095308800e+38, - "valid": false - }, - { - "description": "Invalid - below minimum", - "data": -3.500000000000000015655673478354095308800e+38, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "1.5", - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/ieee/floating-point/2019/binary64-special/v1.test.json b/test/ieee/floating-point/2019/binary64-special/v1.test.json deleted file mode 100644 index beb70f12..00000000 --- a/test/ieee/floating-point/2019/binary64-special/v1.test.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "target": "../../../../../schemas/ieee/floating-point/2019/binary64-special/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0.0, - "valid": true - }, - { - "description": "Valid - positive value", - "data": 1.5, - "valid": true - }, - { - "description": "Valid - negative value", - "data": -3.14159, - "valid": true - }, - { - "description": "Valid - maximum value", - "data": 1.797693134862315708145274237317043567980705675258449965989174768031572607800285387605895586327668781715404589535143824642343213268894641827684675467035375169860499105765512820762454900903893289440758685084551339423045832369032229481658085593321233482747978262041447231687381771809192998812504040261841248583680e+308, - "valid": true - }, - { - "description": "Valid - minimum value", - "data": -1.797693134862315708145274237317043567980705675258449965989174768031572607800285387605895586327668781715404589535143824642343213268894641827684675467035375169860499105765512820762454900903893289440758685084551339423045832369032229481658085593321233482747978262041447231687381771809192998812504040261841248583680e+308, - "valid": true - }, - { - "description": "Valid - NaN", - "data": "NaN", - "valid": true - }, - { - "description": "Valid - qNaN", - "data": "qNaN", - "valid": true - }, - { - "description": "Valid - sNaN", - "data": "sNaN", - "valid": true - }, - { - "description": "Valid - +Inf", - "data": "+Inf", - "valid": true - }, - { - "description": "Valid - -Inf", - "data": "-Inf", - "valid": true - }, - { - "description": "Invalid - lowercase nan", - "data": "nan", - "valid": false - }, - { - "description": "Invalid - C23 style NAN", - "data": "NAN", - "valid": false - }, - { - "description": "Invalid - C23 style INFINITY", - "data": "INFINITY", - "valid": false - }, - { - "description": "Invalid - JavaScript style Infinity", - "data": "Infinity", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/ieee/floating-point/2019/binary64/v1.test.json b/test/ieee/floating-point/2019/binary64/v1.test.json deleted file mode 100644 index abe64f39..00000000 --- a/test/ieee/floating-point/2019/binary64/v1.test.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "target": "../../../../../schemas/ieee/floating-point/2019/binary64/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0.0, - "valid": true - }, - { - "description": "Valid - positive value", - "data": 1.5, - "valid": true - }, - { - "description": "Valid - negative value", - "data": -3.14159, - "valid": true - }, - { - "description": "Valid - scientific notation", - "data": 299800000.0, - "valid": true - }, - { - "description": "Valid - maximum value", - "data": 1.797693134862315708145274237317043567980705675258449965989174768031572607800285387605895586327668781715404589535143824642343213268894641827684675467035375169860499105765512820762454900903893289440758685084551339423045832369032229481658085593321233482747978262041447231687381771809192998812504040261841248583680e+308, - "valid": true - }, - { - "description": "Valid - minimum value", - "data": -1.797693134862315708145274237317043567980705675258449965989174768031572607800285387605895586327668781715404589535143824642343213268894641827684675467035375169860499105765512820762454900903893289440758685084551339423045832369032229481658085593321233482747978262041447231687381771809192998812504040261841248583680e+308, - "valid": true - }, - { - "description": "Valid - integer value", - "data": 42, - "valid": true - }, - { - "description": "Valid - negative integer value", - "data": -100, - "valid": true - }, - { - "description": "Valid - large value within range", - "data": 1.00000000000000001590289110975991804683608085639452813897813275577478387721703810608134699858568151040e+100, - "valid": true - }, - { - "description": "Valid - small negative value within range", - "data": -1.00000000000000001590289110975991804683608085639452813897813275577478387721703810608134699858568151040e+100, - "valid": true - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "1.5", - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/ieee/floating-point/2019/special/v1.test.json b/test/ieee/floating-point/2019/special/v1.test.json deleted file mode 100644 index bf0671a7..00000000 --- a/test/ieee/floating-point/2019/special/v1.test.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "target": "../../../../../schemas/ieee/floating-point/2019/special/v1.json", - "tests": [ - { - "description": "Valid - NaN", - "data": "NaN", - "valid": true - }, - { - "description": "Valid - qNaN", - "data": "qNaN", - "valid": true - }, - { - "description": "Valid - sNaN", - "data": "sNaN", - "valid": true - }, - { - "description": "Valid - +Inf", - "data": "+Inf", - "valid": true - }, - { - "description": "Valid - -Inf", - "data": "-Inf", - "valid": true - }, - { - "description": "Invalid - lowercase nan", - "data": "nan", - "valid": false - }, - { - "description": "Invalid - lowercase inf", - "data": "inf", - "valid": false - }, - { - "description": "Invalid - +inf lowercase", - "data": "+inf", - "valid": false - }, - { - "description": "Invalid - C23 style NAN", - "data": "NAN", - "valid": false - }, - { - "description": "Invalid - C23 style INFINITY", - "data": "INFINITY", - "valid": false - }, - { - "description": "Invalid - C23 style -INFINITY", - "data": "-INFINITY", - "valid": false - }, - { - "description": "Invalid - JavaScript style Infinity", - "data": "Infinity", - "valid": false - }, - { - "description": "Invalid - INF uppercase", - "data": "INF", - "valid": false - }, - { - "description": "Invalid - arbitrary string", - "data": "not-a-number", - "valid": false - }, - { - "description": "Invalid type - number", - "data": 0, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/ieee/posix/2017/path-absolute/v1.test.json b/test/ieee/posix/2017/path-absolute/v1.test.json deleted file mode 100644 index 994d1608..00000000 --- a/test/ieee/posix/2017/path-absolute/v1.test.json +++ /dev/null @@ -1,425 +0,0 @@ -{ - "target": "../../../../../schemas/ieee/posix/2017/path-absolute/v1.json", - "tests": [ - { - "description": "Invalid type - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Root directory", - "data": "/", - "valid": true - }, - { - "description": "Single slash with filename", - "data": "/file", - "valid": true - }, - { - "description": "Simple absolute path", - "data": "/home/user", - "valid": true - }, - { - "description": "Deep absolute path", - "data": "/usr/local/bin/program", - "valid": true - }, - { - "description": "Path with file extension", - "data": "/etc/passwd", - "valid": true - }, - { - "description": "Invalid - exactly two leading slashes are excluded from absolute pathnames", - "data": "//server/share", - "valid": false - }, - { - "description": "Three or more leading slashes (treated as single slash)", - "data": "///home/user", - "valid": true - }, - { - "description": "Four leading slashes", - "data": "////etc/hosts", - "valid": true - }, - { - "description": "Many leading slashes", - "data": "/////////usr/bin", - "valid": true - }, - { - "description": "Multiple slashes in middle", - "data": "/home//user", - "valid": true - }, - { - "description": "Many consecutive slashes", - "data": "/home////user//documents", - "valid": true - }, - { - "description": "Mixed single and multiple slashes", - "data": "/usr//local/bin//program", - "valid": true - }, - { - "description": "Single trailing slash", - "data": "/home/user/", - "valid": true - }, - { - "description": "Multiple trailing slashes", - "data": "/home/user///", - "valid": true - }, - { - "description": "Root with multiple slashes", - "data": "///", - "valid": true - }, - { - "description": "Path with dot component", - "data": "/home/./user", - "valid": true - }, - { - "description": "Path with dot-dot component", - "data": "/home/../etc", - "valid": true - }, - { - "description": "Path with multiple dot components", - "data": "/home/./user/./documents", - "valid": true - }, - { - "description": "Path with multiple dot-dot components", - "data": "/home/user/../../etc", - "valid": true - }, - { - "description": "Path ending with dot", - "data": "/home/user/.", - "valid": true - }, - { - "description": "Path ending with dot-dot", - "data": "/home/user/..", - "valid": true - }, - { - "description": "All uppercase letters", - "data": "/ABCDEFGHIJKLMNOPQRSTUVWXYZ", - "valid": true - }, - { - "description": "All lowercase letters", - "data": "/abcdefghijklmnopqrstuvwxyz", - "valid": true - }, - { - "description": "All digits", - "data": "/0123456789", - "valid": true - }, - { - "description": "Period characters", - "data": "/file.name.ext", - "valid": true - }, - { - "description": "Underscore characters", - "data": "/file_name_with_underscores", - "valid": true - }, - { - "description": "Hyphen characters", - "data": "/file-name-with-hyphens", - "valid": true - }, - { - "description": "Mixed portable characters", - "data": "/home/User_123/file-name.txt", - "valid": true - }, - { - "description": "All portable characters in one filename", - "data": "/ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._-", - "valid": true - }, - { - "description": "Empty component between slashes", - "data": "/home//user", - "valid": true - }, - { - "description": "Multiple empty components", - "data": "/home///user///documents", - "valid": true - }, - { - "description": "Single character filename", - "data": "/a", - "valid": true - }, - { - "description": "Single digit filename", - "data": "/1", - "valid": true - }, - { - "description": "Filename starting with dot (hidden file)", - "data": "/home/user/.bashrc", - "valid": true - }, - { - "description": "Filename starting with hyphen", - "data": "/-file", - "valid": true - }, - { - "description": "Filename with only dots", - "data": "/home/user/....", - "valid": true - }, - { - "description": "Filename with only hyphens", - "data": "/home/user/----", - "valid": true - }, - { - "description": "Filename with only underscores", - "data": "/home/user/____", - "valid": true - }, - { - "description": "Relative path", - "data": "home/user", - "valid": false - }, - { - "description": "Empty string", - "data": "", - "valid": false - }, - { - "description": "Single dot", - "data": ".", - "valid": false - }, - { - "description": "Dot-dot", - "data": "..", - "valid": false - }, - { - "description": "Filename without leading slash", - "data": "file.txt", - "valid": false - }, - { - "description": "Path starting with dot", - "data": "./home/user", - "valid": false - }, - { - "description": "Path starting with dot-dot", - "data": "../home/user", - "valid": false - }, - { - "description": "Path starting with letter", - "data": "home/user/documents", - "valid": false - }, - { - "description": "Null byte in path", - "data": "/home/user\u0000file", - "valid": false - }, - { - "description": "Null byte at beginning of filename", - "data": "/\u0000home", - "valid": false - }, - { - "description": "Null byte at end", - "data": "/home/user\u0000", - "valid": false - }, - { - "description": "Deep nesting", - "data": "/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z", - "valid": true - }, - { - "description": "Space in filename", - "data": "/home/my file", - "valid": true - }, - { - "description": "Special characters (non-portable but not forbidden)", - "data": "/home/file@#$%^&*()", - "valid": true - }, - { - "description": "Unicode characters (implementation-dependent)", - "data": "/home/файл", - "valid": true - }, - { - "description": "High-bit characters", - "data": "/home/fileéñ", - "valid": true - }, - { - "description": "Maximum depth root reference", - "data": "/../../../../../../../../../../../../../../../../../../../../..", - "valid": true - }, - { - "description": "Complex combination of dots and regular names", - "data": "/home/./user/../user/./documents/../documents/file", - "valid": true - }, - { - "description": "Common executable path", - "data": "/usr/bin/bash", - "valid": true - }, - { - "description": "Common configuration file", - "data": "/etc/systemd/system/myservice.service", - "valid": true - }, - { - "description": "Home directory file", - "data": "/home/username/.ssh/id_rsa", - "valid": true - }, - { - "description": "Temporary file", - "data": "/tmp/temp_file_123.tmp", - "valid": true - }, - { - "description": "Device file", - "data": "/dev/sda1", - "valid": true - }, - { - "description": "Proc filesystem", - "data": "/proc/1/cmdline", - "valid": true - }, - { - "description": "Var log file", - "data": "/var/log/syslog", - "valid": true - }, - { - "description": "Path with backslash (valid character, not separator in POSIX)", - "data": "/home/file\\name", - "valid": true - }, - { - "description": "Path with colon (valid in POSIX filenames)", - "data": "/home/file:name", - "valid": true - }, - { - "description": "Path with semicolon", - "data": "/home/file;name", - "valid": true - }, - { - "description": "Path with question mark", - "data": "/home/file?name", - "valid": true - }, - { - "description": "Path with asterisk", - "data": "/home/file*name", - "valid": true - }, - { - "description": "Path with brackets", - "data": "/home/file[123]name", - "valid": true - }, - { - "description": "Path with braces", - "data": "/home/file{abc}name", - "valid": true - }, - { - "description": "Path with pipe character", - "data": "/home/file|name", - "valid": true - }, - { - "description": "Path with tab character", - "data": "/home/file\tname", - "valid": true - }, - { - "description": "Path with newline (valid but problematic)", - "data": "/home/file\nname", - "valid": true - }, - { - "description": "Hidden directory with config", - "data": "/home/user/.config/app/settings.conf", - "valid": true - }, - { - "description": "Multiple extensions", - "data": "/usr/share/doc/package/README.md.gz", - "valid": true - }, - { - "description": "Numeric filename", - "data": "/proc/1234/fd/0", - "valid": true - }, - { - "description": "Single slash only", - "data": "/", - "valid": true - }, - { - "description": "Invalid - exactly two slashes are excluded from absolute pathnames", - "data": "//", - "valid": false - }, - { - "description": "Many slashes only", - "data": "/////////", - "valid": true - } - ] -} diff --git a/test/ieee/posix/2017/path-relative/v1.test.json b/test/ieee/posix/2017/path-relative/v1.test.json deleted file mode 100644 index f0232c61..00000000 --- a/test/ieee/posix/2017/path-relative/v1.test.json +++ /dev/null @@ -1,410 +0,0 @@ -{ - "target": "../../../../../schemas/ieee/posix/2017/path-relative/v1.json", - "tests": [ - { - "description": "Invalid type - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Empty string", - "data": "", - "valid": true - }, - { - "description": "Single filename", - "data": "file.txt", - "valid": true - }, - { - "description": "Simple relative path", - "data": "home/user", - "valid": true - }, - { - "description": "Deep relative path", - "data": "documents/projects/readme.md", - "valid": true - }, - { - "description": "Path with file extension", - "data": "config/settings.conf", - "valid": true - }, - { - "description": "Current directory reference", - "data": ".", - "valid": true - }, - { - "description": "Parent directory reference", - "data": "..", - "valid": true - }, - { - "description": "Path starting with dot", - "data": "./file.txt", - "valid": true - }, - { - "description": "Path starting with dot-dot", - "data": "../file.txt", - "valid": true - }, - { - "description": "Path with dot component", - "data": "home/./user", - "valid": true - }, - { - "description": "Path with dot-dot component", - "data": "home/../etc", - "valid": true - }, - { - "description": "Multiple dot components", - "data": "home/./user/./documents", - "valid": true - }, - { - "description": "Multiple dot-dot components", - "data": "home/user/../../etc", - "valid": true - }, - { - "description": "Path ending with dot", - "data": "home/user/.", - "valid": true - }, - { - "description": "Path ending with dot-dot", - "data": "home/user/..", - "valid": true - }, - { - "description": "Complex dot navigation", - "data": "../../../home/./user/../documents", - "valid": true - }, - { - "description": "Multiple consecutive slashes", - "data": "home//user", - "valid": true - }, - { - "description": "Many consecutive slashes", - "data": "home////user//documents", - "valid": true - }, - { - "description": "Mixed single and multiple slashes", - "data": "usr//local/bin//program", - "valid": true - }, - { - "description": "Trailing slash", - "data": "home/user/", - "valid": true - }, - { - "description": "Multiple trailing slashes", - "data": "home/user///", - "valid": true - }, - { - "description": "Dot with trailing slash", - "data": "./", - "valid": true - }, - { - "description": "Dot-dot with trailing slash", - "data": "../", - "valid": true - }, - { - "description": "All uppercase letters", - "data": "ABCDEFGHIJKLMNOPQRSTUVWXYZ", - "valid": true - }, - { - "description": "All lowercase letters", - "data": "abcdefghijklmnopqrstuvwxyz", - "valid": true - }, - { - "description": "All digits", - "data": "0123456789", - "valid": true - }, - { - "description": "Period characters", - "data": "file.name.ext", - "valid": true - }, - { - "description": "Underscore characters", - "data": "file_name_with_underscores", - "valid": true - }, - { - "description": "Hyphen characters", - "data": "file-name-with-hyphens", - "valid": true - }, - { - "description": "Mixed portable characters", - "data": "home/User_123/file-name.txt", - "valid": true - }, - { - "description": "Single character filename", - "data": "a", - "valid": true - }, - { - "description": "Single digit filename", - "data": "1", - "valid": true - }, - { - "description": "Hidden file (starts with dot)", - "data": ".bashrc", - "valid": true - }, - { - "description": "Hidden file in directory", - "data": "home/user/.bashrc", - "valid": true - }, - { - "description": "Filename starting with hyphen", - "data": "-file", - "valid": true - }, - { - "description": "Filename with only dots", - "data": "....", - "valid": true - }, - { - "description": "Filename with only hyphens", - "data": "----", - "valid": true - }, - { - "description": "Filename with only underscores", - "data": "____", - "valid": true - }, - { - "description": "Space in filename", - "data": "my file", - "valid": true - }, - { - "description": "Space in path", - "data": "home/my file/document", - "valid": true - }, - { - "description": "Special characters", - "data": "file@#$%^&*()", - "valid": true - }, - { - "description": "Unicode characters", - "data": "файл.txt", - "valid": true - }, - { - "description": "High-bit characters", - "data": "filé.txt", - "valid": true - }, - { - "description": "Backslash character", - "data": "file\\name", - "valid": true - }, - { - "description": "Colon character", - "data": "file:name", - "valid": true - }, - { - "description": "Semicolon character", - "data": "file;name", - "valid": true - }, - { - "description": "Question mark character", - "data": "file?name", - "valid": true - }, - { - "description": "Asterisk character", - "data": "file*name", - "valid": true - }, - { - "description": "Brackets", - "data": "file[123]name", - "valid": true - }, - { - "description": "Braces", - "data": "file{abc}name", - "valid": true - }, - { - "description": "Pipe character", - "data": "file|name", - "valid": true - }, - { - "description": "Tab character", - "data": "file\tname", - "valid": true - }, - { - "description": "Newline character", - "data": "file\nname", - "valid": true - }, - { - "description": "Deep nesting", - "data": "a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z", - "valid": true - }, - { - "description": "Complex combination with dots", - "data": "home/./user/../user/./documents/../documents/file", - "valid": true - }, - { - "description": "Common document path", - "data": "Documents/Projects/readme.md", - "valid": true - }, - { - "description": "Configuration file path", - "data": ".config/app/settings.conf", - "valid": true - }, - { - "description": "Source code path", - "data": "src/main/java/com/example/App.java", - "valid": true - }, - { - "description": "Build output path", - "data": "build/dist/app-1.0.0.jar", - "valid": true - }, - { - "description": "Temporary file", - "data": "tmp/temp_file_123.tmp", - "valid": true - }, - { - "description": "Multiple extensions", - "data": "archive.tar.gz", - "valid": true - }, - { - "description": "No extension", - "data": "README", - "valid": true - }, - { - "description": "Numeric filename", - "data": "1234/5678", - "valid": true - }, - { - "description": "Only slashes (empty components)", - "data": "///", - "valid": false - }, - { - "description": "Empty components between names", - "data": "home///user", - "valid": true - }, - { - "description": "Absolute path (starts with slash)", - "data": "/home/user", - "valid": false - }, - { - "description": "Root directory", - "data": "/", - "valid": false - }, - { - "description": "Absolute path with single file", - "data": "/file.txt", - "valid": false - }, - { - "description": "Deep absolute path", - "data": "/usr/local/bin/program", - "valid": false - }, - { - "description": "Two leading slashes", - "data": "//server/share", - "valid": false - }, - { - "description": "Three leading slashes", - "data": "///home/user", - "valid": false - }, - { - "description": "Many leading slashes", - "data": "/////////usr/bin", - "valid": false - }, - { - "description": "Null byte in path", - "data": "home/user\u0000file", - "valid": false - }, - { - "description": "Null byte at beginning", - "data": "\u0000home", - "valid": false - }, - { - "description": "Null byte at end", - "data": "home/user\u0000", - "valid": false - }, - { - "description": "Null byte in filename", - "data": "file\u0000.txt", - "valid": false - } - ] -} diff --git a/test/ieee/posix/2017/path/v1.test.json b/test/ieee/posix/2017/path/v1.test.json deleted file mode 100644 index 9b52ad67..00000000 --- a/test/ieee/posix/2017/path/v1.test.json +++ /dev/null @@ -1,575 +0,0 @@ -{ - "target": "../../../../../schemas/ieee/posix/2017/path/v1.json", - "tests": [ - { - "description": "Invalid type - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Empty string (relative path)", - "data": "", - "valid": true - }, - { - "description": "Root directory (absolute)", - "data": "/", - "valid": true - }, - { - "description": "Simple absolute path", - "data": "/home/user", - "valid": true - }, - { - "description": "Deep absolute path", - "data": "/usr/local/bin/program", - "valid": true - }, - { - "description": "Absolute path with extension", - "data": "/etc/passwd", - "valid": true - }, - { - "description": "Single filename (relative)", - "data": "file.txt", - "valid": true - }, - { - "description": "Simple relative path", - "data": "home/user", - "valid": true - }, - { - "description": "Deep relative path", - "data": "documents/projects/readme.md", - "valid": true - }, - { - "description": "Relative path with extension", - "data": "config/settings.conf", - "valid": true - }, - { - "description": "Two leading slashes (absolute, implementation-defined)", - "data": "//server/share", - "valid": true - }, - { - "description": "Three leading slashes (absolute)", - "data": "///home/user", - "valid": true - }, - { - "description": "Many leading slashes (absolute)", - "data": "/////////usr/bin", - "valid": true - }, - { - "description": "Current directory (relative)", - "data": ".", - "valid": true - }, - { - "description": "Parent directory (relative)", - "data": "..", - "valid": true - }, - { - "description": "Relative path starting with dot", - "data": "./file.txt", - "valid": true - }, - { - "description": "Relative path starting with dot-dot", - "data": "../file.txt", - "valid": true - }, - { - "description": "Absolute path with dot component", - "data": "/home/./user", - "valid": true - }, - { - "description": "Absolute path with dot-dot component", - "data": "/home/../etc", - "valid": true - }, - { - "description": "Relative path with dot component", - "data": "home/./user", - "valid": true - }, - { - "description": "Relative path with dot-dot component", - "data": "home/../etc", - "valid": true - }, - { - "description": "Multiple dots in absolute path", - "data": "/home/./user/./documents", - "valid": true - }, - { - "description": "Multiple dots in relative path", - "data": "home/./user/./documents", - "valid": true - }, - { - "description": "Multiple dot-dots in absolute path", - "data": "/home/user/../../etc", - "valid": true - }, - { - "description": "Multiple dot-dots in relative path", - "data": "home/user/../../etc", - "valid": true - }, - { - "description": "Absolute path ending with dot", - "data": "/home/user/.", - "valid": true - }, - { - "description": "Relative path ending with dot", - "data": "home/user/.", - "valid": true - }, - { - "description": "Absolute path ending with dot-dot", - "data": "/home/user/..", - "valid": true - }, - { - "description": "Relative path ending with dot-dot", - "data": "home/user/..", - "valid": true - }, - { - "description": "Multiple slashes in absolute path", - "data": "/home//user", - "valid": true - }, - { - "description": "Multiple slashes in relative path", - "data": "home//user", - "valid": true - }, - { - "description": "Many consecutive slashes in absolute path", - "data": "/home////user//documents", - "valid": true - }, - { - "description": "Many consecutive slashes in relative path", - "data": "home////user//documents", - "valid": true - }, - { - "description": "Absolute path with trailing slash", - "data": "/home/user/", - "valid": true - }, - { - "description": "Relative path with trailing slash", - "data": "home/user/", - "valid": true - }, - { - "description": "Absolute path with multiple trailing slashes", - "data": "/home/user///", - "valid": true - }, - { - "description": "Relative path with multiple trailing slashes", - "data": "home/user///", - "valid": true - }, - { - "description": "Current directory with trailing slash", - "data": "./", - "valid": true - }, - { - "description": "Parent directory with trailing slash", - "data": "../", - "valid": true - }, - { - "description": "Portable characters - all uppercase", - "data": "ABCDEFGHIJKLMNOPQRSTUVWXYZ", - "valid": true - }, - { - "description": "Portable characters - all lowercase", - "data": "abcdefghijklmnopqrstuvwxyz", - "valid": true - }, - { - "description": "Portable characters - all digits", - "data": "0123456789", - "valid": true - }, - { - "description": "Portable characters - period", - "data": "file.name.ext", - "valid": true - }, - { - "description": "Portable characters - underscore", - "data": "file_name_with_underscores", - "valid": true - }, - { - "description": "Portable characters - hyphen", - "data": "file-name-with-hyphens", - "valid": true - }, - { - "description": "Mixed portable characters in absolute path", - "data": "/home/User_123/file-name.txt", - "valid": true - }, - { - "description": "Mixed portable characters in relative path", - "data": "home/User_123/file-name.txt", - "valid": true - }, - { - "description": "Single character absolute path", - "data": "/a", - "valid": true - }, - { - "description": "Single character relative path", - "data": "a", - "valid": true - }, - { - "description": "Single digit absolute path", - "data": "/1", - "valid": true - }, - { - "description": "Single digit relative path", - "data": "1", - "valid": true - }, - { - "description": "Hidden file in absolute path", - "data": "/home/user/.bashrc", - "valid": true - }, - { - "description": "Hidden file in relative path", - "data": ".bashrc", - "valid": true - }, - { - "description": "Filename starting with hyphen in absolute path", - "data": "/-file", - "valid": true - }, - { - "description": "Filename starting with hyphen in relative path", - "data": "-file", - "valid": true - }, - { - "description": "Space in absolute path", - "data": "/home/my file", - "valid": true - }, - { - "description": "Space in relative path", - "data": "my file", - "valid": true - }, - { - "description": "Special characters in absolute path", - "data": "/home/file@#$%^&*()", - "valid": true - }, - { - "description": "Special characters in relative path", - "data": "file@#$%^&*()", - "valid": true - }, - { - "description": "Unicode characters in absolute path", - "data": "/home/файл", - "valid": true - }, - { - "description": "Unicode characters in relative path", - "data": "файл", - "valid": true - }, - { - "description": "High-bit characters in absolute path", - "data": "/home/filé", - "valid": true - }, - { - "description": "High-bit characters in relative path", - "data": "filé", - "valid": true - }, - { - "description": "Backslash in absolute path", - "data": "/home/file\\name", - "valid": true - }, - { - "description": "Backslash in relative path", - "data": "file\\name", - "valid": true - }, - { - "description": "Colon in absolute path", - "data": "/home/file:name", - "valid": true - }, - { - "description": "Colon in relative path", - "data": "file:name", - "valid": true - }, - { - "description": "Question mark in absolute path", - "data": "/home/file?name", - "valid": true - }, - { - "description": "Question mark in relative path", - "data": "file?name", - "valid": true - }, - { - "description": "Asterisk in absolute path", - "data": "/home/file*name", - "valid": true - }, - { - "description": "Asterisk in relative path", - "data": "file*name", - "valid": true - }, - { - "description": "Brackets in absolute path", - "data": "/home/file[123]name", - "valid": true - }, - { - "description": "Brackets in relative path", - "data": "file[123]name", - "valid": true - }, - { - "description": "Pipe character in absolute path", - "data": "/home/file|name", - "valid": true - }, - { - "description": "Pipe character in relative path", - "data": "file|name", - "valid": true - }, - { - "description": "Tab character in absolute path", - "data": "/home/file\tname", - "valid": true - }, - { - "description": "Tab character in relative path", - "data": "file\tname", - "valid": true - }, - { - "description": "Newline in absolute path", - "data": "/home/file\nname", - "valid": true - }, - { - "description": "Newline in relative path", - "data": "file\nname", - "valid": true - }, - { - "description": "Deep nesting absolute path", - "data": "/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z", - "valid": true - }, - { - "description": "Deep nesting relative path", - "data": "a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z", - "valid": true - }, - { - "description": "Complex dot navigation in absolute path", - "data": "/home/./user/../user/./documents/../documents/file", - "valid": true - }, - { - "description": "Complex dot navigation in relative path", - "data": "home/./user/../user/./documents/../documents/file", - "valid": true - }, - { - "description": "Common executable absolute path", - "data": "/usr/bin/bash", - "valid": true - }, - { - "description": "Common config absolute path", - "data": "/etc/systemd/system/myservice.service", - "valid": true - }, - { - "description": "Home directory absolute path", - "data": "/home/username/.ssh/id_rsa", - "valid": true - }, - { - "description": "Temp file absolute path", - "data": "/tmp/temp_file_123.tmp", - "valid": true - }, - { - "description": "Device file absolute path", - "data": "/dev/sda1", - "valid": true - }, - { - "description": "Proc filesystem absolute path", - "data": "/proc/1/cmdline", - "valid": true - }, - { - "description": "Common document relative path", - "data": "Documents/Projects/readme.md", - "valid": true - }, - { - "description": "Config file relative path", - "data": ".config/app/settings.conf", - "valid": true - }, - { - "description": "Source code relative path", - "data": "src/main/java/com/example/App.java", - "valid": true - }, - { - "description": "Build output relative path", - "data": "build/dist/app-1.0.0.jar", - "valid": true - }, - { - "description": "Multiple extensions absolute", - "data": "/usr/share/doc/package/README.md.gz", - "valid": true - }, - { - "description": "Multiple extensions relative", - "data": "archive.tar.gz", - "valid": true - }, - { - "description": "No extension absolute", - "data": "/usr/bin/ls", - "valid": true - }, - { - "description": "No extension relative", - "data": "README", - "valid": true - }, - { - "description": "Numeric filename absolute", - "data": "/proc/1234/fd/0", - "valid": true - }, - { - "description": "Numeric filename relative", - "data": "1234/5678", - "valid": true - }, - { - "description": "Only slashes relative (empty components)", - "data": "///", - "valid": true - }, - { - "description": "Empty components in absolute path", - "data": "/home///user", - "valid": true - }, - { - "description": "Empty components in relative path", - "data": "home///user", - "valid": true - }, - { - "description": "Null byte in absolute path", - "data": "/home/user\u0000file", - "valid": false - }, - { - "description": "Null byte in relative path", - "data": "home/user\u0000file", - "valid": false - }, - { - "description": "Null byte at beginning of absolute path", - "data": "/\u0000home", - "valid": false - }, - { - "description": "Null byte at beginning of relative path", - "data": "\u0000home", - "valid": false - }, - { - "description": "Null byte at end of absolute path", - "data": "/home/user\u0000", - "valid": false - }, - { - "description": "Null byte at end of relative path", - "data": "home/user\u0000", - "valid": false - }, - { - "description": "Null byte in filename absolute", - "data": "/file\u0000.txt", - "valid": false - }, - { - "description": "Null byte in filename relative", - "data": "file\u0000.txt", - "valid": false - } - ] -} diff --git a/test/ietf/email/5321/address/v1.test.json b/test/ietf/email/5321/address/v1.test.json deleted file mode 100644 index e433e7e7..00000000 --- a/test/ietf/email/5321/address/v1.test.json +++ /dev/null @@ -1,365 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/email/5321/address/v1.json", - "tests": [ - { - "description": "Invalid type", - "data": 1, - "valid": false - }, - { - "description": "Basic email format", - "data": "simple@example.com", - "valid": true - }, - { - "description": "Local-part with dot", - "data": "very.common@example.com", - "valid": true - }, - { - "description": "Mixed case local and domain", - "data": "FirstName.LastName@EasierReading.org", - "valid": true - }, - { - "description": "Single character local part", - "data": "x@example.com", - "valid": true - }, - { - "description": "Local-part with hyphens and subdomains", - "data": "long.email-address-with-hyphens@and.subdomains.example.com", - "valid": true - }, - { - "description": "Local-part with plus sign and tags", - "data": "user.name+tag+sorting@example.com", - "valid": true - }, - { - "description": "Local-part with slash", - "data": "name/surname@example.com", - "valid": true - }, - { - "description": "Local-part with underscore", - "data": "user_name@example.com", - "valid": true - }, - { - "description": "Local-part and domain with hyphen", - "data": "user-name@sub-domain.example.co.uk", - "valid": true - }, - { - "description": "Quoted local-part with double dot inside", - "data": "\"john..doe\"@example.org", - "valid": true - }, - { - "description": "Quoted local-part with space", - "data": "\" \"@example.org", - "valid": true - }, - { - "description": "Quoted local-part ending with dot", - "data": "\"john.doe.\"@example.com", - "valid": true - }, - { - "description": "Quoted local-part containing @ symbol", - "data": "\"john@doe\"@example.com", - "valid": true - }, - { - "description": "Example with all allowed special characters in local-part", - "data": "test!#$%&'*+/=?^_`{|}~@example.com", - "valid": true - }, - { - "description": "Bang path style local-part", - "data": "mailhost!username@example.org", - "valid": true - }, - { - "description": "Percent hack routing", - "data": "user%example.com@example.org", - "valid": true - }, - { - "description": "Local-part ending with dash", - "data": "user-@example.org", - "valid": true - }, - { - "description": "IPv4 address literal domain", - "data": "postmaster@[123.123.123.123]", - "valid": true - }, - { - "description": "IPv6 address literal domain", - "data": "postmaster@[IPv6:2001:db8::85a3:0:0:8a2e:370:7334]", - "valid": true - }, - { - "description": "Local-part starts with underscore", - "data": "_test123@example.org", - "valid": true - }, - { - "description": "Plus in local-part with uppercase domain", - "data": "test+filter@Example.COM", - "valid": true - }, - { - "description": "Dot in local-part", - "data": "test.filter@example.com", - "valid": true - }, - { - "description": "Underscore in local-part", - "data": "test_filter@example.com", - "valid": true - }, - { - "description": "Domain with no TLD (dotless domain)", - "data": "admin@example", - "valid": true - }, - { - "description": "Comments around local, domain, and address", - "data": "(comment)john.smith@(comment)example.com(comment)", - "valid": false - }, - { - "description": "Quoted local-part with space and letters", - "data": "\"Fred Bloggs\"@example.com", - "valid": true - }, - { - "description": "Domain literal with letters and dot", - "data": "user@[abc.def]", - "valid": false - }, - { - "description": "All uppercase local and domain", - "data": "USER@EXAMPLE.COM", - "valid": true - }, - { - "description": "Local-part with tilde and domain with hyphen", - "data": "a~b@c-domain.com", - "valid": true - }, - { - "description": "Local-part with slash and plus", - "data": "first.last+category/department@domain.com", - "valid": true - }, - { - "description": "Local-part with apostrophe", - "data": "o'reilly@example.com", - "valid": true - }, - { - "description": "Local-part with multiple route characters", - "data": "dizzy%example.com+tag@example.org", - "valid": true - }, - { - "description": "Email with comment in domain", - "data": "john.smith@(comment)example.com", - "valid": false - }, - { - "description": "Email with comment in local part", - "data": "jo(comment)hn@example.com", - "valid": false - }, - { - "description": "Complex quoted local-part with many allowed symbols", - "data": "\"very.(),:;<>[]\\\".VERY.\\\"very@\\\\ \\\"very\\\".unusual\"@strange.example.com", - "valid": true - }, - { - "description": "Missing @ symbol", - "data": "plainaddress", - "valid": false - }, - { - "description": "Missing local part", - "data": "@no-local-part.com", - "valid": false - }, - { - "description": "Missing domain", - "data": "user@", - "valid": false - }, - { - "description": "Missing both local and domain parts", - "data": "@", - "valid": false - }, - { - "description": "Leading dot in local-part", - "data": ".user@example.com", - "valid": false - }, - { - "description": "Trailing dot in local-part", - "data": "user.@example.com", - "valid": false - }, - { - "description": "Consecutive dots in local-part", - "data": "user..user@example.com", - "valid": false - }, - { - "description": "Leading dot in domain", - "data": "user@.example.com", - "valid": false - }, - { - "description": "Trailing dot in domain", - "data": "user@example.com.", - "valid": false - }, - { - "description": "Consecutive dots in domain", - "data": "user@example..com", - "valid": false - }, - { - "description": "Domain label starts with hyphen", - "data": "user@-example.com", - "valid": false - }, - { - "description": "Domain label ends with hyphen", - "data": "user@example-.com", - "valid": false - }, - { - "description": "Underscore in domain part", - "data": "user@exam_ple.com", - "valid": false - }, - { - "description": "Numeric TLD in domain", - "data": "user@example.123", - "valid": true - }, - { - "description": "Multiple @ symbols", - "data": "A@b@c@example.com", - "valid": false - }, - { - "description": "Invalid characters in local-part (unquoted specials)", - "data": "a\"b(c)d,e:f;gi[j\\k]l@example.com", - "valid": false - }, - { - "description": "Incorrect quoted string placement in local-part", - "data": "just\"not\"right@example.com", - "valid": false - }, - { - "description": "Unquoted space in local-part", - "data": "this is\"not\\allowed@example.com", - "valid": false - }, - { - "description": "Escaped characters outside quotes in local-part", - "data": "this\\ still\\\"not\\\\allowed@example.com", - "valid": false - }, - { - "description": "Just a quoted string with no @ and domain", - "data": "\"test\"", - "valid": false - }, - { - "description": "Unclosed comment in local-part", - "data": "john(dôe@example.com", - "valid": false - }, - { - "description": "Unmatched parenthesis in domain", - "data": "john@example.com)", - "valid": false - }, - { - "description": "Non-ASCII character in local-part", - "data": "mañana@example.com", - "valid": false - }, - { - "description": "Non-ASCII character in domain", - "data": "user@exámple.com", - "valid": false - }, - { - "description": "Missing closing bracket in domain literal", - "data": "test@[127.0.0.1", - "valid": false - }, - { - "description": "Missing opening bracket in domain literal", - "data": "test@127.0.0.1]", - "valid": false - }, - { - "description": "Trailing dot after domain literal", - "data": "test@[127.0.0.1].", - "valid": false - }, - { - "description": "Unclosed IPv6 literal", - "data": "test@[IPv6:2001:db8::1", - "valid": false - }, - { - "description": "Extra characters after domain literal", - "data": "test@[IPv6:2001:db8::1]extra", - "valid": false - }, - { - "description": "Uppercase numeric TLD", - "data": "user@EXAMPLE.123", - "valid": true - }, - { - "description": "IP address without brackets in domain", - "data": "user@123.123.123.123", - "valid": true - }, - { - "description": "IPv6 address without brackets", - "data": "user@IPv6:2001:db8::1", - "valid": false - }, - { - "description": "Single quote in local part", - "data": "'test'@example.com", - "valid": true - }, - { - "description": "Double quotes misplacement", - "data": "\"\"test@example.com", - "valid": false - }, - { - "description": "Escaped @ outside quoted string (invalid)", - "data": "test\\@example.com", - "valid": false - }, - { - "description": "Empty string", - "data": "", - "valid": false - } - ] -} diff --git a/test/ietf/encoding/4648/base16/v1.test.json b/test/ietf/encoding/4648/base16/v1.test.json deleted file mode 100644 index 3047d5ef..00000000 --- a/test/ietf/encoding/4648/base16/v1.test.json +++ /dev/null @@ -1,500 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/encoding/4648/base16/v1.json", - "tests": [ - { - "description": "Valid - empty string", - "data": "", - "valid": true - }, - { - "description": "Valid - single byte uppercase", - "data": "0F", - "valid": true - }, - { - "description": "Valid - single byte lowercase", - "data": "0f", - "valid": true - }, - { - "description": "Valid - single byte mixed case", - "data": "0F", - "valid": true - }, - { - "description": "Valid - 'Hello World!' in hex", - "data": "48656C6C6F20576F726C6421", - "valid": true - }, - { - "description": "Valid - 'foo' in hex", - "data": "666F6F", - "valid": true - }, - { - "description": "Valid - all uppercase", - "data": "DEADBEEF", - "valid": true - }, - { - "description": "Valid - all lowercase", - "data": "deadbeef", - "valid": true - }, - { - "description": "Valid - mixed case", - "data": "DeAdBeEf", - "valid": true - }, - { - "description": "Valid - all zeros", - "data": "0000", - "valid": true - }, - { - "description": "Valid - all F's uppercase", - "data": "FFFF", - "valid": true - }, - { - "description": "Valid - all f's lowercase", - "data": "ffff", - "valid": true - }, - { - "description": "Valid - only digits 0-9", - "data": "0123456789", - "valid": true - }, - { - "description": "Valid - only letters A-F uppercase", - "data": "ABCDEF", - "valid": true - }, - { - "description": "Valid - only letters a-f lowercase", - "data": "abcdef", - "valid": true - }, - { - "description": "Valid - two bytes", - "data": "0FB7", - "valid": true - }, - { - "description": "Valid - four bytes", - "data": "DEADBEEF", - "valid": true - }, - { - "description": "Valid - eight bytes", - "data": "0123456789ABCDEF", - "valid": true - }, - { - "description": "Valid - sixteen bytes", - "data": "0123456789ABCDEF0123456789ABCDEF", - "valid": true - }, - { - "description": "Valid - long hex string", - "data": "48656C6C6F20576F726C64212048657265206973206120766572792076657279206C6F6E672068657820737472696E67", - "valid": true - }, - { - "description": "Invalid - single character (odd length)", - "data": "0", - "valid": false - }, - { - "description": "Invalid - three characters (odd length)", - "data": "ABC", - "valid": false - }, - { - "description": "Invalid - five characters (odd length)", - "data": "ABCDE", - "valid": false - }, - { - "description": "Invalid - seven characters (odd length)", - "data": "ABCDEFG", - "valid": false - }, - { - "description": "Invalid - contains G", - "data": "0G", - "valid": false - }, - { - "description": "Invalid - contains H", - "data": "0H", - "valid": false - }, - { - "description": "Invalid - contains Z", - "data": "0Z", - "valid": false - }, - { - "description": "Invalid - contains g", - "data": "0g", - "valid": false - }, - { - "description": "Invalid - contains h", - "data": "0h", - "valid": false - }, - { - "description": "Invalid - contains z", - "data": "0z", - "valid": false - }, - { - "description": "Invalid - contains space", - "data": "DE AD", - "valid": false - }, - { - "description": "Invalid - contains hyphen", - "data": "DE-AD", - "valid": false - }, - { - "description": "Invalid - contains underscore", - "data": "DE_AD", - "valid": false - }, - { - "description": "Invalid - contains plus", - "data": "DE+AD", - "valid": false - }, - { - "description": "Invalid - contains slash", - "data": "DE/AD", - "valid": false - }, - { - "description": "Invalid - contains period", - "data": "DE.AD", - "valid": false - }, - { - "description": "Invalid - contains comma", - "data": "DE,AD", - "valid": false - }, - { - "description": "Invalid - contains colon", - "data": "DE:AD", - "valid": false - }, - { - "description": "Invalid - contains semicolon", - "data": "DE;AD", - "valid": false - }, - { - "description": "Invalid - contains (", - "data": "DE(AD", - "valid": false - }, - { - "description": "Invalid - contains )", - "data": "DE)AD", - "valid": false - }, - { - "description": "Invalid - contains [", - "data": "DE[AD", - "valid": false - }, - { - "description": "Invalid - contains ]", - "data": "DE]AD", - "valid": false - }, - { - "description": "Invalid - contains {", - "data": "DE{AD", - "valid": false - }, - { - "description": "Invalid - contains }", - "data": "DE}AD", - "valid": false - }, - { - "description": "Invalid - contains !", - "data": "DE!AD", - "valid": false - }, - { - "description": "Invalid - contains ?", - "data": "DE?AD", - "valid": false - }, - { - "description": "Invalid - contains @", - "data": "DE@AD", - "valid": false - }, - { - "description": "Invalid - contains #", - "data": "DE#AD", - "valid": false - }, - { - "description": "Invalid - contains $", - "data": "DE$AD", - "valid": false - }, - { - "description": "Invalid - contains %", - "data": "DE%AD", - "valid": false - }, - { - "description": "Invalid - contains ^", - "data": "DE^AD", - "valid": false - }, - { - "description": "Invalid - contains &", - "data": "DE&AD", - "valid": false - }, - { - "description": "Invalid - contains *", - "data": "DE*AD", - "valid": false - }, - { - "description": "Invalid - contains ~", - "data": "DE~AD", - "valid": false - }, - { - "description": "Invalid - contains `", - "data": "DE`AD", - "valid": false - }, - { - "description": "Invalid - contains |", - "data": "DE|AD", - "valid": false - }, - { - "description": "Invalid - contains \\", - "data": "DE\\AD", - "valid": false - }, - { - "description": "Invalid - contains '", - "data": "DE'AD", - "valid": false - }, - { - "description": "Invalid - contains \"", - "data": "DE\"AD", - "valid": false - }, - { - "description": "Invalid - contains <", - "data": "DE", - "data": "DE>AD", - "valid": false - }, - { - "description": "Invalid - leading space", - "data": " DEAD", - "valid": false - }, - { - "description": "Invalid - trailing space", - "data": "DEAD ", - "valid": false - }, - { - "description": "Invalid - leading tab", - "data": "\tDEAD", - "valid": false - }, - { - "description": "Invalid - trailing tab", - "data": "DEAD\t", - "valid": false - }, - { - "description": "Invalid - tab in middle", - "data": "DE\tAD", - "valid": false - }, - { - "description": "Invalid - contains newline", - "data": "DE\nAD", - "valid": false - }, - { - "description": "Invalid - contains carriage return", - "data": "DE\rAD", - "valid": false - }, - { - "description": "Invalid - non-ASCII character", - "data": "DEéAD", - "valid": false - }, - { - "description": "Invalid - emoji", - "data": "DE😀AD", - "valid": false - }, - { - "description": "Invalid - number type", - "data": 123, - "valid": false - }, - { - "description": "Invalid - boolean type", - "data": true, - "valid": false - }, - { - "description": "Invalid - null type", - "data": null, - "valid": false - }, - { - "description": "Valid - digit 0", - "data": "00", - "valid": true - }, - { - "description": "Valid - digit 1", - "data": "11", - "valid": true - }, - { - "description": "Valid - digit 2", - "data": "22", - "valid": true - }, - { - "description": "Valid - digit 3", - "data": "33", - "valid": true - }, - { - "description": "Valid - digit 4", - "data": "44", - "valid": true - }, - { - "description": "Valid - digit 5", - "data": "55", - "valid": true - }, - { - "description": "Valid - digit 6", - "data": "66", - "valid": true - }, - { - "description": "Valid - digit 7", - "data": "77", - "valid": true - }, - { - "description": "Valid - digit 8", - "data": "88", - "valid": true - }, - { - "description": "Valid - digit 9", - "data": "99", - "valid": true - }, - { - "description": "Valid - letter A uppercase", - "data": "AA", - "valid": true - }, - { - "description": "Valid - letter B uppercase", - "data": "BB", - "valid": true - }, - { - "description": "Valid - letter C uppercase", - "data": "CC", - "valid": true - }, - { - "description": "Valid - letter D uppercase", - "data": "DD", - "valid": true - }, - { - "description": "Valid - letter E uppercase", - "data": "EE", - "valid": true - }, - { - "description": "Valid - letter F uppercase", - "data": "FF", - "valid": true - }, - { - "description": "Valid - letter a lowercase", - "data": "aa", - "valid": true - }, - { - "description": "Valid - letter b lowercase", - "data": "bb", - "valid": true - }, - { - "description": "Valid - letter c lowercase", - "data": "cc", - "valid": true - }, - { - "description": "Valid - letter d lowercase", - "data": "dd", - "valid": true - }, - { - "description": "Valid - letter e lowercase", - "data": "ee", - "valid": true - }, - { - "description": "Valid - letter f lowercase", - "data": "ff", - "valid": true - }, - { - "description": "Valid - repeating pattern", - "data": "0F0F0F0F", - "valid": true - }, - { - "description": "Valid - alternating case", - "data": "AaBbCcDd", - "valid": true - }, - { - "description": "Valid - all digits and letters mixed", - "data": "0123456789ABCDEFabcdef", - "valid": true - } - ] -} diff --git a/test/ietf/encoding/4648/base32/v1.test.json b/test/ietf/encoding/4648/base32/v1.test.json deleted file mode 100644 index 2d0e646c..00000000 --- a/test/ietf/encoding/4648/base32/v1.test.json +++ /dev/null @@ -1,490 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/encoding/4648/base32/v1.json", - "tests": [ - { - "description": "Valid - empty string", - "data": "", - "valid": true - }, - { - "description": "Valid - single byte (2 chars + 6 padding)", - "data": "ME======", - "valid": true - }, - { - "description": "Valid - two bytes (4 chars + 4 padding)", - "data": "MZXQ====", - "valid": true - }, - { - "description": "Valid - three bytes (5 chars + 3 padding)", - "data": "MZXW6===", - "valid": true - }, - { - "description": "Valid - four bytes (7 chars + 1 padding)", - "data": "MZXW6YQ=", - "valid": true - }, - { - "description": "Valid - five bytes (8 chars, no padding)", - "data": "MZXW6YTB", - "valid": true - }, - { - "description": "Valid - 'Hello World!'", - "data": "JBSWY3DPEBLW64TMMQ======", - "valid": true - }, - { - "description": "Valid - 'foo'", - "data": "MZXW6===", - "valid": true - }, - { - "description": "Valid - 'foobar'", - "data": "MZXW6YTBOI======", - "valid": true - }, - { - "description": "Valid - all A's", - "data": "AAAAAAAA", - "valid": true - }, - { - "description": "Valid - all 7's", - "data": "77777777", - "valid": true - }, - { - "description": "Valid - mixed alphabet", - "data": "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567", - "valid": true - }, - { - "description": "Valid - only letters A-Z", - "data": "ABCDEFGHIJKLMNOP", - "valid": true - }, - { - "description": "Valid - only digits 2-7", - "data": "23456723", - "valid": true - }, - { - "description": "Valid - 16 chars no padding", - "data": "ABCDEFGHIJKLMNOP", - "valid": true - }, - { - "description": "Valid - 24 chars no padding", - "data": "ABCDEFGHIJKLMNOPQRSTUVWX", - "valid": true - }, - { - "description": "Valid - long string with padding", - "data": "JBSWY3DPEBLW64TMMQQQ====", - "valid": true - }, - { - "description": "Invalid - single char without padding", - "data": "M", - "valid": false - }, - { - "description": "Invalid - two chars without padding", - "data": "ME", - "valid": false - }, - { - "description": "Invalid - three chars without padding", - "data": "MEZ", - "valid": false - }, - { - "description": "Invalid - four chars without padding", - "data": "MZXQ", - "valid": false - }, - { - "description": "Invalid - five chars without padding", - "data": "MZXW6", - "valid": false - }, - { - "description": "Invalid - six chars without padding", - "data": "MZXW6Y", - "valid": false - }, - { - "description": "Invalid - seven chars without padding", - "data": "MZXW6YQ", - "valid": false - }, - { - "description": "Invalid - nine chars without padding", - "data": "MZXW6YTBO", - "valid": false - }, - { - "description": "Invalid - contains 0 (not in base32 alphabet)", - "data": "M0======", - "valid": false - }, - { - "description": "Invalid - contains 1 (not in base32 alphabet)", - "data": "M1======", - "valid": false - }, - { - "description": "Invalid - contains 8 (not in base32 alphabet)", - "data": "M8======", - "valid": false - }, - { - "description": "Invalid - contains 9 (not in base32 alphabet)", - "data": "M9======", - "valid": false - }, - { - "description": "Invalid - lowercase letters", - "data": "mzxw6===", - "valid": false - }, - { - "description": "Invalid - mixed case", - "data": "MzXw6===", - "valid": false - }, - { - "description": "Valid - 7 chars + 1 padding (non-canonical but syntactically valid)", - "data": "MZXW6YT=", - "valid": true - }, - { - "description": "Invalid - wrong padding count (2 equals)", - "data": "MZXW6Y==", - "valid": false - }, - { - "description": "Invalid - wrong padding count (5 equals)", - "data": "MZX=====", - "valid": false - }, - { - "description": "Invalid - wrong padding count (7 equals)", - "data": "M=======", - "valid": false - }, - { - "description": "Invalid - too much padding (8 equals)", - "data": "========", - "valid": false - }, - { - "description": "Invalid - padding in middle", - "data": "ME======MZXW6===", - "valid": false - }, - { - "description": "Invalid - padding not at end", - "data": "M=ZXQAAA", - "valid": false - }, - { - "description": "Invalid - contains space", - "data": "MZXW 6===", - "valid": false - }, - { - "description": "Invalid - contains hyphen", - "data": "MZXW-6===", - "valid": false - }, - { - "description": "Invalid - contains underscore", - "data": "MZXW_6===", - "valid": false - }, - { - "description": "Invalid - contains plus", - "data": "MZXW+6===", - "valid": false - }, - { - "description": "Invalid - contains slash", - "data": "MZXW/6===", - "valid": false - }, - { - "description": "Invalid - contains period", - "data": "MZXW.6===", - "valid": false - }, - { - "description": "Invalid - contains comma", - "data": "MZXW,6===", - "valid": false - }, - { - "description": "Invalid - contains (", - "data": "MZXW(===", - "valid": false - }, - { - "description": "Invalid - contains )", - "data": "MZXW)===", - "valid": false - }, - { - "description": "Invalid - contains [", - "data": "MZXW[===", - "valid": false - }, - { - "description": "Invalid - contains ]", - "data": "MZXW]===", - "valid": false - }, - { - "description": "Invalid - contains {", - "data": "MZXW{===", - "valid": false - }, - { - "description": "Invalid - contains }", - "data": "MZXW}===", - "valid": false - }, - { - "description": "Invalid - contains !", - "data": "MZXW!===", - "valid": false - }, - { - "description": "Invalid - contains ?", - "data": "MZXW?===", - "valid": false - }, - { - "description": "Invalid - contains @", - "data": "MZXW@===", - "valid": false - }, - { - "description": "Invalid - contains #", - "data": "MZXW#===", - "valid": false - }, - { - "description": "Invalid - contains $", - "data": "MZXW$===", - "valid": false - }, - { - "description": "Invalid - contains %", - "data": "MZXW%===", - "valid": false - }, - { - "description": "Invalid - contains ^", - "data": "MZXW^===", - "valid": false - }, - { - "description": "Invalid - contains &", - "data": "MZXW&===", - "valid": false - }, - { - "description": "Invalid - contains *", - "data": "MZXW*===", - "valid": false - }, - { - "description": "Invalid - contains ~", - "data": "MZXW~===", - "valid": false - }, - { - "description": "Invalid - contains `", - "data": "MZXW`===", - "valid": false - }, - { - "description": "Invalid - contains |", - "data": "MZXW|===", - "valid": false - }, - { - "description": "Invalid - contains \\", - "data": "MZXW\\===", - "valid": false - }, - { - "description": "Invalid - contains :", - "data": "MZXW:===", - "valid": false - }, - { - "description": "Invalid - contains ;", - "data": "MZXW;===", - "valid": false - }, - { - "description": "Invalid - contains '", - "data": "MZXW'===", - "valid": false - }, - { - "description": "Invalid - contains \"", - "data": "MZXW\"===", - "valid": false - }, - { - "description": "Invalid - contains <", - "data": "MZXW<===", - "valid": false - }, - { - "description": "Invalid - contains >", - "data": "MZXW>===", - "valid": false - }, - { - "description": "Invalid - leading space", - "data": " MZXW6===", - "valid": false - }, - { - "description": "Invalid - trailing space", - "data": "MZXW6=== ", - "valid": false - }, - { - "description": "Invalid - leading tab", - "data": "\tMZXW6===", - "valid": false - }, - { - "description": "Invalid - trailing tab", - "data": "MZXW6===\t", - "valid": false - }, - { - "description": "Invalid - tab in middle", - "data": "MZXW\t6===", - "valid": false - }, - { - "description": "Invalid - contains newline", - "data": "MZXW\n6===", - "valid": false - }, - { - "description": "Invalid - contains carriage return", - "data": "MZXW\r6===", - "valid": false - }, - { - "description": "Invalid - non-ASCII character", - "data": "MZXWé===", - "valid": false - }, - { - "description": "Invalid - emoji", - "data": "MZXW😀===", - "valid": false - }, - { - "description": "Invalid - number type", - "data": 123, - "valid": false - }, - { - "description": "Invalid - boolean type", - "data": true, - "valid": false - }, - { - "description": "Invalid - null type", - "data": null, - "valid": false - }, - { - "description": "Invalid - padding at beginning", - "data": "======ME", - "valid": false - }, - { - "description": "Invalid - only padding", - "data": "========", - "valid": false - }, - { - "description": "Invalid - mixed padding", - "data": "M=Z=W===", - "valid": false - }, - { - "description": "Valid - all alphabet chars at start", - "data": "ABCDEFGH", - "valid": true - }, - { - "description": "Valid - all alphabet chars at end", - "data": "STUVWXYZ", - "valid": true - }, - { - "description": "Valid - digit 2", - "data": "2AAAAAAA", - "valid": true - }, - { - "description": "Valid - digit 3", - "data": "3AAAAAAA", - "valid": true - }, - { - "description": "Valid - digit 4", - "data": "4AAAAAAA", - "valid": true - }, - { - "description": "Valid - digit 5", - "data": "5AAAAAAA", - "valid": true - }, - { - "description": "Valid - digit 6", - "data": "6AAAAAAA", - "valid": true - }, - { - "description": "Valid - digit 7", - "data": "7AAAAAAA", - "valid": true - }, - { - "description": "Valid - repeating pattern", - "data": "ABABABABABABABAB", - "valid": true - }, - { - "description": "Valid - very long valid base32", - "data": "JBSWY3DPFQQFO33SNRSCC===", - "valid": true - }, - { - "description": "Invalid - 3 chars with 4 padding (should be 6 padding for 2 chars)", - "data": "MEZ====", - "valid": false - }, - { - "description": "Invalid - 6 chars with 3 padding (no valid padding for 6 chars)", - "data": "MZXW6Y===", - "valid": false - } - ] -} diff --git a/test/ietf/encoding/4648/base32hex/v1.test.json b/test/ietf/encoding/4648/base32hex/v1.test.json deleted file mode 100644 index fb34311e..00000000 --- a/test/ietf/encoding/4648/base32hex/v1.test.json +++ /dev/null @@ -1,510 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/encoding/4648/base32hex/v1.json", - "tests": [ - { - "description": "Valid - empty string", - "data": "", - "valid": true - }, - { - "description": "Valid - single byte (2 chars + 6 padding)", - "data": "C4======", - "valid": true - }, - { - "description": "Valid - two bytes (4 chars + 4 padding)", - "data": "CPNG====", - "valid": true - }, - { - "description": "Valid - three bytes (5 chars + 3 padding)", - "data": "CPNMU===", - "valid": true - }, - { - "description": "Valid - four bytes (7 chars + 1 padding)", - "data": "CPNMUO8=", - "valid": true - }, - { - "description": "Valid - five bytes (8 chars, no padding)", - "data": "CPNMUOJ1", - "valid": true - }, - { - "description": "Valid - 'Hello World!'", - "data": "91IMOR3F41BMUSJCCG======", - "valid": true - }, - { - "description": "Valid - 'foo'", - "data": "CPNMU===", - "valid": true - }, - { - "description": "Valid - 'foobar'", - "data": "CPNMUOJ1E8======", - "valid": true - }, - { - "description": "Valid - all 0's", - "data": "00000000", - "valid": true - }, - { - "description": "Valid - all V's", - "data": "VVVVVVVV", - "valid": true - }, - { - "description": "Valid - mixed alphabet", - "data": "0123456789ABCDEFGHIJKLMNOPQRSTUV", - "valid": true - }, - { - "description": "Valid - only digits 0-9", - "data": "01234567", - "valid": true - }, - { - "description": "Valid - only letters A-V", - "data": "ABCDEFGHIJKLMNOP", - "valid": true - }, - { - "description": "Valid - 16 chars no padding", - "data": "0123456789ABCDEF", - "valid": true - }, - { - "description": "Valid - 24 chars no padding", - "data": "0123456789ABCDEFGHIJKLMN", - "valid": true - }, - { - "description": "Valid - long string with padding", - "data": "91IMOR3F41BMUSJCCGGG====", - "valid": true - }, - { - "description": "Invalid - single char without padding", - "data": "C", - "valid": false - }, - { - "description": "Invalid - two chars without padding", - "data": "C4", - "valid": false - }, - { - "description": "Invalid - three chars without padding", - "data": "C4P", - "valid": false - }, - { - "description": "Invalid - four chars without padding", - "data": "CPNG", - "valid": false - }, - { - "description": "Invalid - five chars without padding", - "data": "CPNMU", - "valid": false - }, - { - "description": "Invalid - six chars without padding", - "data": "CPNMUO", - "valid": false - }, - { - "description": "Invalid - seven chars without padding", - "data": "CPNMUO8", - "valid": false - }, - { - "description": "Invalid - nine chars without padding", - "data": "CPNMUOJ1E", - "valid": false - }, - { - "description": "Invalid - contains W (not in base32hex alphabet)", - "data": "CPNMUW==", - "valid": false - }, - { - "description": "Invalid - contains X (not in base32hex alphabet)", - "data": "CPNMUX==", - "valid": false - }, - { - "description": "Invalid - contains Y (not in base32hex alphabet)", - "data": "CPNMUY==", - "valid": false - }, - { - "description": "Invalid - contains Z (not in base32hex alphabet)", - "data": "CPNMUZ==", - "valid": false - }, - { - "description": "Invalid - lowercase letters", - "data": "cpnmu===", - "valid": false - }, - { - "description": "Invalid - mixed case", - "data": "CpNmU===", - "valid": false - }, - { - "description": "Valid - 7 chars + 1 padding (non-canonical but syntactically valid)", - "data": "CPNMUOJ=", - "valid": true - }, - { - "description": "Invalid - wrong padding count (2 equals)", - "data": "CPNMUO==", - "valid": false - }, - { - "description": "Invalid - wrong padding count (5 equals)", - "data": "CPN=====", - "valid": false - }, - { - "description": "Invalid - wrong padding count (7 equals)", - "data": "C=======", - "valid": false - }, - { - "description": "Invalid - too much padding (8 equals)", - "data": "========", - "valid": false - }, - { - "description": "Invalid - padding in middle", - "data": "C4======CPNMU===", - "valid": false - }, - { - "description": "Invalid - padding not at end", - "data": "C=PNG000", - "valid": false - }, - { - "description": "Invalid - contains space", - "data": "CPNMU ===", - "valid": false - }, - { - "description": "Invalid - contains hyphen", - "data": "CPNMU-===", - "valid": false - }, - { - "description": "Invalid - contains underscore", - "data": "CPNMU_===", - "valid": false - }, - { - "description": "Invalid - contains plus", - "data": "CPNMU+===", - "valid": false - }, - { - "description": "Invalid - contains slash", - "data": "CPNMU/===", - "valid": false - }, - { - "description": "Invalid - contains period", - "data": "CPNMU.===", - "valid": false - }, - { - "description": "Invalid - contains comma", - "data": "CPNMU,===", - "valid": false - }, - { - "description": "Invalid - contains (", - "data": "CPNMU(==", - "valid": false - }, - { - "description": "Invalid - contains )", - "data": "CPNMU)==", - "valid": false - }, - { - "description": "Invalid - contains [", - "data": "CPNMU[==", - "valid": false - }, - { - "description": "Invalid - contains ]", - "data": "CPNMU]==", - "valid": false - }, - { - "description": "Invalid - contains {", - "data": "CPNMU{==", - "valid": false - }, - { - "description": "Invalid - contains }", - "data": "CPNMU}==", - "valid": false - }, - { - "description": "Invalid - contains !", - "data": "CPNMU!==", - "valid": false - }, - { - "description": "Invalid - contains ?", - "data": "CPNMU?==", - "valid": false - }, - { - "description": "Invalid - contains @", - "data": "CPNMU@==", - "valid": false - }, - { - "description": "Invalid - contains #", - "data": "CPNMU#==", - "valid": false - }, - { - "description": "Invalid - contains $", - "data": "CPNMU$==", - "valid": false - }, - { - "description": "Invalid - contains %", - "data": "CPNMU%==", - "valid": false - }, - { - "description": "Invalid - contains ^", - "data": "CPNMU^==", - "valid": false - }, - { - "description": "Invalid - contains &", - "data": "CPNMU&==", - "valid": false - }, - { - "description": "Invalid - contains *", - "data": "CPNMU*==", - "valid": false - }, - { - "description": "Invalid - contains ~", - "data": "CPNMU~==", - "valid": false - }, - { - "description": "Invalid - contains `", - "data": "CPNMU`==", - "valid": false - }, - { - "description": "Invalid - contains |", - "data": "CPNMU|==", - "valid": false - }, - { - "description": "Invalid - contains \\", - "data": "CPNMU\\==", - "valid": false - }, - { - "description": "Invalid - contains :", - "data": "CPNMU:==", - "valid": false - }, - { - "description": "Invalid - contains ;", - "data": "CPNMU;==", - "valid": false - }, - { - "description": "Invalid - contains '", - "data": "CPNMU'==", - "valid": false - }, - { - "description": "Invalid - contains \"", - "data": "CPNMU\"==", - "valid": false - }, - { - "description": "Invalid - contains <", - "data": "CPNMU<==", - "valid": false - }, - { - "description": "Invalid - contains >", - "data": "CPNMU>==", - "valid": false - }, - { - "description": "Invalid - leading space", - "data": " CPNMU===", - "valid": false - }, - { - "description": "Invalid - trailing space", - "data": "CPNMU=== ", - "valid": false - }, - { - "description": "Invalid - leading tab", - "data": "\tCPNMU===", - "valid": false - }, - { - "description": "Invalid - trailing tab", - "data": "CPNMU===\t", - "valid": false - }, - { - "description": "Invalid - tab in middle", - "data": "CPN\tMU===", - "valid": false - }, - { - "description": "Invalid - contains newline", - "data": "CPN\nMU===", - "valid": false - }, - { - "description": "Invalid - contains carriage return", - "data": "CPN\rMU===", - "valid": false - }, - { - "description": "Invalid - non-ASCII character", - "data": "CPNMUé==", - "valid": false - }, - { - "description": "Invalid - emoji", - "data": "CPNMU😀==", - "valid": false - }, - { - "description": "Invalid - number type", - "data": 123, - "valid": false - }, - { - "description": "Invalid - boolean type", - "data": true, - "valid": false - }, - { - "description": "Invalid - null type", - "data": null, - "valid": false - }, - { - "description": "Invalid - padding at beginning", - "data": "======C4", - "valid": false - }, - { - "description": "Invalid - only padding", - "data": "========", - "valid": false - }, - { - "description": "Invalid - mixed padding", - "data": "C=P=MU==", - "valid": false - }, - { - "description": "Valid - digit 0", - "data": "00000000", - "valid": true - }, - { - "description": "Valid - digit 1", - "data": "11111111", - "valid": true - }, - { - "description": "Valid - digit 2", - "data": "22222222", - "valid": true - }, - { - "description": "Valid - digit 3", - "data": "33333333", - "valid": true - }, - { - "description": "Valid - digit 4", - "data": "44444444", - "valid": true - }, - { - "description": "Valid - digit 5", - "data": "55555555", - "valid": true - }, - { - "description": "Valid - digit 6", - "data": "66666666", - "valid": true - }, - { - "description": "Valid - digit 7", - "data": "77777777", - "valid": true - }, - { - "description": "Valid - digit 8", - "data": "88888888", - "valid": true - }, - { - "description": "Valid - digit 9", - "data": "99999999", - "valid": true - }, - { - "description": "Valid - letter A", - "data": "AAAAAAAA", - "valid": true - }, - { - "description": "Valid - letter V", - "data": "VVVVVVVV", - "valid": true - }, - { - "description": "Valid - repeating pattern", - "data": "0A0A0A0A", - "valid": true - }, - { - "description": "Valid - very long valid base32hex", - "data": "91IMOR3F5GG5E33IDHIA====", - "valid": true - }, - { - "description": "Invalid - 3 chars with 4 padding (should be 6 padding for 2 chars)", - "data": "C4P====", - "valid": false - }, - { - "description": "Invalid - 6 chars with 3 padding (no valid padding for 6 chars)", - "data": "CPNMUO===", - "valid": false - } - ] -} diff --git a/test/ietf/encoding/4648/base64/v1.test.json b/test/ietf/encoding/4648/base64/v1.test.json deleted file mode 100644 index 107e33c2..00000000 --- a/test/ietf/encoding/4648/base64/v1.test.json +++ /dev/null @@ -1,525 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/encoding/4648/base64/v1.json", - "tests": [ - { - "description": "Valid - empty string", - "data": "", - "valid": true - }, - { - "description": "Valid - single char with padding", - "data": "YQ==", - "valid": true - }, - { - "description": "Valid - two chars with padding", - "data": "YWI=", - "valid": true - }, - { - "description": "Valid - three chars no padding", - "data": "YWJj", - "valid": true - }, - { - "description": "Valid - four chars", - "data": "YWJjZA==", - "valid": true - }, - { - "description": "Valid - Hello World", - "data": "SGVsbG8gV29ybGQh", - "valid": true - }, - { - "description": "Invalid - insufficient chars in final group", - "data": "a+b/c==", - "valid": false - }, - { - "description": "Valid - with plus sign", - "data": "a+b/cg==", - "valid": true - }, - { - "description": "Valid - with slash", - "data": "abc/def=", - "valid": true - }, - { - "description": "Valid - all uppercase", - "data": "QUJDRA==", - "valid": true - }, - { - "description": "Valid - all lowercase", - "data": "cXdlcg==", - "valid": true - }, - { - "description": "Valid - all digits", - "data": "MTIzNDU2Nzg5MA==", - "valid": true - }, - { - "description": "Valid - GIF header", - "data": "R0lGODlhAQABAAAAACw=", - "valid": true - }, - { - "description": "Valid - multiple of 4 chars", - "data": "YWJjZGVmZ2hpamtsbW5vcA==", - "valid": true - }, - { - "description": "Valid - long string", - "data": "VGhpcyBpcyBhIGxvbmcgYmFzZTY0IGVuY29kZWQgc3RyaW5nIHRoYXQgc2hvdWxkIGJlIHZhbGlk", - "valid": true - }, - { - "description": "Invalid - one equals padding only", - "data": "YWI==", - "valid": false - }, - { - "description": "Invalid - three equals", - "data": "YQ===", - "valid": false - }, - { - "description": "Invalid - padding in middle", - "data": "YQ==YWI=", - "valid": false - }, - { - "description": "Invalid - padding not at end", - "data": "Y=WI", - "valid": false - }, - { - "description": "Invalid - single character without padding (insufficient data)", - "data": "Y", - "valid": false - }, - { - "description": "Invalid - two characters without required padding", - "data": "YW", - "valid": false - }, - { - "description": "Invalid - three characters without required padding", - "data": "YWJ", - "valid": false - }, - { - "description": "Invalid - contains space", - "data": "YWJj ZA==", - "valid": false - }, - { - "description": "Invalid - contains dash", - "data": "YWJj-ZA==", - "valid": false - }, - { - "description": "Invalid - contains underscore", - "data": "YWJj_ZA==", - "valid": false - }, - { - "description": "Invalid - contains period", - "data": "YWJj.ZA==", - "valid": false - }, - { - "description": "Invalid - contains comma", - "data": "YWJj,ZA==", - "valid": false - }, - { - "description": "Invalid - contains special char", - "data": "YWJj@ZA==", - "valid": false - }, - { - "description": "Invalid - number type", - "data": 123, - "valid": false - }, - { - "description": "Invalid - boolean type", - "data": true, - "valid": false - }, - { - "description": "Invalid - null type", - "data": null, - "valid": false - }, - { - "description": "Valid - only uppercase letters", - "data": "ABCDEFGH", - "valid": true - }, - { - "description": "Valid - only lowercase letters", - "data": "abcdefgh", - "valid": true - }, - { - "description": "Valid - only digits", - "data": "01234567", - "valid": true - }, - { - "description": "Valid - plus at start", - "data": "+ABC", - "valid": true - }, - { - "description": "Valid - slash at start", - "data": "/ABC", - "valid": true - }, - { - "description": "Valid - plus at end", - "data": "ABC+", - "valid": true - }, - { - "description": "Valid - slash at end", - "data": "ABC/", - "valid": true - }, - { - "description": "Valid - multiple plus signs", - "data": "A+B+C+D+", - "valid": true - }, - { - "description": "Valid - multiple slashes", - "data": "A/B/C/D/", - "valid": true - }, - { - "description": "Valid - plus and slash mixed", - "data": "A+B/C+D/", - "valid": true - }, - { - "description": "Valid - 8 chars no padding", - "data": "ABCDEFGH", - "valid": true - }, - { - "description": "Valid - 12 chars no padding", - "data": "ABCDEFGHIJKL", - "valid": true - }, - { - "description": "Valid - 16 chars no padding", - "data": "ABCDEFGHIJKLMNOP", - "valid": true - }, - { - "description": "Invalid - 5 chars without required padding", - "data": "ABCDE", - "valid": false - }, - { - "description": "Invalid - 6 chars without required padding", - "data": "ABCDEF", - "valid": false - }, - { - "description": "Invalid - 7 chars without required padding", - "data": "ABCDEFG", - "valid": false - }, - { - "description": "Invalid - 10 chars without required padding", - "data": "ABCDEFGHIJ", - "valid": false - }, - { - "description": "Valid - padding with two equals at end of 4-char group", - "data": "AB==", - "valid": true - }, - { - "description": "Valid - padding with one equal at end of 4-char group", - "data": "ABC=", - "valid": true - }, - { - "description": "Valid - 8 chars then padding", - "data": "ABCDEFGH/w==", - "valid": true - }, - { - "description": "Valid - all char types", - "data": "AZ09+/AB", - "valid": true - }, - { - "description": "Valid - repeated patterns", - "data": "AAAABBBBCCCCDDDD", - "valid": true - }, - { - "description": "Valid - zeros encoded", - "data": "AAAA", - "valid": true - }, - { - "description": "Valid - max values encoded", - "data": "////", - "valid": true - }, - { - "description": "Valid - alternating chars", - "data": "AaAaAaAa", - "valid": true - }, - { - "description": "Invalid - padding at beginning", - "data": "==ABCD", - "valid": false - }, - { - "description": "Invalid - padding in first position", - "data": "=ABC", - "valid": false - }, - { - "description": "Invalid - only equals", - "data": "====", - "valid": false - }, - { - "description": "Invalid - single equals", - "data": "=", - "valid": false - }, - { - "description": "Invalid - double equals alone", - "data": "==", - "valid": false - }, - { - "description": "Invalid - four equals", - "data": "ABCD====", - "valid": false - }, - { - "description": "Invalid - padding then more chars", - "data": "AB==CD", - "valid": false - }, - { - "description": "Invalid - padding then padding", - "data": "AB===", - "valid": false - }, - { - "description": "Invalid - mixed padding positions", - "data": "A=B=", - "valid": false - }, - { - "description": "Invalid - three chars with two equals", - "data": "ABC==", - "valid": false - }, - { - "description": "Invalid - two chars with one equal", - "data": "AB=", - "valid": false - }, - { - "description": "Invalid - five chars with padding", - "data": "ABCDE=", - "valid": false - }, - { - "description": "Valid - uppercase G", - "data": "ABCG", - "valid": true - }, - { - "description": "Valid - lowercase g", - "data": "ABCg", - "valid": true - }, - { - "description": "Invalid - contains (", - "data": "ABC(", - "valid": false - }, - { - "description": "Invalid - contains )", - "data": "ABC)", - "valid": false - }, - { - "description": "Invalid - contains [", - "data": "ABC[", - "valid": false - }, - { - "description": "Invalid - contains ]", - "data": "ABC]", - "valid": false - }, - { - "description": "Invalid - contains {", - "data": "ABC{", - "valid": false - }, - { - "description": "Invalid - contains }", - "data": "ABC}", - "valid": false - }, - { - "description": "Invalid - contains !", - "data": "ABC!", - "valid": false - }, - { - "description": "Invalid - contains ?", - "data": "ABC?", - "valid": false - }, - { - "description": "Invalid - contains *", - "data": "ABC*", - "valid": false - }, - { - "description": "Invalid - contains &", - "data": "ABC&", - "valid": false - }, - { - "description": "Invalid - contains $", - "data": "ABC$", - "valid": false - }, - { - "description": "Invalid - contains %", - "data": "ABC%", - "valid": false - }, - { - "description": "Invalid - contains #", - "data": "ABC#", - "valid": false - }, - { - "description": "Invalid - contains ^", - "data": "ABC^", - "valid": false - }, - { - "description": "Invalid - contains ~", - "data": "ABC~", - "valid": false - }, - { - "description": "Invalid - contains `", - "data": "ABC`", - "valid": false - }, - { - "description": "Invalid - contains |", - "data": "ABC|", - "valid": false - }, - { - "description": "Invalid - contains \\", - "data": "ABC\\", - "valid": false - }, - { - "description": "Invalid - contains ;", - "data": "ABC;", - "valid": false - }, - { - "description": "Invalid - contains :", - "data": "ABC:", - "valid": false - }, - { - "description": "Invalid - contains '", - "data": "ABC'", - "valid": false - }, - { - "description": "Invalid - contains \"", - "data": "ABC\"", - "valid": false - }, - { - "description": "Invalid - contains <", - "data": "ABC<", - "valid": false - }, - { - "description": "Invalid - contains >", - "data": "ABC>", - "valid": false - }, - { - "description": "Invalid - leading tab", - "data": "\tABCD", - "valid": false - }, - { - "description": "Invalid - trailing tab", - "data": "ABCD\t", - "valid": false - }, - { - "description": "Invalid - tab in middle", - "data": "AB\tCD", - "valid": false - }, - { - "description": "Invalid - leading space", - "data": " ABCD", - "valid": false - }, - { - "description": "Invalid - trailing space", - "data": "ABCD ", - "valid": false - }, - { - "description": "Invalid - multiple spaces", - "data": "AB CD", - "valid": false - }, - { - "description": "Invalid - contains carriage return", - "data": "AB\rCD", - "valid": false - }, - { - "description": "Invalid - non-ASCII character", - "data": "ABCé", - "valid": false - }, - { - "description": "Invalid - emoji", - "data": "ABC😀", - "valid": false - }, - { - "description": "Valid - very long valid base64", - "data": "VGhpcyBpcyBhIHZlcnkgbG9uZyBiYXNlNjQgZW5jb2RlZCBzdHJpbmcgdGhhdCB3ZSBhcmUgdXNpbmcgdG8gdGVzdCB0aGUgdmFsaWRhdGlvbiBvZiBsb25nZXIgaW5wdXRzIHRvIG1ha2Ugc3VyZSBvdXIgcGF0dGVybiB3b3JrcyBjb3JyZWN0bHk=", - "valid": true - } - ] -} diff --git a/test/ietf/encoding/4648/base64url/v1.test.json b/test/ietf/encoding/4648/base64url/v1.test.json deleted file mode 100644 index dbf9a762..00000000 --- a/test/ietf/encoding/4648/base64url/v1.test.json +++ /dev/null @@ -1,540 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/encoding/4648/base64url/v1.json", - "tests": [ - { - "description": "Valid - empty string", - "data": "", - "valid": true - }, - { - "description": "Valid - single char with padding", - "data": "YQ==", - "valid": true - }, - { - "description": "Valid - two chars with padding", - "data": "YWI=", - "valid": true - }, - { - "description": "Valid - three chars no padding", - "data": "YWJj", - "valid": true - }, - { - "description": "Valid - four chars", - "data": "YWJjZA==", - "valid": true - }, - { - "description": "Valid - Hello World", - "data": "SGVsbG8gV29ybGQh", - "valid": true - }, - { - "description": "Invalid - insufficient chars in final group", - "data": "a-b_c==", - "valid": false - }, - { - "description": "Valid - with hyphen", - "data": "a-b_cg==", - "valid": true - }, - { - "description": "Valid - with underscore", - "data": "abc_def=", - "valid": true - }, - { - "description": "Valid - all uppercase", - "data": "QUJDRA==", - "valid": true - }, - { - "description": "Valid - all lowercase", - "data": "cXdlcg==", - "valid": true - }, - { - "description": "Valid - all digits", - "data": "MTIzNDU2Nzg5MA==", - "valid": true - }, - { - "description": "Valid - GIF header", - "data": "R0lGODlhAQABAAAAACw=", - "valid": true - }, - { - "description": "Valid - multiple of 4 chars", - "data": "YWJjZGVmZ2hpamtsbW5vcA==", - "valid": true - }, - { - "description": "Valid - long string", - "data": "VGhpcyBpcyBhIGxvbmcgYmFzZTY0IHVybCBlbmNvZGVkIHN0cmluZyB0aGF0IHNob3VsZCBiZSB2YWxpZA==", - "valid": true - }, - { - "description": "Invalid - one equals padding only", - "data": "YWI==", - "valid": false - }, - { - "description": "Invalid - three equals", - "data": "YQ===", - "valid": false - }, - { - "description": "Invalid - padding in middle", - "data": "YQ==YWI=", - "valid": false - }, - { - "description": "Invalid - padding not at end", - "data": "Y=WI", - "valid": false - }, - { - "description": "Invalid - single character without padding (insufficient data)", - "data": "Y", - "valid": false - }, - { - "description": "Invalid - two characters without required padding", - "data": "YW", - "valid": false - }, - { - "description": "Invalid - three characters without required padding", - "data": "YWJ", - "valid": false - }, - { - "description": "Invalid - contains space", - "data": "YWJj ZA==", - "valid": false - }, - { - "description": "Invalid - contains period", - "data": "YWJj.ZA==", - "valid": false - }, - { - "description": "Invalid - contains comma", - "data": "YWJj,ZA==", - "valid": false - }, - { - "description": "Invalid - contains special char", - "data": "YWJj@ZA==", - "valid": false - }, - { - "description": "Invalid - number type", - "data": 123, - "valid": false - }, - { - "description": "Invalid - boolean type", - "data": true, - "valid": false - }, - { - "description": "Invalid - null type", - "data": null, - "valid": false - }, - { - "description": "Valid - only uppercase letters", - "data": "ABCDEFGH", - "valid": true - }, - { - "description": "Valid - only lowercase letters", - "data": "abcdefgh", - "valid": true - }, - { - "description": "Valid - only digits", - "data": "01234567", - "valid": true - }, - { - "description": "Valid - hyphen at start", - "data": "-ABC", - "valid": true - }, - { - "description": "Valid - underscore at start", - "data": "_ABC", - "valid": true - }, - { - "description": "Valid - hyphen at end", - "data": "ABC-", - "valid": true - }, - { - "description": "Valid - underscore at end", - "data": "ABC_", - "valid": true - }, - { - "description": "Valid - multiple hyphens", - "data": "A-B-C-D-", - "valid": true - }, - { - "description": "Valid - multiple underscores", - "data": "A_B_C_D_", - "valid": true - }, - { - "description": "Valid - hyphen and underscore mixed", - "data": "A-B_C-D_", - "valid": true - }, - { - "description": "Valid - 8 chars no padding", - "data": "ABCDEFGH", - "valid": true - }, - { - "description": "Valid - 12 chars no padding", - "data": "ABCDEFGHIJKL", - "valid": true - }, - { - "description": "Valid - 16 chars no padding", - "data": "ABCDEFGHIJKLMNOP", - "valid": true - }, - { - "description": "Invalid - 5 chars without required padding", - "data": "ABCDE", - "valid": false - }, - { - "description": "Invalid - 6 chars without required padding", - "data": "ABCDEF", - "valid": false - }, - { - "description": "Invalid - 7 chars without required padding", - "data": "ABCDEFG", - "valid": false - }, - { - "description": "Invalid - 10 chars without required padding", - "data": "ABCDEFGHIJ", - "valid": false - }, - { - "description": "Valid - padding with two equals at end of 4-char group", - "data": "AB==", - "valid": true - }, - { - "description": "Valid - padding with one equal at end of 4-char group", - "data": "ABC=", - "valid": true - }, - { - "description": "Valid - 8 chars then padding", - "data": "ABCDEFGH_w==", - "valid": true - }, - { - "description": "Valid - all char types", - "data": "AZ09-_AB", - "valid": true - }, - { - "description": "Valid - repeated patterns", - "data": "AAAABBBBCCCCDDDD", - "valid": true - }, - { - "description": "Valid - zeros encoded", - "data": "AAAA", - "valid": true - }, - { - "description": "Valid - alternating chars", - "data": "AaAaAaAa", - "valid": true - }, - { - "description": "Invalid - padding at beginning", - "data": "==ABCD", - "valid": false - }, - { - "description": "Invalid - padding in first position", - "data": "=ABC", - "valid": false - }, - { - "description": "Invalid - only equals", - "data": "====", - "valid": false - }, - { - "description": "Invalid - single equals", - "data": "=", - "valid": false - }, - { - "description": "Invalid - double equals alone", - "data": "==", - "valid": false - }, - { - "description": "Invalid - four equals", - "data": "ABCD====", - "valid": false - }, - { - "description": "Invalid - padding then more chars", - "data": "AB==CD", - "valid": false - }, - { - "description": "Invalid - padding then padding", - "data": "AB===", - "valid": false - }, - { - "description": "Invalid - mixed padding positions", - "data": "A=B=", - "valid": false - }, - { - "description": "Invalid - three chars with two equals", - "data": "ABC==", - "valid": false - }, - { - "description": "Invalid - two chars with one equal", - "data": "AB=", - "valid": false - }, - { - "description": "Invalid - five chars with padding", - "data": "ABCDE=", - "valid": false - }, - { - "description": "Valid - uppercase G", - "data": "ABCG", - "valid": true - }, - { - "description": "Valid - lowercase g", - "data": "ABCg", - "valid": true - }, - { - "description": "Invalid - contains plus (base64 char, not base64url)", - "data": "ABC+", - "valid": false - }, - { - "description": "Invalid - contains slash (base64 char, not base64url)", - "data": "ABC/", - "valid": false - }, - { - "description": "Invalid - contains (", - "data": "ABC(", - "valid": false - }, - { - "description": "Invalid - contains )", - "data": "ABC)", - "valid": false - }, - { - "description": "Invalid - contains [", - "data": "ABC[", - "valid": false - }, - { - "description": "Invalid - contains ]", - "data": "ABC]", - "valid": false - }, - { - "description": "Invalid - contains {", - "data": "ABC{", - "valid": false - }, - { - "description": "Invalid - contains }", - "data": "ABC}", - "valid": false - }, - { - "description": "Invalid - contains !", - "data": "ABC!", - "valid": false - }, - { - "description": "Invalid - contains ?", - "data": "ABC?", - "valid": false - }, - { - "description": "Invalid - contains *", - "data": "ABC*", - "valid": false - }, - { - "description": "Invalid - contains &", - "data": "ABC&", - "valid": false - }, - { - "description": "Invalid - contains $", - "data": "ABC$", - "valid": false - }, - { - "description": "Invalid - contains %", - "data": "ABC%", - "valid": false - }, - { - "description": "Invalid - contains #", - "data": "ABC#", - "valid": false - }, - { - "description": "Invalid - contains ^", - "data": "ABC^", - "valid": false - }, - { - "description": "Invalid - contains ~", - "data": "ABC~", - "valid": false - }, - { - "description": "Invalid - contains `", - "data": "ABC`", - "valid": false - }, - { - "description": "Invalid - contains |", - "data": "ABC|", - "valid": false - }, - { - "description": "Invalid - contains \\", - "data": "ABC\\", - "valid": false - }, - { - "description": "Invalid - contains ;", - "data": "ABC;", - "valid": false - }, - { - "description": "Invalid - contains :", - "data": "ABC:", - "valid": false - }, - { - "description": "Invalid - contains '", - "data": "ABC'", - "valid": false - }, - { - "description": "Invalid - contains \"", - "data": "ABC\"", - "valid": false - }, - { - "description": "Invalid - contains <", - "data": "ABC<", - "valid": false - }, - { - "description": "Invalid - contains >", - "data": "ABC>", - "valid": false - }, - { - "description": "Invalid - leading tab", - "data": "\tABCD", - "valid": false - }, - { - "description": "Invalid - trailing tab", - "data": "ABCD\t", - "valid": false - }, - { - "description": "Invalid - tab in middle", - "data": "AB\tCD", - "valid": false - }, - { - "description": "Invalid - leading space", - "data": " ABCD", - "valid": false - }, - { - "description": "Invalid - trailing space", - "data": "ABCD ", - "valid": false - }, - { - "description": "Invalid - multiple spaces", - "data": "AB CD", - "valid": false - }, - { - "description": "Invalid - contains newline", - "data": "AB\nCD", - "valid": false - }, - { - "description": "Invalid - contains carriage return", - "data": "AB\rCD", - "valid": false - }, - { - "description": "Invalid - non-ASCII character", - "data": "ABCé", - "valid": false - }, - { - "description": "Invalid - emoji", - "data": "ABC😀", - "valid": false - }, - { - "description": "Valid - very long valid base64url", - "data": "VGhpcyBpcyBhIHZlcnkgbG9uZyBiYXNlNjQgdXJsIGVuY29kZWQgc3RyaW5nIHRoYXQgd2UgYXJlIHVzaW5nIHRvIHRlc3QgdGhlIHZhbGlkYXRpb24gb2YgbG9uZ2VyIGlucHV0cyB0byBtYWtlIHN1cmUgb3VyIHBhdHRlcm4gd29ya3MgY29ycmVjdGx5", - "valid": true - }, - { - "description": "Valid - URL-safe chars only", - "data": "A-Z_09ab", - "valid": true - }, - { - "description": "Invalid - base64 plus in base64url context", - "data": "SGVs+G8h", - "valid": false - }, - { - "description": "Invalid - base64 slash in base64url context", - "data": "SGVs/G8h", - "valid": false - } - ] -} diff --git a/test/ietf/geojson/7946/bounding-box/v1.test.json b/test/ietf/geojson/7946/bounding-box/v1.test.json deleted file mode 100644 index a5c2caad..00000000 --- a/test/ietf/geojson/7946/bounding-box/v1.test.json +++ /dev/null @@ -1,150 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/geojson/7946/bounding-box/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "not an array", - "valid": false - }, - { - "description": "Invalid type - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Empty array - too few items", - "data": [], - "valid": false - }, - { - "description": "One item - too few items", - "data": [ 0 ], - "valid": false - }, - { - "description": "Two items - too few items", - "data": [ 0, 0 ], - "valid": false - }, - { - "description": "Three items - too few items", - "data": [ 0, 0, 1 ], - "valid": false - }, - { - "description": "Valid 2D bounding box", - "data": [ -180, -90, 180, 90 ], - "valid": true - }, - { - "description": "Valid 3D bounding box", - "data": [ -180, -90, 0, 180, 90, 1000 ], - "valid": true - }, - { - "description": "Valid bounding box with decimal numbers", - "data": [ -122.5, 37.5, -122.0, 38.0 ], - "valid": true - }, - { - "description": "Valid bounding box with negative values", - "data": [ -10.5, -20.5, -5.0, -10.0 ], - "valid": true - }, - { - "description": "Invalid - contains string", - "data": [ 0, 0, "1", 1 ], - "valid": false - }, - { - "description": "Invalid - contains null", - "data": [ 0, 0, null, 1 ], - "valid": false - }, - { - "description": "Invalid - contains boolean", - "data": [ 0, 0, true, 1 ], - "valid": false - }, - { - "description": "Invalid - contains object", - "data": [ - 0, - 0, - {}, - 1 - ], - "valid": false - }, - { - "description": "Invalid - contains array", - "data": [ - 0, - 0, - [], - 1 - ], - "valid": false - }, - { - "description": "Invalid 2D bbox - south latitude below -90", - "data": [ 0, -91, 1, 0 ], - "valid": false - }, - { - "description": "Invalid 2D bbox - south latitude above 90", - "data": [ 0, 91, 1, 0 ], - "valid": false - }, - { - "description": "Invalid 2D bbox - north latitude below -90", - "data": [ 0, 0, 1, -91 ], - "valid": false - }, - { - "description": "Invalid 2D bbox - north latitude above 90", - "data": [ 0, 0, 1, 91 ], - "valid": false - }, - { - "description": "Invalid 3D bbox - south latitude out of range", - "data": [ 0, -91, 0, 1, 0, 100 ], - "valid": false - }, - { - "description": "Invalid 3D bbox - north latitude out of range", - "data": [ 0, 0, 0, 1, 91, 100 ], - "valid": false - }, - { - "description": "Valid - four dimensional box with even length", - "data": [ 0, 0, 0, 0, 1, 1, 1, 1 ], - "valid": true - }, - { - "description": "Invalid - odd number of elements can never be 2*n", - "valid": false, - "data": [ 1, 2, 3, 4, 5, 6, 7 ] - }, - { - "description": "Invalid - latitude beyond range in a four dimensional box", - "valid": false, - "data": [ 0, 95, 0, 0, 10, 96, 10, 10 ] - } - ] -} diff --git a/test/ietf/geojson/7946/feature-collection/v1.test.json b/test/ietf/geojson/7946/feature-collection/v1.test.json deleted file mode 100644 index 36d87163..00000000 --- a/test/ietf/geojson/7946/feature-collection/v1.test.json +++ /dev/null @@ -1,304 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/geojson/7946/feature-collection/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "not an object", - "valid": false - }, - { - "description": "Invalid type - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Empty object - missing required properties", - "data": {}, - "valid": false - }, - { - "description": "Missing features property", - "data": { - "type": "FeatureCollection" - }, - "valid": false - }, - { - "description": "Missing type property", - "data": { - "features": [] - }, - "valid": false - }, - { - "description": "Wrong type value", - "data": { - "type": "Feature", - "features": [] - }, - "valid": false - }, - { - "description": "Valid empty FeatureCollection", - "data": { - "type": "FeatureCollection", - "features": [] - }, - "valid": true - }, - { - "description": "Valid FeatureCollection with one feature", - "data": { - "type": "FeatureCollection", - "features": [ - { - "type": "Feature", - "geometry": null, - "properties": null - } - ] - }, - "valid": true - }, - { - "description": "Valid FeatureCollection with multiple features", - "data": { - "type": "FeatureCollection", - "features": [ - { - "type": "Feature", - "geometry": { - "type": "Point", - "coordinates": [ 0, 0 ] - }, - "properties": { - "name": "Point A" - } - }, - { - "type": "Feature", - "geometry": { - "type": "Point", - "coordinates": [ 1, 1 ] - }, - "properties": { - "name": "Point B" - } - } - ] - }, - "valid": true - }, - { - "description": "Valid FeatureCollection with bbox", - "data": { - "type": "FeatureCollection", - "features": [], - "bbox": [ -180, -90, 180, 90 ] - }, - "valid": true - }, - { - "description": "RFC 7946 Section 5 - 2D bbox", - "data": { - "type": "FeatureCollection", - "bbox": [ 100.0, 0.0, 105.0, 1.0 ], - "features": [] - }, - "valid": true - }, - { - "description": "RFC 7946 Section 5 - 3D bbox", - "data": { - "type": "FeatureCollection", - "bbox": [ 100.0, 0.0, -100.0, 105.0, 1.0, 0.0 ], - "features": [] - }, - "valid": true - }, - { - "description": "RFC 7946 Section 1.5 - FeatureCollection example", - "data": { - "type": "FeatureCollection", - "features": [ - { - "type": "Feature", - "geometry": { - "type": "Point", - "coordinates": [ 102.0, 0.5 ] - }, - "properties": { - "prop0": "value0" - } - }, - { - "type": "Feature", - "geometry": { - "type": "LineString", - "coordinates": [ - [ 102.0, 0.0 ], - [ 103.0, 1.0 ], - [ 104.0, 0.0 ], - [ 105.0, 1.0 ] - ] - }, - "properties": { - "prop0": "value0", - "prop1": 0.0 - } - }, - { - "type": "Feature", - "geometry": { - "type": "Polygon", - "coordinates": [ - [ - [ 100.0, 0.0 ], - [ 101.0, 0.0 ], - [ 101.0, 1.0 ], - [ 100.0, 1.0 ], - [ 100.0, 0.0 ] - ] - ] - }, - "properties": { - "prop0": "value0", - "prop1": { - "this": "that" - } - } - } - ] - }, - "valid": true - }, - { - "description": "Valid FeatureCollection with various geometries", - "data": { - "type": "FeatureCollection", - "features": [ - { - "type": "Feature", - "geometry": { - "type": "Point", - "coordinates": [ 0, 0 ] - }, - "properties": null - }, - { - "type": "Feature", - "geometry": { - "type": "LineString", - "coordinates": [ - [ 0, 0 ], - [ 1, 1 ] - ] - }, - "properties": null - }, - { - "type": "Feature", - "geometry": { - "type": "Polygon", - "coordinates": [ - [ - [ 0, 0 ], - [ 1, 0 ], - [ 1, 1 ], - [ 0, 0 ] - ] - ] - }, - "properties": null - } - ] - }, - "valid": true - }, - { - "description": "Invalid - features is not an array", - "data": { - "type": "FeatureCollection", - "features": {} - }, - "valid": false - }, - { - "description": "Invalid - feature missing required properties", - "data": { - "type": "FeatureCollection", - "features": [ - { - "type": "Feature" - } - ] - }, - "valid": false - }, - { - "description": "Invalid - feature has wrong type", - "data": { - "type": "FeatureCollection", - "features": [ - { - "type": "Point", - "geometry": null, - "properties": null - } - ] - }, - "valid": false - }, - { - "description": "Invalid - forbidden member coordinates", - "data": { - "type": "FeatureCollection", - "features": [], - "coordinates": [ 0, 0 ] - }, - "valid": false - }, - { - "description": "Invalid - forbidden member geometries", - "data": { - "type": "FeatureCollection", - "features": [], - "geometries": [] - }, - "valid": false - }, - { - "description": "Invalid - forbidden member geometry", - "data": { - "type": "FeatureCollection", - "features": [], - "geometry": null - }, - "valid": false - }, - { - "description": "Invalid - forbidden member properties", - "data": { - "type": "FeatureCollection", - "features": [], - "properties": null - }, - "valid": false - } - ] -} diff --git a/test/ietf/geojson/7946/feature/v1.test.json b/test/ietf/geojson/7946/feature/v1.test.json deleted file mode 100644 index e4ca761e..00000000 --- a/test/ietf/geojson/7946/feature/v1.test.json +++ /dev/null @@ -1,257 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/geojson/7946/feature/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "not an object", - "valid": false - }, - { - "description": "Invalid type - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Empty object - missing required properties", - "data": {}, - "valid": false - }, - { - "description": "Missing geometry and properties", - "data": { - "type": "Feature" - }, - "valid": false - }, - { - "description": "Missing properties", - "data": { - "type": "Feature", - "geometry": null - }, - "valid": false - }, - { - "description": "Missing geometry", - "data": { - "type": "Feature", - "properties": null - }, - "valid": false - }, - { - "description": "Missing type", - "data": { - "geometry": null, - "properties": null - }, - "valid": false - }, - { - "description": "Wrong type value", - "data": { - "type": "Point", - "geometry": null, - "properties": null - }, - "valid": false - }, - { - "description": "Valid Feature with null geometry", - "data": { - "type": "Feature", - "geometry": null, - "properties": null - }, - "valid": true - }, - { - "description": "Valid Feature with Point geometry", - "data": { - "type": "Feature", - "geometry": { - "type": "Point", - "coordinates": [ 0, 0 ] - }, - "properties": null - }, - "valid": true - }, - { - "description": "Valid Feature with properties object", - "data": { - "type": "Feature", - "geometry": null, - "properties": { - "name": "Test", - "value": 123 - } - }, - "valid": true - }, - { - "description": "Valid Feature with numeric id", - "data": { - "type": "Feature", - "id": 123, - "geometry": null, - "properties": null - }, - "valid": true - }, - { - "description": "Valid Feature with string id", - "data": { - "type": "Feature", - "id": "feature-1", - "geometry": null, - "properties": null - }, - "valid": true - }, - { - "description": "RFC 7946 Section 5 - Feature with bbox", - "data": { - "type": "Feature", - "bbox": [ -10.0, -10.0, 10.0, 10.0 ], - "geometry": { - "type": "Polygon", - "coordinates": [ - [ - [ -10.0, -10.0 ], - [ 10.0, -10.0 ], - [ 10.0, 10.0 ], - [ -10.0, -10.0 ] - ] - ] - }, - "properties": null - }, - "valid": true - }, - { - "description": "RFC 7946 Section 6.1 - Feature with foreign members", - "data": { - "type": "Feature", - "id": "f1", - "geometry": null, - "properties": null, - "title": "Example Feature" - }, - "valid": true - }, - { - "description": "Valid Feature with bbox", - "data": { - "type": "Feature", - "geometry": { - "type": "Point", - "coordinates": [ 0, 0 ] - }, - "properties": null, - "bbox": [ -1, -1, 1, 1 ] - }, - "valid": true - }, - { - "description": "Valid Feature with all geometry types", - "data": { - "type": "Feature", - "geometry": { - "type": "GeometryCollection", - "geometries": [ - { - "type": "Point", - "coordinates": [ 0, 0 ] - } - ] - }, - "properties": null - }, - "valid": true - }, - { - "description": "Invalid - properties is not null or object", - "data": { - "type": "Feature", - "geometry": null, - "properties": "invalid" - }, - "valid": false - }, - { - "description": "Invalid - properties is array", - "data": { - "type": "Feature", - "geometry": null, - "properties": [] - }, - "valid": false - }, - { - "description": "Invalid - id is boolean", - "data": { - "type": "Feature", - "id": true, - "geometry": null, - "properties": null - }, - "valid": false - }, - { - "description": "Invalid - id is object", - "data": { - "type": "Feature", - "id": {}, - "geometry": null, - "properties": null - }, - "valid": false - }, - { - "description": "Invalid - forbidden member coordinates", - "data": { - "type": "Feature", - "geometry": null, - "properties": null, - "coordinates": [ 0, 0 ] - }, - "valid": false - }, - { - "description": "Invalid - forbidden member geometries", - "data": { - "type": "Feature", - "geometry": null, - "properties": null, - "geometries": [] - }, - "valid": false - }, - { - "description": "Invalid - forbidden member features", - "data": { - "type": "Feature", - "geometry": null, - "properties": null, - "features": [] - }, - "valid": false - } - ] -} diff --git a/test/ietf/geojson/7946/geometry-collection/v1.test.json b/test/ietf/geojson/7946/geometry-collection/v1.test.json deleted file mode 100644 index f24f3692..00000000 --- a/test/ietf/geojson/7946/geometry-collection/v1.test.json +++ /dev/null @@ -1,257 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/geojson/7946/geometry-collection/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "not an object", - "valid": false - }, - { - "description": "Invalid type - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Empty object - missing required properties", - "data": {}, - "valid": false - }, - { - "description": "Missing geometries property", - "data": { - "type": "GeometryCollection" - }, - "valid": false - }, - { - "description": "Missing type property", - "data": { - "geometries": [] - }, - "valid": false - }, - { - "description": "Wrong type value", - "data": { - "type": "Point", - "geometries": [] - }, - "valid": false - }, - { - "description": "Valid empty GeometryCollection", - "data": { - "type": "GeometryCollection", - "geometries": [] - }, - "valid": true - }, - { - "description": "Valid GeometryCollection with Point", - "data": { - "type": "GeometryCollection", - "geometries": [ - { - "type": "Point", - "coordinates": [ 0, 0 ] - } - ] - }, - "valid": true - }, - { - "description": "Valid GeometryCollection with multiple geometries", - "data": { - "type": "GeometryCollection", - "geometries": [ - { - "type": "Point", - "coordinates": [ 0, 0 ] - }, - { - "type": "LineString", - "coordinates": [ - [ 0, 0 ], - [ 1, 1 ] - ] - } - ] - }, - "valid": true - }, - { - "description": "RFC 7946 Appendix A.7 - GeometryCollection", - "data": { - "type": "GeometryCollection", - "geometries": [ - { - "type": "Point", - "coordinates": [ 100.0, 0.0 ] - }, - { - "type": "LineString", - "coordinates": [ - [ 101.0, 0.0 ], - [ 102.0, 1.0 ] - ] - } - ] - }, - "valid": true - }, - { - "description": "Valid GeometryCollection with all geometry types", - "data": { - "type": "GeometryCollection", - "geometries": [ - { - "type": "Point", - "coordinates": [ 0, 0 ] - }, - { - "type": "LineString", - "coordinates": [ - [ 0, 0 ], - [ 1, 1 ] - ] - }, - { - "type": "Polygon", - "coordinates": [ - [ - [ 0, 0 ], - [ 1, 0 ], - [ 1, 1 ], - [ 0, 0 ] - ] - ] - }, - { - "type": "MultiPoint", - "coordinates": [ - [ 0, 0 ] - ] - }, - { - "type": "MultiLineString", - "coordinates": [ - [ - [ 0, 0 ], - [ 1, 1 ] - ] - ] - }, - { - "type": "MultiPolygon", - "coordinates": [ - [ - [ - [ 0, 0 ], - [ 1, 0 ], - [ 1, 1 ], - [ 0, 0 ] - ] - ] - ] - } - ] - }, - "valid": true - }, - { - "description": "Valid GeometryCollection with bbox", - "data": { - "type": "GeometryCollection", - "geometries": [ - { - "type": "Point", - "coordinates": [ 0, 0 ] - } - ], - "bbox": [ -1, -1, 1, 1 ] - }, - "valid": true - }, - { - "description": "Invalid - geometry with invalid type", - "data": { - "type": "GeometryCollection", - "geometries": [ - { - "type": "Unknown", - "coordinates": [ 0, 0 ] - } - ] - }, - "valid": false - }, - { - "description": "Invalid - geometries is not an array", - "data": { - "type": "GeometryCollection", - "geometries": {} - }, - "valid": false - }, - { - "description": "Invalid - forbidden member geometry", - "data": { - "type": "GeometryCollection", - "geometries": [], - "geometry": null - }, - "valid": false - }, - { - "description": "Invalid - forbidden member properties", - "data": { - "type": "GeometryCollection", - "geometries": [], - "properties": null - }, - "valid": false - }, - { - "description": "Invalid - forbidden member features", - "data": { - "type": "GeometryCollection", - "geometries": [], - "features": [] - }, - "valid": false - }, - { - "description": "Valid - nested geometry collection", - "valid": true, - "data": { - "type": "GeometryCollection", - "geometries": [ - { - "type": "GeometryCollection", - "geometries": [ - { - "type": "Point", - "coordinates": [ 0, 0 ] - } - ] - } - ] - } - } - ] -} diff --git a/test/ietf/geojson/7946/geometry/v1.test.json b/test/ietf/geojson/7946/geometry/v1.test.json deleted file mode 100644 index ed6bb0b5..00000000 --- a/test/ietf/geojson/7946/geometry/v1.test.json +++ /dev/null @@ -1,135 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/geojson/7946/geometry/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "not an object", - "valid": false - }, - { - "description": "Invalid type - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Empty object - missing required properties", - "data": {}, - "valid": false - }, - { - "description": "Valid Point geometry", - "data": { - "type": "Point", - "coordinates": [ 0, 0 ] - }, - "valid": true - }, - { - "description": "Valid LineString geometry", - "data": { - "type": "LineString", - "coordinates": [ - [ 0, 0 ], - [ 1, 1 ] - ] - }, - "valid": true - }, - { - "description": "Valid Polygon geometry", - "data": { - "type": "Polygon", - "coordinates": [ - [ - [ 0, 0 ], - [ 1, 0 ], - [ 1, 1 ], - [ 0, 0 ] - ] - ] - }, - "valid": true - }, - { - "description": "Valid MultiPoint geometry", - "data": { - "type": "MultiPoint", - "coordinates": [ - [ 0, 0 ], - [ 1, 1 ] - ] - }, - "valid": true - }, - { - "description": "Valid MultiLineString geometry", - "data": { - "type": "MultiLineString", - "coordinates": [ - [ - [ 0, 0 ], - [ 1, 1 ] - ] - ] - }, - "valid": true - }, - { - "description": "Valid MultiPolygon geometry", - "data": { - "type": "MultiPolygon", - "coordinates": [ - [ - [ - [ 0, 0 ], - [ 1, 0 ], - [ 1, 1 ], - [ 0, 0 ] - ] - ] - ] - }, - "valid": true - }, - { - "description": "Invalid - unknown geometry type", - "data": { - "type": "Unknown", - "coordinates": [ 0, 0 ] - }, - "valid": false - }, - { - "description": "Invalid - Feature is not a geometry", - "data": { - "type": "Feature", - "properties": null, - "geometry": null - }, - "valid": false - }, - { - "description": "Invalid - GeometryCollection is not included", - "data": { - "type": "GeometryCollection", - "geometries": [] - }, - "valid": false - } - ] -} diff --git a/test/ietf/geojson/7946/line-string-coordinates/v1.test.json b/test/ietf/geojson/7946/line-string-coordinates/v1.test.json deleted file mode 100644 index 46cc9da2..00000000 --- a/test/ietf/geojson/7946/line-string-coordinates/v1.test.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/geojson/7946/line-string-coordinates/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "not an array", - "valid": false - }, - { - "description": "Invalid type - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Empty array - too few positions", - "data": [], - "valid": false - }, - { - "description": "One position - too few positions", - "data": [ - [ 0, 0 ] - ], - "valid": false - }, - { - "description": "Valid LineString with two positions", - "data": [ - [ 0, 0 ], - [ 1, 1 ] - ], - "valid": true - }, - { - "description": "Valid LineString with three positions", - "data": [ - [ 0, 0 ], - [ 1, 1 ], - [ 2, 0 ] - ], - "valid": true - }, - { - "description": "Valid LineString with 3D positions", - "data": [ - [ 0, 0, 0 ], - [ 1, 1, 10 ], - [ 2, 0, 20 ] - ], - "valid": true - }, - { - "description": "Invalid - position has only one coordinate", - "data": [ - [ 0 ], - [ 1, 1 ] - ], - "valid": false - }, - { - "description": "Invalid - position contains string", - "data": [ - [ "0", 0 ], - [ 1, 1 ] - ], - "valid": false - }, - { - "description": "Invalid - position is not an array", - "data": [ - 0, - [ 1, 1 ] - ], - "valid": false - }, - { - "description": "Invalid - position is null", - "data": [ - null, - [ 1, 1 ] - ], - "valid": false - } - ] -} diff --git a/test/ietf/geojson/7946/line-string/v1.test.json b/test/ietf/geojson/7946/line-string/v1.test.json deleted file mode 100644 index e77421a2..00000000 --- a/test/ietf/geojson/7946/line-string/v1.test.json +++ /dev/null @@ -1,185 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/geojson/7946/line-string/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "not an object", - "valid": false - }, - { - "description": "Invalid type - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Empty object - missing required properties", - "data": {}, - "valid": false - }, - { - "description": "Missing coordinates property", - "data": { - "type": "LineString" - }, - "valid": false - }, - { - "description": "Missing type property", - "data": { - "coordinates": [ - [ 0, 0 ], - [ 1, 1 ] - ] - }, - "valid": false - }, - { - "description": "Wrong type value", - "data": { - "type": "Point", - "coordinates": [ - [ 0, 0 ], - [ 1, 1 ] - ] - }, - "valid": false - }, - { - "description": "Valid LineString with two positions", - "data": { - "type": "LineString", - "coordinates": [ - [ 0, 0 ], - [ 1, 1 ] - ] - }, - "valid": true - }, - { - "description": "RFC 7946 Appendix A.2 - LineString", - "data": { - "type": "LineString", - "coordinates": [ - [ 100.0, 0.0 ], - [ 101.0, 1.0 ] - ] - }, - "valid": true - }, - { - "description": "Valid LineString with three positions", - "data": { - "type": "LineString", - "coordinates": [ - [ 0, 0 ], - [ 1, 1 ], - [ 2, 0 ] - ] - }, - "valid": true - }, - { - "description": "Valid LineString with 3D coordinates", - "data": { - "type": "LineString", - "coordinates": [ - [ 0, 0, 0 ], - [ 1, 1, 10 ] - ] - }, - "valid": true - }, - { - "description": "Valid LineString with bbox", - "data": { - "type": "LineString", - "coordinates": [ - [ 0, 0 ], - [ 1, 1 ] - ], - "bbox": [ 0, 0, 1, 1 ] - }, - "valid": true - }, - { - "description": "Invalid - only one position", - "data": { - "type": "LineString", - "coordinates": [ - [ 0, 0 ] - ] - }, - "valid": false - }, - { - "description": "Invalid - position has only one coordinate", - "data": { - "type": "LineString", - "coordinates": [ - [ 0 ], - [ 1, 1 ] - ] - }, - "valid": false - }, - { - "description": "Invalid - coordinates is not an array", - "data": { - "type": "LineString", - "coordinates": {} - }, - "valid": false - }, - { - "description": "Invalid - forbidden member geometry", - "data": { - "type": "LineString", - "coordinates": [ - [ 0, 0 ], - [ 1, 1 ] - ], - "geometry": null - }, - "valid": false - }, - { - "description": "Invalid - forbidden member properties", - "data": { - "type": "LineString", - "coordinates": [ - [ 0, 0 ], - [ 1, 1 ] - ], - "properties": null - }, - "valid": false - }, - { - "description": "Invalid - forbidden member features", - "data": { - "type": "LineString", - "coordinates": [ - [ 0, 0 ], - [ 1, 1 ] - ], - "features": [] - }, - "valid": false - } - ] -} diff --git a/test/ietf/geojson/7946/linear-ring-coordinates/v1.test.json b/test/ietf/geojson/7946/linear-ring-coordinates/v1.test.json deleted file mode 100644 index a308cc77..00000000 --- a/test/ietf/geojson/7946/linear-ring-coordinates/v1.test.json +++ /dev/null @@ -1,120 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/geojson/7946/linear-ring-coordinates/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "not an array", - "valid": false - }, - { - "description": "Invalid type - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Empty array - too few positions", - "data": [], - "valid": false - }, - { - "description": "One position - too few positions", - "data": [ - [ 0, 0 ] - ], - "valid": false - }, - { - "description": "Two positions - too few positions", - "data": [ - [ 0, 0 ], - [ 1, 1 ] - ], - "valid": false - }, - { - "description": "Three positions - too few positions", - "data": [ - [ 0, 0 ], - [ 1, 1 ], - [ 0, 1 ] - ], - "valid": false - }, - { - "description": "Valid linear ring with four positions (closed triangle)", - "data": [ - [ 0, 0 ], - [ 1, 0 ], - [ 0, 1 ], - [ 0, 0 ] - ], - "valid": true - }, - { - "description": "Valid linear ring with five positions (closed rectangle)", - "data": [ - [ 0, 0 ], - [ 1, 0 ], - [ 1, 1 ], - [ 0, 1 ], - [ 0, 0 ] - ], - "valid": true - }, - { - "description": "Valid linear ring with 3D positions", - "data": [ - [ 0, 0, 0 ], - [ 1, 0, 0 ], - [ 0, 1, 0 ], - [ 0, 0, 0 ] - ], - "valid": true - }, - { - "description": "Invalid - position has only one coordinate", - "data": [ - [ 0 ], - [ 1, 0 ], - [ 0, 1 ], - [ 0, 0 ] - ], - "valid": false - }, - { - "description": "Invalid - position contains string", - "data": [ - [ "0", 0 ], - [ 1, 0 ], - [ 0, 1 ], - [ 0, 0 ] - ], - "valid": false - }, - { - "description": "Invalid - position is not an array", - "data": [ - 0, - [ 1, 0 ], - [ 0, 1 ], - [ 0, 0 ] - ], - "valid": false - } - ] -} diff --git a/test/ietf/geojson/7946/multi-line-string/v1.test.json b/test/ietf/geojson/7946/multi-line-string/v1.test.json deleted file mode 100644 index 3cf1b6bc..00000000 --- a/test/ietf/geojson/7946/multi-line-string/v1.test.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/geojson/7946/multi-line-string/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "not an object", - "valid": false - }, - { - "description": "Invalid type - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Empty object - missing required properties", - "data": {}, - "valid": false - }, - { - "description": "Missing coordinates property", - "data": { - "type": "MultiLineString" - }, - "valid": false - }, - { - "description": "Missing type property", - "data": { - "coordinates": [ - [ - [ 0, 0 ], - [ 1, 1 ] - ] - ] - }, - "valid": false - }, - { - "description": "Wrong type value", - "data": { - "type": "LineString", - "coordinates": [ - [ - [ 0, 0 ], - [ 1, 1 ] - ] - ] - }, - "valid": false - }, - { - "description": "Valid MultiLineString with empty coordinates", - "data": { - "type": "MultiLineString", - "coordinates": [] - }, - "valid": true - }, - { - "description": "Valid MultiLineString with one line", - "data": { - "type": "MultiLineString", - "coordinates": [ - [ - [ 0, 0 ], - [ 1, 1 ] - ] - ] - }, - "valid": true - }, - { - "description": "Valid MultiLineString with multiple lines", - "data": { - "type": "MultiLineString", - "coordinates": [ - [ - [ 0, 0 ], - [ 1, 1 ] - ], - [ - [ 2, 2 ], - [ 3, 3 ] - ] - ] - }, - "valid": true - }, - { - "description": "RFC 7946 Appendix A.5 - MultiLineString", - "data": { - "type": "MultiLineString", - "coordinates": [ - [ - [ 100.0, 0.0 ], - [ 101.0, 1.0 ] - ], - [ - [ 102.0, 2.0 ], - [ 103.0, 3.0 ] - ] - ] - }, - "valid": true - }, - { - "description": "RFC 7946 Section 3.1.9 - Antimeridian cutting", - "data": { - "type": "MultiLineString", - "coordinates": [ - [ - [ 170.0, 45.0 ], - [ 180.0, 45.0 ] - ], - [ - [ -180.0, 45.0 ], - [ -170.0, 45.0 ] - ] - ] - }, - "valid": true - }, - { - "description": "Valid MultiLineString with 3D coordinates", - "data": { - "type": "MultiLineString", - "coordinates": [ - [ - [ 0, 0, 0 ], - [ 1, 1, 10 ] - ] - ] - }, - "valid": true - }, - { - "description": "Valid MultiLineString with bbox", - "data": { - "type": "MultiLineString", - "coordinates": [ - [ - [ 0, 0 ], - [ 1, 1 ] - ] - ], - "bbox": [ 0, 0, 1, 1 ] - }, - "valid": true - }, - { - "description": "Invalid - LineString with only one position", - "data": { - "type": "MultiLineString", - "coordinates": [ - [ - [ 0, 0 ] - ] - ] - }, - "valid": false - }, - { - "description": "Invalid - coordinates is not an array", - "data": { - "type": "MultiLineString", - "coordinates": {} - }, - "valid": false - }, - { - "description": "Invalid - forbidden member geometry", - "data": { - "type": "MultiLineString", - "coordinates": [ - [ - [ 0, 0 ], - [ 1, 1 ] - ] - ], - "geometry": null - }, - "valid": false - }, - { - "description": "Invalid - forbidden member properties", - "data": { - "type": "MultiLineString", - "coordinates": [ - [ - [ 0, 0 ], - [ 1, 1 ] - ] - ], - "properties": null - }, - "valid": false - }, - { - "description": "Invalid - forbidden member features", - "data": { - "type": "MultiLineString", - "coordinates": [ - [ - [ 0, 0 ], - [ 1, 1 ] - ] - ], - "features": [] - }, - "valid": false - } - ] -} diff --git a/test/ietf/geojson/7946/multi-point/v1.test.json b/test/ietf/geojson/7946/multi-point/v1.test.json deleted file mode 100644 index e51a3a6c..00000000 --- a/test/ietf/geojson/7946/multi-point/v1.test.json +++ /dev/null @@ -1,179 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/geojson/7946/multi-point/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "not an object", - "valid": false - }, - { - "description": "Invalid type - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Empty object - missing required properties", - "data": {}, - "valid": false - }, - { - "description": "Missing coordinates property", - "data": { - "type": "MultiPoint" - }, - "valid": false - }, - { - "description": "Missing type property", - "data": { - "coordinates": [ - [ 0, 0 ], - [ 1, 1 ] - ] - }, - "valid": false - }, - { - "description": "Wrong type value", - "data": { - "type": "Point", - "coordinates": [ - [ 0, 0 ], - [ 1, 1 ] - ] - }, - "valid": false - }, - { - "description": "Valid MultiPoint with empty coordinates", - "data": { - "type": "MultiPoint", - "coordinates": [] - }, - "valid": true - }, - { - "description": "Valid MultiPoint with one point", - "data": { - "type": "MultiPoint", - "coordinates": [ - [ 0, 0 ] - ] - }, - "valid": true - }, - { - "description": "Valid MultiPoint with multiple points", - "data": { - "type": "MultiPoint", - "coordinates": [ - [ 0, 0 ], - [ 1, 1 ], - [ 2, 2 ] - ] - }, - "valid": true - }, - { - "description": "RFC 7946 Appendix A.4 - MultiPoint", - "data": { - "type": "MultiPoint", - "coordinates": [ - [ 100.0, 0.0 ], - [ 101.0, 1.0 ] - ] - }, - "valid": true - }, - { - "description": "Valid MultiPoint with 3D coordinates", - "data": { - "type": "MultiPoint", - "coordinates": [ - [ 0, 0, 0 ], - [ 1, 1, 10 ] - ] - }, - "valid": true - }, - { - "description": "Valid MultiPoint with bbox", - "data": { - "type": "MultiPoint", - "coordinates": [ - [ 0, 0 ], - [ 1, 1 ] - ], - "bbox": [ 0, 0, 1, 1 ] - }, - "valid": true - }, - { - "description": "Invalid - position has only one coordinate", - "data": { - "type": "MultiPoint", - "coordinates": [ - [ 0 ], - [ 1, 1 ] - ] - }, - "valid": false - }, - { - "description": "Invalid - coordinates is not an array", - "data": { - "type": "MultiPoint", - "coordinates": {} - }, - "valid": false - }, - { - "description": "Invalid - forbidden member geometry", - "data": { - "type": "MultiPoint", - "coordinates": [ - [ 0, 0 ] - ], - "geometry": null - }, - "valid": false - }, - { - "description": "Invalid - forbidden member properties", - "data": { - "type": "MultiPoint", - "coordinates": [ - [ 0, 0 ] - ], - "properties": null - }, - "valid": false - }, - { - "description": "Invalid - forbidden member features", - "data": { - "type": "MultiPoint", - "coordinates": [ - [ 0, 0 ] - ], - "features": [] - }, - "valid": false - } - ] -} diff --git a/test/ietf/geojson/7946/multi-polygon/v1.test.json b/test/ietf/geojson/7946/multi-polygon/v1.test.json deleted file mode 100644 index 5fdb0b8a..00000000 --- a/test/ietf/geojson/7946/multi-polygon/v1.test.json +++ /dev/null @@ -1,299 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/geojson/7946/multi-polygon/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "not an object", - "valid": false - }, - { - "description": "Invalid type - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Empty object - missing required properties", - "data": {}, - "valid": false - }, - { - "description": "Missing coordinates property", - "data": { - "type": "MultiPolygon" - }, - "valid": false - }, - { - "description": "Missing type property", - "data": { - "coordinates": [ - [ - [ - [ 0, 0 ], - [ 1, 0 ], - [ 1, 1 ], - [ 0, 0 ] - ] - ] - ] - }, - "valid": false - }, - { - "description": "Wrong type value", - "data": { - "type": "Polygon", - "coordinates": [ - [ - [ - [ 0, 0 ], - [ 1, 0 ], - [ 1, 1 ], - [ 0, 0 ] - ] - ] - ] - }, - "valid": false - }, - { - "description": "Valid MultiPolygon with empty coordinates", - "data": { - "type": "MultiPolygon", - "coordinates": [] - }, - "valid": true - }, - { - "description": "Valid MultiPolygon with one polygon", - "data": { - "type": "MultiPolygon", - "coordinates": [ - [ - [ - [ 0, 0 ], - [ 1, 0 ], - [ 1, 1 ], - [ 0, 0 ] - ] - ] - ] - }, - "valid": true - }, - { - "description": "Valid MultiPolygon with multiple polygons", - "data": { - "type": "MultiPolygon", - "coordinates": [ - [ - [ - [ 0, 0 ], - [ 1, 0 ], - [ 1, 1 ], - [ 0, 0 ] - ] - ], - [ - [ - [ 2, 2 ], - [ 3, 2 ], - [ 3, 3 ], - [ 2, 2 ] - ] - ] - ] - }, - "valid": true - }, - { - "description": "RFC 7946 Appendix A.6 - MultiPolygon", - "data": { - "type": "MultiPolygon", - "coordinates": [ - [ - [ - [ 102.0, 2.0 ], - [ 103.0, 2.0 ], - [ 103.0, 3.0 ], - [ 102.0, 3.0 ], - [ 102.0, 2.0 ] - ] - ], - [ - [ - [ 100.0, 0.0 ], - [ 101.0, 0.0 ], - [ 101.0, 1.0 ], - [ 100.0, 1.0 ], - [ 100.0, 0.0 ] - ], - [ - [ 100.2, 0.2 ], - [ 100.2, 0.8 ], - [ 100.8, 0.8 ], - [ 100.8, 0.2 ], - [ 100.2, 0.2 ] - ] - ] - ] - }, - "valid": true - }, - { - "description": "RFC 7946 Section 3.1.9 - Antimeridian crossing", - "data": { - "type": "MultiPolygon", - "coordinates": [ - [ - [ - [ 180.0, 40.0 ], - [ 180.0, 50.0 ], - [ 170.0, 50.0 ], - [ 170.0, 40.0 ], - [ 180.0, 40.0 ] - ] - ], - [ - [ - [ -170.0, 40.0 ], - [ -170.0, 50.0 ], - [ -180.0, 50.0 ], - [ -180.0, 40.0 ], - [ -170.0, 40.0 ] - ] - ] - ] - }, - "valid": true - }, - { - "description": "Valid MultiPolygon with 3D coordinates", - "data": { - "type": "MultiPolygon", - "coordinates": [ - [ - [ - [ 0, 0, 0 ], - [ 1, 0, 0 ], - [ 1, 1, 0 ], - [ 0, 0, 0 ] - ] - ] - ] - }, - "valid": true - }, - { - "description": "Valid MultiPolygon with bbox", - "data": { - "type": "MultiPolygon", - "coordinates": [ - [ - [ - [ 0, 0 ], - [ 1, 0 ], - [ 1, 1 ], - [ 0, 0 ] - ] - ] - ], - "bbox": [ 0, 0, 1, 1 ] - }, - "valid": true - }, - { - "description": "Invalid - linear ring with too few positions", - "data": { - "type": "MultiPolygon", - "coordinates": [ - [ - [ - [ 0, 0 ], - [ 1, 0 ], - [ 0, 0 ] - ] - ] - ] - }, - "valid": false - }, - { - "description": "Invalid - coordinates is not an array", - "data": { - "type": "MultiPolygon", - "coordinates": {} - }, - "valid": false - }, - { - "description": "Invalid - forbidden member geometry", - "data": { - "type": "MultiPolygon", - "coordinates": [ - [ - [ - [ 0, 0 ], - [ 1, 0 ], - [ 1, 1 ], - [ 0, 0 ] - ] - ] - ], - "geometry": null - }, - "valid": false - }, - { - "description": "Invalid - forbidden member properties", - "data": { - "type": "MultiPolygon", - "coordinates": [ - [ - [ - [ 0, 0 ], - [ 1, 0 ], - [ 1, 1 ], - [ 0, 0 ] - ] - ] - ], - "properties": null - }, - "valid": false - }, - { - "description": "Invalid - forbidden member features", - "data": { - "type": "MultiPolygon", - "coordinates": [ - [ - [ - [ 0, 0 ], - [ 1, 0 ], - [ 1, 1 ], - [ 0, 0 ] - ] - ] - ], - "features": [] - }, - "valid": false - } - ] -} diff --git a/test/ietf/geojson/7946/point-coordinates/v1.test.json b/test/ietf/geojson/7946/point-coordinates/v1.test.json deleted file mode 100644 index 2d85d414..00000000 --- a/test/ietf/geojson/7946/point-coordinates/v1.test.json +++ /dev/null @@ -1,126 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/geojson/7946/point-coordinates/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "not an array", - "valid": false - }, - { - "description": "Invalid type - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Empty array - too few items", - "data": [], - "valid": false - }, - { - "description": "One item - too few items", - "data": [ 0 ], - "valid": false - }, - { - "description": "Valid 2D position (longitude, latitude)", - "data": [ -122.419, 37.7749 ], - "valid": true - }, - { - "description": "Valid 3D position with altitude", - "data": [ -122.419, 37.7749, 10.5 ], - "valid": true - }, - { - "description": "Valid position with integer coordinates", - "data": [ 0, 0 ], - "valid": true - }, - { - "description": "Valid position with negative coordinates", - "data": [ -180, -90 ], - "valid": true - }, - { - "description": "Valid position at antimeridian", - "data": [ 180, 0 ], - "valid": true - }, - { - "description": "Invalid - contains string", - "data": [ "0", 0 ], - "valid": false - }, - { - "description": "Invalid - contains null", - "data": [ null, 0 ], - "valid": false - }, - { - "description": "Invalid - contains boolean", - "data": [ true, 0 ], - "valid": false - }, - { - "description": "Invalid - contains object", - "data": [ - {}, - 0 - ], - "valid": false - }, - { - "description": "Invalid - contains array", - "data": [ - [], - 0 - ], - "valid": false - }, - { - "description": "Valid position at south pole", - "data": [ 0, -90 ], - "valid": true - }, - { - "description": "Valid position at north pole", - "data": [ 0, 90 ], - "valid": true - }, - { - "description": "Invalid - latitude below -90", - "data": [ 0, -90.1 ], - "valid": false - }, - { - "description": "Invalid - latitude above 90", - "data": [ 0, 90.1 ], - "valid": false - }, - { - "description": "Invalid - latitude way out of range (positive)", - "data": [ 0, 100 ], - "valid": false - }, - { - "description": "Invalid - latitude way out of range (negative)", - "data": [ 0, -100 ], - "valid": false - } - ] -} diff --git a/test/ietf/geojson/7946/point/v1.test.json b/test/ietf/geojson/7946/point/v1.test.json deleted file mode 100644 index d13a414e..00000000 --- a/test/ietf/geojson/7946/point/v1.test.json +++ /dev/null @@ -1,158 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/geojson/7946/point/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "not an object", - "valid": false - }, - { - "description": "Invalid type - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Empty object - missing required properties", - "data": {}, - "valid": false - }, - { - "description": "Missing coordinates property", - "data": { - "type": "Point" - }, - "valid": false - }, - { - "description": "Missing type property", - "data": { - "coordinates": [ 0, 0 ] - }, - "valid": false - }, - { - "description": "Wrong type value", - "data": { - "type": "LineString", - "coordinates": [ 0, 0 ] - }, - "valid": false - }, - { - "description": "Valid Point with 2D coordinates", - "data": { - "type": "Point", - "coordinates": [ -122.419, 37.7749 ] - }, - "valid": true - }, - { - "description": "RFC 7946 Appendix A.1 - Point", - "data": { - "type": "Point", - "coordinates": [ 100.0, 0.0 ] - }, - "valid": true - }, - { - "description": "Valid Point with 3D coordinates", - "data": { - "type": "Point", - "coordinates": [ -122.419, 37.7749, 10 ] - }, - "valid": true - }, - { - "description": "Valid Point with bbox", - "data": { - "type": "Point", - "coordinates": [ 0, 0 ], - "bbox": [ -1, -1, 1, 1 ] - }, - "valid": true - }, - { - "description": "Invalid - coordinates has only one value", - "data": { - "type": "Point", - "coordinates": [ 0 ] - }, - "valid": false - }, - { - "description": "Invalid - coordinates contains string", - "data": { - "type": "Point", - "coordinates": [ "0", 0 ] - }, - "valid": false - }, - { - "description": "Invalid - coordinates is not an array", - "data": { - "type": "Point", - "coordinates": {} - }, - "valid": false - }, - { - "description": "Invalid - type is not a string", - "data": { - "type": 123, - "coordinates": [ 0, 0 ] - }, - "valid": false - }, - { - "description": "Invalid - bbox has too few items", - "data": { - "type": "Point", - "coordinates": [ 0, 0 ], - "bbox": [ 0, 0, 1 ] - }, - "valid": false - }, - { - "description": "Invalid - forbidden member geometry", - "data": { - "type": "Point", - "coordinates": [ 0, 0 ], - "geometry": null - }, - "valid": false - }, - { - "description": "Invalid - forbidden member properties", - "data": { - "type": "Point", - "coordinates": [ 0, 0 ], - "properties": null - }, - "valid": false - }, - { - "description": "Invalid - forbidden member features", - "data": { - "type": "Point", - "coordinates": [ 0, 0 ], - "features": [] - }, - "valid": false - } - ] -} diff --git a/test/ietf/geojson/7946/polygon-coordinates/v1.test.json b/test/ietf/geojson/7946/polygon-coordinates/v1.test.json deleted file mode 100644 index 63b15357..00000000 --- a/test/ietf/geojson/7946/polygon-coordinates/v1.test.json +++ /dev/null @@ -1,119 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/geojson/7946/polygon-coordinates/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "not an array", - "valid": false - }, - { - "description": "Invalid type - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Empty array - valid (no rings)", - "data": [], - "valid": true - }, - { - "description": "Valid polygon with exterior ring only", - "data": [ - [ - [ 0, 0 ], - [ 1, 0 ], - [ 1, 1 ], - [ 0, 0 ] - ] - ], - "valid": true - }, - { - "description": "Valid polygon with exterior and interior ring (hole)", - "data": [ - [ - [ 0, 0 ], - [ 10, 0 ], - [ 10, 10 ], - [ 0, 10 ], - [ 0, 0 ] - ], - [ - [ 2, 2 ], - [ 8, 2 ], - [ 8, 8 ], - [ 2, 8 ], - [ 2, 2 ] - ] - ], - "valid": true - }, - { - "description": "Valid polygon with 3D coordinates", - "data": [ - [ - [ 0, 0, 0 ], - [ 1, 0, 0 ], - [ 1, 1, 0 ], - [ 0, 0, 0 ] - ] - ], - "valid": true - }, - { - "description": "Invalid - linear ring with too few positions", - "data": [ - [ - [ 0, 0 ], - [ 1, 0 ], - [ 0, 0 ] - ] - ], - "valid": false - }, - { - "description": "Invalid - linear ring position has only one coordinate", - "data": [ - [ - [ 0 ], - [ 1, 0 ], - [ 1, 1 ], - [ 0, 0 ] - ] - ], - "valid": false - }, - { - "description": "Invalid - linear ring position contains string", - "data": [ - [ - [ "0", 0 ], - [ 1, 0 ], - [ 1, 1 ], - [ 0, 0 ] - ] - ], - "valid": false - }, - { - "description": "Invalid - linear ring is not an array", - "data": [ "not an array" ], - "valid": false - } - ] -} diff --git a/test/ietf/geojson/7946/polygon/v1.test.json b/test/ietf/geojson/7946/polygon/v1.test.json deleted file mode 100644 index 52eac58a..00000000 --- a/test/ietf/geojson/7946/polygon/v1.test.json +++ /dev/null @@ -1,257 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/geojson/7946/polygon/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "not an object", - "valid": false - }, - { - "description": "Invalid type - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Empty object - missing required properties", - "data": {}, - "valid": false - }, - { - "description": "Missing coordinates property", - "data": { - "type": "Polygon" - }, - "valid": false - }, - { - "description": "Missing type property", - "data": { - "coordinates": [ - [ - [ 0, 0 ], - [ 1, 0 ], - [ 1, 1 ], - [ 0, 0 ] - ] - ] - }, - "valid": false - }, - { - "description": "Wrong type value", - "data": { - "type": "Point", - "coordinates": [ - [ - [ 0, 0 ], - [ 1, 0 ], - [ 1, 1 ], - [ 0, 0 ] - ] - ] - }, - "valid": false - }, - { - "description": "Valid Polygon with exterior ring", - "data": { - "type": "Polygon", - "coordinates": [ - [ - [ 0, 0 ], - [ 1, 0 ], - [ 1, 1 ], - [ 0, 0 ] - ] - ] - }, - "valid": true - }, - { - "description": "RFC 7946 Appendix A.3 - Polygon without holes", - "data": { - "type": "Polygon", - "coordinates": [ - [ - [ 100.0, 0.0 ], - [ 101.0, 0.0 ], - [ 101.0, 1.0 ], - [ 100.0, 1.0 ], - [ 100.0, 0.0 ] - ] - ] - }, - "valid": true - }, - { - "description": "RFC 7946 Appendix A.3 - Polygon with holes", - "data": { - "type": "Polygon", - "coordinates": [ - [ - [ 100.0, 0.0 ], - [ 101.0, 0.0 ], - [ 101.0, 1.0 ], - [ 100.0, 1.0 ], - [ 100.0, 0.0 ] - ], - [ - [ 100.8, 0.8 ], - [ 100.8, 0.2 ], - [ 100.2, 0.2 ], - [ 100.2, 0.8 ], - [ 100.8, 0.8 ] - ] - ] - }, - "valid": true - }, - { - "description": "Valid Polygon with exterior and interior ring", - "data": { - "type": "Polygon", - "coordinates": [ - [ - [ 0, 0 ], - [ 10, 0 ], - [ 10, 10 ], - [ 0, 10 ], - [ 0, 0 ] - ], - [ - [ 2, 2 ], - [ 8, 2 ], - [ 8, 8 ], - [ 2, 8 ], - [ 2, 2 ] - ] - ] - }, - "valid": true - }, - { - "description": "Valid Polygon with 3D coordinates", - "data": { - "type": "Polygon", - "coordinates": [ - [ - [ 0, 0, 0 ], - [ 1, 0, 0 ], - [ 1, 1, 0 ], - [ 0, 0, 0 ] - ] - ] - }, - "valid": true - }, - { - "description": "Valid Polygon with bbox", - "data": { - "type": "Polygon", - "coordinates": [ - [ - [ 0, 0 ], - [ 1, 0 ], - [ 1, 1 ], - [ 0, 0 ] - ] - ], - "bbox": [ 0, 0, 1, 1 ] - }, - "valid": true - }, - { - "description": "Valid Polygon with empty coordinates", - "data": { - "type": "Polygon", - "coordinates": [] - }, - "valid": true - }, - { - "description": "Invalid - linear ring with too few positions", - "data": { - "type": "Polygon", - "coordinates": [ - [ - [ 0, 0 ], - [ 1, 0 ], - [ 0, 0 ] - ] - ] - }, - "valid": false - }, - { - "description": "Invalid - coordinates is not an array", - "data": { - "type": "Polygon", - "coordinates": {} - }, - "valid": false - }, - { - "description": "Invalid - forbidden member geometry", - "data": { - "type": "Polygon", - "coordinates": [ - [ - [ 0, 0 ], - [ 1, 0 ], - [ 1, 1 ], - [ 0, 0 ] - ] - ], - "geometry": null - }, - "valid": false - }, - { - "description": "Invalid - forbidden member properties", - "data": { - "type": "Polygon", - "coordinates": [ - [ - [ 0, 0 ], - [ 1, 0 ], - [ 1, 1 ], - [ 0, 0 ] - ] - ], - "properties": null - }, - "valid": false - }, - { - "description": "Invalid - forbidden member features", - "data": { - "type": "Polygon", - "coordinates": [ - [ - [ 0, 0 ], - [ 1, 0 ], - [ 1, 1 ], - [ 0, 0 ] - ] - ], - "features": [] - }, - "valid": false - } - ] -} diff --git a/test/ietf/geojson/7946/schema/v1.test.json b/test/ietf/geojson/7946/schema/v1.test.json deleted file mode 100644 index 53afec8d..00000000 --- a/test/ietf/geojson/7946/schema/v1.test.json +++ /dev/null @@ -1,183 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/geojson/7946/schema/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "not an object", - "valid": false - }, - { - "description": "Invalid type - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Empty object - missing required properties", - "data": {}, - "valid": false - }, - { - "description": "Valid Point", - "data": { - "type": "Point", - "coordinates": [ 0, 0 ] - }, - "valid": true - }, - { - "description": "Valid LineString", - "data": { - "type": "LineString", - "coordinates": [ - [ 0, 0 ], - [ 1, 1 ] - ] - }, - "valid": true - }, - { - "description": "Valid Polygon", - "data": { - "type": "Polygon", - "coordinates": [ - [ - [ 0, 0 ], - [ 1, 0 ], - [ 1, 1 ], - [ 0, 0 ] - ] - ] - }, - "valid": true - }, - { - "description": "Valid MultiPoint", - "data": { - "type": "MultiPoint", - "coordinates": [ - [ 0, 0 ], - [ 1, 1 ] - ] - }, - "valid": true - }, - { - "description": "Valid MultiLineString", - "data": { - "type": "MultiLineString", - "coordinates": [ - [ - [ 0, 0 ], - [ 1, 1 ] - ] - ] - }, - "valid": true - }, - { - "description": "Valid MultiPolygon", - "data": { - "type": "MultiPolygon", - "coordinates": [ - [ - [ - [ 0, 0 ], - [ 1, 0 ], - [ 1, 1 ], - [ 0, 0 ] - ] - ] - ] - }, - "valid": true - }, - { - "description": "Valid GeometryCollection", - "data": { - "type": "GeometryCollection", - "geometries": [ - { - "type": "Point", - "coordinates": [ 0, 0 ] - } - ] - }, - "valid": true - }, - { - "description": "Valid Feature with null geometry", - "data": { - "type": "Feature", - "geometry": null, - "properties": null - }, - "valid": true - }, - { - "description": "Valid Feature with Point geometry", - "data": { - "type": "Feature", - "geometry": { - "type": "Point", - "coordinates": [ 0, 0 ] - }, - "properties": { - "name": "Test" - } - }, - "valid": true - }, - { - "description": "Valid FeatureCollection", - "data": { - "type": "FeatureCollection", - "features": [ - { - "type": "Feature", - "geometry": null, - "properties": null - } - ] - }, - "valid": true - }, - { - "description": "Valid empty FeatureCollection", - "data": { - "type": "FeatureCollection", - "features": [] - }, - "valid": true - }, - { - "description": "Invalid - unknown type", - "data": { - "type": "Unknown", - "coordinates": [ 0, 0 ] - }, - "valid": false - }, - { - "description": "Invalid - missing type property", - "data": { - "coordinates": [ 0, 0 ] - }, - "valid": false - } - ] -} diff --git a/test/ietf/http/9110/etag-strong/v1.test.json b/test/ietf/http/9110/etag-strong/v1.test.json deleted file mode 100644 index 9a6f34a8..00000000 --- a/test/ietf/http/9110/etag-strong/v1.test.json +++ /dev/null @@ -1,260 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/http/9110/etag-strong/v1.json", - "tests": [ - { - "description": "Invalid type - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - empty strong ETag", - "data": "\"\"", - "valid": true - }, - { - "description": "Valid - simple alphanumeric", - "data": "\"abc123\"", - "valid": true - }, - { - "description": "Valid - hex string", - "data": "\"686897696a7c876b7e\"", - "valid": true - }, - { - "description": "Valid - with hyphens", - "data": "\"abc-123-def\"", - "valid": true - }, - { - "description": "Valid - with underscores", - "data": "\"abc_123_def\"", - "valid": true - }, - { - "description": "Valid - with dots", - "data": "\"version.1.2.3\"", - "valid": true - }, - { - "description": "Valid - with exclamation mark", - "data": "\"abc!123\"", - "valid": true - }, - { - "description": "Valid - with hash", - "data": "\"#abc123\"", - "valid": true - }, - { - "description": "Valid - with dollar sign", - "data": "\"$abc123\"", - "valid": true - }, - { - "description": "Valid - with percent", - "data": "\"abc%123\"", - "valid": true - }, - { - "description": "Valid - with ampersand", - "data": "\"abc&123\"", - "valid": true - }, - { - "description": "Valid - with asterisk", - "data": "\"abc*123\"", - "valid": true - }, - { - "description": "Valid - with plus", - "data": "\"abc+123\"", - "valid": true - }, - { - "description": "Valid - with forward slash", - "data": "\"abc/123\"", - "valid": true - }, - { - "description": "Valid - with colon", - "data": "\"abc:123\"", - "valid": true - }, - { - "description": "Valid - with semicolon", - "data": "\"abc;123\"", - "valid": true - }, - { - "description": "Valid - with equals", - "data": "\"abc=123\"", - "valid": true - }, - { - "description": "Valid - with question mark", - "data": "\"abc?123\"", - "valid": true - }, - { - "description": "Valid - with at sign", - "data": "\"abc@123\"", - "valid": true - }, - { - "description": "Valid - with brackets", - "data": "\"[abc]123\"", - "valid": true - }, - { - "description": "Valid - with backslash", - "data": "\"abc\\123\"", - "valid": true - }, - { - "description": "Valid - with caret", - "data": "\"abc^123\"", - "valid": true - }, - { - "description": "Valid - with backtick", - "data": "`abc123`", - "valid": false - }, - { - "description": "Valid - with braces", - "data": "\"{abc}123\"", - "valid": true - }, - { - "description": "Valid - with pipe", - "data": "\"abc|123\"", - "valid": true - }, - { - "description": "Valid - with tilde", - "data": "\"abc~123\"", - "valid": true - }, - { - "description": "Valid - uppercase letters", - "data": "\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"", - "valid": true - }, - { - "description": "Valid - lowercase letters", - "data": "\"abcdefghijklmnopqrstuvwxyz\"", - "valid": true - }, - { - "description": "Valid - all digits", - "data": "\"0123456789\"", - "valid": true - }, - { - "description": "Valid - mixed case and symbols", - "data": "\"aBc-123_DeF.456\"", - "valid": true - }, - { - "description": "Valid - long value", - "data": "\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"", - "valid": true - }, - { - "description": "Invalid - missing opening quote", - "data": "abc123\"", - "valid": false - }, - { - "description": "Invalid - missing closing quote", - "data": "\"abc123", - "valid": false - }, - { - "description": "Invalid - no quotes", - "data": "abc123", - "valid": false - }, - { - "description": "Invalid - single quotes instead of double", - "data": "'abc123'", - "valid": false - }, - { - "description": "Invalid - weak ETag prefix (W/)", - "data": "W/\"abc123\"", - "valid": false - }, - { - "description": "Invalid - weak ETag prefix lowercase", - "data": "w/\"abc123\"", - "valid": false - }, - { - "description": "Invalid - space inside", - "data": "\"abc 123\"", - "valid": false - }, - { - "description": "Invalid - tab character", - "data": "\"abc\t123\"", - "valid": false - }, - { - "description": "Invalid - newline character", - "data": "\"abc\n123\"", - "valid": false - }, - { - "description": "Invalid - carriage return", - "data": "\"abc\r123\"", - "valid": false - }, - { - "description": "Invalid - null byte", - "data": "\"abc\u0000123\"", - "valid": false - }, - { - "description": "Invalid - control character", - "data": "\"abc\u0001123\"", - "valid": false - }, - { - "description": "Invalid - quote character (0x22) inside", - "data": "\"abc\"123\"", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - just quotes with space", - "data": "\" \"", - "valid": false - } - ] -} diff --git a/test/ietf/http/9110/etag-weak/v1.test.json b/test/ietf/http/9110/etag-weak/v1.test.json deleted file mode 100644 index 6eeebebe..00000000 --- a/test/ietf/http/9110/etag-weak/v1.test.json +++ /dev/null @@ -1,190 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/http/9110/etag-weak/v1.json", - "tests": [ - { - "description": "Invalid type - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - empty weak ETag", - "data": "W/\"\"", - "valid": true - }, - { - "description": "Valid - simple alphanumeric", - "data": "W/\"abc123\"", - "valid": true - }, - { - "description": "Valid - hex string", - "data": "W/\"686897696a7c876b7e\"", - "valid": true - }, - { - "description": "Valid - with hyphens", - "data": "W/\"abc-123-def\"", - "valid": true - }, - { - "description": "Valid - with underscores", - "data": "W/\"abc_123_def\"", - "valid": true - }, - { - "description": "Valid - with dots", - "data": "W/\"version.1.2.3\"", - "valid": true - }, - { - "description": "Valid - with exclamation mark", - "data": "W/\"abc!123\"", - "valid": true - }, - { - "description": "Valid - with various symbols", - "data": "W/\"#$%&*+:;=?@[]^{|}~\"", - "valid": true - }, - { - "description": "Valid - uppercase letters", - "data": "W/\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"", - "valid": true - }, - { - "description": "Valid - lowercase letters", - "data": "W/\"abcdefghijklmnopqrstuvwxyz\"", - "valid": true - }, - { - "description": "Valid - all digits", - "data": "W/\"0123456789\"", - "valid": true - }, - { - "description": "Valid - mixed case and symbols", - "data": "W/\"aBc-123_DeF.456\"", - "valid": true - }, - { - "description": "Valid - long value", - "data": "W/\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"", - "valid": true - }, - { - "description": "Invalid - strong ETag (missing W/ prefix)", - "data": "\"abc123\"", - "valid": false - }, - { - "description": "Invalid - lowercase w", - "data": "w/\"abc123\"", - "valid": false - }, - { - "description": "Invalid - missing slash after W", - "data": "W\"abc123\"", - "valid": false - }, - { - "description": "Invalid - space after W", - "data": "W /\"abc123\"", - "valid": false - }, - { - "description": "Invalid - space before W", - "data": " W/\"abc123\"", - "valid": false - }, - { - "description": "Invalid - missing opening quote", - "data": "W/abc123\"", - "valid": false - }, - { - "description": "Invalid - missing closing quote", - "data": "W/\"abc123", - "valid": false - }, - { - "description": "Invalid - no quotes", - "data": "W/abc123", - "valid": false - }, - { - "description": "Invalid - single quotes", - "data": "W/'abc123'", - "valid": false - }, - { - "description": "Invalid - space inside value", - "data": "W/\"abc 123\"", - "valid": false - }, - { - "description": "Invalid - tab character", - "data": "W/\"abc\t123\"", - "valid": false - }, - { - "description": "Invalid - newline character", - "data": "W/\"abc\n123\"", - "valid": false - }, - { - "description": "Invalid - carriage return", - "data": "W/\"abc\r123\"", - "valid": false - }, - { - "description": "Invalid - null byte", - "data": "W/\"abc\u0000123\"", - "valid": false - }, - { - "description": "Invalid - control character", - "data": "W/\"abc\u0001123\"", - "valid": false - }, - { - "description": "Invalid - quote inside value", - "data": "W/\"abc\"123\"", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - just W/", - "data": "W/", - "valid": false - }, - { - "description": "Invalid - W/ with space in quotes", - "data": "W/\" \"", - "valid": false - } - ] -} diff --git a/test/ietf/http/9110/etag/v1.test.json b/test/ietf/http/9110/etag/v1.test.json deleted file mode 100644 index a10656e0..00000000 --- a/test/ietf/http/9110/etag/v1.test.json +++ /dev/null @@ -1,150 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/http/9110/etag/v1.json", - "tests": [ - { - "description": "Invalid type - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - strong ETag empty", - "data": "\"\"", - "valid": true - }, - { - "description": "Valid - strong ETag simple", - "data": "\"abc123\"", - "valid": true - }, - { - "description": "Valid - strong ETag hex", - "data": "\"686897696a7c876b7e\"", - "valid": true - }, - { - "description": "Valid - strong ETag with symbols", - "data": "\"abc-123_def.456\"", - "valid": true - }, - { - "description": "Valid - weak ETag empty", - "data": "W/\"\"", - "valid": true - }, - { - "description": "Valid - weak ETag simple", - "data": "W/\"abc123\"", - "valid": true - }, - { - "description": "Valid - weak ETag hex", - "data": "W/\"686897696a7c876b7e\"", - "valid": true - }, - { - "description": "Valid - weak ETag with symbols", - "data": "W/\"abc-123_def.456\"", - "valid": true - }, - { - "description": "Valid - strong ETag long value", - "data": "\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"", - "valid": true - }, - { - "description": "Valid - weak ETag long value", - "data": "W/\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"", - "valid": true - }, - { - "description": "Valid - strong ETag with all allowed symbols", - "data": "\"!#$%&*+:;=?@[]^{|}~\"", - "valid": true - }, - { - "description": "Valid - weak ETag with all allowed symbols", - "data": "W/\"!#$%&*+:;=?@[]^{|}~\"", - "valid": true - }, - { - "description": "Invalid - no quotes", - "data": "abc123", - "valid": false - }, - { - "description": "Invalid - single quotes", - "data": "'abc123'", - "valid": false - }, - { - "description": "Invalid - missing closing quote", - "data": "\"abc123", - "valid": false - }, - { - "description": "Invalid - space inside strong ETag", - "data": "\"abc 123\"", - "valid": false - }, - { - "description": "Invalid - space inside weak ETag", - "data": "W/\"abc 123\"", - "valid": false - }, - { - "description": "Invalid - tab character in strong ETag", - "data": "\"abc\t123\"", - "valid": false - }, - { - "description": "Invalid - newline in weak ETag", - "data": "W/\"abc\n123\"", - "valid": false - }, - { - "description": "Invalid - lowercase w in weak prefix", - "data": "w/\"abc123\"", - "valid": false - }, - { - "description": "Invalid - weak prefix without slash", - "data": "W\"abc123\"", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - just quotes with space", - "data": "\" \"", - "valid": false - }, - { - "description": "Invalid - W/ with space", - "data": "W/\" \"", - "valid": false - } - ] -} diff --git a/test/ietf/http/9110/http-url/v1.test.json b/test/ietf/http/9110/http-url/v1.test.json deleted file mode 100644 index b4dad90f..00000000 --- a/test/ietf/http/9110/http-url/v1.test.json +++ /dev/null @@ -1,165 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/http/9110/http-url/v1.json", - "tests": [ - { - "description": "Invalid type - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - simple HTTP URL", - "data": "http://example.com", - "valid": true - }, - { - "description": "Valid - HTTP URL with path", - "data": "http://example.com/path/to/resource", - "valid": true - }, - { - "description": "Valid - HTTP URL with query", - "data": "http://example.com/path?query=value", - "valid": true - }, - { - "description": "Valid - HTTP URL with fragment", - "data": "http://example.com/path#section", - "valid": true - }, - { - "description": "Valid - HTTP URL with port", - "data": "http://example.com:8080/api", - "valid": true - }, - { - "description": "Valid - HTTP URL with userinfo", - "data": "http://user:pass@example.com/resource", - "valid": true - }, - { - "description": "Valid - HTTP URL with IPv4", - "data": "http://192.168.1.1/path", - "valid": true - }, - { - "description": "Valid - HTTP URL with IPv6", - "data": "http://[2001:db8::8a2e:370:7334]/path", - "valid": true - }, - { - "description": "Valid - HTTP scheme uppercase", - "data": "HTTP://example.com", - "valid": true - }, - { - "description": "Valid - HTTP scheme mixed case Http", - "data": "Http://example.com", - "valid": true - }, - { - "description": "Valid - HTTP scheme mixed case HtTp", - "data": "HtTp://example.com", - "valid": true - }, - { - "description": "Valid - HTTP scheme mixed case hTTP", - "data": "hTTP://example.com", - "valid": true - }, - { - "description": "Valid - HTTP URL with all components", - "data": "http://user:pass@example.com:8080/path/to/resource?query=value&foo=bar#section", - "valid": true - }, - { - "description": "Valid - HTTP URL with empty path", - "data": "http://example.com", - "valid": true - }, - { - "description": "Valid - HTTP URL with port 80", - "data": "http://example.com:80/", - "valid": true - }, - { - "description": "Invalid - HTTPS URL", - "data": "https://example.com", - "valid": false - }, - { - "description": "Invalid - FTP URL", - "data": "ftp://example.com", - "valid": false - }, - { - "description": "Invalid - file URL", - "data": "file:///path/to/file", - "valid": false - }, - { - "description": "Invalid - mailto URL", - "data": "mailto:user@example.com", - "valid": false - }, - { - "description": "Invalid - relative URL", - "data": "/path/to/resource", - "valid": false - }, - { - "description": "Invalid - missing scheme", - "data": "example.com/path", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - scheme only", - "data": "http:", - "valid": false - }, - { - "description": "Invalid - scheme with single slash", - "data": "http:/example.com", - "valid": false - }, - { - "description": "Invalid - HTTP URL with space", - "data": "http://example.com/path with space", - "valid": false - }, - { - "description": "Invalid - empty host", - "valid": false, - "data": "http:///path" - }, - { - "description": "Invalid - userinfo with empty host", - "valid": false, - "data": "http://user@/path" - } - ] -} diff --git a/test/ietf/http/9110/https-url/v1.test.json b/test/ietf/http/9110/https-url/v1.test.json deleted file mode 100644 index 98ad8e1c..00000000 --- a/test/ietf/http/9110/https-url/v1.test.json +++ /dev/null @@ -1,160 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/http/9110/https-url/v1.json", - "tests": [ - { - "description": "Invalid type - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - simple HTTPS URL", - "data": "https://example.com", - "valid": true - }, - { - "description": "Valid - HTTPS URL with path", - "data": "https://example.com/path/to/resource", - "valid": true - }, - { - "description": "Valid - HTTPS URL with query", - "data": "https://example.com/path?query=value", - "valid": true - }, - { - "description": "Valid - HTTPS URL with fragment", - "data": "https://example.com/path#section", - "valid": true - }, - { - "description": "Valid - HTTPS URL with port", - "data": "https://example.com:8443/api", - "valid": true - }, - { - "description": "Valid - HTTPS URL with userinfo", - "data": "https://user:pass@example.com/resource", - "valid": true - }, - { - "description": "Valid - HTTPS URL with IPv4", - "data": "https://192.168.1.1/path", - "valid": true - }, - { - "description": "Valid - HTTPS URL with IPv6", - "data": "https://[2001:db8::8a2e:370:7334]/path", - "valid": true - }, - { - "description": "Valid - HTTPS scheme uppercase", - "data": "HTTPS://example.com", - "valid": true - }, - { - "description": "Valid - HTTPS scheme mixed case Https", - "data": "Https://example.com", - "valid": true - }, - { - "description": "Valid - HTTPS scheme mixed case HtTpS", - "data": "HtTpS://example.com", - "valid": true - }, - { - "description": "Valid - HTTPS scheme mixed case hTTPS", - "data": "hTTPS://example.com", - "valid": true - }, - { - "description": "Valid - HTTPS URL with all components", - "data": "https://user:pass@example.com:8443/path/to/resource?query=value&foo=bar#section", - "valid": true - }, - { - "description": "Valid - HTTPS URL with empty path", - "data": "https://example.com", - "valid": true - }, - { - "description": "Valid - HTTPS URL with port 443", - "data": "https://example.com:443/", - "valid": true - }, - { - "description": "Invalid - HTTP URL", - "data": "http://example.com", - "valid": false - }, - { - "description": "Invalid - FTP URL", - "data": "ftp://example.com", - "valid": false - }, - { - "description": "Invalid - file URL", - "data": "file:///path/to/file", - "valid": false - }, - { - "description": "Invalid - mailto URL", - "data": "mailto:user@example.com", - "valid": false - }, - { - "description": "Invalid - relative URL", - "data": "/path/to/resource", - "valid": false - }, - { - "description": "Invalid - missing scheme", - "data": "example.com/path", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - scheme only", - "data": "https:", - "valid": false - }, - { - "description": "Invalid - scheme with single slash", - "data": "https:/example.com", - "valid": false - }, - { - "description": "Invalid - HTTPS URL with space", - "data": "https://example.com/path with space", - "valid": false - }, - { - "description": "Invalid - empty host", - "valid": false, - "data": "https:///path" - } - ] -} diff --git a/test/ietf/http/9110/method-standard/v1.test.json b/test/ietf/http/9110/method-standard/v1.test.json deleted file mode 100644 index c4a0c810..00000000 --- a/test/ietf/http/9110/method-standard/v1.test.json +++ /dev/null @@ -1,200 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/http/9110/method-standard/v1.json", - "tests": [ - { - "description": "Invalid type - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - GET", - "data": "GET", - "valid": true - }, - { - "description": "Valid - HEAD", - "data": "HEAD", - "valid": true - }, - { - "description": "Valid - POST", - "data": "POST", - "valid": true - }, - { - "description": "Valid - PUT", - "data": "PUT", - "valid": true - }, - { - "description": "Valid - DELETE", - "data": "DELETE", - "valid": true - }, - { - "description": "Valid - CONNECT", - "data": "CONNECT", - "valid": true - }, - { - "description": "Valid - OPTIONS", - "data": "OPTIONS", - "valid": true - }, - { - "description": "Valid - TRACE", - "data": "TRACE", - "valid": true - }, - { - "description": "Invalid - lowercase get", - "data": "get", - "valid": false - }, - { - "description": "Invalid - lowercase head", - "data": "head", - "valid": false - }, - { - "description": "Invalid - lowercase post", - "data": "post", - "valid": false - }, - { - "description": "Invalid - lowercase put", - "data": "put", - "valid": false - }, - { - "description": "Invalid - lowercase delete", - "data": "delete", - "valid": false - }, - { - "description": "Invalid - lowercase connect", - "data": "connect", - "valid": false - }, - { - "description": "Invalid - lowercase options", - "data": "options", - "valid": false - }, - { - "description": "Invalid - lowercase trace", - "data": "trace", - "valid": false - }, - { - "description": "Invalid - mixed case Get", - "data": "Get", - "valid": false - }, - { - "description": "Invalid - mixed case Post", - "data": "Post", - "valid": false - }, - { - "description": "Invalid - mixed case Put", - "data": "Put", - "valid": false - }, - { - "description": "Invalid - mixed case Delete", - "data": "Delete", - "valid": false - }, - { - "description": "Valid - PATCH (RFC 5789)", - "data": "PATCH", - "valid": true - }, - { - "description": "Valid - PROPFIND (RFC 4918)", - "data": "PROPFIND", - "valid": true - }, - { - "description": "Valid - PROPPATCH (RFC 4918)", - "data": "PROPPATCH", - "valid": true - }, - { - "description": "Valid - MKCOL (RFC 4918)", - "data": "MKCOL", - "valid": true - }, - { - "description": "Valid - COPY (RFC 4918)", - "data": "COPY", - "valid": true - }, - { - "description": "Valid - MOVE (RFC 4918)", - "data": "MOVE", - "valid": true - }, - { - "description": "Valid - LOCK (RFC 4918)", - "data": "LOCK", - "valid": true - }, - { - "description": "Valid - UNLOCK (RFC 4918)", - "data": "UNLOCK", - "valid": true - }, - { - "description": "Invalid - lowercase patch", - "data": "patch", - "valid": false - }, - { - "description": "Invalid - custom method", - "data": "CUSTOM", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - with space", - "data": "GET POST", - "valid": false - }, - { - "description": "Invalid - with leading space", - "data": " GET", - "valid": false - }, - { - "description": "Invalid - with trailing space", - "data": "GET ", - "valid": false - } - ] -} diff --git a/test/ietf/http/9110/method/v1.test.json b/test/ietf/http/9110/method/v1.test.json deleted file mode 100644 index f9f14e08..00000000 --- a/test/ietf/http/9110/method/v1.test.json +++ /dev/null @@ -1,335 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/http/9110/method/v1.json", - "tests": [ - { - "description": "Invalid type - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - GET", - "data": "GET", - "valid": true - }, - { - "description": "Valid - HEAD", - "data": "HEAD", - "valid": true - }, - { - "description": "Valid - POST", - "data": "POST", - "valid": true - }, - { - "description": "Valid - PUT", - "data": "PUT", - "valid": true - }, - { - "description": "Valid - DELETE", - "data": "DELETE", - "valid": true - }, - { - "description": "Valid - CONNECT", - "data": "CONNECT", - "valid": true - }, - { - "description": "Valid - OPTIONS", - "data": "OPTIONS", - "valid": true - }, - { - "description": "Valid - TRACE", - "data": "TRACE", - "valid": true - }, - { - "description": "Valid - lowercase get", - "data": "get", - "valid": true - }, - { - "description": "Valid - mixed case Post", - "data": "Post", - "valid": true - }, - { - "description": "Valid - extension method PATCH", - "data": "PATCH", - "valid": true - }, - { - "description": "Valid - extension method PROPFIND", - "data": "PROPFIND", - "valid": true - }, - { - "description": "Valid - extension method PROPPATCH", - "data": "PROPPATCH", - "valid": true - }, - { - "description": "Valid - extension method MKCOL", - "data": "MKCOL", - "valid": true - }, - { - "description": "Valid - extension method COPY", - "data": "COPY", - "valid": true - }, - { - "description": "Valid - extension method MOVE", - "data": "MOVE", - "valid": true - }, - { - "description": "Valid - extension method LOCK", - "data": "LOCK", - "valid": true - }, - { - "description": "Valid - extension method UNLOCK", - "data": "UNLOCK", - "valid": true - }, - { - "description": "Valid - custom method with hyphen", - "data": "X-CUSTOM-METHOD", - "valid": true - }, - { - "description": "Valid - custom method with underscore", - "data": "CUSTOM_METHOD", - "valid": true - }, - { - "description": "Valid - custom method with dot", - "data": "CUSTOM.METHOD", - "valid": true - }, - { - "description": "Valid - method with exclamation", - "data": "METHOD!", - "valid": true - }, - { - "description": "Valid - method with hash", - "data": "METHOD#123", - "valid": true - }, - { - "description": "Valid - method with dollar", - "data": "METHOD$", - "valid": true - }, - { - "description": "Valid - method with percent", - "data": "METHOD%", - "valid": true - }, - { - "description": "Valid - method with ampersand", - "data": "METHOD&", - "valid": true - }, - { - "description": "Valid - method with apostrophe", - "data": "METHOD'", - "valid": true - }, - { - "description": "Valid - method with asterisk", - "data": "METHOD*", - "valid": true - }, - { - "description": "Valid - method with plus", - "data": "METHOD+", - "valid": true - }, - { - "description": "Valid - method with caret", - "data": "METHOD^", - "valid": true - }, - { - "description": "Valid - method with backtick", - "data": "METHOD`", - "valid": true - }, - { - "description": "Valid - method with pipe", - "data": "METHOD|", - "valid": true - }, - { - "description": "Valid - method with tilde", - "data": "METHOD~", - "valid": true - }, - { - "description": "Valid - method with digits", - "data": "METHOD123", - "valid": true - }, - { - "description": "Valid - all uppercase letters", - "data": "ABCDEFGHIJKLMNOPQRSTUVWXYZ", - "valid": true - }, - { - "description": "Valid - all lowercase letters", - "data": "abcdefghijklmnopqrstuvwxyz", - "valid": true - }, - { - "description": "Valid - all digits", - "data": "0123456789", - "valid": true - }, - { - "description": "Valid - all tchar symbols", - "data": "!#$%&'*+-.^_`|~", - "valid": true - }, - { - "description": "Valid - single character", - "data": "X", - "valid": true - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - space", - "data": "GET POST", - "valid": false - }, - { - "description": "Invalid - leading space", - "data": " GET", - "valid": false - }, - { - "description": "Invalid - trailing space", - "data": "GET ", - "valid": false - }, - { - "description": "Invalid - tab character", - "data": "GET\tPOST", - "valid": false - }, - { - "description": "Invalid - newline", - "data": "GET\n", - "valid": false - }, - { - "description": "Invalid - carriage return", - "data": "GET\r", - "valid": false - }, - { - "description": "Invalid - comma", - "data": "GET,POST", - "valid": false - }, - { - "description": "Invalid - semicolon", - "data": "GET;POST", - "valid": false - }, - { - "description": "Invalid - colon", - "data": "GET:POST", - "valid": false - }, - { - "description": "Invalid - forward slash", - "data": "GET/POST", - "valid": false - }, - { - "description": "Invalid - backslash", - "data": "GET\\POST", - "valid": false - }, - { - "description": "Invalid - question mark", - "data": "GET?", - "valid": false - }, - { - "description": "Invalid - at sign", - "data": "GET@", - "valid": false - }, - { - "description": "Invalid - brackets", - "data": "GET[POST]", - "valid": false - }, - { - "description": "Invalid - braces", - "data": "GET{POST}", - "valid": false - }, - { - "description": "Invalid - parentheses", - "data": "GET(POST)", - "valid": false - }, - { - "description": "Invalid - angle brackets", - "data": "", - "valid": false - }, - { - "description": "Invalid - equals", - "data": "GET=POST", - "valid": false - }, - { - "description": "Invalid - double quote", - "data": "\"GET\"", - "valid": false - }, - { - "description": "Invalid - null byte", - "data": "GET\u0000", - "valid": false - }, - { - "description": "Invalid - control character", - "data": "GET\u0001", - "valid": false - } - ] -} diff --git a/test/ietf/http/9110/status-client-error/v1.test.json b/test/ietf/http/9110/status-client-error/v1.test.json deleted file mode 100644 index c7ef9cdd..00000000 --- a/test/ietf/http/9110/status-client-error/v1.test.json +++ /dev/null @@ -1,170 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/http/9110/status-client-error/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "404", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Invalid type - float", - "data": 404.5, - "valid": false - }, - { - "description": "Below minimum (399)", - "data": 399, - "valid": false - }, - { - "description": "Above maximum (500)", - "data": 500, - "valid": false - }, - { - "description": "400 Bad Request", - "data": 400, - "valid": true - }, - { - "description": "401 Unauthorized", - "data": 401, - "valid": true - }, - { - "description": "402 Payment Required", - "data": 402, - "valid": true - }, - { - "description": "403 Forbidden", - "data": 403, - "valid": true - }, - { - "description": "404 Not Found", - "data": 404, - "valid": true - }, - { - "description": "405 Method Not Allowed", - "data": 405, - "valid": true - }, - { - "description": "406 Not Acceptable", - "data": 406, - "valid": true - }, - { - "description": "407 Proxy Authentication Required", - "data": 407, - "valid": true - }, - { - "description": "408 Request Timeout", - "data": 408, - "valid": true - }, - { - "description": "409 Conflict", - "data": 409, - "valid": true - }, - { - "description": "410 Gone", - "data": 410, - "valid": true - }, - { - "description": "411 Length Required", - "data": 411, - "valid": true - }, - { - "description": "412 Precondition Failed", - "data": 412, - "valid": true - }, - { - "description": "413 Content Too Large", - "data": 413, - "valid": true - }, - { - "description": "414 URI Too Long", - "data": 414, - "valid": true - }, - { - "description": "415 Unsupported Media Type", - "data": 415, - "valid": true - }, - { - "description": "416 Range Not Satisfiable", - "data": 416, - "valid": true - }, - { - "description": "417 Expectation Failed", - "data": 417, - "valid": true - }, - { - "description": "418 (Unused)", - "data": 418, - "valid": true - }, - { - "description": "421 Misdirected Request", - "data": 421, - "valid": true - }, - { - "description": "422 Unprocessable Content", - "data": 422, - "valid": true - }, - { - "description": "426 Upgrade Required", - "data": 426, - "valid": true - }, - { - "description": "Unassigned code (419)", - "data": 419, - "valid": true - }, - { - "description": "Unassigned code (450)", - "data": 450, - "valid": true - }, - { - "description": "Maximum valid (499)", - "data": 499, - "valid": true - } - ] -} diff --git a/test/ietf/http/9110/status-informational/v1.test.json b/test/ietf/http/9110/status-informational/v1.test.json deleted file mode 100644 index 11861e4e..00000000 --- a/test/ietf/http/9110/status-informational/v1.test.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/http/9110/status-informational/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Invalid type - float", - "data": 100.5, - "valid": false - }, - { - "description": "Below minimum (99)", - "data": 99, - "valid": false - }, - { - "description": "Above maximum (200)", - "data": 200, - "valid": false - }, - { - "description": "100 Continue", - "data": 100, - "valid": true - }, - { - "description": "101 Switching Protocols", - "data": 101, - "valid": true - }, - { - "description": "Unassigned code (102)", - "data": 102, - "valid": true - }, - { - "description": "Unassigned code (150)", - "data": 150, - "valid": true - }, - { - "description": "Maximum valid (199)", - "data": 199, - "valid": true - } - ] -} diff --git a/test/ietf/http/9110/status-redirection/v1.test.json b/test/ietf/http/9110/status-redirection/v1.test.json deleted file mode 100644 index f1b954a4..00000000 --- a/test/ietf/http/9110/status-redirection/v1.test.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/http/9110/status-redirection/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "301", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Invalid type - float", - "data": 301.5, - "valid": false - }, - { - "description": "Below minimum (299)", - "data": 299, - "valid": false - }, - { - "description": "Above maximum (400)", - "data": 400, - "valid": false - }, - { - "description": "300 Multiple Choices", - "data": 300, - "valid": true - }, - { - "description": "301 Moved Permanently", - "data": 301, - "valid": true - }, - { - "description": "302 Found", - "data": 302, - "valid": true - }, - { - "description": "303 See Other", - "data": 303, - "valid": true - }, - { - "description": "304 Not Modified", - "data": 304, - "valid": true - }, - { - "description": "305 Use Proxy", - "data": 305, - "valid": true - }, - { - "description": "306 (Unused)", - "data": 306, - "valid": true - }, - { - "description": "307 Temporary Redirect", - "data": 307, - "valid": true - }, - { - "description": "308 Permanent Redirect", - "data": 308, - "valid": true - }, - { - "description": "Unassigned code (309)", - "data": 309, - "valid": true - }, - { - "description": "Unassigned code (350)", - "data": 350, - "valid": true - }, - { - "description": "Maximum valid (399)", - "data": 399, - "valid": true - } - ] -} diff --git a/test/ietf/http/9110/status-server-error/v1.test.json b/test/ietf/http/9110/status-server-error/v1.test.json deleted file mode 100644 index 642a34e0..00000000 --- a/test/ietf/http/9110/status-server-error/v1.test.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/http/9110/status-server-error/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "500", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Invalid type - float", - "data": 500.5, - "valid": false - }, - { - "description": "Below minimum (499)", - "data": 499, - "valid": false - }, - { - "description": "Above maximum (600)", - "data": 600, - "valid": false - }, - { - "description": "500 Internal Server Error", - "data": 500, - "valid": true - }, - { - "description": "501 Not Implemented", - "data": 501, - "valid": true - }, - { - "description": "502 Bad Gateway", - "data": 502, - "valid": true - }, - { - "description": "503 Service Unavailable", - "data": 503, - "valid": true - }, - { - "description": "504 Gateway Timeout", - "data": 504, - "valid": true - }, - { - "description": "505 HTTP Version Not Supported", - "data": 505, - "valid": true - }, - { - "description": "Unassigned code (506)", - "data": 506, - "valid": true - }, - { - "description": "Unassigned code (550)", - "data": 550, - "valid": true - }, - { - "description": "Maximum valid (599)", - "data": 599, - "valid": true - } - ] -} diff --git a/test/ietf/http/9110/status-standard/v1.test.json b/test/ietf/http/9110/status-standard/v1.test.json deleted file mode 100644 index c188b4a6..00000000 --- a/test/ietf/http/9110/status-standard/v1.test.json +++ /dev/null @@ -1,350 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/http/9110/status-standard/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "200", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Invalid type - float", - "data": 200.5, - "valid": false - }, - { - "description": "Valid - 100 Continue", - "data": 100, - "valid": true - }, - { - "description": "Valid - 101 Switching Protocols", - "data": 101, - "valid": true - }, - { - "description": "Invalid - 102 (not in RFC 9110)", - "data": 102, - "valid": false - }, - { - "description": "Invalid - 199 (not in RFC 9110)", - "data": 199, - "valid": false - }, - { - "description": "Valid - 200 OK", - "data": 200, - "valid": true - }, - { - "description": "Valid - 201 Created", - "data": 201, - "valid": true - }, - { - "description": "Valid - 202 Accepted", - "data": 202, - "valid": true - }, - { - "description": "Valid - 203 Non-Authoritative Information", - "data": 203, - "valid": true - }, - { - "description": "Valid - 204 No Content", - "data": 204, - "valid": true - }, - { - "description": "Valid - 205 Reset Content", - "data": 205, - "valid": true - }, - { - "description": "Valid - 206 Partial Content", - "data": 206, - "valid": true - }, - { - "description": "Invalid - 207 (not in RFC 9110)", - "data": 207, - "valid": false - }, - { - "description": "Invalid - 299 (not in RFC 9110)", - "data": 299, - "valid": false - }, - { - "description": "Valid - 300 Multiple Choices", - "data": 300, - "valid": true - }, - { - "description": "Valid - 301 Moved Permanently", - "data": 301, - "valid": true - }, - { - "description": "Valid - 302 Found", - "data": 302, - "valid": true - }, - { - "description": "Valid - 303 See Other", - "data": 303, - "valid": true - }, - { - "description": "Valid - 304 Not Modified", - "data": 304, - "valid": true - }, - { - "description": "Valid - 305 Use Proxy", - "data": 305, - "valid": true - }, - { - "description": "Valid - 306 (Unused)", - "data": 306, - "valid": true - }, - { - "description": "Valid - 307 Temporary Redirect", - "data": 307, - "valid": true - }, - { - "description": "Valid - 308 Permanent Redirect", - "data": 308, - "valid": true - }, - { - "description": "Invalid - 309 (not in RFC 9110)", - "data": 309, - "valid": false - }, - { - "description": "Invalid - 399 (not in RFC 9110)", - "data": 399, - "valid": false - }, - { - "description": "Valid - 400 Bad Request", - "data": 400, - "valid": true - }, - { - "description": "Valid - 401 Unauthorized", - "data": 401, - "valid": true - }, - { - "description": "Valid - 402 Payment Required", - "data": 402, - "valid": true - }, - { - "description": "Valid - 403 Forbidden", - "data": 403, - "valid": true - }, - { - "description": "Valid - 404 Not Found", - "data": 404, - "valid": true - }, - { - "description": "Valid - 405 Method Not Allowed", - "data": 405, - "valid": true - }, - { - "description": "Valid - 406 Not Acceptable", - "data": 406, - "valid": true - }, - { - "description": "Valid - 407 Proxy Authentication Required", - "data": 407, - "valid": true - }, - { - "description": "Valid - 408 Request Timeout", - "data": 408, - "valid": true - }, - { - "description": "Valid - 409 Conflict", - "data": 409, - "valid": true - }, - { - "description": "Valid - 410 Gone", - "data": 410, - "valid": true - }, - { - "description": "Valid - 411 Length Required", - "data": 411, - "valid": true - }, - { - "description": "Valid - 412 Precondition Failed", - "data": 412, - "valid": true - }, - { - "description": "Valid - 413 Content Too Large", - "data": 413, - "valid": true - }, - { - "description": "Valid - 414 URI Too Long", - "data": 414, - "valid": true - }, - { - "description": "Valid - 415 Unsupported Media Type", - "data": 415, - "valid": true - }, - { - "description": "Valid - 416 Range Not Satisfiable", - "data": 416, - "valid": true - }, - { - "description": "Valid - 417 Expectation Failed", - "data": 417, - "valid": true - }, - { - "description": "Valid - 418 (Unused)", - "data": 418, - "valid": true - }, - { - "description": "Invalid - 419 (not in RFC 9110)", - "data": 419, - "valid": false - }, - { - "description": "Invalid - 420 (not in RFC 9110)", - "data": 420, - "valid": false - }, - { - "description": "Valid - 421 Misdirected Request", - "data": 421, - "valid": true - }, - { - "description": "Valid - 422 Unprocessable Content", - "data": 422, - "valid": true - }, - { - "description": "Invalid - 423 (not in RFC 9110)", - "data": 423, - "valid": false - }, - { - "description": "Invalid - 424 (not in RFC 9110)", - "data": 424, - "valid": false - }, - { - "description": "Invalid - 425 (not in RFC 9110)", - "data": 425, - "valid": false - }, - { - "description": "Valid - 426 Upgrade Required", - "data": 426, - "valid": true - }, - { - "description": "Invalid - 427 (not in RFC 9110)", - "data": 427, - "valid": false - }, - { - "description": "Invalid - 499 (not in RFC 9110)", - "data": 499, - "valid": false - }, - { - "description": "Valid - 500 Internal Server Error", - "data": 500, - "valid": true - }, - { - "description": "Valid - 501 Not Implemented", - "data": 501, - "valid": true - }, - { - "description": "Valid - 502 Bad Gateway", - "data": 502, - "valid": true - }, - { - "description": "Valid - 503 Service Unavailable", - "data": 503, - "valid": true - }, - { - "description": "Valid - 504 Gateway Timeout", - "data": 504, - "valid": true - }, - { - "description": "Valid - 505 HTTP Version Not Supported", - "data": 505, - "valid": true - }, - { - "description": "Invalid - 506 (not in RFC 9110)", - "data": 506, - "valid": false - }, - { - "description": "Invalid - 599 (not in RFC 9110)", - "data": 599, - "valid": false - }, - { - "description": "Invalid - below range (99)", - "data": 99, - "valid": false - }, - { - "description": "Invalid - above range (600)", - "data": 600, - "valid": false - } - ] -} diff --git a/test/ietf/http/9110/status-successful/v1.test.json b/test/ietf/http/9110/status-successful/v1.test.json deleted file mode 100644 index 497ae274..00000000 --- a/test/ietf/http/9110/status-successful/v1.test.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/http/9110/status-successful/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "200", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Invalid type - float", - "data": 200.5, - "valid": false - }, - { - "description": "Below minimum (199)", - "data": 199, - "valid": false - }, - { - "description": "Above maximum (300)", - "data": 300, - "valid": false - }, - { - "description": "200 OK", - "data": 200, - "valid": true - }, - { - "description": "201 Created", - "data": 201, - "valid": true - }, - { - "description": "202 Accepted", - "data": 202, - "valid": true - }, - { - "description": "203 Non-Authoritative Information", - "data": 203, - "valid": true - }, - { - "description": "204 No Content", - "data": 204, - "valid": true - }, - { - "description": "205 Reset Content", - "data": 205, - "valid": true - }, - { - "description": "206 Partial Content", - "data": 206, - "valid": true - }, - { - "description": "Unassigned code (207)", - "data": 207, - "valid": true - }, - { - "description": "Unassigned code (250)", - "data": 250, - "valid": true - }, - { - "description": "Maximum valid (299)", - "data": 299, - "valid": true - } - ] -} diff --git a/test/ietf/http/9110/status/v1.test.json b/test/ietf/http/9110/status/v1.test.json deleted file mode 100644 index 27a9aa20..00000000 --- a/test/ietf/http/9110/status/v1.test.json +++ /dev/null @@ -1,310 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/http/9110/status/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "200", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Invalid type - float", - "data": 200.5, - "valid": false - }, - { - "description": "Below minimum (99)", - "data": 99, - "valid": false - }, - { - "description": "Above maximum (600)", - "data": 600, - "valid": false - }, - { - "description": "Informational - 100 Continue", - "data": 100, - "valid": true - }, - { - "description": "Informational - 101 Switching Protocols", - "data": 101, - "valid": true - }, - { - "description": "Successful - 200 OK", - "data": 200, - "valid": true - }, - { - "description": "Successful - 201 Created", - "data": 201, - "valid": true - }, - { - "description": "Successful - 202 Accepted", - "data": 202, - "valid": true - }, - { - "description": "Successful - 203 Non-Authoritative Information", - "data": 203, - "valid": true - }, - { - "description": "Successful - 204 No Content", - "data": 204, - "valid": true - }, - { - "description": "Successful - 205 Reset Content", - "data": 205, - "valid": true - }, - { - "description": "Successful - 206 Partial Content", - "data": 206, - "valid": true - }, - { - "description": "Redirection - 300 Multiple Choices", - "data": 300, - "valid": true - }, - { - "description": "Redirection - 301 Moved Permanently", - "data": 301, - "valid": true - }, - { - "description": "Redirection - 302 Found", - "data": 302, - "valid": true - }, - { - "description": "Redirection - 303 See Other", - "data": 303, - "valid": true - }, - { - "description": "Redirection - 304 Not Modified", - "data": 304, - "valid": true - }, - { - "description": "Redirection - 305 Use Proxy", - "data": 305, - "valid": true - }, - { - "description": "Redirection - 306 (Unused)", - "data": 306, - "valid": true - }, - { - "description": "Redirection - 307 Temporary Redirect", - "data": 307, - "valid": true - }, - { - "description": "Redirection - 308 Permanent Redirect", - "data": 308, - "valid": true - }, - { - "description": "Client Error - 400 Bad Request", - "data": 400, - "valid": true - }, - { - "description": "Client Error - 401 Unauthorized", - "data": 401, - "valid": true - }, - { - "description": "Client Error - 402 Payment Required", - "data": 402, - "valid": true - }, - { - "description": "Client Error - 403 Forbidden", - "data": 403, - "valid": true - }, - { - "description": "Client Error - 404 Not Found", - "data": 404, - "valid": true - }, - { - "description": "Client Error - 405 Method Not Allowed", - "data": 405, - "valid": true - }, - { - "description": "Client Error - 406 Not Acceptable", - "data": 406, - "valid": true - }, - { - "description": "Client Error - 407 Proxy Authentication Required", - "data": 407, - "valid": true - }, - { - "description": "Client Error - 408 Request Timeout", - "data": 408, - "valid": true - }, - { - "description": "Client Error - 409 Conflict", - "data": 409, - "valid": true - }, - { - "description": "Client Error - 410 Gone", - "data": 410, - "valid": true - }, - { - "description": "Client Error - 411 Length Required", - "data": 411, - "valid": true - }, - { - "description": "Client Error - 412 Precondition Failed", - "data": 412, - "valid": true - }, - { - "description": "Client Error - 413 Content Too Large", - "data": 413, - "valid": true - }, - { - "description": "Client Error - 414 URI Too Long", - "data": 414, - "valid": true - }, - { - "description": "Client Error - 415 Unsupported Media Type", - "data": 415, - "valid": true - }, - { - "description": "Client Error - 416 Range Not Satisfiable", - "data": 416, - "valid": true - }, - { - "description": "Client Error - 417 Expectation Failed", - "data": 417, - "valid": true - }, - { - "description": "Client Error - 418 (Unused)", - "data": 418, - "valid": true - }, - { - "description": "Client Error - 421 Misdirected Request", - "data": 421, - "valid": true - }, - { - "description": "Client Error - 422 Unprocessable Content", - "data": 422, - "valid": true - }, - { - "description": "Client Error - 426 Upgrade Required", - "data": 426, - "valid": true - }, - { - "description": "Server Error - 500 Internal Server Error", - "data": 500, - "valid": true - }, - { - "description": "Server Error - 501 Not Implemented", - "data": 501, - "valid": true - }, - { - "description": "Server Error - 502 Bad Gateway", - "data": 502, - "valid": true - }, - { - "description": "Server Error - 503 Service Unavailable", - "data": 503, - "valid": true - }, - { - "description": "Server Error - 504 Gateway Timeout", - "data": 504, - "valid": true - }, - { - "description": "Server Error - 505 HTTP Version Not Supported", - "data": 505, - "valid": true - }, - { - "description": "Unassigned informational code (102-199)", - "data": 102, - "valid": true - }, - { - "description": "Unassigned successful code (207-299)", - "data": 207, - "valid": true - }, - { - "description": "Unassigned redirection code (309-399)", - "data": 309, - "valid": true - }, - { - "description": "Unassigned client error code (419-420, 423-425, 427-499)", - "data": 419, - "valid": true - }, - { - "description": "Unassigned server error code (506-599)", - "data": 506, - "valid": true - }, - { - "description": "Boundary test - minimum valid (100)", - "data": 100, - "valid": true - }, - { - "description": "Boundary test - maximum valid (599)", - "data": 599, - "valid": true - } - ] -} diff --git a/test/ietf/ip/v4/address/v1.test.json b/test/ietf/ip/v4/address/v1.test.json deleted file mode 100644 index b09bd0a0..00000000 --- a/test/ietf/ip/v4/address/v1.test.json +++ /dev/null @@ -1,447 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/ip/v4/address/v1.json", - "tests": [ - { - "data": "0.0.0.0", - "valid": true - }, - { - "data": "1.2.3.4", - "valid": true - }, - { - "data": "9.9.9.9", - "valid": true - }, - { - "data": "10.20.30.40", - "valid": true - }, - { - "data": "99.99.99.99", - "valid": true - }, - { - "data": "100.150.199.200", - "valid": true - }, - { - "data": "127.0.0.1", - "valid": true - }, - { - "data": "192.168.1.1", - "valid": true - }, - { - "data": "255.255.255.255", - "valid": true - }, - { - "data": "10.0.0.1", - "valid": true - }, - { - "data": "172.16.0.1", - "valid": true - }, - { - "data": "200.201.202.203", - "valid": true - }, - { - "data": "249.249.249.249", - "valid": true - }, - { - "data": "250.251.252.253", - "valid": true - }, - { - "data": "254.254.254.254", - "valid": true - }, - { - "data": "255.0.0.0", - "valid": true - }, - { - "data": "0.255.0.0", - "valid": true - }, - { - "data": "0.0.255.0", - "valid": true - }, - { - "data": "0.0.0.255", - "valid": true - }, - { - "data": "1.1.1.1", - "valid": true - }, - { - "data": "8.8.8.8", - "valid": true - }, - { - "data": "10.10.10.10", - "valid": true - }, - { - "data": "11.11.11.11", - "valid": true - }, - { - "data": "100.100.100.100", - "valid": true - }, - { - "data": "101.102.103.104", - "valid": true - }, - { - "data": "110.111.112.113", - "valid": true - }, - { - "data": "190.191.192.193", - "valid": true - }, - { - "data": "198.199.200.201", - "valid": true - }, - { - "data": "210.220.230.240", - "valid": true - }, - { - "data": "241.242.243.244", - "valid": true - }, - { - "data": "245.246.247.248", - "valid": true - }, - { - "data": "01.02.03.04", - "valid": false - }, - { - "data": "001.002.003.004", - "valid": false - }, - { - "data": "1.2.3.04", - "valid": false - }, - { - "data": "1.2.03.4", - "valid": false - }, - { - "data": "1.02.3.4", - "valid": false - }, - { - "data": "01.2.3.4", - "valid": false - }, - { - "data": "00.0.0.0", - "valid": false - }, - { - "data": "0.00.0.0", - "valid": false - }, - { - "data": "0.0.00.0", - "valid": false - }, - { - "data": "0.0.0.00", - "valid": false - }, - { - "data": "256.0.0.0", - "valid": false - }, - { - "data": "0.256.0.0", - "valid": false - }, - { - "data": "0.0.256.0", - "valid": false - }, - { - "data": "0.0.0.256", - "valid": false - }, - { - "data": "300.300.300.300", - "valid": false - }, - { - "data": "999.999.999.999", - "valid": false - }, - { - "data": "260.1.1.1", - "valid": false - }, - { - "data": "1.260.1.1", - "valid": false - }, - { - "data": "1.1.260.1", - "valid": false - }, - { - "data": "1.1.1.260", - "valid": false - }, - { - "data": "1.2.3", - "valid": false - }, - { - "data": "1.2", - "valid": false - }, - { - "data": "1", - "valid": false - }, - { - "data": "1.2.3.4.5", - "valid": false - }, - { - "data": "1.2.3.4.5.6", - "valid": false - }, - { - "data": "a.b.c.d", - "valid": false - }, - { - "data": "1a.2b.3c.4d", - "valid": false - }, - { - "data": "1.2.3.4a", - "valid": false - }, - { - "data": "-1.0.0.0", - "valid": false - }, - { - "data": "0.-1.0.0", - "valid": false - }, - { - "data": "0.0.-1.0", - "valid": false - }, - { - "data": "0.0.0.-1", - "valid": false - }, - { - "data": "1.2.3.4.", - "valid": false - }, - { - "data": ".1.2.3.4", - "valid": false - }, - { - "data": "1..2.3.4", - "valid": false - }, - { - "data": "1.2..3.4", - "valid": false - }, - { - "data": "1.2.3..4", - "valid": false - }, - { - "data": "1. 2. 3. 4", - "valid": false - }, - { - "data": "1 .2 .3 .4", - "valid": false - }, - { - "data": " 1.2.3.4", - "valid": false - }, - { - "data": "1.2.3.4 ", - "valid": false - }, - { - "data": "", - "valid": false - }, - { - "data": "...", - "valid": false - }, - { - "data": "1.2.3.4.5.6.7.8", - "valid": false - }, - { - "data": "192.168.1", - "valid": false - }, - { - "data": "192.168.1.", - "valid": false - }, - { - "data": "1.2.3.4:80", - "valid": false - }, - { - "data": "1.2.3.4/24", - "valid": false - }, - { - "data": "0x1.0x2.0x3.0x4", - "valid": false - }, - { - "data": "1.2.3.0x04", - "valid": false - }, - { - "data": "192.168.001.001", - "valid": false - }, - { - "data": "0.0.0.0.0", - "valid": false - }, - { - "data": "255.255.255.256", - "valid": false - }, - { - "data": "255.255.256.255", - "valid": false - }, - { - "data": "255.256.255.255", - "valid": false - }, - { - "data": "256.255.255.255", - "valid": false - }, - { - "data": "19.29.39.49", - "valid": true - }, - { - "data": "59.69.79.89", - "valid": true - }, - { - "data": "50.150.225.255", - "valid": true - }, - { - "data": "199.200.249.250", - "valid": true - }, - { - "data": "9.10.99.100", - "valid": true - }, - { - "data": "5.6.7.8", - "valid": true - }, - { - "data": "15.25.35.45", - "valid": true - }, - { - "data": "55.65.75.85", - "valid": true - }, - { - "data": "95.105.115.125", - "valid": true - }, - { - "data": "135.145.155.165", - "valid": true - }, - { - "data": "175.185.195.205", - "valid": true - }, - { - "data": "215.225.235.245", - "valid": true - }, - { - "data": "224.239.248.255", - "valid": true - }, - { - "data": null, - "valid": false - }, - { - "data": true, - "valid": false - }, - { - "data": false, - "valid": false - }, - { - "data": 192, - "valid": false - }, - { - "data": 192.168, - "valid": false - }, - { - "data": 3232235777, - "valid": false - }, - { - "data": [], - "valid": false - }, - { - "data": [ "192", "168", "1", "1" ], - "valid": false - }, - { - "data": {}, - "valid": false - }, - { - "data": { - "address": "192.168.1.1" - }, - "valid": false - } - ] -} diff --git a/test/ietf/ip/v6/address/v1.test.json b/test/ietf/ip/v6/address/v1.test.json deleted file mode 100644 index bb23596b..00000000 --- a/test/ietf/ip/v6/address/v1.test.json +++ /dev/null @@ -1,713 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/ip/v6/address/v1.json", - "tests": [ - { - "data": "2001:db8:85a3:0:0:8a2e:370:7334", - "valid": true - }, - { - "data": "2001:0db8:85a3:0000:0000:8a2e:0370:7334", - "valid": true - }, - { - "data": "2001:db8:85a3::8a2e:370:7334", - "valid": true - }, - { - "data": "::1", - "valid": true - }, - { - "data": "::", - "valid": true - }, - { - "data": "::ffff:192.0.2.1", - "valid": true - }, - { - "data": "2001:db8::192.0.2.1", - "valid": true - }, - { - "data": "::192.0.2.1", - "valid": true - }, - { - "data": "fe80::1", - "valid": true - }, - { - "data": "::ffff:0:0", - "valid": true - }, - { - "data": "2001:db8::", - "valid": true - }, - { - "data": "2001:db8::1", - "valid": true - }, - { - "data": "::2001:db8", - "valid": true - }, - { - "data": "ff01::101", - "valid": true - }, - { - "data": "ff02::1", - "valid": true - }, - { - "data": "ff02::2", - "valid": true - }, - { - "data": "2001:db8:a0b:12f0::1", - "valid": true - }, - { - "data": "fe80:0:0:0:204:61ff:fe9d:f156", - "valid": true - }, - { - "data": "fe80::204:61ff:fe9d:f156", - "valid": true - }, - { - "data": "fe80::204:61ff:254.157.241.86", - "valid": true - }, - { - "data": "::ffff:192.168.1.1", - "valid": true - }, - { - "data": "::ffff:c000:0280", - "valid": true - }, - { - "data": "2001:0:9d38:6abd:0:0:0:42", - "valid": true - }, - { - "data": "2001:0:9d38:6abd::42", - "valid": true - }, - { - "data": "1:2:3:4:5:6:7:8", - "valid": true - }, - { - "data": "1::8", - "valid": true - }, - { - "data": "1::7:8", - "valid": true - }, - { - "data": "1::6:7:8", - "valid": true - }, - { - "data": "1::5:6:7:8", - "valid": true - }, - { - "data": "1::4:5:6:7:8", - "valid": true - }, - { - "data": "1::3:4:5:6:7:8", - "valid": true - }, - { - "data": "1:2:3:4:5:6::8", - "valid": true - }, - { - "data": "1:2:3:4:5::8", - "valid": true - }, - { - "data": "1:2:3:4::8", - "valid": true - }, - { - "data": "1:2:3::8", - "valid": true - }, - { - "data": "1:2::8", - "valid": true - }, - { - "data": "1::2:3:4:5:6:7", - "valid": true - }, - { - "data": "::2:3:4:5:6:7:8", - "valid": true - }, - { - "data": "::8", - "valid": true - }, - { - "data": "1:2:3:4:5:6:7::", - "valid": true - }, - { - "data": "1:2:3:4:5:6::7:8", - "valid": false - }, - { - "data": "1:2:3:4:5:6:1.2.3.4", - "valid": true - }, - { - "data": "1:2:3:4:5::1.2.3.4", - "valid": true - }, - { - "data": "1:2:3:4::1.2.3.4", - "valid": true - }, - { - "data": "1:2:3::1.2.3.4", - "valid": true - }, - { - "data": "1:2::1.2.3.4", - "valid": true - }, - { - "data": "1::1.2.3.4", - "valid": true - }, - { - "data": "::1.2.3.4", - "valid": true - }, - { - "data": "1:2:3:4:5:6:7", - "valid": false - }, - { - "data": "1:2:3:4:5:6:7:8:9", - "valid": false - }, - { - "data": "1:2:3:4:5:6:7:8:", - "valid": false - }, - { - "data": ":1:2:3:4:5:6:7:8", - "valid": false - }, - { - "data": "::1:2:3:4:5:6:7:8", - "valid": false - }, - { - "data": "1:2:3:4:5:6:7:8::", - "valid": false - }, - { - "data": "1::2::3", - "valid": false - }, - { - "data": "::1::2", - "valid": false - }, - { - "data": "1:::2", - "valid": false - }, - { - "data": ":::1", - "valid": false - }, - { - "data": "1:::", - "valid": false - }, - { - "data": ":::", - "valid": false - }, - { - "data": "g001:db8::1", - "valid": false - }, - { - "data": "2001:db8::xyz", - "valid": false - }, - { - "data": "2001:db8:85a3::8a2e:370k:7334", - "valid": false - }, - { - "data": "02001:db8::1", - "valid": false - }, - { - "data": "2001:0db8:85a3::8a2e:037g:7334", - "valid": false - }, - { - "data": "2001:db8::8a2e::7334", - "valid": false - }, - { - "data": "::ffff:999.0.0.1", - "valid": false - }, - { - "data": "::ffff:1.2.3.256", - "valid": false - }, - { - "data": "::ffff:1.2.3", - "valid": false - }, - { - "data": "::ffff:1.2.3.4.5", - "valid": false - }, - { - "data": "2001:db8::192.168.1.1.1", - "valid": false - }, - { - "data": "2001:db8::192.168.1", - "valid": false - }, - { - "data": "", - "valid": false - }, - { - "data": ":", - "valid": false - }, - { - "data": "::", - "valid": true - }, - { - "data": ":::", - "valid": false - }, - { - "data": "2001:db8", - "valid": false - }, - { - "data": "2001:db8:85a3", - "valid": false - }, - { - "data": "2001:db8:85a3:0:0:8a2e:370", - "valid": false - }, - { - "data": " 2001:db8::1", - "valid": false - }, - { - "data": "2001:db8::1 ", - "valid": false - }, - { - "data": "2001: db8::1", - "valid": false - }, - { - "data": "2001 :db8::1", - "valid": false - }, - { - "data": null, - "valid": false - }, - { - "data": true, - "valid": false - }, - { - "data": false, - "valid": false - }, - { - "data": 2001, - "valid": false - }, - { - "data": [], - "valid": false - }, - { - "data": {}, - "valid": false - }, - { - "data": "ABCD:EF01:2345:6789:ABCD:EF01:2345:6789", - "valid": true - }, - { - "data": "abcd:ef01:2345:6789:abcd:ef01:2345:6789", - "valid": true - }, - { - "data": "AbCd:eF01:2345:6789:aBcD:Ef01:2345:6789", - "valid": true - }, - { - "data": "2001:DB8:0:0:8:800:200C:417A", - "valid": true - }, - { - "data": "2001:db8:0:0:8:800:200c:417a", - "valid": true - }, - { - "data": "FF01:0:0:0:0:0:0:101", - "valid": true - }, - { - "data": "ff01::101", - "valid": true - }, - { - "data": "0:0:0:0:0:0:0:1", - "valid": true - }, - { - "data": "0:0:0:0:0:0:0:0", - "valid": true - }, - { - "data": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", - "valid": true - }, - { - "data": "1:2:3:4:5:6:255.255.255.255", - "valid": true - }, - { - "data": "1:2:3:4:5:6:0.0.0.0", - "valid": true - }, - { - "data": "::255.255.255.255", - "valid": true - }, - { - "data": "::0.0.0.0", - "valid": true - }, - { - "data": "1::2:3:4:5:6:7", - "valid": true - }, - { - "data": "1:2::3:4:5:6:7", - "valid": true - }, - { - "data": "1:2:3::4:5:6:7", - "valid": true - }, - { - "data": "1:2:3:4::5:6:7", - "valid": true - }, - { - "data": "1:2:3:4:5::6:7", - "valid": true - }, - { - "data": "1:2:3:4:5:6::7", - "valid": true - }, - { - "data": "a:b:c:d:e:f:1.2.3.4", - "valid": true - }, - { - "data": "12AB:0:0:CD30::1", - "valid": true - }, - { - "data": "12ab:0:0:cd30::1", - "valid": true - }, - { - "data": "12345::1", - "valid": false - }, - { - "data": "1:2:3:4:5:6:7:12345", - "valid": false - }, - { - "data": "::12345", - "valid": false - }, - { - "data": "1:2:3:4:5:6::7:8", - "valid": false - }, - { - "data": "::1:2:3:4:5:6:7:8", - "valid": false - }, - { - "data": "1:2:3:4:5:6:7:8::", - "valid": false - }, - { - "data": "1:2:3:4:5:6:7", - "valid": false - }, - { - "data": ":1:2:3:4:5:6:7", - "valid": false - }, - { - "data": "1:2:3:4:5:6:7:", - "valid": false - }, - { - "data": "1:2:3::4:5:6:7:8", - "valid": false - }, - { - "data": "::1:2:3:4:5:6:7", - "valid": true - }, - { - "data": "1:2:3:4:5:6:7::", - "valid": true - }, - { - "data": "1::2:3:4:5:6:7", - "valid": true - }, - { - "data": "::ffff:999.999.999.999", - "valid": false - }, - { - "data": "::ffff:1.2.3.4.5", - "valid": false - }, - { - "data": "::ffff:01.02.03.04", - "valid": false - }, - { - "data": "2001:db8::8a2e::7334", - "valid": false - }, - { - "data": "1:2:3:4:5:6:1.2.3", - "valid": false - }, - { - "data": "1:2:3:4:5:1.2.3.4", - "valid": false - }, - { - "data": "::1:2:3:4:5:1.2.3.4", - "valid": true - }, - { - "data": "1:2:3:4::1.2.3.4", - "valid": true - }, - { - "data": "0:0:0:0:0:0:0:1", - "valid": true - }, - { - "data": "0000:0000:0000:0000:0000:0000:0000:0001", - "valid": true - }, - { - "data": "00001:2:3:4:5:6:7:8", - "valid": false - }, - { - "data": "::g", - "valid": false - }, - { - "data": "::ffff:g.0.0.0", - "valid": false - }, - { - "data": "2001:db8:::1", - "valid": false - }, - { - "data": "2001:db8::::1", - "valid": false - }, - { - "data": "::::", - "valid": false - }, - { - "data": "2001:0:0:0:0:0:0:1", - "valid": true - }, - { - "data": "2001:0:0:0:0:0:0:0", - "valid": true - }, - { - "data": "ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255", - "valid": true - }, - { - "data": "::ffff:0:192.0.2.1", - "valid": true - }, - { - "data": "64:ff9b::192.0.2.33", - "valid": true - }, - { - "data": "::1234:5678:1.2.3.4", - "valid": true - }, - { - "data": "2001:db8::1234:5678:1.2.3.4", - "valid": true - }, - { - "data": "::1234:5678:91.123.4.56", - "valid": true - }, - { - "data": "::1234:5678:9.12.3.4", - "valid": true - }, - { - "data": "2001:db8:85a3::8a2e:370:7334:extra", - "valid": false - }, - { - "data": "2001.db8::1", - "valid": false - }, - { - "data": "2001;db8::1", - "valid": false - }, - { - "data": "[2001:db8::1]", - "valid": false - }, - { - "data": "2001:db8::1/64", - "valid": false - }, - { - "data": "2001:db8::1%eth0", - "valid": false - }, - { - "data": "::ffff:192.0.2.01", - "valid": false - }, - { - "data": "::ffff:192.0.002.1", - "valid": false - }, - { - "data": "1:2:3:4:5:6:7:8:9:10", - "valid": false - }, - { - "data": "1:2:3:4:5::6:7:8:9", - "valid": false - }, - { - "data": ":::", - "valid": false - }, - { - "data": " ::1", - "valid": false - }, - { - "data": "::1 ", - "valid": false - }, - { - "data": "2001 :db8::1", - "valid": false - }, - { - "data": "2001: db8::1", - "valid": false - }, - { - "data": "2001:db8: :1", - "valid": false - }, - { - "data": "2001:db8:: 1", - "valid": false - }, - { - "data": "a:b:c:d:e:f:0.0.0.0", - "valid": true - }, - { - "data": "a:b:c:d:e:f:10.0.0.1", - "valid": true - }, - { - "data": "a:b:c:d:e:f:255.255.255.255", - "valid": true - }, - { - "data": "::a:b:c:d:e:f:0", - "valid": true - }, - { - "data": "0::a:b:c:d:e:f", - "valid": true - }, - { - "data": "::a:b:c:d:e:f", - "valid": true - }, - { - "data": "a:b:c:d:e:f::", - "valid": true - }, - { - "data": "::a:b:c:d:e:0", - "valid": true - }, - { - "data": "a:0:0:0:0:0:0::", - "valid": true - }, - { - "data": "::0:0:0:0:0:0:a", - "valid": true - } - ] -} diff --git a/test/ietf/iri/3987/iri-reference/v1.test.json b/test/ietf/iri/3987/iri-reference/v1.test.json deleted file mode 100644 index 8a9a39ce..00000000 --- a/test/ietf/iri/3987/iri-reference/v1.test.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/iri/3987/iri-reference/v1.json", - "tests": [ - { - "description": "Plain ASCII absolute URI", - "data": "https://example.com/path?query=value#fragment", - "valid": true - }, - { - "description": "Absolute IRI with non-ASCII host and path", - "data": "https://例え.jp/パス", - "valid": true - }, - { - "description": "Relative path with non-ASCII characters", - "data": "../parent/fichier-é.html", - "valid": true - }, - { - "description": "Network-path reference with non-ASCII host", - "data": "//пример.рф/путь", - "valid": true - }, - { - "description": "Relative path without dot segments", - "data": "относительный/путь", - "valid": true - }, - { - "description": "Query and fragment only", - "data": "?query=é#fragment", - "valid": true - }, - { - "description": "Empty string (same-document reference)", - "data": "", - "valid": true - }, - { - "description": "Absolute path reference", - "data": "/absolute/path/to/resource", - "valid": true - }, - { - "description": "Colon allowed after the first segment", - "data": "./foo:bar", - "valid": true - }, - { - "description": "Space in path", - "data": "with space", - "valid": false - }, - { - "description": "Malformed percent-encoding", - "data": "%ZZ", - "valid": false - }, - { - "description": "Path starting with colon (first segment must not contain a colon)", - "data": ":path", - "valid": false - }, - { - "description": "Path with brackets (gen-delims must be percent-encoded)", - "data": "path[with]brackets", - "valid": false - }, - { - "description": "Fragment with hash in value (hash not allowed within a fragment)", - "data": "#fragment#with#hashes", - "valid": false - }, - { - "description": "Number is not an IRI reference", - "data": 123, - "valid": false - }, - { - "description": "Boolean is not an IRI reference", - "data": true, - "valid": false - }, - { - "description": "Null is not an IRI reference", - "data": null, - "valid": false - }, - { - "description": "Object is not an IRI reference", - "data": {}, - "valid": false - }, - { - "description": "Array is not an IRI reference", - "data": [], - "valid": false - } - ] -} diff --git a/test/ietf/iri/3987/iri/v1.test.json b/test/ietf/iri/3987/iri/v1.test.json deleted file mode 100644 index 286f09ee..00000000 --- a/test/ietf/iri/3987/iri/v1.test.json +++ /dev/null @@ -1,120 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/iri/3987/iri/v1.json", - "tests": [ - { - "description": "Plain ASCII absolute URI", - "data": "https://example.com/path?query=value#fragment", - "valid": true - }, - { - "description": "URN as an IRI", - "data": "urn:example:foo", - "valid": true - }, - { - "description": "Mailto URI", - "data": "mailto:user@example.com", - "valid": true - }, - { - "description": "Latin accented character in path", - "data": "http://www.example.com/édition.html", - "valid": true - }, - { - "description": "Japanese host, path, query, and fragment", - "data": "https://例え.jp/パス?クエリ=値#フラグメント", - "valid": true - }, - { - "description": "Cyrillic host and path", - "data": "https://пример.рф/путь", - "valid": true - }, - { - "description": "Non-ASCII characters in a URN namespace specific string", - "data": "urn:example:héllo", - "valid": true - }, - { - "description": "Non-ASCII characters in a mailto local part", - "data": "mailto:usér@example.com", - "valid": true - }, - { - "description": "Supplementary plane character (emoji) in path", - "data": "https://example.com/emoji/😀", - "valid": true - }, - { - "description": "Private-use character in query (iprivate)", - "data": "http://example.com/?x=", - "valid": true - }, - { - "description": "Private-use character in path (iprivate is query-only)", - "data": "http://example.com/", - "valid": false - }, - { - "description": "Relative reference (scheme is required)", - "data": "../relative/path", - "valid": false - }, - { - "description": "Absolute path without scheme", - "data": "/absolute/path", - "valid": false - }, - { - "description": "Bare word without scheme", - "data": "foo", - "valid": false - }, - { - "description": "Empty string", - "data": "", - "valid": false - }, - { - "description": "Space in path", - "data": "http://example.com/with space", - "valid": false - }, - { - "description": "Malformed percent-encoding", - "data": "http://example.com/%ZZ", - "valid": false - }, - { - "description": "Scheme starting with a digit", - "data": "1http://example.com", - "valid": false - }, - { - "description": "Number is not an IRI", - "data": 123, - "valid": false - }, - { - "description": "Boolean is not an IRI", - "data": true, - "valid": false - }, - { - "description": "Null is not an IRI", - "data": null, - "valid": false - }, - { - "description": "Object is not an IRI", - "data": {}, - "valid": false - }, - { - "description": "Array is not an IRI", - "data": [], - "valid": false - } - ] -} diff --git a/test/ietf/jsonpointer/6901/pointer/v1.test.json b/test/ietf/jsonpointer/6901/pointer/v1.test.json deleted file mode 100644 index b1680e21..00000000 --- a/test/ietf/jsonpointer/6901/pointer/v1.test.json +++ /dev/null @@ -1,500 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/jsonpointer/6901/pointer/v1.json", - "tests": [ - { - "description": "Invalid type - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - empty string (root document)", - "data": "", - "valid": true - }, - { - "description": "Valid - single slash (empty key)", - "data": "/", - "valid": true - }, - { - "description": "Valid - simple key", - "data": "/foo", - "valid": true - }, - { - "description": "Valid - nested keys", - "data": "/foo/bar", - "valid": true - }, - { - "description": "Valid - array index", - "data": "/0", - "valid": true - }, - { - "description": "Valid - array append marker", - "data": "/-", - "valid": true - }, - { - "description": "Valid - mixed path", - "data": "/foo/0/bar", - "valid": true - }, - { - "description": "Valid - multiple array indices", - "data": "/0/1/2", - "valid": true - }, - { - "description": "Valid - escaped tilde ~0 represents ~", - "data": "/~0", - "valid": true - }, - { - "description": "Valid - escaped slash ~1 represents /", - "data": "/~1", - "valid": true - }, - { - "description": "Valid - multiple escapes", - "data": "/~0~1", - "valid": true - }, - { - "description": "Valid - escape in middle of key", - "data": "/foo~0bar", - "valid": true - }, - { - "description": "Valid - escaped slash in middle", - "data": "/foo~1bar", - "valid": true - }, - { - "description": "Valid - consecutive escaped tildes", - "data": "/~0~0", - "valid": true - }, - { - "description": "Valid - consecutive escaped slashes", - "data": "/~1~1", - "valid": true - }, - { - "description": "Valid - mixed escapes in key", - "data": "/a~1b~0c", - "valid": true - }, - { - "description": "Valid - ~0 followed by literal 1", - "data": "/~01", - "valid": true - }, - { - "description": "Valid - ~1 followed by literal 0", - "data": "/~10", - "valid": true - }, - { - "description": "Valid - key with space", - "data": "/foo bar", - "valid": true - }, - { - "description": "Valid - key with hyphen", - "data": "/foo-bar", - "valid": true - }, - { - "description": "Valid - key with underscore", - "data": "/foo_bar", - "valid": true - }, - { - "description": "Valid - key with dot", - "data": "/foo.bar", - "valid": true - }, - { - "description": "Valid - key with colon", - "data": "/foo:bar", - "valid": true - }, - { - "description": "Valid - key with at sign", - "data": "/foo@bar", - "valid": true - }, - { - "description": "Valid - key with exclamation", - "data": "/foo!bar", - "valid": true - }, - { - "description": "Valid - key with hash", - "data": "/foo#bar", - "valid": true - }, - { - "description": "Valid - key with dollar", - "data": "/foo$bar", - "valid": true - }, - { - "description": "Valid - key with percent", - "data": "/foo%bar", - "valid": true - }, - { - "description": "Valid - key with ampersand", - "data": "/foo&bar", - "valid": true - }, - { - "description": "Valid - key with asterisk", - "data": "/foo*bar", - "valid": true - }, - { - "description": "Valid - key with plus", - "data": "/foo+bar", - "valid": true - }, - { - "description": "Valid - key with equals", - "data": "/foo=bar", - "valid": true - }, - { - "description": "Valid - key with question mark", - "data": "/foo?bar", - "valid": true - }, - { - "description": "Valid - key with brackets", - "data": "/foo[bar]", - "valid": true - }, - { - "description": "Valid - key with braces", - "data": "/foo{bar}", - "valid": true - }, - { - "description": "Valid - key with parentheses", - "data": "/foo(bar)", - "valid": true - }, - { - "description": "Valid - key with angle brackets", - "data": "/foo", - "valid": true - }, - { - "description": "Valid - key with apostrophe", - "data": "/foo'bar", - "valid": true - }, - { - "description": "Valid - key with semicolon", - "data": "/foo;bar", - "valid": true - }, - { - "description": "Valid - key with comma", - "data": "/foo,bar", - "valid": true - }, - { - "description": "Valid - key with pipe", - "data": "/foo|bar", - "valid": true - }, - { - "description": "Valid - key with backslash", - "data": "/foo\\bar", - "valid": true - }, - { - "description": "Valid - two consecutive slashes (two empty keys)", - "data": "//", - "valid": true - }, - { - "description": "Valid - three consecutive slashes", - "data": "///", - "valid": true - }, - { - "description": "Valid - alphanumeric key", - "data": "/abc123", - "valid": true - }, - { - "description": "Valid - key starting with number", - "data": "/123abc", - "valid": true - }, - { - "description": "Valid - single space as key", - "data": "/ ", - "valid": true - }, - { - "description": "Valid - tab character in key", - "data": "/\t", - "valid": true - }, - { - "description": "Valid - newline in key", - "data": "/\n", - "valid": true - }, - { - "description": "Valid - carriage return in key", - "data": "/\r", - "valid": true - }, - { - "description": "Valid - null byte in key", - "data": "/\u0000", - "valid": true - }, - { - "description": "Valid - accented character", - "data": "/café", - "valid": true - }, - { - "description": "Valid - Japanese characters", - "data": "/日本語", - "valid": true - }, - { - "description": "Valid - emoji", - "data": "/emoji😀", - "valid": true - }, - { - "description": "Valid - Unicode character", - "data": "/é", - "valid": true - }, - { - "description": "Valid - multiple levels deep", - "data": "/a/b/c/d/e/f/g", - "valid": true - }, - { - "description": "Valid - long key", - "data": "/verylongkeynamethatgoesonforsometime", - "valid": true - }, - { - "description": "Valid - number with leading zero", - "data": "/01", - "valid": true - }, - { - "description": "Valid - negative number", - "data": "/-1", - "valid": true - }, - { - "description": "Valid - decimal number", - "data": "/3.14", - "valid": true - }, - { - "description": "Valid - key with quote", - "data": "/foo\"bar", - "valid": true - }, - { - "description": "Valid - all special chars except / and ~", - "data": "/!#$%&'()*+,-.0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}", - "valid": true - }, - { - "description": "Valid - escape at start", - "data": "/~0foo", - "valid": true - }, - { - "description": "Valid - escape at end", - "data": "/foo~0", - "valid": true - }, - { - "description": "Valid - only escapes", - "data": "/~0~1~0~1", - "valid": true - }, - { - "description": "Invalid - no leading slash", - "data": "foo", - "valid": false - }, - { - "description": "Invalid - path without leading slash", - "data": "foo/bar", - "valid": false - }, - { - "description": "Invalid - lone tilde", - "data": "/~", - "valid": false - }, - { - "description": "Invalid - tilde followed by 2", - "data": "/~2", - "valid": false - }, - { - "description": "Invalid - tilde followed by 3", - "data": "/~3", - "valid": false - }, - { - "description": "Invalid - tilde followed by 4", - "data": "/~4", - "valid": false - }, - { - "description": "Invalid - tilde followed by 5", - "data": "/~5", - "valid": false - }, - { - "description": "Invalid - tilde followed by 6", - "data": "/~6", - "valid": false - }, - { - "description": "Invalid - tilde followed by 7", - "data": "/~7", - "valid": false - }, - { - "description": "Invalid - tilde followed by 8", - "data": "/~8", - "valid": false - }, - { - "description": "Invalid - tilde followed by 9", - "data": "/~9", - "valid": false - }, - { - "description": "Invalid - tilde followed by letter a", - "data": "/~a", - "valid": false - }, - { - "description": "Invalid - tilde followed by letter b", - "data": "/~b", - "valid": false - }, - { - "description": "Invalid - tilde followed by uppercase A", - "data": "/~A", - "valid": false - }, - { - "description": "Invalid - tilde at end of key", - "data": "/foo~", - "valid": false - }, - { - "description": "Invalid - tilde with invalid escape in middle", - "data": "/foo~2bar", - "valid": false - }, - { - "description": "Invalid - tilde at end of path component", - "data": "/foo~/bar", - "valid": false - }, - { - "description": "Invalid - tilde without slash prefix", - "data": "~0", - "valid": false - }, - { - "description": "Invalid - escaped slash without leading slash", - "data": "~1", - "valid": false - }, - { - "description": "Invalid - tilde at end after slash", - "data": "/foo/~", - "valid": false - }, - { - "description": "Invalid - multiple keys without leading slash", - "data": "foo/bar/baz", - "valid": false - }, - { - "description": "Invalid - tilde followed by space", - "data": "/~ ", - "valid": false - }, - { - "description": "Invalid - tilde followed by slash", - "data": "/~//", - "valid": false - }, - { - "description": "Invalid - tilde followed by tilde", - "data": "/~~", - "valid": false - }, - { - "description": "Invalid - incomplete escape at end", - "data": "/foo/bar~", - "valid": false - }, - { - "description": "Invalid - tilde in middle of path", - "data": "/foo~bar", - "valid": false - }, - { - "description": "Invalid - double tilde without digits", - "data": "/~~0", - "valid": false - }, - { - "description": "Invalid - tilde followed by hash", - "data": "/~#", - "valid": false - }, - { - "description": "Invalid - tilde followed by newline", - "data": "/~\n", - "valid": false - } - ] -} diff --git a/test/ietf/jsonschema/2020-12/dialect/format-assertion/v1.test.json b/test/ietf/jsonschema/2020-12/dialect/format-assertion/v1.test.json deleted file mode 100644 index d252ea61..00000000 --- a/test/ietf/jsonschema/2020-12/dialect/format-assertion/v1.test.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "target": "../../../../../../schemas/ietf/jsonschema/2020-12/dialect/format-assertion/v1.json", - "tests": [ - { - "description": "Schema with an asserted format", - "data": { - "type": "string", - "format": "email" - }, - "valid": true - }, - { - "description": "Schema with a format inside properties", - "data": { - "type": "object", - "properties": { - "website": { - "type": "string", - "format": "uri" - } - } - }, - "valid": true - }, - { - "description": "Empty schema", - "data": {}, - "valid": true - }, - { - "description": "Boolean true schema", - "data": true, - "valid": true - }, - { - "description": "Boolean false schema", - "data": false, - "valid": true - }, - { - "description": "Format must be a string", - "data": { - "format": 123 - }, - "valid": false - }, - { - "description": "Type must be a string or an array of strings", - "data": { - "type": 123 - }, - "valid": false - }, - { - "description": "Properties must be an object", - "data": { - "properties": 123 - }, - "valid": false - }, - { - "description": "String is not a schema", - "data": "not-a-schema", - "valid": false - }, - { - "description": "Number is not a schema", - "data": 123, - "valid": false - }, - { - "description": "Null is not a schema", - "data": null, - "valid": false - } - ] -} diff --git a/test/ietf/language/3066/tag-syntax/v1.test.json b/test/ietf/language/3066/tag-syntax/v1.test.json deleted file mode 100644 index b1daadd3..00000000 --- a/test/ietf/language/3066/tag-syntax/v1.test.json +++ /dev/null @@ -1,473 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/language/3066/tag-syntax/v1.json", - "tests": [ - { - "description": "Valid - two letter primary tag", - "data": "en", - "valid": true - }, - { - "description": "Valid - three letter primary tag", - "data": "eng", - "valid": true - }, - { - "description": "Valid - single letter primary tag", - "data": "x", - "valid": true - }, - { - "description": "Valid - four letter primary tag", - "data": "abcd", - "valid": true - }, - { - "description": "Valid - five letter primary tag", - "data": "abcde", - "valid": true - }, - { - "description": "Valid - six letter primary tag", - "data": "abcdef", - "valid": true - }, - { - "description": "Valid - seven letter primary tag", - "data": "abcdefg", - "valid": true - }, - { - "description": "Valid - eight letter primary tag (maximum)", - "data": "abcdefgh", - "valid": true - }, - { - "description": "Valid - primary tag with region subtag", - "data": "en-US", - "valid": true - }, - { - "description": "Valid - primary tag with two letter subtag", - "data": "de-DE", - "valid": true - }, - { - "description": "Valid - primary tag with three letter subtag", - "data": "zh-CHN", - "valid": true - }, - { - "description": "Valid - primary tag with numeric subtag", - "data": "de-1996", - "valid": true - }, - { - "description": "Valid - primary tag with alphanumeric subtag", - "data": "en-GB-oed", - "valid": true - }, - { - "description": "Valid - primary tag with single letter subtag", - "data": "en-a", - "valid": true - }, - { - "description": "Valid - primary tag with single digit subtag", - "data": "en-1", - "valid": true - }, - { - "description": "Valid - primary tag with eight character subtag", - "data": "en-12345678", - "valid": true - }, - { - "description": "Valid - multiple subtags", - "data": "en-US-x-twain", - "valid": true - }, - { - "description": "Valid - three subtags", - "data": "zh-Hans-CN", - "valid": true - }, - { - "description": "Valid - four subtags", - "data": "en-Latn-US-variant", - "valid": true - }, - { - "description": "Valid - many subtags", - "data": "x-a-b-c-d-e-f", - "valid": true - }, - { - "description": "Valid - i-navajo (grandfathered)", - "data": "i-navajo", - "valid": true - }, - { - "description": "Valid - i-prefix", - "data": "i-klingon", - "valid": true - }, - { - "description": "Valid - x-private", - "data": "x-private", - "valid": true - }, - { - "description": "Valid - x-prefix with extension", - "data": "x-test-123", - "valid": true - }, - { - "description": "Valid - uppercase primary", - "data": "EN", - "valid": true - }, - { - "description": "Valid - uppercase subtag", - "data": "en-US", - "valid": true - }, - { - "description": "Valid - mixed case primary", - "data": "eN", - "valid": true - }, - { - "description": "Valid - mixed case subtag", - "data": "en-Us", - "valid": true - }, - { - "description": "Valid - all uppercase", - "data": "EN-US-X-TEST", - "valid": true - }, - { - "description": "Valid - lowercase", - "data": "en-us-x-test", - "valid": true - }, - { - "description": "Valid - common language codes", - "data": "fr", - "valid": true - }, - { - "description": "Valid - common language with region", - "data": "fr-FR", - "valid": true - }, - { - "description": "Valid - Spanish Mexico", - "data": "es-MX", - "valid": true - }, - { - "description": "Valid - Portuguese Brazil", - "data": "pt-BR", - "valid": true - }, - { - "description": "Valid - Chinese simplified", - "data": "zh-CN", - "valid": true - }, - { - "description": "Valid - Chinese traditional", - "data": "zh-TW", - "valid": true - }, - { - "description": "Valid - Japanese", - "data": "ja", - "valid": true - }, - { - "description": "Valid - Korean", - "data": "ko", - "valid": true - }, - { - "description": "Valid - Arabic", - "data": "ar", - "valid": true - }, - { - "description": "Valid - Russian", - "data": "ru", - "valid": true - }, - { - "description": "Valid - German Germany", - "data": "de-DE", - "valid": true - }, - { - "description": "Valid - German Austria", - "data": "de-AT", - "valid": true - }, - { - "description": "Valid - German Switzerland", - "data": "de-CH", - "valid": true - }, - { - "description": "Valid - English UK", - "data": "en-GB", - "valid": true - }, - { - "description": "Valid - English Australia", - "data": "en-AU", - "valid": true - }, - { - "description": "Valid - English Canada", - "data": "en-CA", - "valid": true - }, - { - "description": "Valid - French Canada", - "data": "fr-CA", - "valid": true - }, - { - "description": "Valid - Spanish Spain", - "data": "es-ES", - "valid": true - }, - { - "description": "Valid - Italian", - "data": "it", - "valid": true - }, - { - "description": "Valid - Dutch", - "data": "nl", - "valid": true - }, - { - "description": "Invalid: empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid: nine letter primary tag (too long)", - "data": "abcdefghi", - "valid": false - }, - { - "description": "Invalid: ten letter primary tag", - "data": "abcdefghij", - "valid": false - }, - { - "description": "Invalid: subtag too long (9 characters)", - "data": "en-123456789", - "valid": false - }, - { - "description": "Invalid: subtag too long (10 characters)", - "data": "en-1234567890", - "valid": false - }, - { - "description": "Invalid: starts with hyphen", - "data": "-en", - "valid": false - }, - { - "description": "Invalid: ends with hyphen", - "data": "en-", - "valid": false - }, - { - "description": "Invalid: double hyphen", - "data": "en--US", - "valid": false - }, - { - "description": "Invalid: triple hyphen", - "data": "en---US", - "valid": false - }, - { - "description": "Invalid: only hyphen", - "data": "-", - "valid": false - }, - { - "description": "Invalid: multiple hyphens", - "data": "---", - "valid": false - }, - { - "description": "Invalid: primary tag with digit", - "data": "e1", - "valid": false - }, - { - "description": "Invalid: primary tag starts with digit", - "data": "1en", - "valid": false - }, - { - "description": "Invalid: primary tag only digits", - "data": "123", - "valid": false - }, - { - "description": "Invalid: primary tag with special character", - "data": "e@n", - "valid": false - }, - { - "description": "Invalid: subtag with special character", - "data": "en-U$", - "valid": false - }, - { - "description": "Invalid: contains space", - "data": "en US", - "valid": false - }, - { - "description": "Invalid: contains space in subtag", - "data": "en-U S", - "valid": false - }, - { - "description": "Invalid: contains underscore", - "data": "en_US", - "valid": false - }, - { - "description": "Invalid: contains period", - "data": "en.US", - "valid": false - }, - { - "description": "Invalid: contains slash", - "data": "en/US", - "valid": false - }, - { - "description": "Invalid: contains backslash", - "data": "en\\US", - "valid": false - }, - { - "description": "Invalid: contains comma", - "data": "en,US", - "valid": false - }, - { - "description": "Invalid: contains semicolon", - "data": "en;US", - "valid": false - }, - { - "description": "Invalid: contains colon", - "data": "en:US", - "valid": false - }, - { - "description": "Invalid: contains parenthesis", - "data": "en(US)", - "valid": false - }, - { - "description": "Invalid: contains bracket", - "data": "en[US]", - "valid": false - }, - { - "description": "Invalid: contains brace", - "data": "en{US}", - "valid": false - }, - { - "description": "Invalid: contains quote", - "data": "en\"US", - "valid": false - }, - { - "description": "Invalid: contains apostrophe", - "data": "en'US", - "valid": false - }, - { - "description": "Invalid: contains newline", - "data": "en\nUS", - "valid": false - }, - { - "description": "Invalid: contains tab", - "data": "en\tUS", - "valid": false - }, - { - "description": "Invalid: contains carriage return", - "data": "en\rUS", - "valid": false - }, - { - "description": "Invalid: leading space", - "data": " en", - "valid": false - }, - { - "description": "Invalid: trailing space", - "data": "en ", - "valid": false - }, - { - "description": "Invalid: leading space before subtag", - "data": "en- US", - "valid": false - }, - { - "description": "Invalid: trailing space after primary", - "data": "en -US", - "valid": false - }, - { - "description": "Invalid: empty subtag", - "data": "en--US", - "valid": false - }, - { - "description": "Type validation: not a string (number)", - "data": 123, - "valid": false - }, - { - "description": "Type validation: not a string (boolean)", - "data": true, - "valid": false - }, - { - "description": "Type validation: not a string (null)", - "data": null, - "valid": false - }, - { - "description": "Type validation: not a string (array)", - "data": [ "en", "US" ], - "valid": false - }, - { - "description": "Type validation: not a string (object)", - "data": { - "language": "en", - "region": "US" - }, - "valid": false - } - ] -} diff --git a/test/ietf/language/5646/tag-syntax/v1.test.json b/test/ietf/language/5646/tag-syntax/v1.test.json deleted file mode 100644 index c8b4a428..00000000 --- a/test/ietf/language/5646/tag-syntax/v1.test.json +++ /dev/null @@ -1,430 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/language/5646/tag-syntax/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 2-letter language", - "data": "en", - "valid": true - }, - { - "description": "Valid - 3-letter language", - "data": "eng", - "valid": true - }, - { - "description": "Valid - 4-letter language (reserved)", - "data": "abcd", - "valid": true - }, - { - "description": "Valid - 5-letter language", - "data": "abcde", - "valid": true - }, - { - "description": "Valid - 8-letter language", - "data": "abcdefgh", - "valid": true - }, - { - "description": "Invalid - 1-letter language", - "data": "e", - "valid": false - }, - { - "description": "Invalid - 9-letter language", - "data": "abcdefghi", - "valid": false - }, - { - "description": "Valid - language + region (alpha-2)", - "data": "en-US", - "valid": true - }, - { - "description": "Valid - language + region (alpha-2)", - "data": "fr-FR", - "valid": true - }, - { - "description": "Valid - language + region (numeric)", - "data": "es-419", - "valid": true - }, - { - "description": "Valid - language + region (numeric 001)", - "data": "en-001", - "valid": true - }, - { - "description": "Invalid - region too short (1 digit)", - "data": "en-1", - "valid": false - }, - { - "description": "Valid - 3 letters after language (extlang, not region)", - "data": "en-USA", - "valid": true - }, - { - "description": "Valid - variant (digit + 3 alphanum, looks like 4-digit region)", - "data": "en-1234", - "valid": true - }, - { - "description": "Valid - language + script", - "data": "sr-Latn", - "valid": true - }, - { - "description": "Valid - language + script (Hans)", - "data": "zh-Hans", - "valid": true - }, - { - "description": "Valid - language + script (Hant)", - "data": "zh-Hant", - "valid": true - }, - { - "description": "Valid - script lowercase", - "data": "sr-latn", - "valid": true - }, - { - "description": "Valid - script uppercase", - "data": "sr-LATN", - "valid": true - }, - { - "description": "Valid - script mixed case", - "data": "sr-lATN", - "valid": true - }, - { - "description": "Valid - 3 letters after language (extlang, not script)", - "data": "sr-Lat", - "valid": true - }, - { - "description": "Valid - variant (5 chars, looks like script but too long for script pattern)", - "data": "sr-Latin", - "valid": true - }, - { - "description": "Valid - language + script + region", - "data": "sr-Latn-RS", - "valid": true - }, - { - "description": "Valid - language + script + region", - "data": "zh-Hans-CN", - "valid": true - }, - { - "description": "Valid - language + script + region (numeric)", - "data": "zh-Hans-419", - "valid": true - }, - { - "description": "Valid - extlang (1)", - "data": "zh-yue", - "valid": true - }, - { - "description": "Valid - extlang (2)", - "data": "zh-yue-cmn", - "valid": true - }, - { - "description": "Valid - extlang (3)", - "data": "zh-yue-cmn-hak", - "valid": true - }, - { - "description": "Invalid - extlang (4)", - "data": "zh-yue-cmn-hak-abc", - "valid": false - }, - { - "description": "Valid - extlang + script + region", - "data": "zh-cmn-Hans-CN", - "valid": true - }, - { - "description": "Valid - variant (digit + 3 alphanum)", - "data": "de-CH-1996", - "valid": true - }, - { - "description": "Valid - variant (5 alphanum)", - "data": "sl-nedis", - "valid": true - }, - { - "description": "Valid - variant (8 alphanum)", - "data": "de-CH-abcdefgh", - "valid": true - }, - { - "description": "Valid - 4 letters after language (script)", - "data": "de-abcd", - "valid": true - }, - { - "description": "Valid - extlang (3 chars, looks like short variant but matches extlang)", - "data": "de-abc", - "valid": true - }, - { - "description": "Invalid - variant (9 alphanum)", - "data": "de-abcdefghi", - "valid": false - }, - { - "description": "Valid - multiple variants", - "data": "de-Latn-DE-1996-x-foo", - "valid": true - }, - { - "description": "Valid - extension (u-)", - "data": "en-US-u-ca-gregory", - "valid": true - }, - { - "description": "Valid - extension (t-)", - "data": "en-US-t-en-latn", - "valid": true - }, - { - "description": "Valid - extension with multiple subtags", - "data": "en-US-u-ca-gregory-nu-latn", - "valid": true - }, - { - "description": "Valid - multiple extensions", - "data": "en-US-u-ca-gregory-t-en-latn", - "valid": true - }, - { - "description": "Valid - extension singleton (digit)", - "data": "en-0-foo", - "valid": true - }, - { - "description": "Valid - extension singleton (letter a-w)", - "data": "en-a-foo", - "valid": true - }, - { - "description": "Valid - extension singleton (letter y-z)", - "data": "en-y-foo", - "valid": true - }, - { - "description": "Invalid - extension singleton x (reserved for private use)", - "data": "en-x-extension", - "valid": false - }, - { - "description": "Invalid - extension subtag too short (1 char)", - "data": "en-u-a", - "valid": false - }, - { - "description": "Invalid - extension subtag too long (9 chars)", - "data": "en-u-abcdefghi", - "valid": false - }, - { - "description": "Valid - private use at end", - "data": "en-US-x-twain", - "valid": true - }, - { - "description": "Valid - private use with multiple subtags", - "data": "en-x-foo-bar-baz", - "valid": true - }, - { - "description": "Valid - private use standalone", - "data": "x-private", - "valid": true - }, - { - "description": "Valid - private use standalone (multiple subtags)", - "data": "x-foo-bar-baz", - "valid": true - }, - { - "description": "Invalid - private use subtag too long", - "data": "x-abcdefghi", - "valid": false - }, - { - "description": "Invalid - private use subtag empty", - "data": "x-", - "valid": false - }, - { - "description": "Valid - complex tag with all components", - "data": "zh-cmn-Hans-CN-1996-u-ca-buddhist-x-private", - "valid": true - }, - { - "description": "Valid - grandfathered tag (irregular)", - "data": "en-GB-oed", - "valid": true - }, - { - "description": "Valid - grandfathered tag (i-)", - "data": "i-klingon", - "valid": true - }, - { - "description": "Valid - grandfathered tag (sgn-)", - "data": "sgn-BE-FR", - "valid": true - }, - { - "description": "Valid - uppercase language", - "data": "EN", - "valid": true - }, - { - "description": "Valid - mixed case language", - "data": "En", - "valid": true - }, - { - "description": "Valid - lowercase region", - "data": "en-us", - "valid": true - }, - { - "description": "Valid - mixed case region", - "data": "en-Us", - "valid": true - }, - { - "description": "Invalid - underscore separator", - "data": "en_US", - "valid": false - }, - { - "description": "Invalid - dot separator", - "data": "en.US", - "valid": false - }, - { - "description": "Invalid - space separator", - "data": "en US", - "valid": false - }, - { - "description": "Invalid - double hyphen", - "data": "en--US", - "valid": false - }, - { - "description": "Invalid - leading hyphen", - "data": "-en", - "valid": false - }, - { - "description": "Invalid - trailing hyphen", - "data": "en-", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Valid - 3-letter language + region", - "data": "eng-US", - "valid": true - }, - { - "description": "Valid - 3-letter language + script + region", - "data": "eng-Latn-US", - "valid": true - }, - { - "description": "Valid - script without region", - "data": "zh-Hant", - "valid": true - }, - { - "description": "Valid - 2 letters (language code)", - "data": "US", - "valid": true - }, - { - "description": "Valid - 4 letters (language code)", - "data": "Latn", - "valid": true - }, - { - "description": "Valid - variant digit-starting (0xxx)", - "data": "en-0abc", - "valid": true - }, - { - "description": "Valid - variant digit-starting (9xxx)", - "data": "en-9xyz", - "valid": true - }, - { - "description": "Invalid - variant starting with digit but only 3 chars total", - "data": "en-1ab", - "valid": false - }, - { - "description": "Valid - extension with 2-char subtag", - "data": "en-u-ab", - "valid": true - }, - { - "description": "Valid - extension with 8-char subtag", - "data": "en-u-abcdefgh", - "valid": true - }, - { - "description": "Valid - grandfathered tag in uppercase", - "valid": true, - "data": "I-KLINGON" - }, - { - "description": "Valid - grandfathered tag in mixed case", - "valid": true, - "data": "En-GB-Oed" - } - ] -} diff --git a/test/ietf/problem-details/9457/problem/v1.test.json b/test/ietf/problem-details/9457/problem/v1.test.json deleted file mode 100644 index ef7277d6..00000000 --- a/test/ietf/problem-details/9457/problem/v1.test.json +++ /dev/null @@ -1,457 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/problem-details/9457/problem/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "not an object", - "valid": false - }, - { - "description": "Invalid type - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Empty object is valid", - "data": {}, - "valid": true - }, - { - "description": "Valid minimal problem with type only", - "data": { - "type": "https://example.com/probs/out-of-credit" - }, - "valid": true - }, - { - "description": "Valid minimal problem with title only", - "data": { - "title": "You do not have enough credit." - }, - "valid": true - }, - { - "description": "Valid minimal problem with status only", - "data": { - "status": 400 - }, - "valid": true - }, - { - "description": "Valid minimal problem with detail only", - "data": { - "detail": "Your current balance is 30, but that costs 50." - }, - "valid": true - }, - { - "description": "Valid minimal problem with instance only", - "data": { - "instance": "/account/12345/msgs/abc" - }, - "valid": true - }, - { - "description": "Valid problem with all standard fields", - "data": { - "title": "You do not have enough credit.", - "type": "https://example.com/probs/out-of-credit", - "detail": "Your current balance is 30, but that costs 50.", - "instance": "/account/12345/msgs/abc", - "status": 403 - }, - "valid": true - }, - { - "description": "Valid problem with extension properties", - "data": { - "title": "You do not have enough credit.", - "type": "https://example.com/probs/out-of-credit", - "accounts": [ "/account/12345", "/account/67890" ], - "balance": 30 - }, - "valid": true - }, - { - "description": "Valid problem with about:blank type", - "data": { - "title": "Internal Server Error", - "type": "about:blank", - "status": 500 - }, - "valid": true - }, - { - "description": "Valid problem with relative URI type", - "data": { - "title": "Validation Error", - "type": "/probs/validation-error" - }, - "valid": true - }, - { - "description": "Valid problem with fragment-only type", - "data": { - "title": "Validation Error", - "type": "#validation-error" - }, - "valid": true - }, - { - "description": "Valid problem with query-only type", - "data": { - "title": "Validation Error", - "type": "?type=validation" - }, - "valid": true - }, - { - "description": "Valid problem with relative instance", - "data": { - "instance": "../orders/12345" - }, - "valid": true - }, - { - "description": "Valid problem with absolute instance", - "data": { - "instance": "https://example.com/orders/12345" - }, - "valid": true - }, - { - "description": "Valid problem with minimum status code", - "data": { - "status": 100 - }, - "valid": true - }, - { - "description": "Valid problem with maximum status code", - "data": { - "status": 599 - }, - "valid": true - }, - { - "description": "Valid problem with common 4xx status", - "data": { - "title": "Not Found", - "status": 404 - }, - "valid": true - }, - { - "description": "Valid problem with common 5xx status", - "data": { - "title": "Internal Server Error", - "status": 500 - }, - "valid": true - }, - { - "description": "Invalid type field - number", - "data": { - "type": 123 - }, - "valid": false - }, - { - "description": "Invalid type field - boolean", - "data": { - "type": true - }, - "valid": false - }, - { - "description": "Invalid type field - object", - "data": { - "type": {} - }, - "valid": false - }, - { - "description": "Invalid type field - array", - "data": { - "type": [] - }, - "valid": false - }, - { - "description": "Invalid title field - number", - "data": { - "title": 123 - }, - "valid": false - }, - { - "description": "Invalid title field - boolean", - "data": { - "title": false - }, - "valid": false - }, - { - "description": "Invalid title field - object", - "data": { - "title": {} - }, - "valid": false - }, - { - "description": "Invalid title field - array", - "data": { - "title": [] - }, - "valid": false - }, - { - "description": "Invalid status field - string", - "data": { - "status": "400" - }, - "valid": false - }, - { - "description": "Invalid status field - boolean", - "data": { - "status": true - }, - "valid": false - }, - { - "description": "Invalid status field - object", - "data": { - "status": {} - }, - "valid": false - }, - { - "description": "Invalid status field - array", - "data": { - "status": [] - }, - "valid": false - }, - { - "description": "Invalid status field - too low", - "data": { - "status": 99 - }, - "valid": false - }, - { - "description": "Invalid status field - too high", - "data": { - "status": 600 - }, - "valid": false - }, - { - "description": "Invalid status field - negative", - "data": { - "status": -1 - }, - "valid": false - }, - { - "description": "Invalid status field - float", - "data": { - "status": 400.5 - }, - "valid": false - }, - { - "description": "Invalid detail field - number", - "data": { - "detail": 123 - }, - "valid": false - }, - { - "description": "Invalid detail field - boolean", - "data": { - "detail": true - }, - "valid": false - }, - { - "description": "Invalid detail field - object", - "data": { - "detail": {} - }, - "valid": false - }, - { - "description": "Invalid detail field - array", - "data": { - "detail": [] - }, - "valid": false - }, - { - "description": "Invalid instance field - number", - "data": { - "instance": 123 - }, - "valid": false - }, - { - "description": "Invalid instance field - boolean", - "data": { - "instance": false - }, - "valid": false - }, - { - "description": "Invalid instance field - object", - "data": { - "instance": {} - }, - "valid": false - }, - { - "description": "Invalid instance field - array", - "data": { - "instance": [] - }, - "valid": false - }, - { - "description": "Valid empty string type", - "data": { - "type": "" - }, - "valid": true - }, - { - "description": "Valid empty string title", - "data": { - "title": "" - }, - "valid": true - }, - { - "description": "Valid empty string detail", - "data": { - "detail": "" - }, - "valid": true - }, - { - "description": "Valid empty string instance", - "data": { - "instance": "" - }, - "valid": true - }, - { - "description": "Valid problem with complex extension object", - "data": { - "title": "Your request parameters didn't validate.", - "type": "https://example.net/validation-error", - "invalid-params": [ - { - "name": "age", - "reason": "must be a positive integer" - }, - { - "name": "color", - "reason": "must be 'green', 'red' or 'blue'" - } - ] - }, - "valid": true - }, - { - "description": "Valid problem with numeric extension property", - "data": { - "type": "https://example.com/probs/out-of-credit", - "balance": 30, - "cost": 50 - }, - "valid": true - }, - { - "description": "Valid problem with boolean extension property", - "data": { - "type": "https://example.com/probs/maintenance", - "scheduled": true - }, - "valid": true - }, - { - "description": "Valid problem with null extension property", - "data": { - "type": "https://example.com/probs/user-error", - "user": null - }, - "valid": true - }, - { - "description": "Valid problem with mixed extension properties", - "data": { - "title": "Complex Problem", - "type": "https://example.com/probs/complex", - "arrayProp": [ 1, 2, 3 ], - "booleanProp": false, - "nullProp": null, - "numberProp": 42, - "objectProp": { - "nested": "value" - }, - "stringProp": "value" - }, - "valid": true - }, - { - "description": "Valid problem with Unicode characters in strings", - "data": { - "title": "Unicode Problem: 你好世界", - "type": "https://example.com/probs/unicode", - "custom": "Ñoño: αβγδε", - "detail": "Error with émojis: 🚨❌" - }, - "valid": true - }, - { - "description": "Valid problem with percent-encoded URI type", - "data": { - "title": "Credit Problem", - "type": "https://example.com/probs/out%20of%20credit" - }, - "valid": true - }, - { - "description": "Valid problem with percent-encoded URI instance", - "data": { - "instance": "/users/john%20doe/orders/123" - }, - "valid": true - }, - { - "description": "Valid problem with long strings", - "data": { - "title": "A very long title that goes on and on and on and on and on and on and on and on", - "type": "https://example.com/probs/long-description", - "detail": "A very long detail message that provides extensive information about what went wrong in the system and how the user might be able to fix it by following these very detailed instructions that go on for quite a while to test string length handling" - }, - "valid": true - } - ] -} diff --git a/test/ietf/uri/3986/uri-reference/v1.test.json b/test/ietf/uri/3986/uri-reference/v1.test.json deleted file mode 100644 index e5ec8901..00000000 --- a/test/ietf/uri/3986/uri-reference/v1.test.json +++ /dev/null @@ -1,715 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/uri/3986/uri-reference/v1.json", - "tests": [ - { - "description": "Invalid type - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Empty string is valid URI reference", - "data": "", - "valid": true - }, - { - "description": "Basic HTTP URI", - "data": "http://example.com", - "valid": true - }, - { - "description": "HTTPS URI with path", - "data": "https://example.com/path/to/resource", - "valid": true - }, - { - "description": "FTP URI", - "data": "ftp://ftp.example.com/file.txt", - "valid": true - }, - { - "description": "File URI", - "data": "file:///path/to/file", - "valid": true - }, - { - "description": "Mailto URI", - "data": "mailto:user@example.com", - "valid": true - }, - { - "description": "Tel URI", - "data": "tel:+1-800-555-0123", - "valid": true - }, - { - "description": "URN with ISBN", - "data": "urn:isbn:0451450523", - "valid": true - }, - { - "description": "URN with UUID", - "data": "urn:uuid:12345678-1234-5678-1234-123456789abc", - "valid": true - }, - { - "description": "Custom scheme", - "data": "custom://example.com/resource", - "valid": true - }, - { - "description": "Scheme with numbers", - "data": "h2tp://example.com", - "valid": true - }, - { - "description": "Scheme with plus", - "data": "git+ssh://user@host/repo.git", - "valid": true - }, - { - "description": "Scheme with period", - "data": "x.400://example.com", - "valid": true - }, - { - "description": "Scheme with hyphen", - "data": "my-scheme://example.com", - "valid": true - }, - { - "description": "URI with userinfo", - "data": "https://user:password@example.com/path", - "valid": true - }, - { - "description": "URI with userinfo without password", - "data": "https://user@example.com/path", - "valid": true - }, - { - "description": "URI with empty userinfo", - "data": "https://@example.com/path", - "valid": true - }, - { - "description": "URI with IPv4 address", - "data": "http://192.168.1.1/path", - "valid": true - }, - { - "description": "URI with IPv6 address", - "data": "http://[2001:db8::1]/path", - "valid": true - }, - { - "description": "URI with IPv6 and port", - "data": "http://[::1]:8080/path", - "valid": true - }, - { - "description": "URI with port number", - "data": "https://example.com:443/path", - "valid": true - }, - { - "description": "URI with high port number", - "data": "http://example.com:65535/path", - "valid": true - }, - { - "description": "URI with international domain name", - "data": "http://xn--nxasmq6b.example.com/path", - "valid": true - }, - { - "description": "URI with empty path", - "data": "http://example.com", - "valid": true - }, - { - "description": "URI with root path", - "data": "http://example.com/", - "valid": true - }, - { - "description": "URI with complex path", - "data": "http://example.com/path/to/resource.html", - "valid": true - }, - { - "description": "URI with path containing dot segments", - "data": "http://example.com/path/../other/./file", - "valid": true - }, - { - "description": "URI with percent-encoded path", - "data": "http://example.com/path%20with%20spaces", - "valid": true - }, - { - "description": "URI with unreserved characters in path", - "data": "http://example.com/ABCabc123-._~", - "valid": true - }, - { - "description": "URI with sub-delims in path", - "data": "http://example.com/!$&'()*+,;=", - "valid": true - }, - { - "description": "URI with simple query", - "data": "http://example.com/path?query=value", - "valid": true - }, - { - "description": "URI with multiple query parameters", - "data": "http://example.com/path?a=1&b=2&c=3", - "valid": true - }, - { - "description": "URI with empty query", - "data": "http://example.com/path?", - "valid": true - }, - { - "description": "URI with query containing special characters", - "data": "http://example.com/path?q=hello%20world&x=a+b", - "valid": true - }, - { - "description": "URI with query containing question marks", - "data": "http://example.com/path?q=what?is?this", - "valid": true - }, - { - "description": "URI with fragment", - "data": "http://example.com/path#section", - "valid": true - }, - { - "description": "URI with empty fragment", - "data": "http://example.com/path#", - "valid": true - }, - { - "description": "URI with query and fragment", - "data": "http://example.com/path?q=v#section", - "valid": true - }, - { - "description": "URI with percent-encoded fragment", - "data": "http://example.com/path#section%201", - "valid": true - }, - { - "description": "URI with fragment containing hash (hash not allowed within a fragment)", - "data": "http://example.com/path#hash#in#fragment", - "valid": false - }, - { - "description": "Single slash path", - "data": "/", - "valid": true - }, - { - "description": "Path with single segment", - "data": "file.txt", - "valid": true - }, - { - "description": "Path with multiple segments", - "data": "path/to/resource", - "valid": true - }, - { - "description": "Absolute path", - "data": "/absolute/path/to/file", - "valid": true - }, - { - "description": "Current directory reference", - "data": ".", - "valid": true - }, - { - "description": "Parent directory reference", - "data": "..", - "valid": true - }, - { - "description": "Path with dot segments", - "data": "../../../relative/path", - "valid": true - }, - { - "description": "Network path reference", - "data": "//example.com/path", - "valid": true - }, - { - "description": "Network path with userinfo", - "data": "//user:pass@example.com/path", - "valid": true - }, - { - "description": "Network path with port", - "data": "//example.com:8080/path", - "valid": true - }, - { - "description": "Query only", - "data": "?query=value", - "valid": true - }, - { - "description": "Fragment only", - "data": "#fragment", - "valid": true - }, - { - "description": "Path with query", - "data": "path/to/file?query=value", - "valid": true - }, - { - "description": "Path with fragment", - "data": "path/to/file#section", - "valid": true - }, - { - "description": "Path with query and fragment", - "data": "path/to/file?query=value#section", - "valid": true - }, - { - "description": "Relative path that looks like scheme starting with number", - "data": "9scheme", - "valid": true - }, - { - "description": "Relative path that looks like scheme starting with hyphen", - "data": "-scheme", - "valid": true - }, - { - "description": "Relative path that looks like scheme starting with period", - "data": ".scheme", - "valid": true - }, - { - "description": "Relative path with invalid scheme character", - "data": "sch@me", - "valid": true - }, - { - "description": "Opaque URI (scheme:path)", - "data": "mailto:user@example.com", - "valid": true - }, - { - "description": "Opaque URI with query", - "data": "mailto:user@example.com?subject=test", - "valid": true - }, - { - "description": "Scheme with colon only", - "data": "scheme:", - "valid": true - }, - { - "description": "URI with all components", - "data": "https://user:pass@example.com:8080/path/to/resource?query=value&other=123#section", - "valid": true - }, - { - "description": "Data URI", - "data": "data:text/plain;base64,SGVsbG8gV29ybGQ=", - "valid": true - }, - { - "description": "Data URI with percent encoding", - "data": "data:text/plain,Hello%20World", - "valid": true - }, - { - "description": "Out-of-range IPv4-like host (a legal reg-name for a generic URI)", - "data": "http://256.256.256.256/path", - "valid": true - }, - { - "description": "IPv6 without brackets", - "data": "http://2001:db8::1/path", - "valid": false - }, - { - "description": "Authority with space", - "data": "http://exa mple.com/path", - "valid": false - }, - { - "description": "Invalid percent encoding - single digit", - "data": "http://example.com/path%2", - "valid": false - }, - { - "description": "Invalid percent encoding - non-hex", - "data": "http://example.com/path%ZZ", - "valid": false - }, - { - "description": "Percent sign without encoding", - "data": "http://example.com/path%/file", - "valid": false - }, - { - "description": "URI with unencoded space", - "data": "http://example.com/path with space", - "valid": false - }, - { - "description": "URI with newline", - "data": "http://example.com/path\nwith\nnewline", - "valid": false - }, - { - "description": "URI with tab character", - "data": "http://example.com/path\twith\ttab", - "valid": false - }, - { - "description": "URI with carriage return", - "data": "http://example.com/path\rwith\rreturn", - "valid": false - }, - { - "description": "URI with null character", - "data": "http://example.com/path\u0000with\u0000null", - "valid": false - }, - { - "description": "URI with control character", - "data": "http://example.com/path\u0001control", - "valid": false - }, - { - "description": "Single character scheme", - "data": "x://example.com", - "valid": true - }, - { - "description": "Long scheme name", - "data": "verylongschemenamethatisallowed://example.com", - "valid": true - }, - { - "description": "URI with only authority", - "data": "//example.com", - "valid": true - }, - { - "description": "Relative path with colon not at start", - "data": "file:name", - "valid": true - }, - { - "description": "Path with consecutive slashes", - "data": "http://example.com/path//to///resource", - "valid": true - }, - { - "description": "Path with brackets (gen-delims must be percent-encoded outside of IP literals)", - "data": "http://example.com/path[with]brackets", - "valid": false - }, - { - "description": "Query with equals but no value", - "data": "http://example.com/path?key=", - "valid": true - }, - { - "description": "Query with ampersand but no value", - "data": "http://example.com/path?key&other=value", - "valid": true - }, - { - "description": "Path with percent-encoded characters", - "data": "path%20with%20spaces/file%2Ename", - "valid": true - }, - { - "description": "Network path with IPv4", - "data": "//192.168.1.1/path", - "valid": true - }, - { - "description": "Network path with IPv6", - "data": "//[2001:db8::1]/path", - "valid": true - }, - { - "description": "Query and fragment without path", - "data": "?query#fragment", - "valid": true - }, - { - "description": "Path with colon (valid in relative path)", - "data": "path:with:colons", - "valid": true - }, - { - "description": "Path starting with colon (first segment must not contain a colon)", - "data": ":path", - "valid": false - }, - { - "description": "Path with unreserved characters", - "data": "ABCabc123-._~", - "valid": true - }, - { - "description": "Path with sub-delims", - "data": "!$&'()*+,;=", - "valid": true - }, - { - "description": "Path with at sign", - "data": "path@file", - "valid": true - }, - { - "description": "Query with various characters", - "data": "?query=a+b&c=d%20e", - "valid": true - }, - { - "description": "Fragment with various characters", - "data": "#fragment%20with%20spaces", - "valid": true - }, - { - "description": "Complex relative path", - "data": "./this:that/other.html", - "valid": true - }, - { - "description": "Path segment with colon not at start", - "data": "g:x", - "valid": true - }, - { - "description": "Path with brackets (gen-delims must be percent-encoded)", - "data": "path[with]brackets", - "valid": false - }, - { - "description": "Network path with reg-name containing dash", - "data": "//sub-domain.example.com/path", - "valid": true - }, - { - "description": "Network path with reg-name containing underscore", - "data": "//sub_domain.example.com/path", - "valid": true - }, - { - "description": "Relative path that looks like scheme but isn't", - "data": "http", - "valid": true - }, - { - "description": "Relative path with file extension", - "data": "document.pdf", - "valid": true - }, - { - "description": "Path with multiple consecutive slashes", - "data": "path//to///resource", - "valid": true - }, - { - "description": "Query with question mark in value", - "data": "?query=value?with?marks", - "valid": true - }, - { - "description": "Fragment with hash in value (hash not allowed within a fragment)", - "data": "#fragment#with#hashes", - "valid": false - }, - { - "description": "URL with fragment without path", - "data": "http://example.com#fragment", - "valid": true - }, - { - "description": "URL with query without path", - "data": "http://example.com?query=value", - "valid": true - }, - { - "description": "URL with query and fragment without path", - "data": "http://example.com?query=value#fragment", - "valid": true - }, - { - "description": "URL with empty fragment without path", - "data": "http://example.com#", - "valid": true - }, - { - "description": "URL with empty query without path", - "data": "http://example.com?", - "valid": true - }, - { - "description": "HTTPS with fragment without path", - "data": "https://secure.example.com#section", - "valid": true - }, - { - "description": "HTTPS with query without path", - "data": "https://secure.example.com?token=abc123", - "valid": true - }, - { - "description": "FTP with fragment without path", - "data": "ftp://ftp.example.com#readme", - "valid": true - }, - { - "description": "FTP with query without path", - "data": "ftp://ftp.example.com?mode=binary", - "valid": true - }, - { - "description": "Network path with query without path", - "data": "//example.com?search=test", - "valid": true - }, - { - "description": "Network path with fragment without path", - "data": "//example.com#top", - "valid": true - }, - { - "description": "Network path with query and fragment without path", - "data": "//example.com?q=1#section", - "valid": true - }, - { - "description": "IPv4 URL with fragment without path", - "data": "http://192.168.1.1#section", - "valid": true - }, - { - "description": "IPv4 URL with query without path", - "data": "http://192.168.1.1?param=value", - "valid": true - }, - { - "description": "IPv6 URL with fragment without path", - "data": "http://[::1]#anchor", - "valid": true - }, - { - "description": "IPv6 URL with query without path", - "data": "http://[::1]?key=val", - "valid": true - }, - { - "description": "URL with port and fragment without path", - "data": "http://example.com:8080#section", - "valid": true - }, - { - "description": "URL with port and query without path", - "data": "http://example.com:8080?search=term", - "valid": true - }, - { - "description": "URL with userinfo and fragment without path", - "data": "http://user@example.com#top", - "valid": true - }, - { - "description": "URL with userinfo and query without path", - "data": "http://user@example.com?q=test", - "valid": true - }, - { - "description": "URL with full userinfo and query without path", - "data": "http://user:pass@example.com?param=value", - "valid": true - }, - { - "description": "URL with full userinfo and fragment without path", - "data": "http://user:pass@example.com#anchor", - "valid": true - }, - { - "description": "Complex URL with all authority components and query without path", - "data": "http://user:pass@example.com:8080?key=value", - "valid": true - }, - { - "description": "Complex URL with all authority components and fragment without path", - "data": "http://user:pass@example.com:8080#section", - "valid": true - }, - { - "description": "URL with multiple query parameters without path", - "data": "http://example.com?a=1&b=2&c=3", - "valid": true - }, - { - "description": "URL with percent-encoded query without path", - "data": "http://example.com?key=value%20here", - "valid": true - }, - { - "description": "URL with complex query encoding without path", - "data": "http://example.com?a=b&c=%2Fd%2Fe", - "valid": true - }, - { - "description": "URL with fragment containing special characters without path", - "data": "http://example.com#section-1.2", - "valid": true - }, - { - "description": "URL with empty query and non-empty fragment without path", - "data": "http://example.com?#fragment", - "valid": true - }, - { - "description": "Custom scheme with fragment without path", - "data": "custom://example.com#section", - "valid": true - }, - { - "description": "Custom scheme with query without path", - "data": "custom://example.com?param=value", - "valid": true - } - ] -} diff --git a/test/ietf/uri/3986/uri-relative/v1.test.json b/test/ietf/uri/3986/uri-relative/v1.test.json deleted file mode 100644 index 8e45738d..00000000 --- a/test/ietf/uri/3986/uri-relative/v1.test.json +++ /dev/null @@ -1,295 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/uri/3986/uri-relative/v1.json", - "tests": [ - { - "description": "Invalid type - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Empty string is valid relative reference", - "data": "", - "valid": true - }, - { - "description": "Single slash path", - "data": "/", - "valid": true - }, - { - "description": "Path with single segment", - "data": "file.txt", - "valid": true - }, - { - "description": "Path with multiple segments", - "data": "path/to/resource", - "valid": true - }, - { - "description": "Absolute path", - "data": "/absolute/path/to/file", - "valid": true - }, - { - "description": "Current directory reference", - "data": ".", - "valid": true - }, - { - "description": "Parent directory reference", - "data": "..", - "valid": true - }, - { - "description": "Path with dot segments", - "data": "../../../relative/path", - "valid": true - }, - { - "description": "Network path reference (starts with //)", - "data": "//example.com/path", - "valid": true - }, - { - "description": "Network path with userinfo", - "data": "//user:pass@example.com/path", - "valid": true - }, - { - "description": "Network path with port", - "data": "//example.com:8080/path", - "valid": true - }, - { - "description": "Network path with IPv4", - "data": "//192.168.1.1/path", - "valid": true - }, - { - "description": "Network path with IPv6", - "data": "//[2001:db8::1]/path", - "valid": true - }, - { - "description": "Query only", - "data": "?query=value", - "valid": true - }, - { - "description": "Fragment only", - "data": "#fragment", - "valid": true - }, - { - "description": "Path with query", - "data": "path/to/file?query=value&other=123", - "valid": true - }, - { - "description": "Path with fragment", - "data": "path/to/file#section", - "valid": true - }, - { - "description": "Path with query and fragment", - "data": "path/to/file?query=value#section", - "valid": true - }, - { - "description": "Query and fragment without path", - "data": "?query#fragment", - "valid": true - }, - { - "description": "Path with percent-encoded characters", - "data": "path%20with%20spaces/file%2Ename", - "valid": true - }, - { - "description": "Invalid percent-encoding (single digit)", - "data": "path%2/file", - "valid": false - }, - { - "description": "Invalid percent-encoding (non-hex)", - "data": "path%ZZ/file", - "valid": false - }, - { - "description": "Path with colon in first segment (parses as an absolute URI)", - "data": "path:with:colons", - "valid": false - }, - { - "description": "Path starting with colon (first segment must not contain a colon)", - "data": ":path", - "valid": false - }, - { - "description": "Absolute URI with scheme (not relative)", - "data": "http://example.com/path", - "valid": false - }, - { - "description": "HTTPS absolute URI (not relative)", - "data": "https://example.com/path", - "valid": false - }, - { - "description": "FTP absolute URI (not relative)", - "data": "ftp://example.com/path", - "valid": false - }, - { - "description": "Mailto URI (not relative)", - "data": "mailto:user@example.com", - "valid": false - }, - { - "description": "URN (not relative)", - "data": "urn:isbn:0451450523", - "valid": false - }, - { - "description": "Custom scheme (not relative)", - "data": "custom://example.com", - "valid": false - }, - { - "description": "Path with spaces (invalid)", - "data": "path with spaces/file", - "valid": false - }, - { - "description": "Path with control characters (invalid)", - "data": "path\nwith\nnewlines", - "valid": false - }, - { - "description": "Path with tab character (invalid)", - "data": "path\twith\ttabs", - "valid": false - }, - { - "description": "Network path with IPv4-like reg-name (first-match-wins makes it a valid reg-name)", - "data": "//256.256.256.256/path", - "valid": true - }, - { - "description": "Network path with IPv6 without brackets", - "data": "//2001:db8::1/path", - "valid": false - }, - { - "description": "Network path with empty port (port is *DIGIT)", - "data": "//example.com:/path", - "valid": true - }, - { - "description": "Network path with empty host (reg-name may be empty)", - "data": "//:8080/path", - "valid": true - }, - { - "description": "Path with unreserved characters", - "data": "ABCabc123-._~", - "valid": true - }, - { - "description": "Path with sub-delims", - "data": "!$&'()*+,;=", - "valid": true - }, - { - "description": "Path with at sign", - "data": "path@file", - "valid": true - }, - { - "description": "Query with various characters", - "data": "?query=a+b&c=d%20e", - "valid": true - }, - { - "description": "Fragment with various characters", - "data": "#fragment%20with%20spaces", - "valid": true - }, - { - "description": "Complex relative path", - "data": "./this:that/other.html", - "valid": true - }, - { - "description": "Colon in first path segment (parses as an absolute URI, see RFC 3986 section 4.2)", - "data": "g:x", - "valid": false - }, - { - "description": "Path with brackets (gen-delims must be percent-encoded)", - "data": "path[with]brackets", - "valid": false - }, - { - "description": "Network path with reg-name containing dash", - "data": "//sub-domain.example.com/path", - "valid": true - }, - { - "description": "Network path with reg-name containing underscore", - "data": "//sub_domain.example.com/path", - "valid": true - }, - { - "description": "Relative path that looks like scheme but isn't", - "data": "http", - "valid": true - }, - { - "description": "Relative path with file extension", - "data": "document.pdf", - "valid": true - }, - { - "description": "Path with multiple consecutive slashes", - "data": "path//to///resource", - "valid": true - }, - { - "description": "Query with question mark in value", - "data": "?query=value?with?marks", - "valid": true - }, - { - "description": "Fragment with hash in value (hash not allowed within a fragment)", - "data": "#fragment#with#hashes", - "valid": false - }, - { - "description": "Colon in first path segment (parses as an absolute URI)", - "data": "foo:bar/baz", - "valid": false - }, - { - "description": "Colon in first path segment with non-scheme characters", - "data": "1foo:bar", - "valid": false - }, - { - "description": "Colon allowed after the first segment", - "data": "./foo:bar", - "valid": true - } - ] -} diff --git a/test/ietf/uri/3986/uri/v1.test.json b/test/ietf/uri/3986/uri/v1.test.json deleted file mode 100644 index d66e06ec..00000000 --- a/test/ietf/uri/3986/uri/v1.test.json +++ /dev/null @@ -1,420 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/uri/3986/uri/v1.json", - "tests": [ - { - "description": "Invalid type - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Empty string (not an absolute URI)", - "data": "", - "valid": false - }, - { - "description": "URL: HTTP with authority", - "data": "http://example.com", - "valid": true - }, - { - "description": "URL: HTTPS with path and query", - "data": "https://example.com/path?query=value", - "valid": true - }, - { - "description": "URL: FTP with userinfo and port", - "data": "ftp://user:pass@ftp.example.com:21/file.txt", - "valid": true - }, - { - "description": "URL: File URI with absolute path", - "data": "file:///home/user/document.pdf", - "valid": true - }, - { - "description": "URL: File URI without authority", - "data": "file:/home/user/document.pdf", - "valid": true - }, - { - "description": "URL: HTTP with IPv4", - "data": "http://192.168.1.1/resource", - "valid": true - }, - { - "description": "URL: HTTP with IPv6", - "data": "http://[2001:db8::8a2e:370:7334]/resource", - "valid": true - }, - { - "description": "URN: ISBN example", - "data": "urn:isbn:0451450523", - "valid": true - }, - { - "description": "URN: UUID example", - "data": "urn:uuid:6e8bc430-9c3a-11d9-9669-0800200c9a66", - "valid": true - }, - { - "description": "URN: IETF RFC example", - "data": "urn:ietf:rfc:3986", - "valid": true - }, - { - "description": "URN: With percent-encoding", - "data": "urn:example:a%20b", - "valid": true - }, - { - "description": "URN: With r-component and q-component", - "data": "urn:example:foo-bar-baz?+CCResolve:cc=uk", - "valid": true - }, - { - "description": "URN: With fragment", - "data": "urn:example:foo-bar-baz#section", - "valid": true - }, - { - "description": "Mailto: Simple email", - "data": "mailto:user@example.com", - "valid": true - }, - { - "description": "Mailto: Multiple recipients", - "data": "mailto:user1@example.com,user2@example.com", - "valid": true - }, - { - "description": "Mailto: With subject", - "data": "mailto:user@example.com?subject=Hello%20World", - "valid": true - }, - { - "description": "Mailto: With multiple query parameters", - "data": "mailto:user@example.com?subject=Test&body=Message", - "valid": true - }, - { - "description": "Mailto: No recipient specified", - "data": "mailto:?to=user@example.com&subject=Test", - "valid": true - }, - { - "description": "Tel: International format", - "data": "tel:+1-555-555-5555", - "valid": true - }, - { - "description": "Tel: With extension", - "data": "tel:+1-555-555-5555;ext=123", - "valid": true - }, - { - "description": "Tel: Local number", - "data": "tel:555-5555", - "valid": true - }, - { - "description": "Tel: With special characters", - "data": "tel:+1(555)555-5555", - "valid": true - }, - { - "description": "Data: Plain text", - "data": "data:text/plain;charset=utf-8,Hello%20World", - "valid": true - }, - { - "description": "Data: Base64 encoded", - "data": "data:text/plain;base64,SGVsbG8gV29ybGQh", - "valid": true - }, - { - "description": "Data: HTML content", - "data": "data:text/html,%3Ch1%3EHello%3C%2Fh1%3E", - "valid": true - }, - { - "description": "Data: Image with base64", - "data": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==", - "valid": true - }, - { - "description": "Data: Without parameters", - "data": "data:,Hello%20World", - "valid": true - }, - { - "description": "News: Newsgroup", - "data": "news:comp.lang.javascript", - "valid": true - }, - { - "description": "News: Message ID", - "data": "news:1234567890@example.com", - "valid": true - }, - { - "description": "News: Wildcard", - "data": "news:*", - "valid": true - }, - { - "description": "NNTP: With server and group", - "data": "nntp://news.example.com/comp.lang.javascript", - "valid": true - }, - { - "description": "SIP: Basic address", - "data": "sip:alice@atlanta.com", - "valid": true - }, - { - "description": "SIP: With port", - "data": "sip:alice@atlanta.com:5060", - "valid": true - }, - { - "description": "SIPS: Secure SIP", - "data": "sips:alice@atlanta.com", - "valid": true - }, - { - "description": "SIP: With parameters", - "data": "sip:alice@atlanta.com;transport=tcp", - "valid": true - }, - { - "description": "Geo: Coordinates", - "data": "geo:37.786971,-122.399677", - "valid": true - }, - { - "description": "Geo: With altitude", - "data": "geo:37.786971,-122.399677,250", - "valid": true - }, - { - "description": "Geo: With uncertainty", - "data": "geo:37.786971,-122.399677;u=35", - "valid": true - }, - { - "description": "Magnet: BitTorrent hash", - "data": "magnet:?xt=urn:btih:c12fe1c06bba254a9dc9f519b335aa7c1367a88a", - "valid": true - }, - { - "description": "Magnet: With display name", - "data": "magnet:?xt=urn:btih:c12fe1c06bba254a9dc9f519b335aa7c1367a88a&dn=Test", - "valid": true - }, - { - "description": "LDAP: Search", - "data": "ldap://ldap.example.com/cn=John%20Doe,dc=example,dc=com", - "valid": true - }, - { - "description": "LDAP: With port and attributes", - "data": "ldap://ldap.example.com:389/dc=example,dc=com?cn,mail?sub?(cn=*)", - "valid": true - }, - { - "description": "SSH: With user and host", - "data": "ssh://user@example.com:22", - "valid": true - }, - { - "description": "Git: Repository URL", - "data": "git://github.com/user/repo.git", - "valid": true - }, - { - "description": "Bitcoin: Address", - "data": "bitcoin:1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa", - "valid": true - }, - { - "description": "Bitcoin: With amount", - "data": "bitcoin:1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa?amount=0.001", - "valid": true - }, - { - "description": "Custom scheme: Single letter", - "data": "x:something", - "valid": true - }, - { - "description": "Custom scheme: With plus", - "data": "custom+scheme:data", - "valid": true - }, - { - "description": "Custom scheme: With dot", - "data": "custom.scheme:data", - "valid": true - }, - { - "description": "Custom scheme: With hyphen", - "data": "custom-scheme:data", - "valid": true - }, - { - "description": "Scheme must start with letter", - "data": "9scheme:data", - "valid": false - }, - { - "description": "Scheme with invalid character underscore", - "data": "custom_scheme:data", - "valid": false - }, - { - "description": "Scheme with invalid character at sign", - "data": "cust@m:data", - "valid": false - }, - { - "description": "Missing scheme", - "data": "//example.com/path", - "valid": false - }, - { - "description": "Missing colon after scheme", - "data": "http//example.com", - "valid": false - }, - { - "description": "Empty scheme", - "data": ":data", - "valid": false - }, - { - "description": "Space in URI", - "data": "http://example.com/path with spaces", - "valid": false - }, - { - "description": "Tab character in URI", - "data": "http://example.com/path\twith\ttabs", - "valid": false - }, - { - "description": "Newline in URI", - "data": "http://example.com/path\nwith\nnewlines", - "valid": false - }, - { - "description": "Invalid percent-encoding (single digit)", - "data": "http://example.com/path%2", - "valid": false - }, - { - "description": "Invalid percent-encoding (non-hex)", - "data": "http://example.com/path%GG", - "valid": false - }, - { - "description": "Out-of-range IPv4-like host (a legal reg-name for a generic URI)", - "data": "http://256.256.256.256/", - "valid": true - }, - { - "description": "IPv6 without brackets in URL", - "data": "http://2001:db8::1/", - "valid": false - }, - { - "description": "Empty port in URL", - "data": "http://example.com:/", - "valid": true - }, - { - "description": "Empty host with port (grammatically legal for a generic URI)", - "data": "http://:8080/", - "valid": true - }, - { - "description": "Relative path (not absolute)", - "data": "path/to/resource", - "valid": false - }, - { - "description": "Network-path reference (not absolute)", - "data": "//example.com/path", - "valid": false - }, - { - "description": "Query only (not absolute)", - "data": "?query=value", - "valid": false - }, - { - "description": "Fragment only (not absolute)", - "data": "#fragment", - "valid": false - }, - { - "description": "Scheme with only hierarchical part", - "data": "scheme://", - "valid": true - }, - { - "description": "Scheme with empty path", - "data": "scheme:", - "valid": true - }, - { - "description": "Complex URI with all components", - "data": "scheme://user:pass@host.com:8080/path?query=value#fragment", - "valid": true - }, - { - "description": "URI with encoded reserved characters", - "data": "http://example.com/%2F%3F%23%5B%5D%40", - "valid": true - }, - { - "description": "URI with unreserved characters", - "data": "http://example.com/ABCabc123-._~", - "valid": true - }, - { - "description": "URI with sub-delims in path", - "data": "http://example.com/!$&'()*+,;=", - "valid": true - }, - { - "description": "Minimum valid absolute URI", - "data": "a:", - "valid": true - }, - { - "description": "Scheme with 63 characters (valid)", - "data": "abcdefghijklmnopqrstuvwxyz0123456789.plus-minus.dots.hyphens01:data", - "valid": true - }, - { - "description": "Space in a non-URL absolute URI", - "data": "mailto:hello world", - "valid": false - }, - { - "description": "Malformed percent-encoding in a non-URL absolute URI", - "data": "tel:%ZZ", - "valid": false - } - ] -} diff --git a/test/ietf/uri/3986/url/v1.test.json b/test/ietf/uri/3986/url/v1.test.json deleted file mode 100644 index ee85a5e7..00000000 --- a/test/ietf/uri/3986/url/v1.test.json +++ /dev/null @@ -1,320 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/uri/3986/url/v1.json", - "tests": [ - { - "description": "Invalid type", - "data": 123, - "valid": false - }, - { - "description": "Simple HTTP URL", - "data": "http://example.com", - "valid": true - }, - { - "description": "HTTPS with path", - "data": "https://example.com/path/to/resource", - "valid": true - }, - { - "description": "FTP with userinfo and port", - "data": "ftp://user:pass@example.com:21/resource", - "valid": true - }, - { - "description": "URN is valid absolute URI", - "data": "urn:isbn:0451450523", - "valid": false - }, - { - "description": "Custom scheme with plus sign", - "data": "my+scheme://host/resource", - "valid": true - }, - { - "description": "Custom scheme with dot and dash", - "data": "a.b-c://example.org/", - "valid": true - }, - { - "description": "Scheme must start with a letter", - "data": "1abc://example.com", - "valid": false - }, - { - "description": "Scheme with invalid character", - "data": "te@st://example.com", - "valid": false - }, - { - "description": "Authority with IPv4", - "data": "http://192.168.1.1/", - "valid": true - }, - { - "description": "Authority with IPv4-like reg-name (first-match-wins makes it a valid reg-name)", - "data": "http://256.256.256.256/", - "valid": true - }, - { - "description": "Authority with IPv6", - "data": "http://[2001:db8::1]/", - "valid": true - }, - { - "description": "Authority with IPv6 and port", - "data": "http://[2001:db8::1]:8080/", - "valid": true - }, - { - "description": "IPv6 without brackets", - "data": "http://2001:db8::1/", - "valid": false - }, - { - "description": "Authority with reg-name and port", - "data": "http://example.com:8080/", - "valid": true - }, - { - "description": "URI with empty port", - "data": "http://example.com:/path", - "valid": true - }, - { - "description": "Authority with userinfo", - "data": "http://user@example.com/", - "valid": true - }, - { - "description": "Authority with userinfo and password", - "data": "http://user:pass@example.com/", - "valid": true - }, - { - "description": "Authority with empty userinfo", - "data": "http://@example.com/", - "valid": true - }, - { - "description": "Authority with empty host (allowed by RFC 3986 for generic URIs)", - "data": "http://:80/", - "valid": true - }, - { - "description": "Path with multiple segments", - "data": "http://example.com/a/b/c", - "valid": true - }, - { - "description": "Path with percent-encoded reserved characters", - "data": "http://example.com/a%20b%2Fc", - "valid": true - }, - { - "description": "Percent-encoding with invalid hex", - "data": "http://example.com/a%ZZb", - "valid": false - }, - { - "description": "Query component", - "data": "http://example.com/path?query=value&other=123", - "valid": true - }, - { - "description": "Fragment component", - "data": "http://example.com/path#fragment", - "valid": true - }, - { - "description": "Query and fragment together", - "data": "http://example.com/path?query=yes#frag", - "valid": true - }, - { - "description": "Empty path allowed", - "data": "http://example.com", - "valid": true - }, - { - "description": "Absolute path without authority", - "data": "mailto:user@example.com", - "valid": false - }, - { - "description": "Scheme without hierarchical part (URN)", - "data": "news:comp.infosystems.www.servers.unix", - "valid": false - }, - { - "description": "Invalid characters in host", - "data": "http://exa mple.com/", - "valid": false - }, - { - "description": "Host with uppercase letters", - "data": "http://EXAMPLE.com/", - "valid": true - }, - { - "description": "Scheme case insensitive", - "data": "HTTP://example.com/", - "valid": true - }, - { - "description": "Fragment with percent-encoding", - "data": "http://example.com/#frag%20ment", - "valid": true - }, - { - "description": "Path with unencoded space (invalid)", - "data": "http://example.com/a b", - "valid": false - }, - { - "description": "Minimal valid URL with only scheme and path", - "data": "foo:/bar", - "valid": true - }, - { - "description": "Missing scheme", - "data": "//example.com/path", - "valid": false - }, - { - "description": "Path-only URI (relative, not absolute)", - "data": "/relative/path", - "valid": false - }, - { - "description": "File URI with empty authority (three slashes)", - "data": "file:///home/user/document.pdf", - "valid": true - }, - { - "description": "File URI with empty authority and Windows path", - "data": "file:///C:/Users/document.pdf", - "valid": true - }, - { - "description": "File URI with localhost authority", - "data": "file://localhost/home/user/document.pdf", - "valid": true - }, - { - "description": "File URI with host", - "data": "file://server.example.com/share/document.pdf", - "valid": true - }, - { - "description": "URI with empty authority", - "data": "scheme://", - "valid": true - }, - { - "description": "URI with empty authority and path", - "data": "scheme:///path", - "valid": true - }, - { - "description": "Fragment without path", - "data": "http://example.com#fragment", - "valid": true - }, - { - "description": "Query without path", - "data": "http://example.com?query=value", - "valid": true - }, - { - "description": "Query and fragment without path", - "data": "http://example.com?query=value#fragment", - "valid": true - }, - { - "description": "Empty fragment without path", - "data": "http://example.com#", - "valid": true - }, - { - "description": "Empty query without path", - "data": "http://example.com?", - "valid": true - }, - { - "description": "Multiple query parameters without path", - "data": "http://example.com?a=1&b=2&c=3", - "valid": true - }, - { - "description": "Query with percent-encoding without path", - "data": "http://example.com?key=value%20here", - "valid": true - }, - { - "description": "Complex query without path", - "data": "http://example.com?a=b&c=%2Fd%2Fe", - "valid": true - }, - { - "description": "Fragment with special characters without path", - "data": "http://example.com#section-1.2", - "valid": true - }, - { - "description": "IPv4 with fragment without path", - "data": "http://192.168.1.1#anchor", - "valid": true - }, - { - "description": "IPv4 with query without path", - "data": "http://192.168.1.1?param=value", - "valid": true - }, - { - "description": "IPv6 with fragment without path", - "data": "http://[2001:db8::1]#section", - "valid": true - }, - { - "description": "IPv6 with query without path", - "data": "http://[2001:db8::1]?key=val", - "valid": true - }, - { - "description": "Port with fragment without path", - "data": "http://example.com:8080#top", - "valid": true - }, - { - "description": "Port with query without path", - "data": "http://example.com:8080?search=term", - "valid": true - }, - { - "description": "Userinfo with fragment without path", - "data": "http://user@example.com#section", - "valid": true - }, - { - "description": "Userinfo with query without path", - "data": "http://user@example.com?q=test", - "valid": true - }, - { - "description": "Complex authority with query without path", - "data": "http://user:pass@example.com:8080?param=value", - "valid": true - }, - { - "description": "Complex authority with fragment without path", - "data": "http://user:pass@example.com:8080#anchor", - "valid": true - }, - { - "description": "Complex authority with query and fragment without path", - "data": "http://user:pass@example.com:8080?q=1#top", - "valid": true - } - ] -} diff --git a/test/ietf/urn/8141/urn/v1.test.json b/test/ietf/urn/8141/urn/v1.test.json deleted file mode 100644 index e386a193..00000000 --- a/test/ietf/urn/8141/urn/v1.test.json +++ /dev/null @@ -1,215 +0,0 @@ -{ - "target": "../../../../../schemas/ietf/urn/8141/urn/v1.json", - "tests": [ - { - "description": "Invalid type (non-string)", - "data": 1, - "valid": false - }, - { - "description": "Missing URN scheme prefix", - "data": "example:foo", - "valid": false - }, - { - "description": "Wrong URI scheme (not urn)", - "data": "mailto:123", - "valid": false - }, - { - "description": "URN scheme uppercase (case-insensitive)", - "data": "URN:example:foo", - "valid": true - }, - { - "description": "Mixed-case URN scheme and NID", - "data": "UrN:ExAmPlE:nSs", - "valid": true - }, - { - "description": "Single-character NID (RFC 8141 requires at least two characters)", - "data": "urn:a:b", - "valid": false - }, - { - "description": "Numeric NID (all digits)", - "data": "urn:12345:abcde", - "valid": true - }, - { - "description": "NID with digit and hyphen", - "data": "urn:1-234:foo", - "valid": true - }, - { - "description": "NID with uppercase letters", - "data": "urn:IsBn:2000", - "valid": true - }, - { - "description": "NID starting with hyphen (disallowed)", - "data": "urn:-nid:foo", - "valid": false - }, - { - "description": "NID ending with hyphen (disallowed)", - "data": "urn:nid-:foo", - "valid": false - }, - { - "description": "NID with invalid character (underscore)", - "data": "urn:bad_nid:foo", - "valid": false - }, - { - "description": "NID reserved 'urn' (disallowed)", - "data": "urn:urn:foo", - "valid": false - }, - { - "description": "NID too long (33 characters)", - "data": "urn:123456789012345678901234567890123:abc", - "valid": false - }, - { - "description": "NID at maximum length (32 characters)", - "data": "urn:12345678901234567890123456789012:abc", - "valid": true - }, - { - "description": "Empty NSS (no characters after NID)", - "data": "urn:example:", - "valid": false - }, - { - "description": "NSS with slash (allowed)", - "data": "urn:example:foo/bar", - "valid": true - }, - { - "description": "NSS with underscore (allowed)", - "data": "urn:example:under_score", - "valid": true - }, - { - "description": "NSS with various allowed punctuation characters", - "data": "urn:ex:!*'();:@&=+$,.-", - "valid": true - }, - { - "description": "NSS with tilde (allowed)", - "data": "urn:example:foo~bar", - "valid": true - }, - { - "description": "NSS with valid percent-encoding", - "data": "urn:example:hello%20world", - "valid": true - }, - { - "description": "Percent-encoding with uppercase hex letters", - "data": "urn:example:%3A%41", - "valid": true - }, - { - "description": "NSS with invalid percent-encoding", - "data": "urn:example:bad%2Gcase", - "valid": false - }, - { - "description": "Lone percent sign in NSS (invalid)", - "data": "urn:example:50%off", - "valid": false - }, - { - "description": "Space in NSS not percent-encoded (invalid)", - "data": "urn:example:hello world", - "valid": false - }, - { - "description": "Raw non-ASCII in NSS (invalid)", - "data": "urn:example:niço", - "valid": false - }, - { - "description": "Double colon (empty NID)", - "data": "urn::foo", - "valid": false - }, - { - "description": "Multiple colons in NSS (allowed)", - "data": "urn:example:foo:bar:baz", - "valid": true - }, - { - "description": "Trailing slash in NSS (allowed)", - "data": "urn:example:foo/bar/", - "valid": true - }, - { - "description": "URN with r-component (resolution)", - "data": "urn:example:foo-bar-baz?+CCResolve:cc=uk", - "valid": true - }, - { - "description": "URN with q-component (query)", - "data": "urn:example:foo-bar-baz?=querystring", - "valid": true - }, - { - "description": "URN with fragment", - "data": "urn:example:foo-bar-baz#section", - "valid": true - }, - { - "description": "URN with both r-component and fragment", - "data": "urn:isbn:0451450523?+res:format=pdf#page=10", - "valid": true - }, - { - "description": "URN with multiple resolution parameters", - "data": "urn:example:foo?+res:format=xml&+res:lang=en", - "valid": true - }, - { - "description": "Empty r-component (RFC 8141 requires at least one pchar)", - "data": "urn:example:foo?", - "valid": false - }, - { - "description": "URN with empty fragment", - "data": "urn:example:foo#", - "valid": true - }, - { - "description": "Invalid - NSS cannot start with a slash", - "valid": false, - "data": "urn:example:/foo" - }, - { - "description": "Valid - question mark inside an r-component", - "valid": true, - "data": "urn:example:foo?+a?b" - }, - { - "description": "Invalid - empty r-component", - "valid": false, - "data": "urn:example:foo?+" - }, - { - "description": "Invalid - empty q-component", - "valid": false, - "data": "urn:example:foo?=" - }, - { - "description": "Valid - two character NID", - "valid": true, - "data": "urn:ab:x" - }, - { - "description": "Invalid - thirty-three character NID", - "valid": false, - "data": "urn:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:x" - } - ] -} diff --git a/test/iso/c/2024/bool/v1.test.json b/test/iso/c/2024/bool/v1.test.json deleted file mode 100644 index c4b63159..00000000 --- a/test/iso/c/2024/bool/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../schemas/iso/c/2024/bool/v1.json", - "tests": [ - { - "description": "Valid - 0 (false)", - "data": 0, - "valid": true - }, - { - "description": "Valid - 1 (true)", - "data": 1, - "valid": true - }, - { - "description": "Invalid - 2", - "data": 2, - "valid": false - }, - { - "description": "Invalid - negative number", - "data": -1, - "valid": false - }, - { - "description": "Invalid - large positive number", - "data": 100, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "true", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Invalid type - float", - "data": 0.5, - "valid": false - } - ] -} diff --git a/test/iso/c/2024/double/v1.test.json b/test/iso/c/2024/double/v1.test.json deleted file mode 100644 index 08510c02..00000000 --- a/test/iso/c/2024/double/v1.test.json +++ /dev/null @@ -1,115 +0,0 @@ -{ - "target": "../../../../../schemas/iso/c/2024/double/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0.0, - "valid": true - }, - { - "description": "Valid - positive value", - "data": 1.5, - "valid": true - }, - { - "description": "Valid - negative value", - "data": -3.14159, - "valid": true - }, - { - "description": "Valid - scientific notation", - "data": 299800000.0, - "valid": true - }, - { - "description": "Valid - maximum value", - "data": 1.797693134862315708145274237317043567980705675258449965989174768031572607800285387605895586327668781715404589535143824642343213268894641827684675467035375169860499105765512820762454900903893289440758685084551339423045832369032229481658085593321233482747978262041447231687381771809192998812504040261841248583680e+308, - "valid": true - }, - { - "description": "Valid - minimum value", - "data": -1.797693134862315708145274237317043567980705675258449965989174768031572607800285387605895586327668781715404589535143824642343213268894641827684675467035375169860499105765512820762454900903893289440758685084551339423045832369032229481658085593321233482747978262041447231687381771809192998812504040261841248583680e+308, - "valid": true - }, - { - "description": "Valid - special value NAN", - "data": "NAN", - "valid": true - }, - { - "description": "Valid - special value INFINITY", - "data": "INFINITY", - "valid": true - }, - { - "description": "Valid - special value -INFINITY", - "data": "-INFINITY", - "valid": true - }, - { - "description": "Invalid - string with wrong case", - "data": "nan", - "valid": false - }, - { - "description": "Invalid - string with wrong case", - "data": "infinity", - "valid": false - }, - { - "description": "Invalid - JavaScript style", - "data": "Infinity", - "valid": false - }, - { - "description": "Invalid - wrong special value string", - "data": "inf", - "valid": false - }, - { - "description": "Invalid - numeric string", - "data": "1.5", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - integer value", - "data": 42, - "valid": true - }, - { - "description": "Valid - negative integer value", - "data": -100, - "valid": true - }, - { - "description": "Valid - large value within range", - "data": 1.00000000000000001590289110975991804683608085639452813897813275577478387721703810608134699858568151040e+100, - "valid": true - }, - { - "description": "Valid - small negative value within range", - "data": -1.00000000000000001590289110975991804683608085639452813897813275577478387721703810608134699858568151040e+100, - "valid": true - } - ] -} diff --git a/test/iso/c/2024/float-special/v1.test.json b/test/iso/c/2024/float-special/v1.test.json deleted file mode 100644 index 3467230f..00000000 --- a/test/iso/c/2024/float-special/v1.test.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "target": "../../../../../schemas/iso/c/2024/float-special/v1.json", - "tests": [ - { - "description": "Valid - NAN", - "data": "NAN", - "valid": true - }, - { - "description": "Valid - INFINITY", - "data": "INFINITY", - "valid": true - }, - { - "description": "Valid - -INFINITY", - "data": "-INFINITY", - "valid": true - }, - { - "description": "Invalid - lowercase nan", - "data": "nan", - "valid": false - }, - { - "description": "Invalid - lowercase infinity", - "data": "infinity", - "valid": false - }, - { - "description": "Invalid - JavaScript style Infinity", - "data": "Infinity", - "valid": false - }, - { - "description": "Invalid - wrong special value string", - "data": "inf", - "valid": false - }, - { - "description": "Invalid - abbreviation INF", - "data": "INF", - "valid": false - }, - { - "description": "Invalid - arbitrary string", - "data": "not-a-number", - "valid": false - }, - { - "description": "Invalid type - number zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid type - floating point number", - "data": 1.5, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/iso/c/2024/float/v1.test.json b/test/iso/c/2024/float/v1.test.json deleted file mode 100644 index eaec1cdb..00000000 --- a/test/iso/c/2024/float/v1.test.json +++ /dev/null @@ -1,120 +0,0 @@ -{ - "target": "../../../../../schemas/iso/c/2024/float/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0.0, - "valid": true - }, - { - "description": "Valid - positive value", - "data": 1.5, - "valid": true - }, - { - "description": "Valid - negative value", - "data": -3.14, - "valid": true - }, - { - "description": "Valid - maximum value", - "data": 3.402823466385288598117041834845169254400e+38, - "valid": true - }, - { - "description": "Valid - minimum value", - "data": -3.402823466385288598117041834845169254400e+38, - "valid": true - }, - { - "description": "Valid - special value NAN", - "data": "NAN", - "valid": true - }, - { - "description": "Valid - special value INFINITY", - "data": "INFINITY", - "valid": true - }, - { - "description": "Valid - special value -INFINITY", - "data": "-INFINITY", - "valid": true - }, - { - "description": "Invalid - above maximum", - "data": 3.500000000000000015655673478354095308800e+38, - "valid": false - }, - { - "description": "Invalid - below minimum", - "data": -3.500000000000000015655673478354095308800e+38, - "valid": false - }, - { - "description": "Invalid - far above maximum", - "data": 1.00000000000000001590289110975991804683608085639452813897813275577478387721703810608134699858568151040e+100, - "valid": false - }, - { - "description": "Invalid - far below minimum", - "data": -1.00000000000000001590289110975991804683608085639452813897813275577478387721703810608134699858568151040e+100, - "valid": false - }, - { - "description": "Invalid - string with wrong case", - "data": "nan", - "valid": false - }, - { - "description": "Invalid - string with wrong case", - "data": "infinity", - "valid": false - }, - { - "description": "Invalid - JavaScript style", - "data": "Infinity", - "valid": false - }, - { - "description": "Invalid - wrong special value string", - "data": "inf", - "valid": false - }, - { - "description": "Invalid - numeric string", - "data": "1.5", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - integer value", - "data": 42, - "valid": true - }, - { - "description": "Valid - negative integer value", - "data": -100, - "valid": true - } - ] -} diff --git a/test/iso/c/2024/int16/v1.test.json b/test/iso/c/2024/int16/v1.test.json deleted file mode 100644 index 3a5a078e..00000000 --- a/test/iso/c/2024/int16/v1.test.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "target": "../../../../../schemas/iso/c/2024/int16/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - minimum value", - "data": -32768, - "valid": true - }, - { - "description": "Valid - maximum value", - "data": 32767, - "valid": true - }, - { - "description": "Valid - positive value", - "data": 1000, - "valid": true - }, - { - "description": "Valid - negative value", - "data": -1000, - "valid": true - }, - { - "description": "Invalid - below minimum", - "data": -32769, - "valid": false - }, - { - "description": "Invalid - above maximum", - "data": 32768, - "valid": false - }, - { - "description": "Invalid - large positive value", - "data": 100000, - "valid": false - }, - { - "description": "Invalid - large negative value", - "data": -100000, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "1000", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Invalid type - float", - "data": 100.5, - "valid": false - } - ] -} diff --git a/test/iso/c/2024/int32/v1.test.json b/test/iso/c/2024/int32/v1.test.json deleted file mode 100644 index 67f1873c..00000000 --- a/test/iso/c/2024/int32/v1.test.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "target": "../../../../../schemas/iso/c/2024/int32/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - minimum value", - "data": -2147483648, - "valid": true - }, - { - "description": "Valid - maximum value", - "data": 2147483647, - "valid": true - }, - { - "description": "Valid - positive value", - "data": 42, - "valid": true - }, - { - "description": "Valid - negative value", - "data": -999, - "valid": true - }, - { - "description": "Invalid - below minimum", - "data": -2147483649, - "valid": false - }, - { - "description": "Invalid - above maximum", - "data": 2147483648, - "valid": false - }, - { - "description": "Invalid - large positive value", - "data": 10000000000, - "valid": false - }, - { - "description": "Invalid - large negative value", - "data": -10000000000, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "42", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Invalid type - float", - "data": 42.5, - "valid": false - } - ] -} diff --git a/test/iso/c/2024/int64/v1.test.json b/test/iso/c/2024/int64/v1.test.json deleted file mode 100644 index 411ed343..00000000 --- a/test/iso/c/2024/int64/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../schemas/iso/c/2024/int64/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - minimum value", - "data": -9223372036854775808, - "valid": true - }, - { - "description": "Valid - maximum value", - "data": 9223372036854775807, - "valid": true - }, - { - "description": "Valid - positive value", - "data": 1000000000, - "valid": true - }, - { - "description": "Valid - negative value", - "data": -1000000000, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "1000000000", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Invalid type - float", - "data": 1000.5, - "valid": false - } - ] -} diff --git a/test/iso/c/2024/int8/v1.test.json b/test/iso/c/2024/int8/v1.test.json deleted file mode 100644 index 6bbe4cb1..00000000 --- a/test/iso/c/2024/int8/v1.test.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "target": "../../../../../schemas/iso/c/2024/int8/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - minimum value", - "data": -128, - "valid": true - }, - { - "description": "Valid - maximum value", - "data": 127, - "valid": true - }, - { - "description": "Valid - positive value", - "data": 42, - "valid": true - }, - { - "description": "Valid - negative value", - "data": -99, - "valid": true - }, - { - "description": "Invalid - below minimum", - "data": -129, - "valid": false - }, - { - "description": "Invalid - above maximum", - "data": 128, - "valid": false - }, - { - "description": "Invalid - large positive value", - "data": 1000, - "valid": false - }, - { - "description": "Invalid - large negative value", - "data": -1000, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "42", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Invalid type - float", - "data": 1.5, - "valid": false - } - ] -} diff --git a/test/iso/c/2024/uint16/v1.test.json b/test/iso/c/2024/uint16/v1.test.json deleted file mode 100644 index a2945c77..00000000 --- a/test/iso/c/2024/uint16/v1.test.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "target": "../../../../../schemas/iso/c/2024/uint16/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - minimum value", - "data": 0, - "valid": true - }, - { - "description": "Valid - maximum value", - "data": 65535, - "valid": true - }, - { - "description": "Valid - mid-range value", - "data": 32768, - "valid": true - }, - { - "description": "Valid - positive value", - "data": 1000, - "valid": true - }, - { - "description": "Invalid - negative value", - "data": -1, - "valid": false - }, - { - "description": "Invalid - above maximum", - "data": 65536, - "valid": false - }, - { - "description": "Invalid - large positive value", - "data": 100000, - "valid": false - }, - { - "description": "Invalid - large negative value", - "data": -1000, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "1000", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Invalid type - float", - "data": 100.5, - "valid": false - } - ] -} diff --git a/test/iso/c/2024/uint32/v1.test.json b/test/iso/c/2024/uint32/v1.test.json deleted file mode 100644 index 26b16425..00000000 --- a/test/iso/c/2024/uint32/v1.test.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "target": "../../../../../schemas/iso/c/2024/uint32/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - minimum value", - "data": 0, - "valid": true - }, - { - "description": "Valid - maximum value", - "data": 4294967295, - "valid": true - }, - { - "description": "Valid - mid-range value", - "data": 2147483648, - "valid": true - }, - { - "description": "Valid - positive value", - "data": 42, - "valid": true - }, - { - "description": "Invalid - negative value", - "data": -1, - "valid": false - }, - { - "description": "Invalid - above maximum", - "data": 4294967296, - "valid": false - }, - { - "description": "Invalid - large positive value", - "data": 10000000000, - "valid": false - }, - { - "description": "Invalid - large negative value", - "data": -1000, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "42", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Invalid type - float", - "data": 42.5, - "valid": false - } - ] -} diff --git a/test/iso/c/2024/uint64/v1.test.json b/test/iso/c/2024/uint64/v1.test.json deleted file mode 100644 index d0d08b46..00000000 --- a/test/iso/c/2024/uint64/v1.test.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "target": "../../../../../schemas/iso/c/2024/uint64/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - minimum value", - "data": 0, - "valid": true - }, - { - "description": "Valid - maximum value", - "data": 1.8446744073709551615e+19, - "valid": true - }, - { - "description": "Valid - mid-range value", - "data": 9.223372036854775808e+18, - "valid": true - }, - { - "description": "Valid - positive value", - "data": 42, - "valid": true - }, - { - "description": "Valid - large value", - "data": 1.0000000000000000000e+19, - "valid": true - }, - { - "description": "Invalid - negative value", - "data": -1, - "valid": false - }, - { - "description": "Invalid - above maximum", - "data": 1.8446744073709551616e+19, - "valid": false - }, - { - "description": "Invalid - large above maximum", - "data": 2.0000000000000000000e+19, - "valid": false - }, - { - "description": "Invalid - large negative value", - "data": -1000, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "42", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Invalid type - float", - "data": 42.5, - "valid": false - } - ] -} diff --git a/test/iso/c/2024/uint8/v1.test.json b/test/iso/c/2024/uint8/v1.test.json deleted file mode 100644 index d117edb7..00000000 --- a/test/iso/c/2024/uint8/v1.test.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "target": "../../../../../schemas/iso/c/2024/uint8/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - minimum value", - "data": 0, - "valid": true - }, - { - "description": "Valid - maximum value", - "data": 255, - "valid": true - }, - { - "description": "Valid - mid-range value", - "data": 128, - "valid": true - }, - { - "description": "Valid - positive value", - "data": 42, - "valid": true - }, - { - "description": "Invalid - negative value", - "data": -1, - "valid": false - }, - { - "description": "Invalid - above maximum", - "data": 256, - "valid": false - }, - { - "description": "Invalid - large positive value", - "data": 1000, - "valid": false - }, - { - "description": "Invalid - large negative value", - "data": -100, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "42", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Invalid type - float", - "data": 1.5, - "valid": false - } - ] -} diff --git a/test/iso/coordinate/2022/altitude/v1.test.json b/test/iso/coordinate/2022/altitude/v1.test.json deleted file mode 100644 index 026a7bab..00000000 --- a/test/iso/coordinate/2022/altitude/v1.test.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "target": "../../../../../schemas/iso/coordinate/2022/altitude/v1.json", - "tests": [ - { - "description": "Valid - sea level", - "data": 0, - "valid": true - }, - { - "description": "Valid - Mount Everest summit", - "data": 8848.86, - "valid": true - }, - { - "description": "Valid - Mariana Trench", - "data": -10994, - "valid": true - }, - { - "description": "Valid - positive integer", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -50.5, - "valid": true - }, - { - "description": "Valid - very high altitude", - "data": 100000, - "valid": true - }, - { - "description": "Valid - very deep", - "data": -100000, - "valid": true - }, - { - "description": "Invalid type - string", - "data": "100", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/iso/coordinate/2022/latitude/v1.test.json b/test/iso/coordinate/2022/latitude/v1.test.json deleted file mode 100644 index bc4c7d35..00000000 --- a/test/iso/coordinate/2022/latitude/v1.test.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "target": "../../../../../schemas/iso/coordinate/2022/latitude/v1.json", - "tests": [ - { - "description": "Valid - equator", - "data": 0, - "valid": true - }, - { - "description": "Valid - north pole", - "data": 90, - "valid": true - }, - { - "description": "Valid - south pole", - "data": -90, - "valid": true - }, - { - "description": "Valid - positive decimal", - "data": 37.7749, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -33.8688, - "valid": true - }, - { - "description": "Invalid - above north pole", - "data": 90.1, - "valid": false - }, - { - "description": "Invalid - below south pole", - "data": -90.1, - "valid": false - }, - { - "description": "Invalid - way above range", - "data": 180, - "valid": false - }, - { - "description": "Invalid - way below range", - "data": -180, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "37.7749", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/iso/coordinate/2022/longitude/v1.test.json b/test/iso/coordinate/2022/longitude/v1.test.json deleted file mode 100644 index ffc55a55..00000000 --- a/test/iso/coordinate/2022/longitude/v1.test.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "target": "../../../../../schemas/iso/coordinate/2022/longitude/v1.json", - "tests": [ - { - "description": "Valid - prime meridian", - "data": 0, - "valid": true - }, - { - "description": "Valid - antimeridian east", - "data": 180, - "valid": true - }, - { - "description": "Valid - antimeridian west", - "data": -180, - "valid": true - }, - { - "description": "Valid - positive decimal", - "data": 151.209, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -122.419, - "valid": true - }, - { - "description": "Invalid - above east limit", - "data": 180.1, - "valid": false - }, - { - "description": "Invalid - below west limit", - "data": -180.1, - "valid": false - }, - { - "description": "Invalid - way above range", - "data": 360, - "valid": false - }, - { - "description": "Invalid - way below range", - "data": -360, - "valid": false - }, - { - "description": "Invalid type - string", - "data": "-122.419", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - } - ] -} diff --git a/test/iso/country/2020/alpha-2/v1.test.json b/test/iso/country/2020/alpha-2/v1.test.json deleted file mode 100644 index 9688584e..00000000 --- a/test/iso/country/2020/alpha-2/v1.test.json +++ /dev/null @@ -1,120 +0,0 @@ -{ - "target": "../../../../../schemas/iso/country/2020/alpha-2/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 840, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - United States", - "data": "US", - "valid": true - }, - { - "description": "Valid - United Kingdom", - "data": "GB", - "valid": true - }, - { - "description": "Valid - France", - "data": "FR", - "valid": true - }, - { - "description": "Valid - Germany", - "data": "DE", - "valid": true - }, - { - "description": "Valid - Japan", - "data": "JP", - "valid": true - }, - { - "description": "Valid - Canada", - "data": "CA", - "valid": true - }, - { - "description": "Valid - Australia", - "data": "AU", - "valid": true - }, - { - "description": "Valid - China", - "data": "CN", - "valid": true - }, - { - "description": "Valid - India", - "data": "IN", - "valid": true - }, - { - "description": "Invalid - lowercase", - "data": "us", - "valid": false - }, - { - "description": "Invalid - mixed case", - "data": "Us", - "valid": false - }, - { - "description": "Invalid - too short", - "data": "U", - "valid": false - }, - { - "description": "Invalid - too long", - "data": "USA", - "valid": false - }, - { - "description": "Invalid - non-existent code", - "data": "XX", - "valid": false - }, - { - "description": "Invalid - contains numbers", - "data": "U1", - "valid": false - }, - { - "description": "Invalid - contains special characters", - "data": "U$", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - spaces", - "data": "U S", - "valid": false - } - ] -} diff --git a/test/iso/country/2020/alpha-3/v1.test.json b/test/iso/country/2020/alpha-3/v1.test.json deleted file mode 100644 index f622b790..00000000 --- a/test/iso/country/2020/alpha-3/v1.test.json +++ /dev/null @@ -1,120 +0,0 @@ -{ - "target": "../../../../../schemas/iso/country/2020/alpha-3/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 840, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - United States", - "data": "USA", - "valid": true - }, - { - "description": "Valid - United Kingdom", - "data": "GBR", - "valid": true - }, - { - "description": "Valid - France", - "data": "FRA", - "valid": true - }, - { - "description": "Valid - Germany", - "data": "DEU", - "valid": true - }, - { - "description": "Valid - Japan", - "data": "JPN", - "valid": true - }, - { - "description": "Valid - Canada", - "data": "CAN", - "valid": true - }, - { - "description": "Valid - Australia", - "data": "AUS", - "valid": true - }, - { - "description": "Valid - China", - "data": "CHN", - "valid": true - }, - { - "description": "Valid - India", - "data": "IND", - "valid": true - }, - { - "description": "Invalid - lowercase", - "data": "usa", - "valid": false - }, - { - "description": "Invalid - mixed case", - "data": "UsA", - "valid": false - }, - { - "description": "Invalid - too short", - "data": "US", - "valid": false - }, - { - "description": "Invalid - too long", - "data": "USAA", - "valid": false - }, - { - "description": "Invalid - non-existent code", - "data": "XXX", - "valid": false - }, - { - "description": "Invalid - contains numbers", - "data": "US1", - "valid": false - }, - { - "description": "Invalid - contains special characters", - "data": "US$", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - spaces", - "data": "U S A", - "valid": false - } - ] -} diff --git a/test/iso/country/2020/alpha-all/v1.test.json b/test/iso/country/2020/alpha-all/v1.test.json deleted file mode 100644 index d3e9426c..00000000 --- a/test/iso/country/2020/alpha-all/v1.test.json +++ /dev/null @@ -1,135 +0,0 @@ -{ - "target": "../../../../../schemas/iso/country/2020/alpha-all/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 840, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - United States (alpha-2)", - "data": "US", - "valid": true - }, - { - "description": "Valid - United States (alpha-3)", - "data": "USA", - "valid": true - }, - { - "description": "Valid - United Kingdom (alpha-2)", - "data": "GB", - "valid": true - }, - { - "description": "Valid - United Kingdom (alpha-3)", - "data": "GBR", - "valid": true - }, - { - "description": "Valid - France (alpha-2)", - "data": "FR", - "valid": true - }, - { - "description": "Valid - France (alpha-3)", - "data": "FRA", - "valid": true - }, - { - "description": "Valid - Germany (alpha-2)", - "data": "DE", - "valid": true - }, - { - "description": "Valid - Germany (alpha-3)", - "data": "DEU", - "valid": true - }, - { - "description": "Valid - Japan (alpha-2)", - "data": "JP", - "valid": true - }, - { - "description": "Valid - Japan (alpha-3)", - "data": "JPN", - "valid": true - }, - { - "description": "Invalid - lowercase alpha-2", - "data": "us", - "valid": false - }, - { - "description": "Invalid - lowercase alpha-3", - "data": "usa", - "valid": false - }, - { - "description": "Invalid - mixed case alpha-2", - "data": "Us", - "valid": false - }, - { - "description": "Invalid - mixed case alpha-3", - "data": "UsA", - "valid": false - }, - { - "description": "Invalid - too short", - "data": "U", - "valid": false - }, - { - "description": "Invalid - too long", - "data": "USAA", - "valid": false - }, - { - "description": "Invalid - non-existent alpha-2", - "data": "XX", - "valid": false - }, - { - "description": "Invalid - non-existent alpha-3", - "data": "XXX", - "valid": false - }, - { - "description": "Invalid - contains numbers", - "data": "US1", - "valid": false - }, - { - "description": "Invalid - contains special characters", - "data": "US$", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - } - ] -} diff --git a/test/iso/country/2020/numeric/v1.test.json b/test/iso/country/2020/numeric/v1.test.json deleted file mode 100644 index 2bb96059..00000000 --- a/test/iso/country/2020/numeric/v1.test.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "target": "../../../../../schemas/iso/country/2020/numeric/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "840", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - United States (840)", - "data": 840, - "valid": true - }, - { - "description": "Valid - United Kingdom (826)", - "data": 826, - "valid": true - }, - { - "description": "Valid - France (250)", - "data": 250, - "valid": true - }, - { - "description": "Valid - Germany (276)", - "data": 276, - "valid": true - }, - { - "description": "Valid - Japan (392)", - "data": 392, - "valid": true - }, - { - "description": "Valid - Canada (124)", - "data": 124, - "valid": true - }, - { - "description": "Valid - Australia (036)", - "data": 36, - "valid": true - }, - { - "description": "Valid - China (156)", - "data": 156, - "valid": true - }, - { - "description": "Valid - India (356)", - "data": 356, - "valid": true - }, - { - "description": "Valid - Afghanistan (004)", - "data": 4, - "valid": true - }, - { - "description": "Invalid - non-existent code", - "data": 999, - "valid": false - }, - { - "description": "Invalid - negative number", - "data": -1, - "valid": false - }, - { - "description": "Invalid - decimal", - "data": 840.5, - "valid": false - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - } - ] -} diff --git a/test/iso/currency/2015/alpha-code/v1.test.json b/test/iso/currency/2015/alpha-code/v1.test.json deleted file mode 100644 index 15e5b044..00000000 --- a/test/iso/currency/2015/alpha-code/v1.test.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "target": "../../../../../schemas/iso/currency/2015/alpha-code/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 840, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - US Dollar", - "data": "USD", - "valid": true - }, - { - "description": "Valid - Euro", - "data": "EUR", - "valid": true - }, - { - "description": "Valid - Japanese Yen", - "data": "JPY", - "valid": true - }, - { - "description": "Valid - British Pound", - "data": "GBP", - "valid": true - }, - { - "description": "Valid - Swiss Franc", - "data": "CHF", - "valid": true - }, - { - "description": "Valid - fund code (Mvdol)", - "data": "BOV", - "valid": true - }, - { - "description": "Valid - fund code (Unidad de Fomento)", - "data": "CLF", - "valid": true - }, - { - "description": "Valid - fund code (Mexican UDI)", - "data": "MXV", - "valid": true - }, - { - "description": "Valid - fund code (WIR Euro)", - "data": "CHE", - "valid": true - }, - { - "description": "Valid - XXX is a List One member (the no-currency code)", - "data": "XXX", - "valid": true - }, - { - "description": "Invalid - lowercase", - "data": "usd", - "valid": false - }, - { - "description": "Invalid - mixed case", - "data": "UsD", - "valid": false - }, - { - "description": "Invalid - non-existent code", - "data": "XXY", - "valid": false - } - ] -} diff --git a/test/iso/currency/2015/alpha-currency/v1.test.json b/test/iso/currency/2015/alpha-currency/v1.test.json deleted file mode 100644 index 92c49bf0..00000000 --- a/test/iso/currency/2015/alpha-currency/v1.test.json +++ /dev/null @@ -1,140 +0,0 @@ -{ - "target": "../../../../../schemas/iso/currency/2015/alpha-currency/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 840, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - US Dollar", - "data": "USD", - "valid": true - }, - { - "description": "Valid - Euro", - "data": "EUR", - "valid": true - }, - { - "description": "Valid - Japanese Yen", - "data": "JPY", - "valid": true - }, - { - "description": "Valid - British Pound", - "data": "GBP", - "valid": true - }, - { - "description": "Valid - Swiss Franc", - "data": "CHF", - "valid": true - }, - { - "description": "Valid - Canadian Dollar", - "data": "CAD", - "valid": true - }, - { - "description": "Valid - Australian Dollar", - "data": "AUD", - "valid": true - }, - { - "description": "Valid - Chinese Yuan", - "data": "CNY", - "valid": true - }, - { - "description": "Valid - Indian Rupee", - "data": "INR", - "valid": true - }, - { - "description": "Invalid - lowercase", - "data": "usd", - "valid": false - }, - { - "description": "Invalid - mixed case", - "data": "UsD", - "valid": false - }, - { - "description": "Invalid - too short", - "data": "US", - "valid": false - }, - { - "description": "Invalid - too long", - "data": "USDD", - "valid": false - }, - { - "description": "Invalid - non-existent code", - "data": "XXY", - "valid": false - }, - { - "description": "Invalid - contains numbers", - "data": "US1", - "valid": false - }, - { - "description": "Invalid - contains special characters", - "data": "US$", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - spaces", - "data": "U S", - "valid": false - }, - { - "description": "Invalid - fund code (Mvdol)", - "data": "BOV", - "valid": false - }, - { - "description": "Invalid - fund code (Unidad de Fomento)", - "data": "CLF", - "valid": false - }, - { - "description": "Invalid - fund code (Mexican UDI)", - "data": "MXV", - "valid": false - }, - { - "description": "Invalid - fund code (WIR Euro)", - "data": "CHE", - "valid": false - } - ] -} diff --git a/test/iso/currency/2015/alpha-fund/v1.test.json b/test/iso/currency/2015/alpha-fund/v1.test.json deleted file mode 100644 index 6683a80c..00000000 --- a/test/iso/currency/2015/alpha-fund/v1.test.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "target": "../../../../../schemas/iso/currency/2015/alpha-fund/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 840, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - Mvdol (Bolivia)", - "data": "BOV", - "valid": true - }, - { - "description": "Valid - Unidad de Fomento (Chile)", - "data": "CLF", - "valid": true - }, - { - "description": "Valid - WIR Euro (Switzerland)", - "data": "CHE", - "valid": true - }, - { - "description": "Invalid - regular currency (US Dollar)", - "data": "USD", - "valid": false - }, - { - "description": "Invalid - unknown code (XXX)", - "data": "XXX", - "valid": false - }, - { - "description": "Invalid - lowercase", - "data": "bov", - "valid": false - } - ] -} diff --git a/test/iso/currency/2015/alpha-precious-metal/v1.test.json b/test/iso/currency/2015/alpha-precious-metal/v1.test.json deleted file mode 100644 index bad49f50..00000000 --- a/test/iso/currency/2015/alpha-precious-metal/v1.test.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "target": "../../../../../schemas/iso/currency/2015/alpha-precious-metal/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 959, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - Gold", - "data": "XAU", - "valid": true - }, - { - "description": "Valid - Silver", - "data": "XAG", - "valid": true - }, - { - "description": "Valid - Platinum", - "data": "XPT", - "valid": true - }, - { - "description": "Valid - Palladium", - "data": "XPD", - "valid": true - }, - { - "description": "Invalid - Regular currency USD", - "data": "USD", - "valid": false - }, - { - "description": "Invalid - Unknown code XXX", - "data": "XXX", - "valid": false - }, - { - "description": "Invalid - Test code XTS", - "data": "XTS", - "valid": false - } - ] -} diff --git a/test/iso/currency/2015/alpha-test/v1.test.json b/test/iso/currency/2015/alpha-test/v1.test.json deleted file mode 100644 index 04cbba4f..00000000 --- a/test/iso/currency/2015/alpha-test/v1.test.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "target": "../../../../../schemas/iso/currency/2015/alpha-test/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 963, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - XTS (test code)", - "data": "XTS", - "valid": true - }, - { - "description": "Invalid - US Dollar", - "data": "USD", - "valid": false - }, - { - "description": "Invalid - Euro", - "data": "EUR", - "valid": false - }, - { - "description": "Invalid - fund code (Mvdol)", - "data": "BOV", - "valid": false - }, - { - "description": "Invalid - unknown code (XXX)", - "data": "XXX", - "valid": false - }, - { - "description": "Invalid - lowercase xts", - "data": "xts", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - non-existent code", - "data": "XTT", - "valid": false - } - ] -} diff --git a/test/iso/currency/2015/alpha-unknown/v1.test.json b/test/iso/currency/2015/alpha-unknown/v1.test.json deleted file mode 100644 index 16a8b997..00000000 --- a/test/iso/currency/2015/alpha-unknown/v1.test.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "target": "../../../../../schemas/iso/currency/2015/alpha-unknown/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 999, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - XXX (no currency)", - "data": "XXX", - "valid": true - }, - { - "description": "Invalid - US Dollar", - "data": "USD", - "valid": false - }, - { - "description": "Invalid - Euro", - "data": "EUR", - "valid": false - }, - { - "description": "Invalid - fund code (Mvdol)", - "data": "BOV", - "valid": false - }, - { - "description": "Invalid - lowercase xxx", - "data": "xxx", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - non-existent code", - "data": "XXY", - "valid": false - } - ] -} diff --git a/test/iso/currency/2015/historical/alpha-code/v1.test.json b/test/iso/currency/2015/historical/alpha-code/v1.test.json deleted file mode 100644 index a5722404..00000000 --- a/test/iso/currency/2015/historical/alpha-code/v1.test.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/currency/2015/historical/alpha-code/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 840, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - Andorran Peseta", - "data": "ADP", - "valid": true - }, - { - "description": "Valid - Afghani", - "data": "AFA", - "valid": true - }, - { - "description": "Invalid - current currency (USD)", - "data": "USD", - "valid": false - }, - { - "description": "Invalid - current currency (JPY)", - "data": "JPY", - "valid": false - }, - { - "description": "Invalid - lowercase", - "data": "adp", - "valid": false - }, - { - "description": "Invalid - non-existent code", - "data": "XXY", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - } - ] -} diff --git a/test/iso/currency/2015/historical/alpha-currency/v1.test.json b/test/iso/currency/2015/historical/alpha-currency/v1.test.json deleted file mode 100644 index cd30c184..00000000 --- a/test/iso/currency/2015/historical/alpha-currency/v1.test.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/currency/2015/historical/alpha-currency/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 840, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - Andorran Peseta", - "data": "ADP", - "valid": true - }, - { - "description": "Valid - Afghani", - "data": "AFA", - "valid": true - }, - { - "description": "Valid - German Mark", - "data": "DEM", - "valid": true - }, - { - "description": "Valid - French Franc", - "data": "FRF", - "valid": true - }, - { - "description": "Invalid - current currency (USD)", - "data": "USD", - "valid": false - }, - { - "description": "Invalid - current currency (JPY)", - "data": "JPY", - "valid": false - }, - { - "description": "Invalid - lowercase", - "data": "adp", - "valid": false - }, - { - "description": "Invalid - too short", - "data": "AD", - "valid": false - }, - { - "description": "Invalid - too long", - "data": "ADPD", - "valid": false - }, - { - "description": "Invalid - non-existent code", - "data": "XXY", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - } - ] -} diff --git a/test/iso/currency/2015/historical/numeric-code/v1.test.json b/test/iso/currency/2015/historical/numeric-code/v1.test.json deleted file mode 100644 index 79bfce39..00000000 --- a/test/iso/currency/2015/historical/numeric-code/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/currency/2015/historical/numeric-code/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "840", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - Afghani (4)", - "data": 4, - "valid": true - }, - { - "description": "Valid - Lek (8)", - "data": 8, - "valid": true - }, - { - "description": "Invalid - current currency (840 - USD)", - "data": 840, - "valid": false - }, - { - "description": "Invalid - current currency (392 - JPY)", - "data": 392, - "valid": false - }, - { - "description": "Invalid - non-existent code", - "data": 1, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -1, - "valid": false - } - ] -} diff --git a/test/iso/currency/2015/historical/numeric-currency/v1.test.json b/test/iso/currency/2015/historical/numeric-currency/v1.test.json deleted file mode 100644 index c0a36139..00000000 --- a/test/iso/currency/2015/historical/numeric-currency/v1.test.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/currency/2015/historical/numeric-currency/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "840", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - Afghani (4)", - "data": 4, - "valid": true - }, - { - "description": "Valid - Lek (8)", - "data": 8, - "valid": true - }, - { - "description": "Valid - Andorran Peseta (20)", - "data": 20, - "valid": true - }, - { - "description": "Invalid - current currency (840 - USD)", - "data": 840, - "valid": false - }, - { - "description": "Invalid - current currency (392 - JPY)", - "data": 392, - "valid": false - }, - { - "description": "Invalid - non-existent code", - "data": 1, - "valid": false - }, - { - "description": "Invalid - negative", - "data": -1, - "valid": false - }, - { - "description": "Invalid - decimal", - "data": 4.5, - "valid": false - } - ] -} diff --git a/test/iso/currency/2015/numeric-code-additional/v1.test.json b/test/iso/currency/2015/numeric-code-additional/v1.test.json deleted file mode 100644 index 091366ea..00000000 --- a/test/iso/currency/2015/numeric-code-additional/v1.test.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "target": "../../../../../schemas/iso/currency/2015/numeric-code-additional/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "900", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - minimum value 900", - "data": 900, - "valid": true - }, - { - "description": "Valid - middle value 950", - "data": 950, - "valid": true - }, - { - "description": "Valid - maximum value 998", - "data": 998, - "valid": true - }, - { - "description": "Invalid - below minimum (899)", - "data": 899, - "valid": false - }, - { - "description": "Invalid - above maximum (999)", - "data": 999, - "valid": false - }, - { - "description": "Invalid - test code (963)", - "data": 963, - "valid": true - }, - { - "description": "Invalid - precious metal Gold (959)", - "data": 959, - "valid": true - } - ] -} diff --git a/test/iso/currency/2015/numeric-code/v1.test.json b/test/iso/currency/2015/numeric-code/v1.test.json deleted file mode 100644 index 20710257..00000000 --- a/test/iso/currency/2015/numeric-code/v1.test.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "target": "../../../../../schemas/iso/currency/2015/numeric-code/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "840", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - US Dollar (840)", - "data": 840, - "valid": true - }, - { - "description": "Valid - Euro (978)", - "data": 978, - "valid": true - }, - { - "description": "Valid - Japanese Yen (392)", - "data": 392, - "valid": true - }, - { - "description": "Valid - British Pound (826)", - "data": 826, - "valid": true - }, - { - "description": "Valid - Swiss Franc (756)", - "data": 756, - "valid": true - }, - { - "description": "Valid - fund code (984 - Mvdol)", - "data": 984, - "valid": true - }, - { - "description": "Valid - fund code (990 - Unidad de Fomento)", - "data": 990, - "valid": true - }, - { - "description": "Valid - fund code (979 - Mexican UDI)", - "data": 979, - "valid": true - }, - { - "description": "Valid - fund code (947 - WIR Euro)", - "data": 947, - "valid": true - }, - { - "description": "Valid - 999 is a List One member (the no-currency code)", - "data": 999, - "valid": true - }, - { - "description": "Invalid - non-existent code", - "data": 123, - "valid": false - } - ] -} diff --git a/test/iso/currency/2015/numeric-currency/v1.test.json b/test/iso/currency/2015/numeric-currency/v1.test.json deleted file mode 100644 index 983d5659..00000000 --- a/test/iso/currency/2015/numeric-currency/v1.test.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "target": "../../../../../schemas/iso/currency/2015/numeric-currency/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "840", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - US Dollar (840)", - "data": 840, - "valid": true - }, - { - "description": "Valid - Euro (978)", - "data": 978, - "valid": true - }, - { - "description": "Valid - Japanese Yen (392)", - "data": 392, - "valid": true - }, - { - "description": "Valid - British Pound (826)", - "data": 826, - "valid": true - }, - { - "description": "Valid - Swiss Franc (756)", - "data": 756, - "valid": true - }, - { - "description": "Valid - Canadian Dollar (124)", - "data": 124, - "valid": true - }, - { - "description": "Valid - Australian Dollar (36)", - "data": 36, - "valid": true - }, - { - "description": "Valid - Chinese Yuan (156)", - "data": 156, - "valid": true - }, - { - "description": "Valid - Indian Rupee (356)", - "data": 356, - "valid": true - }, - { - "description": "Invalid - non-existent code", - "data": 123, - "valid": false - }, - { - "description": "Invalid - fund code (984 - Mvdol)", - "data": 984, - "valid": false - }, - { - "description": "Invalid - fund code (990 - Unidad de Fomento)", - "data": 990, - "valid": false - }, - { - "description": "Invalid - fund code (979 - Mexican UDI)", - "data": 979, - "valid": false - }, - { - "description": "Invalid - fund code (947 - WIR Euro)", - "data": 947, - "valid": false - } - ] -} diff --git a/test/iso/currency/2015/numeric-fund/v1.test.json b/test/iso/currency/2015/numeric-fund/v1.test.json deleted file mode 100644 index 957c9834..00000000 --- a/test/iso/currency/2015/numeric-fund/v1.test.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "target": "../../../../../schemas/iso/currency/2015/numeric-fund/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "984", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - Mvdol (984 - Bolivia)", - "data": 984, - "valid": true - }, - { - "description": "Valid - Unidad de Fomento (990 - Chile)", - "data": 990, - "valid": true - }, - { - "description": "Valid - WIR Euro (947 - Switzerland)", - "data": 947, - "valid": true - }, - { - "description": "Invalid - regular currency (840 - US Dollar)", - "data": 840, - "valid": false - }, - { - "description": "Invalid - unknown code (999)", - "data": 999, - "valid": false - }, - { - "description": "Invalid - non-existent code", - "data": 123, - "valid": false - } - ] -} diff --git a/test/iso/currency/2015/numeric-precious-metal/v1.test.json b/test/iso/currency/2015/numeric-precious-metal/v1.test.json deleted file mode 100644 index 5b887f60..00000000 --- a/test/iso/currency/2015/numeric-precious-metal/v1.test.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "target": "../../../../../schemas/iso/currency/2015/numeric-precious-metal/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "XAU", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - Gold (959)", - "data": 959, - "valid": true - }, - { - "description": "Valid - Silver (961)", - "data": 961, - "valid": true - }, - { - "description": "Valid - Platinum (962)", - "data": 962, - "valid": true - }, - { - "description": "Valid - Palladium (964)", - "data": 964, - "valid": true - }, - { - "description": "Invalid - Regular currency USD (840)", - "data": 840, - "valid": false - }, - { - "description": "Invalid - Unknown code (999)", - "data": 999, - "valid": false - }, - { - "description": "Invalid - Test code (963)", - "data": 963, - "valid": false - } - ] -} diff --git a/test/iso/currency/2015/numeric-test/v1.test.json b/test/iso/currency/2015/numeric-test/v1.test.json deleted file mode 100644 index a6917eff..00000000 --- a/test/iso/currency/2015/numeric-test/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../schemas/iso/currency/2015/numeric-test/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "963", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 963 (test code)", - "data": 963, - "valid": true - }, - { - "description": "Invalid - US Dollar (840)", - "data": 840, - "valid": false - }, - { - "description": "Invalid - Euro (978)", - "data": 978, - "valid": false - }, - { - "description": "Invalid - fund code (984 - Mvdol)", - "data": 984, - "valid": false - }, - { - "description": "Invalid - unknown code (999)", - "data": 999, - "valid": false - }, - { - "description": "Invalid - non-existent code", - "data": 123, - "valid": false - } - ] -} diff --git a/test/iso/currency/2015/numeric-unknown/v1.test.json b/test/iso/currency/2015/numeric-unknown/v1.test.json deleted file mode 100644 index 1c51e0f6..00000000 --- a/test/iso/currency/2015/numeric-unknown/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../schemas/iso/currency/2015/numeric-unknown/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "999", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 999 (no currency)", - "data": 999, - "valid": true - }, - { - "description": "Invalid - US Dollar (840)", - "data": 840, - "valid": false - }, - { - "description": "Invalid - Euro (978)", - "data": 978, - "valid": false - }, - { - "description": "Invalid - fund code (984 - Mvdol)", - "data": 984, - "valid": false - }, - { - "description": "Invalid - non-existent code", - "data": 123, - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/date/calendar-basic/v1.test.json b/test/iso/datetime/2019/date/calendar-basic/v1.test.json deleted file mode 100644 index 72f6a668..00000000 --- a/test/iso/datetime/2019/date/calendar-basic/v1.test.json +++ /dev/null @@ -1,260 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/date/calendar-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 19850412, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 12 April 1985", - "data": "19850412", - "valid": true - }, - { - "description": "Valid - 1 January 2000", - "data": "20000101", - "valid": true - }, - { - "description": "Valid - 31 December 2023", - "data": "20231231", - "valid": true - }, - { - "description": "Valid - 1 January year 0000", - "data": "00000101", - "valid": true - }, - { - "description": "Valid - 31 December year 9999", - "data": "99991231", - "valid": true - }, - { - "description": "Valid - 29 February 2000 (leap year)", - "data": "20000229", - "valid": true - }, - { - "description": "Valid - 29 February 2004 (leap year)", - "data": "20040229", - "valid": true - }, - { - "description": "Valid - 28 February 2001 (non-leap year)", - "data": "20010228", - "valid": true - }, - { - "description": "Valid - 31 January 2023", - "data": "20230131", - "valid": true - }, - { - "description": "Valid - 30 April 2023", - "data": "20230430", - "valid": true - }, - { - "description": "Valid - 31 May 2023", - "data": "20230531", - "valid": true - }, - { - "description": "Valid - 30 June 2023", - "data": "20230630", - "valid": true - }, - { - "description": "Valid - 31 July 2023", - "data": "20230731", - "valid": true - }, - { - "description": "Valid - 31 August 2023", - "data": "20230831", - "valid": true - }, - { - "description": "Valid - 30 September 2023", - "data": "20230930", - "valid": true - }, - { - "description": "Valid - 31 October 2023", - "data": "20231031", - "valid": true - }, - { - "description": "Valid - 30 November 2023", - "data": "20231130", - "valid": true - }, - { - "description": "Invalid - missing hyphen (extended format)", - "data": "1985-04-12", - "valid": false - }, - { - "description": "Invalid - month 00", - "data": "19850012", - "valid": false - }, - { - "description": "Invalid - month 13", - "data": "19851312", - "valid": false - }, - { - "description": "Invalid - day 00", - "data": "19850400", - "valid": false - }, - { - "description": "Invalid - day 32", - "data": "19850432", - "valid": false - }, - { - "description": "Invalid - too few digits", - "data": "1985041", - "valid": false - }, - { - "description": "Invalid - too many digits", - "data": "198504122", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - spaces in date", - "data": "1985 04 12", - "valid": false - }, - { - "description": "Invalid - letters in year", - "data": "ABCD0412", - "valid": false - }, - { - "description": "Invalid - letters in month", - "data": "1985AB12", - "valid": false - }, - { - "description": "Invalid - letters in day", - "data": "198504AB", - "valid": false - }, - { - "description": "Invalid - negative year (requires expanded format)", - "data": "-0011231", - "valid": false - }, - { - "description": "Invalid - plus sign (requires expanded format)", - "data": "+0011231", - "valid": false - }, - { - "description": "Invalid - 30 February (any year)", - "data": "20230230", - "valid": false - }, - { - "description": "Invalid - 31 February (any year)", - "data": "20230231", - "valid": false - }, - { - "description": "Invalid - 31 April", - "data": "20230431", - "valid": false - }, - { - "description": "Invalid - 31 June", - "data": "20230631", - "valid": false - }, - { - "description": "Invalid - 31 September", - "data": "20230931", - "valid": false - }, - { - "description": "Invalid - 31 November", - "data": "20231131", - "valid": false - }, - { - "description": "Invalid - 32 January", - "data": "20230132", - "valid": false - }, - { - "description": "Invalid - 32 March", - "data": "20230332", - "valid": false - }, - { - "description": "Invalid - 32 May", - "data": "20230532", - "valid": false - }, - { - "description": "Invalid - 32 July", - "data": "20230732", - "valid": false - }, - { - "description": "Invalid - 32 August", - "data": "20230832", - "valid": false - }, - { - "description": "Invalid - 32 October", - "data": "20231032", - "valid": false - }, - { - "description": "Invalid - 32 December", - "data": "20231232", - "valid": false - }, - { - "description": "Valid - 29 February (leap year validation is consumer responsibility)", - "data": "20230229", - "valid": true - }, - { - "description": "Valid - 28 February", - "data": "21000228", - "valid": true - } - ] -} diff --git a/test/iso/datetime/2019/date/calendar-century/v1.test.json b/test/iso/datetime/2019/date/calendar-century/v1.test.json deleted file mode 100644 index c358ea80..00000000 --- a/test/iso/datetime/2019/date/calendar-century/v1.test.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/date/calendar-century/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 19, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - century 19 (20th century)", - "data": "19", - "valid": true - }, - { - "description": "Valid - century 20 (21st century)", - "data": "20", - "valid": true - }, - { - "description": "Valid - century 00", - "data": "00", - "valid": true - }, - { - "description": "Valid - century 99", - "data": "99", - "valid": true - }, - { - "description": "Invalid - single digit", - "data": "1", - "valid": false - }, - { - "description": "Invalid - three digits", - "data": "198", - "valid": false - }, - { - "description": "Invalid - with hyphen", - "data": "19-", - "valid": false - }, - { - "description": "Invalid - negative sign (requires expanded format)", - "data": "-19", - "valid": false - }, - { - "description": "Invalid - plus sign (requires expanded format)", - "data": "+19", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/date/calendar-decade/v1.test.json b/test/iso/datetime/2019/date/calendar-decade/v1.test.json deleted file mode 100644 index 1bbeee4a..00000000 --- a/test/iso/datetime/2019/date/calendar-decade/v1.test.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/date/calendar-decade/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 198, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - decade 198 (1980s)", - "data": "198", - "valid": true - }, - { - "description": "Valid - decade 200 (2000s)", - "data": "200", - "valid": true - }, - { - "description": "Valid - decade 202 (2020s)", - "data": "202", - "valid": true - }, - { - "description": "Valid - decade 000", - "data": "000", - "valid": true - }, - { - "description": "Valid - decade 999", - "data": "999", - "valid": true - }, - { - "description": "Invalid - two digits", - "data": "19", - "valid": false - }, - { - "description": "Invalid - four digits", - "data": "1985", - "valid": false - }, - { - "description": "Invalid - with hyphen", - "data": "198-", - "valid": false - }, - { - "description": "Invalid - negative sign (requires expanded format)", - "data": "-198", - "valid": false - }, - { - "description": "Invalid - plus sign (requires expanded format)", - "data": "+198", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/date/calendar-expanded-basic/v1.test.json b/test/iso/datetime/2019/date/calendar-expanded-basic/v1.test.json deleted file mode 100644 index 379fa7f5..00000000 --- a/test/iso/datetime/2019/date/calendar-expanded-basic/v1.test.json +++ /dev/null @@ -1,150 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/date/calendar-expanded-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 19850412, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - April 12, 1985 with positive sign", - "data": "+0019850412", - "valid": true - }, - { - "description": "Valid - January 1, year 1 BCE with negative sign", - "data": "-0000010101", - "valid": true - }, - { - "description": "Valid - December 31, year 999999 with positive sign", - "data": "+9999991231", - "valid": true - }, - { - "description": "Valid - January 1, year 0 with positive sign", - "data": "+0000000101", - "valid": true - }, - { - "description": "Valid - January 1, year 10000 BCE with negative sign", - "data": "-0100000101", - "valid": true - }, - { - "description": "Valid - February 29, leap year 2000", - "data": "+0020000229", - "valid": true - }, - { - "description": "Invalid - month 00", - "data": "+0019850012", - "valid": false - }, - { - "description": "Invalid - month 13", - "data": "+0019851312", - "valid": false - }, - { - "description": "Invalid - day 00", - "data": "+0019850400", - "valid": false - }, - { - "description": "Invalid - day 32", - "data": "+0019850432", - "valid": false - }, - { - "description": "Invalid - missing sign", - "data": "0019850412", - "valid": false - }, - { - "description": "Invalid - five digit year", - "data": "+001985041", - "valid": false - }, - { - "description": "Invalid - seven digit year", - "data": "+00198504122", - "valid": false - }, - { - "description": "Invalid - extended format (with hyphens)", - "data": "+001985-04-12", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - 30 February (any year)", - "data": "+0020230230", - "valid": false - }, - { - "description": "Invalid - 31 February (any year)", - "data": "+0020230231", - "valid": false - }, - { - "description": "Invalid - 31 April", - "data": "+0020230431", - "valid": false - }, - { - "description": "Invalid - 31 June", - "data": "+0020230631", - "valid": false - }, - { - "description": "Invalid - 31 September", - "data": "+0020230931", - "valid": false - }, - { - "description": "Invalid - 31 November", - "data": "+0020231131", - "valid": false - }, - { - "description": "Valid - 30 April 2023", - "data": "+0020230430", - "valid": true - }, - { - "description": "Valid - 29 February (leap year validation is consumer responsibility)", - "data": "+0024000229", - "valid": true - }, - { - "description": "Valid - 28 February", - "data": "+0021000228", - "valid": true - }, - { - "description": "Invalid - 30 February with negative year", - "data": "-0020230230", - "valid": false - }, - { - "description": "Invalid - 31 April with negative year", - "data": "-0020230431", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/date/calendar-expanded-century/v1.test.json b/test/iso/datetime/2019/date/calendar-expanded-century/v1.test.json deleted file mode 100644 index 57bdea3b..00000000 --- a/test/iso/datetime/2019/date/calendar-expanded-century/v1.test.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/date/calendar-expanded-century/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 19, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - century 19 (20th century) with positive sign", - "data": "+0019", - "valid": true - }, - { - "description": "Valid - century 0 BCE with negative sign", - "data": "-0000", - "valid": true - }, - { - "description": "Valid - century 9999 with positive sign", - "data": "+9999", - "valid": true - }, - { - "description": "Valid - century 0 with positive sign", - "data": "+0000", - "valid": true - }, - { - "description": "Valid - century 100 BCE with negative sign", - "data": "-0100", - "valid": true - }, - { - "description": "Invalid - missing sign", - "data": "0019", - "valid": false - }, - { - "description": "Invalid - three digits", - "data": "+001", - "valid": false - }, - { - "description": "Invalid - five digits", - "data": "+00198", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/date/calendar-expanded-decade/v1.test.json b/test/iso/datetime/2019/date/calendar-expanded-decade/v1.test.json deleted file mode 100644 index f58b8cd9..00000000 --- a/test/iso/datetime/2019/date/calendar-expanded-decade/v1.test.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/date/calendar-expanded-decade/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 198, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - decade 198 (1980s) with positive sign", - "data": "+00198", - "valid": true - }, - { - "description": "Valid - decade 0 BCE with negative sign", - "data": "-00000", - "valid": true - }, - { - "description": "Valid - decade 99999 with positive sign", - "data": "+99999", - "valid": true - }, - { - "description": "Valid - decade 0 with positive sign", - "data": "+00000", - "valid": true - }, - { - "description": "Valid - decade 1000 BCE with negative sign", - "data": "-01000", - "valid": true - }, - { - "description": "Invalid - missing sign", - "data": "00198", - "valid": false - }, - { - "description": "Invalid - four digits", - "data": "+0019", - "valid": false - }, - { - "description": "Invalid - six digits", - "data": "+001985", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/date/calendar-expanded-extended/v1.test.json b/test/iso/datetime/2019/date/calendar-expanded-extended/v1.test.json deleted file mode 100644 index 61383c51..00000000 --- a/test/iso/datetime/2019/date/calendar-expanded-extended/v1.test.json +++ /dev/null @@ -1,150 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/date/calendar-expanded-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 19850412, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - April 12, 1985 with positive sign", - "data": "+001985-04-12", - "valid": true - }, - { - "description": "Valid - January 1, year 1 BCE with negative sign", - "data": "-000001-01-01", - "valid": true - }, - { - "description": "Valid - December 31, year 999999 with positive sign", - "data": "+999999-12-31", - "valid": true - }, - { - "description": "Valid - January 1, year 0 with positive sign", - "data": "+000000-01-01", - "valid": true - }, - { - "description": "Valid - January 1, year 10000 BCE with negative sign", - "data": "-010000-01-01", - "valid": true - }, - { - "description": "Valid - February 29, leap year 2000", - "data": "+002000-02-29", - "valid": true - }, - { - "description": "Invalid - month 00", - "data": "+001985-00-12", - "valid": false - }, - { - "description": "Invalid - month 13", - "data": "+001985-13-12", - "valid": false - }, - { - "description": "Invalid - day 00", - "data": "+001985-04-00", - "valid": false - }, - { - "description": "Invalid - day 32", - "data": "+001985-04-32", - "valid": false - }, - { - "description": "Invalid - missing sign", - "data": "001985-04-12", - "valid": false - }, - { - "description": "Invalid - basic format (no hyphens)", - "data": "+0019850412", - "valid": false - }, - { - "description": "Invalid - missing first hyphen", - "data": "+00198504-12", - "valid": false - }, - { - "description": "Invalid - missing second hyphen", - "data": "+001985-0412", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - 30 February (any year)", - "data": "+002023-02-30", - "valid": false - }, - { - "description": "Invalid - 31 February (any year)", - "data": "+002023-02-31", - "valid": false - }, - { - "description": "Invalid - 31 April", - "data": "+002023-04-31", - "valid": false - }, - { - "description": "Invalid - 31 June", - "data": "+002023-06-31", - "valid": false - }, - { - "description": "Invalid - 31 September", - "data": "+002023-09-31", - "valid": false - }, - { - "description": "Invalid - 31 November", - "data": "+002023-11-31", - "valid": false - }, - { - "description": "Valid - 30 April 2023", - "data": "+002023-04-30", - "valid": true - }, - { - "description": "Valid - 29 February (leap year validation is consumer responsibility)", - "data": "+002400-02-29", - "valid": true - }, - { - "description": "Valid - 28 February", - "data": "+002100-02-28", - "valid": true - }, - { - "description": "Invalid - 30 February with negative year", - "data": "-002023-02-30", - "valid": false - }, - { - "description": "Invalid - 31 April with negative year", - "data": "-002023-04-31", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/date/calendar-expanded-month/v1.test.json b/test/iso/datetime/2019/date/calendar-expanded-month/v1.test.json deleted file mode 100644 index 92297ab7..00000000 --- a/test/iso/datetime/2019/date/calendar-expanded-month/v1.test.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/date/calendar-expanded-month/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 198504, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - April 1985 with positive sign", - "data": "+001985-04", - "valid": true - }, - { - "description": "Valid - January year 1 BCE with negative sign", - "data": "-000001-01", - "valid": true - }, - { - "description": "Valid - December year 999999 with positive sign", - "data": "+999999-12", - "valid": true - }, - { - "description": "Valid - January year 0 with positive sign", - "data": "+000000-01", - "valid": true - }, - { - "description": "Valid - December year 10000 BCE with negative sign", - "data": "-010000-12", - "valid": true - }, - { - "description": "Invalid - month 00", - "data": "+001985-00", - "valid": false - }, - { - "description": "Invalid - month 13", - "data": "+001985-13", - "valid": false - }, - { - "description": "Invalid - missing sign", - "data": "001985-04", - "valid": false - }, - { - "description": "Invalid - with day component", - "data": "+001985-04-12", - "valid": false - }, - { - "description": "Invalid - missing hyphen", - "data": "+00198504", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/date/calendar-expanded-year/v1.test.json b/test/iso/datetime/2019/date/calendar-expanded-year/v1.test.json deleted file mode 100644 index 2575949d..00000000 --- a/test/iso/datetime/2019/date/calendar-expanded-year/v1.test.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/date/calendar-expanded-year/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - year 1985 with positive sign", - "data": "+001985", - "valid": true - }, - { - "description": "Valid - year 1 BCE with negative sign", - "data": "-000001", - "valid": true - }, - { - "description": "Valid - year 999999 with positive sign", - "data": "+999999", - "valid": true - }, - { - "description": "Valid - year 0 with positive sign", - "data": "+000000", - "valid": true - }, - { - "description": "Valid - year 10000 BCE with negative sign", - "data": "-010000", - "valid": true - }, - { - "description": "Invalid - missing sign", - "data": "001985", - "valid": false - }, - { - "description": "Invalid - five digits", - "data": "+00198", - "valid": false - }, - { - "description": "Invalid - seven digits", - "data": "+0019850", - "valid": false - }, - { - "description": "Invalid - with month component", - "data": "+001985-04", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/date/calendar-extended/v1.test.json b/test/iso/datetime/2019/date/calendar-extended/v1.test.json deleted file mode 100644 index faa05a73..00000000 --- a/test/iso/datetime/2019/date/calendar-extended/v1.test.json +++ /dev/null @@ -1,265 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/date/calendar-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 19850412, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 12 April 1985", - "data": "1985-04-12", - "valid": true - }, - { - "description": "Valid - 1 January 2000", - "data": "2000-01-01", - "valid": true - }, - { - "description": "Valid - 31 December 2023", - "data": "2023-12-31", - "valid": true - }, - { - "description": "Valid - 1 January year 0000", - "data": "0000-01-01", - "valid": true - }, - { - "description": "Valid - 31 December year 9999", - "data": "9999-12-31", - "valid": true - }, - { - "description": "Valid - 29 February 2000 (leap year)", - "data": "2000-02-29", - "valid": true - }, - { - "description": "Valid - 29 February 2004 (leap year)", - "data": "2004-02-29", - "valid": true - }, - { - "description": "Valid - 28 February 2001 (non-leap year)", - "data": "2001-02-28", - "valid": true - }, - { - "description": "Invalid - basic format (no hyphens)", - "data": "19850412", - "valid": false - }, - { - "description": "Invalid - month 00", - "data": "1985-00-12", - "valid": false - }, - { - "description": "Invalid - month 13", - "data": "1985-13-12", - "valid": false - }, - { - "description": "Invalid - day 00", - "data": "1985-04-00", - "valid": false - }, - { - "description": "Invalid - day 32", - "data": "1985-04-32", - "valid": false - }, - { - "description": "Invalid - missing first hyphen", - "data": "198504-12", - "valid": false - }, - { - "description": "Invalid - missing second hyphen", - "data": "1985-0412", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - spaces instead of hyphens", - "data": "1985 04 12", - "valid": false - }, - { - "description": "Invalid - 30 February (any year)", - "data": "2023-02-30", - "valid": false - }, - { - "description": "Invalid - 31 February (any year)", - "data": "2023-02-31", - "valid": false - }, - { - "description": "Invalid - 31 April", - "data": "2023-04-31", - "valid": false - }, - { - "description": "Invalid - 31 June", - "data": "2023-06-31", - "valid": false - }, - { - "description": "Invalid - 31 September", - "data": "2023-09-31", - "valid": false - }, - { - "description": "Invalid - 31 November", - "data": "2023-11-31", - "valid": false - }, - { - "description": "Invalid - 32 January", - "data": "2023-01-32", - "valid": false - }, - { - "description": "Invalid - 32 March", - "data": "2023-03-32", - "valid": false - }, - { - "description": "Invalid - 32 May", - "data": "2023-05-32", - "valid": false - }, - { - "description": "Invalid - 32 July", - "data": "2023-07-32", - "valid": false - }, - { - "description": "Invalid - 32 August", - "data": "2023-08-32", - "valid": false - }, - { - "description": "Invalid - 32 October", - "data": "2023-10-32", - "valid": false - }, - { - "description": "Invalid - 32 December", - "data": "2023-12-32", - "valid": false - }, - { - "description": "Valid - 29 February (leap year validation is consumer responsibility)", - "data": "2400-02-29", - "valid": true - }, - { - "description": "Valid - 28 February", - "data": "2100-02-28", - "valid": true - }, - { - "description": "Valid - 30 April 2023", - "data": "2023-04-30", - "valid": true - }, - { - "description": "Valid - 30 June 2023", - "data": "2023-06-30", - "valid": true - }, - { - "description": "Valid - 30 September 2023", - "data": "2023-09-30", - "valid": true - }, - { - "description": "Valid - 30 November 2023", - "data": "2023-11-30", - "valid": true - }, - { - "description": "Valid - 31 January 2023", - "data": "2023-01-31", - "valid": true - }, - { - "description": "Valid - 31 March 2023", - "data": "2023-03-31", - "valid": true - }, - { - "description": "Valid - 31 May 2023", - "data": "2023-05-31", - "valid": true - }, - { - "description": "Valid - 31 July 2023", - "data": "2023-07-31", - "valid": true - }, - { - "description": "Valid - 31 August 2023", - "data": "2023-08-31", - "valid": true - }, - { - "description": "Valid - 31 October 2023", - "data": "2023-10-31", - "valid": true - }, - { - "description": "Valid - 31 December 2023", - "data": "2023-12-31", - "valid": true - }, - { - "description": "Valid - leap day in a leap year", - "valid": true, - "data": "2020-02-29" - }, - { - "description": "Valid - leap day in a century leap year", - "valid": true, - "data": "2000-02-29" - }, - { - "description": "Invalid - leap day in a common year", - "valid": false, - "data": "2021-02-29" - }, - { - "description": "Invalid - leap day in a century common year", - "valid": false, - "data": "2100-02-29" - } - ] -} diff --git a/test/iso/datetime/2019/date/calendar-month/v1.test.json b/test/iso/datetime/2019/date/calendar-month/v1.test.json deleted file mode 100644 index 40dd6f14..00000000 --- a/test/iso/datetime/2019/date/calendar-month/v1.test.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/date/calendar-month/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 198504, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - April 1985", - "data": "1985-04", - "valid": true - }, - { - "description": "Valid - January 2000", - "data": "2000-01", - "valid": true - }, - { - "description": "Valid - December 2023", - "data": "2023-12", - "valid": true - }, - { - "description": "Valid - January year 0000", - "data": "0000-01", - "valid": true - }, - { - "description": "Valid - December year 9999", - "data": "9999-12", - "valid": true - }, - { - "description": "Invalid - month 00", - "data": "1985-00", - "valid": false - }, - { - "description": "Invalid - month 13", - "data": "1985-13", - "valid": false - }, - { - "description": "Invalid - basic format (no hyphen)", - "data": "198504", - "valid": false - }, - { - "description": "Invalid - with day component", - "data": "1985-04-12", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/date/calendar-year/v1.test.json b/test/iso/datetime/2019/date/calendar-year/v1.test.json deleted file mode 100644 index 1d00921a..00000000 --- a/test/iso/datetime/2019/date/calendar-year/v1.test.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/date/calendar-year/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - year 1985", - "data": "1985", - "valid": true - }, - { - "description": "Valid - year 2000", - "data": "2000", - "valid": true - }, - { - "description": "Valid - year 2023", - "data": "2023", - "valid": true - }, - { - "description": "Valid - year 0000", - "data": "0000", - "valid": true - }, - { - "description": "Valid - year 9999", - "data": "9999", - "valid": true - }, - { - "description": "Invalid - three digits", - "data": "198", - "valid": false - }, - { - "description": "Invalid - five digits", - "data": "19850", - "valid": false - }, - { - "description": "Invalid - with month component", - "data": "1985-04", - "valid": false - }, - { - "description": "Invalid - negative sign (requires expanded format)", - "data": "-1985", - "valid": false - }, - { - "description": "Invalid - plus sign (requires expanded format)", - "data": "+1985", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/date/ordinal-basic/v1.test.json b/test/iso/datetime/2019/date/ordinal-basic/v1.test.json deleted file mode 100644 index 8443c58e..00000000 --- a/test/iso/datetime/2019/date/ordinal-basic/v1.test.json +++ /dev/null @@ -1,190 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/date/ordinal-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985102, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - 102nd day of 1985", - "data": "1985102", - "valid": true - }, - { - "description": "Valid - 1st day of 2000", - "data": "2000001", - "valid": true - }, - { - "description": "Valid - 366th day of 2000 (leap year)", - "data": "2000366", - "valid": true - }, - { - "description": "Valid - 365th day of 2023 (non-leap year)", - "data": "2023365", - "valid": true - }, - { - "description": "Valid - 1st day of year 0000", - "data": "0000001", - "valid": true - }, - { - "description": "Valid - 365th day of year 9999", - "data": "9999365", - "valid": true - }, - { - "description": "Valid - 60th day of 2004 (29 Feb in leap year)", - "data": "2004060", - "valid": true - }, - { - "description": "Valid - 59th day of 2003 (28 Feb in non-leap year)", - "data": "2003059", - "valid": true - }, - { - "description": "Valid - 180th day (around end of June)", - "data": "2023180", - "valid": true - }, - { - "description": "Valid - 270th day (around end of September)", - "data": "2023270", - "valid": true - }, - { - "description": "Invalid - day 000", - "data": "1985000", - "valid": false - }, - { - "description": "Invalid - day 367", - "data": "1985367", - "valid": false - }, - { - "description": "Invalid - day 999", - "data": "1985999", - "valid": false - }, - { - "description": "Invalid - extended format (with hyphen)", - "data": "1985-102", - "valid": false - }, - { - "description": "Invalid - too few digits", - "data": "198510", - "valid": false - }, - { - "description": "Invalid - too many digits", - "data": "19851022", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - spaces in date", - "data": "1985 102", - "valid": false - }, - { - "description": "Invalid - letters in ordinal day", - "data": "1985ABC", - "valid": false - }, - { - "description": "Valid - 366th day of 2004 (leap year)", - "data": "2004366", - "valid": true - }, - { - "description": "Valid - 366th day of 2400 (leap year, divisible by 400)", - "data": "2400366", - "valid": true - }, - { - "description": "Valid - 365th day of 2100 (non-leap year, century exception)", - "data": "2100365", - "valid": true - }, - { - "description": "Valid - Day 001 (January 1st)", - "data": "2023001", - "valid": true - }, - { - "description": "Valid - Day 032 (February 1st in non-leap year)", - "data": "2023032", - "valid": true - }, - { - "description": "Valid - Day 060 (March 1st in leap year)", - "data": "2000060", - "valid": true - }, - { - "description": "Valid - Day 091 (April 1st in non-leap year)", - "data": "2023091", - "valid": true - }, - { - "description": "Invalid - Day 368", - "data": "2023368", - "valid": false - }, - { - "description": "Invalid - Day 400", - "data": "2023400", - "valid": false - }, - { - "description": "Invalid - Day 500", - "data": "2023500", - "valid": false - }, - { - "description": "Invalid - Missing leading zeros (day 1)", - "data": "20231", - "valid": false - }, - { - "description": "Invalid - Missing leading zeros (day 01)", - "data": "202301", - "valid": false - }, - { - "description": "Invalid - Missing leading zeros (day 10)", - "data": "202310", - "valid": false - }, - { - "description": "Invalid - negative year (requires expanded format)", - "data": "-0001001", - "valid": false - }, - { - "description": "Invalid - plus sign (requires expanded format)", - "data": "+0001001", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/date/ordinal-expanded-basic/v1.test.json b/test/iso/datetime/2019/date/ordinal-expanded-basic/v1.test.json deleted file mode 100644 index 136783f8..00000000 --- a/test/iso/datetime/2019/date/ordinal-expanded-basic/v1.test.json +++ /dev/null @@ -1,115 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/date/ordinal-expanded-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985102, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - day 102 of 1985 with positive sign", - "data": "+001985102", - "valid": true - }, - { - "description": "Valid - day 1 of year 1 BCE with negative sign", - "data": "-000001001", - "valid": true - }, - { - "description": "Valid - day 366 of year 999999 with positive sign", - "data": "+999999366", - "valid": true - }, - { - "description": "Valid - day 1 of year 0 with positive sign", - "data": "+000000001", - "valid": true - }, - { - "description": "Valid - day 365 of year 10000 BCE with negative sign", - "data": "-010000365", - "valid": true - }, - { - "description": "Valid - day 001 (first day)", - "data": "+001985001", - "valid": true - }, - { - "description": "Valid - day 200", - "data": "+001985200", - "valid": true - }, - { - "description": "Valid - day 299", - "data": "+001985299", - "valid": true - }, - { - "description": "Invalid - day 000", - "data": "+001985000", - "valid": false - }, - { - "description": "Invalid - day 367", - "data": "+001985367", - "valid": false - }, - { - "description": "Invalid - missing sign", - "data": "001985102", - "valid": false - }, - { - "description": "Invalid - extended format (with hyphen)", - "data": "+001985-102", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Valid - 366th day of leap year 2004", - "data": "+002004366", - "valid": true - }, - { - "description": "Valid - 365th day of non-leap year 2100", - "data": "+002100365", - "valid": true - }, - { - "description": "Invalid - Day 368", - "data": "+002023368", - "valid": false - }, - { - "description": "Invalid - Day 400", - "data": "+002023400", - "valid": false - }, - { - "description": "Invalid - Day 500 with negative year", - "data": "-002023500", - "valid": false - }, - { - "description": "Invalid - Day 999", - "data": "+002023999", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/date/ordinal-expanded-extended/v1.test.json b/test/iso/datetime/2019/date/ordinal-expanded-extended/v1.test.json deleted file mode 100644 index 345a4cb3..00000000 --- a/test/iso/datetime/2019/date/ordinal-expanded-extended/v1.test.json +++ /dev/null @@ -1,115 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/date/ordinal-expanded-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985102, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - day 102 of 1985 with positive sign", - "data": "+001985-102", - "valid": true - }, - { - "description": "Valid - day 1 of year 1 BCE with negative sign", - "data": "-000001-001", - "valid": true - }, - { - "description": "Valid - day 366 of year 999999 with positive sign", - "data": "+999999-366", - "valid": true - }, - { - "description": "Valid - day 1 of year 0 with positive sign", - "data": "+000000-001", - "valid": true - }, - { - "description": "Valid - day 365 of year 10000 BCE with negative sign", - "data": "-010000-365", - "valid": true - }, - { - "description": "Valid - day 001 (first day)", - "data": "+001985-001", - "valid": true - }, - { - "description": "Valid - day 200", - "data": "+001985-200", - "valid": true - }, - { - "description": "Valid - day 299", - "data": "+001985-299", - "valid": true - }, - { - "description": "Invalid - day 000", - "data": "+001985-000", - "valid": false - }, - { - "description": "Invalid - day 367", - "data": "+001985-367", - "valid": false - }, - { - "description": "Invalid - missing sign", - "data": "001985-102", - "valid": false - }, - { - "description": "Invalid - basic format (no hyphen)", - "data": "+001985102", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Valid - 366th day of leap year 2004", - "data": "+002004-366", - "valid": true - }, - { - "description": "Valid - 365th day of non-leap year 2100", - "data": "+002100-365", - "valid": true - }, - { - "description": "Invalid - Day 368", - "data": "+002023-368", - "valid": false - }, - { - "description": "Invalid - Day 400", - "data": "+002023-400", - "valid": false - }, - { - "description": "Invalid - Day 500 with negative year", - "data": "-002023-500", - "valid": false - }, - { - "description": "Invalid - Day 999", - "data": "+002023-999", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/date/ordinal-extended/v1.test.json b/test/iso/datetime/2019/date/ordinal-extended/v1.test.json deleted file mode 100644 index dff5cd42..00000000 --- a/test/iso/datetime/2019/date/ordinal-extended/v1.test.json +++ /dev/null @@ -1,130 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/date/ordinal-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985102, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - 102nd day of 1985", - "data": "1985-102", - "valid": true - }, - { - "description": "Valid - 1st day of 2000", - "data": "2000-001", - "valid": true - }, - { - "description": "Valid - 366th day of 2000 (leap year)", - "data": "2000-366", - "valid": true - }, - { - "description": "Valid - 365th day of 2023 (non-leap year)", - "data": "2023-365", - "valid": true - }, - { - "description": "Valid - 1st day of year 0000", - "data": "0000-001", - "valid": true - }, - { - "description": "Invalid - day 000", - "data": "1985-000", - "valid": false - }, - { - "description": "Invalid - day 367", - "data": "1985-367", - "valid": false - }, - { - "description": "Invalid - day 999", - "data": "1985-999", - "valid": false - }, - { - "description": "Invalid - basic format (no hyphen)", - "data": "1985102", - "valid": false - }, - { - "description": "Invalid - missing hyphen", - "data": "1985102", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Valid - 366th day of 2004 (leap year)", - "data": "2004-366", - "valid": true - }, - { - "description": "Valid - 366th day of 2400 (leap year, divisible by 400)", - "data": "2400-366", - "valid": true - }, - { - "description": "Valid - 365th day of 2100 (non-leap year, century exception)", - "data": "2100-365", - "valid": true - }, - { - "description": "Valid - Day 032 (February 1st in non-leap year)", - "data": "2023-032", - "valid": true - }, - { - "description": "Valid - Day 060 (March 1st in leap year)", - "data": "2000-060", - "valid": true - }, - { - "description": "Invalid - Day 368", - "data": "2023-368", - "valid": false - }, - { - "description": "Invalid - Day 400", - "data": "2023-400", - "valid": false - }, - { - "description": "Invalid - Day 500", - "data": "2023-500", - "valid": false - }, - { - "description": "Invalid - Missing leading zeros (day 1)", - "data": "2023-1", - "valid": false - }, - { - "description": "Invalid - Missing leading zeros (day 01)", - "data": "2023-01", - "valid": false - }, - { - "description": "Invalid - Missing leading zeros (day 10)", - "data": "2023-10", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/date/week-basic/v1.test.json b/test/iso/datetime/2019/date/week-basic/v1.test.json deleted file mode 100644 index 923f00e1..00000000 --- a/test/iso/datetime/2019/date/week-basic/v1.test.json +++ /dev/null @@ -1,185 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/date/week-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985155, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - Friday of week 15, 1985 (day 5)", - "data": "1985W155", - "valid": true - }, - { - "description": "Valid - Monday of week 1, 2000 (day 1)", - "data": "2000W011", - "valid": true - }, - { - "description": "Valid - Sunday of week 52, 2023 (day 7)", - "data": "2023W527", - "valid": true - }, - { - "description": "Valid - Monday of week 1, year 0000 (day 1)", - "data": "0000W011", - "valid": true - }, - { - "description": "Valid - Sunday of week 53, year 9999 (day 7)", - "data": "9999W537", - "valid": true - }, - { - "description": "Valid - Tuesday of week 26, 2023 (day 2)", - "data": "2023W262", - "valid": true - }, - { - "description": "Valid - Wednesday of week 1, 2023 (day 3)", - "data": "2023W013", - "valid": true - }, - { - "description": "Valid - Thursday of week 40, 2023 (day 4)", - "data": "2023W404", - "valid": true - }, - { - "description": "Valid - Friday of week 10, 2023 (day 5)", - "data": "2023W105", - "valid": true - }, - { - "description": "Valid - Saturday of week 30, 2023 (day 6)", - "data": "2023W306", - "valid": true - }, - { - "description": "Invalid - week 00", - "data": "1985W005", - "valid": false - }, - { - "description": "Invalid - week 54", - "data": "1985W545", - "valid": false - }, - { - "description": "Invalid - day 0", - "data": "1985W150", - "valid": false - }, - { - "description": "Invalid - day 8", - "data": "1985W158", - "valid": false - }, - { - "description": "Invalid - missing W designator", - "data": "1985155", - "valid": false - }, - { - "description": "Invalid - lowercase w", - "data": "1985w155", - "valid": false - }, - { - "description": "Invalid - extended format (with hyphens)", - "data": "1985-W15-5", - "valid": false - }, - { - "description": "Invalid - too few digits", - "data": "1985W15", - "valid": false - }, - { - "description": "Invalid - too many digits", - "data": "1985W1555", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - spaces in date", - "data": "1985 W15 5", - "valid": false - }, - { - "description": "Valid - Week 53 day 1 (years with 53 weeks exist)", - "data": "2020W531", - "valid": true - }, - { - "description": "Valid - Week 53 day 7", - "data": "2015W537", - "valid": true - }, - { - "description": "Valid - Week 01 day 1", - "data": "2023W011", - "valid": true - }, - { - "description": "Valid - Week 52 day 7", - "data": "2022W527", - "valid": true - }, - { - "description": "Invalid - Week 54 day 1", - "data": "2023W541", - "valid": false - }, - { - "description": "Invalid - Week 55 day 1", - "data": "2023W551", - "valid": false - }, - { - "description": "Invalid - Week 99 day 1", - "data": "2023W991", - "valid": false - }, - { - "description": "Invalid - Week 01 day 0", - "data": "2023W010", - "valid": false - }, - { - "description": "Invalid - Week 01 day 9", - "data": "2023W019", - "valid": false - }, - { - "description": "Invalid - Missing leading zero in week (W1)", - "data": "2023W15", - "valid": false - }, - { - "description": "Invalid - negative year (requires expanded format)", - "data": "-001W011", - "valid": false - }, - { - "description": "Invalid - plus sign (requires expanded format)", - "data": "+001W011", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/date/week-expanded-basic/v1.test.json b/test/iso/datetime/2019/date/week-expanded-basic/v1.test.json deleted file mode 100644 index 42f23435..00000000 --- a/test/iso/datetime/2019/date/week-expanded-basic/v1.test.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/date/week-expanded-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985155, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - Friday (day 5) of week 15, 1985 with positive sign", - "data": "+001985W155", - "valid": true - }, - { - "description": "Valid - Monday (day 1) of week 1, year 1 BCE with negative sign", - "data": "-000001W011", - "valid": true - }, - { - "description": "Valid - Sunday (day 7) of week 53, year 999999 with positive sign", - "data": "+999999W537", - "valid": true - }, - { - "description": "Valid - Monday (day 1) of week 1, year 0 with positive sign", - "data": "+000000W011", - "valid": true - }, - { - "description": "Valid - Sunday (day 7) of week 52, year 10000 BCE with negative sign", - "data": "-010000W527", - "valid": true - }, - { - "description": "Invalid - week 00", - "data": "+001985W005", - "valid": false - }, - { - "description": "Invalid - week 54", - "data": "+001985W545", - "valid": false - }, - { - "description": "Invalid - day 0", - "data": "+001985W150", - "valid": false - }, - { - "description": "Invalid - day 8", - "data": "+001985W158", - "valid": false - }, - { - "description": "Invalid - missing sign", - "data": "001985W155", - "valid": false - }, - { - "description": "Invalid - missing W designator", - "data": "+001985155", - "valid": false - }, - { - "description": "Invalid - lowercase w", - "data": "+001985w155", - "valid": false - }, - { - "description": "Invalid - extended format (with hyphens)", - "data": "+001985-W15-5", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/date/week-expanded-extended/v1.test.json b/test/iso/datetime/2019/date/week-expanded-extended/v1.test.json deleted file mode 100644 index b522dbd2..00000000 --- a/test/iso/datetime/2019/date/week-expanded-extended/v1.test.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/date/week-expanded-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985155, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - Friday (day 5) of week 15, 1985 with positive sign", - "data": "+001985-W15-5", - "valid": true - }, - { - "description": "Valid - Monday (day 1) of week 1, year 1 BCE with negative sign", - "data": "-000001-W01-1", - "valid": true - }, - { - "description": "Valid - Sunday (day 7) of week 53, year 999999 with positive sign", - "data": "+999999-W53-7", - "valid": true - }, - { - "description": "Valid - Monday (day 1) of week 1, year 0 with positive sign", - "data": "+000000-W01-1", - "valid": true - }, - { - "description": "Valid - Sunday (day 7) of week 52, year 10000 BCE with negative sign", - "data": "-010000-W52-7", - "valid": true - }, - { - "description": "Invalid - week 00", - "data": "+001985-W00-5", - "valid": false - }, - { - "description": "Invalid - week 54", - "data": "+001985-W54-5", - "valid": false - }, - { - "description": "Invalid - day 0", - "data": "+001985-W15-0", - "valid": false - }, - { - "description": "Invalid - day 8", - "data": "+001985-W15-8", - "valid": false - }, - { - "description": "Invalid - missing sign", - "data": "001985-W15-5", - "valid": false - }, - { - "description": "Invalid - missing W designator", - "data": "+001985-15-5", - "valid": false - }, - { - "description": "Invalid - lowercase w", - "data": "+001985-w15-5", - "valid": false - }, - { - "description": "Invalid - basic format (no hyphens)", - "data": "+001985W155", - "valid": false - }, - { - "description": "Invalid - missing first hyphen", - "data": "+001985W15-5", - "valid": false - }, - { - "description": "Invalid - missing second hyphen", - "data": "+001985-W155", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/date/week-expanded-reduced-basic/v1.test.json b/test/iso/datetime/2019/date/week-expanded-reduced-basic/v1.test.json deleted file mode 100644 index c9f785d9..00000000 --- a/test/iso/datetime/2019/date/week-expanded-reduced-basic/v1.test.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/date/week-expanded-reduced-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985155, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - week 15 of 1985 with positive sign", - "data": "+001985W15", - "valid": true - }, - { - "description": "Valid - week 1 of year 1 BCE with negative sign", - "data": "-000001W01", - "valid": true - }, - { - "description": "Valid - week 53 of year 999999 with positive sign", - "data": "+999999W53", - "valid": true - }, - { - "description": "Valid - week 1 of year 0 with positive sign", - "data": "+000000W01", - "valid": true - }, - { - "description": "Valid - week 52 of year 10000 BCE with negative sign", - "data": "-010000W52", - "valid": true - }, - { - "description": "Invalid - week 00", - "data": "+001985W00", - "valid": false - }, - { - "description": "Invalid - week 54", - "data": "+001985W54", - "valid": false - }, - { - "description": "Invalid - missing sign", - "data": "001985W15", - "valid": false - }, - { - "description": "Invalid - missing W designator", - "data": "+00198515", - "valid": false - }, - { - "description": "Invalid - lowercase w", - "data": "+001985w15", - "valid": false - }, - { - "description": "Invalid - extended format (with hyphen)", - "data": "+001985-W15", - "valid": false - }, - { - "description": "Invalid - with day component", - "data": "+001985W155", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/date/week-expanded-reduced-extended/v1.test.json b/test/iso/datetime/2019/date/week-expanded-reduced-extended/v1.test.json deleted file mode 100644 index 58f05977..00000000 --- a/test/iso/datetime/2019/date/week-expanded-reduced-extended/v1.test.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/date/week-expanded-reduced-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985155, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - week 15 of 1985 with positive sign", - "data": "+001985-W15", - "valid": true - }, - { - "description": "Valid - week 1 of year 1 BCE with negative sign", - "data": "-000001-W01", - "valid": true - }, - { - "description": "Valid - week 53 of year 999999 with positive sign", - "data": "+999999-W53", - "valid": true - }, - { - "description": "Valid - week 1 of year 0 with positive sign", - "data": "+000000-W01", - "valid": true - }, - { - "description": "Valid - week 52 of year 10000 BCE with negative sign", - "data": "-010000-W52", - "valid": true - }, - { - "description": "Invalid - week 00", - "data": "+001985-W00", - "valid": false - }, - { - "description": "Invalid - week 54", - "data": "+001985-W54", - "valid": false - }, - { - "description": "Invalid - missing sign", - "data": "001985-W15", - "valid": false - }, - { - "description": "Invalid - missing W designator", - "data": "+001985-15", - "valid": false - }, - { - "description": "Invalid - lowercase w", - "data": "+001985-w15", - "valid": false - }, - { - "description": "Invalid - basic format (no hyphen)", - "data": "+001985W15", - "valid": false - }, - { - "description": "Invalid - with day component", - "data": "+001985-W15-5", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/date/week-extended/v1.test.json b/test/iso/datetime/2019/date/week-extended/v1.test.json deleted file mode 100644 index ecf9418c..00000000 --- a/test/iso/datetime/2019/date/week-extended/v1.test.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/date/week-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985155, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - Friday of week 15, 1985 (day 5)", - "data": "1985-W15-5", - "valid": true - }, - { - "description": "Valid - Monday of week 1, 2000 (day 1)", - "data": "2000-W01-1", - "valid": true - }, - { - "description": "Valid - Sunday of week 52, 2023 (day 7)", - "data": "2023-W52-7", - "valid": true - }, - { - "description": "Valid - Monday of week 1, year 0000 (day 1)", - "data": "0000-W01-1", - "valid": true - }, - { - "description": "Valid - Sunday of week 53, year 9999 (day 7)", - "data": "9999-W53-7", - "valid": true - }, - { - "description": "Invalid - week 00", - "data": "1985-W00-5", - "valid": false - }, - { - "description": "Invalid - week 54", - "data": "1985-W54-5", - "valid": false - }, - { - "description": "Invalid - day 0", - "data": "1985-W15-0", - "valid": false - }, - { - "description": "Invalid - day 8", - "data": "1985-W15-8", - "valid": false - }, - { - "description": "Invalid - missing W designator", - "data": "1985-15-5", - "valid": false - }, - { - "description": "Invalid - lowercase w", - "data": "1985-w15-5", - "valid": false - }, - { - "description": "Invalid - basic format (no hyphens)", - "data": "1985W155", - "valid": false - }, - { - "description": "Invalid - missing first hyphen", - "data": "1985W15-5", - "valid": false - }, - { - "description": "Invalid - missing second hyphen", - "data": "1985-W155", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Valid - Week 53 day 1 (years with 53 weeks exist)", - "data": "2020-W53-1", - "valid": true - }, - { - "description": "Valid - Week 53 day 7", - "data": "2015-W53-7", - "valid": true - }, - { - "description": "Invalid - Week 54 day 1", - "data": "2023-W54-1", - "valid": false - }, - { - "description": "Invalid - Week 55 day 1", - "data": "2023-W55-1", - "valid": false - }, - { - "description": "Invalid - Week 99 day 1", - "data": "2023-W99-1", - "valid": false - }, - { - "description": "Invalid - Week 01 day 9", - "data": "2023-W01-9", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/date/week-reduced-basic/v1.test.json b/test/iso/datetime/2019/date/week-reduced-basic/v1.test.json deleted file mode 100644 index 2ce68b5c..00000000 --- a/test/iso/datetime/2019/date/week-reduced-basic/v1.test.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/date/week-reduced-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985155, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - week 15 of 1985", - "data": "1985W15", - "valid": true - }, - { - "description": "Valid - week 1 of 2000", - "data": "2000W01", - "valid": true - }, - { - "description": "Valid - week 52 of 2023", - "data": "2023W52", - "valid": true - }, - { - "description": "Valid - week 1 of year 0000", - "data": "0000W01", - "valid": true - }, - { - "description": "Valid - week 53 of year 9999", - "data": "9999W53", - "valid": true - }, - { - "description": "Invalid - week 00", - "data": "1985W00", - "valid": false - }, - { - "description": "Invalid - week 54", - "data": "1985W54", - "valid": false - }, - { - "description": "Invalid - missing W designator", - "data": "198515", - "valid": false - }, - { - "description": "Invalid - lowercase w", - "data": "1985w15", - "valid": false - }, - { - "description": "Invalid - extended format (with hyphen)", - "data": "1985-W15", - "valid": false - }, - { - "description": "Invalid - with day component", - "data": "1985W155", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Valid - Week 53 (years with 53 weeks exist)", - "data": "2020W53", - "valid": true - }, - { - "description": "Invalid - Week 54", - "data": "2023W54", - "valid": false - }, - { - "description": "Invalid - Week 55", - "data": "2023W55", - "valid": false - }, - { - "description": "Invalid - Week 99", - "data": "2023W99", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/date/week-reduced-extended/v1.test.json b/test/iso/datetime/2019/date/week-reduced-extended/v1.test.json deleted file mode 100644 index 15a7bacc..00000000 --- a/test/iso/datetime/2019/date/week-reduced-extended/v1.test.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/date/week-reduced-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985155, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - week 15 of 1985", - "data": "1985-W15", - "valid": true - }, - { - "description": "Valid - week 1 of 2000", - "data": "2000-W01", - "valid": true - }, - { - "description": "Valid - week 52 of 2023", - "data": "2023-W52", - "valid": true - }, - { - "description": "Valid - week 1 of year 0000", - "data": "0000-W01", - "valid": true - }, - { - "description": "Valid - week 53 of year 9999", - "data": "9999-W53", - "valid": true - }, - { - "description": "Invalid - week 00", - "data": "1985-W00", - "valid": false - }, - { - "description": "Invalid - week 54", - "data": "1985-W54", - "valid": false - }, - { - "description": "Invalid - missing W designator", - "data": "1985-15", - "valid": false - }, - { - "description": "Invalid - lowercase w", - "data": "1985-w15", - "valid": false - }, - { - "description": "Invalid - basic format (no hyphen)", - "data": "1985W15", - "valid": false - }, - { - "description": "Invalid - with day component", - "data": "1985-W15-5", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/datetime/calendar-basic/v1.test.json b/test/iso/datetime/2019/datetime/calendar-basic/v1.test.json deleted file mode 100644 index fe84a9b0..00000000 --- a/test/iso/datetime/2019/datetime/calendar-basic/v1.test.json +++ /dev/null @@ -1,430 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/datetime/calendar-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 20180101120000, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 1985-04-12 23:20:50", - "data": "19850412T232050", - "valid": true - }, - { - "description": "Valid - midnight 2000-01-01 00:00:00", - "data": "20000101T000000", - "valid": true - }, - { - "description": "Valid - leap second 2023-12-31 23:59:60", - "data": "20231231T235960", - "valid": true - }, - { - "description": "Valid - leap day 2020-02-29 12:00:00", - "data": "20200229T120000", - "valid": true - }, - { - "description": "Valid - end of year 2023-12-31 23:59:59", - "data": "20231231T235959", - "valid": true - }, - { - "description": "Valid - start of year 2024-01-01 00:00:00", - "data": "20240101T000000", - "valid": true - }, - { - "description": "Valid - historical date 1900-03-15 06:30:45", - "data": "19000315T063045", - "valid": true - }, - { - "description": "Valid - future date 2100-08-20 18:45:30", - "data": "21000820T184530", - "valid": true - }, - { - "description": "Invalid - missing T designator", - "data": "19850412232050", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "19850412t232050", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - extended format (has hyphens and colons)", - "data": "1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - month 00", - "data": "20230012T120000", - "valid": false - }, - { - "description": "Invalid - month 13", - "data": "20231312T120000", - "valid": false - }, - { - "description": "Invalid - month 99", - "data": "20239912T120000", - "valid": false - }, - { - "description": "Invalid - day 00", - "data": "20230100T120000", - "valid": false - }, - { - "description": "Invalid - day 32", - "data": "20230132T120000", - "valid": false - }, - { - "description": "Invalid - day 99", - "data": "20230199T120000", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "20230115T240000", - "valid": false - }, - { - "description": "Invalid - hour 25", - "data": "20230115T250000", - "valid": false - }, - { - "description": "Invalid - hour 99", - "data": "20230115T990000", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "20230115T126000", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "20230115T129900", - "valid": false - }, - { - "description": "Invalid - second 61", - "data": "20230115T120061", - "valid": false - }, - { - "description": "Invalid - second 99", - "data": "20230115T120099", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "20230115T000000", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "20230115T230000", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "20230115T120000", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "20230115T125900", - "valid": true - }, - { - "description": "Valid - second 00 (minimum)", - "data": "20230115T120000", - "valid": true - }, - { - "description": "Valid - second 59", - "data": "20230115T120059", - "valid": true - }, - { - "description": "Valid - second 60 (leap second)", - "data": "20230630T235960", - "valid": true - }, - { - "description": "Invalid - too short", - "data": "2023011512000", - "valid": false - }, - { - "description": "Invalid - too long", - "data": "20230115T1200000", - "valid": false - }, - { - "description": "Invalid - with Z designator", - "data": "20230115T120000Z", - "valid": false - }, - { - "description": "Invalid - with time shift", - "data": "20230115T120000+0100", - "valid": false - }, - { - "description": "Invalid - with decimal seconds", - "data": "20230115T120000.5", - "valid": false - }, - { - "description": "Invalid - partial time (hour and minute only)", - "data": "20230115T1200", - "valid": false - }, - { - "description": "Invalid - partial time (hour only)", - "data": "20230115T12", - "valid": false - }, - { - "description": "Invalid - date only", - "data": "20230115", - "valid": false - }, - { - "description": "Invalid - time only", - "data": "T120000", - "valid": false - }, - { - "description": "Valid - January (month 01)", - "data": "20230115T120000", - "valid": true - }, - { - "description": "Valid - December (month 12)", - "data": "20231231T120000", - "valid": true - }, - { - "description": "Invalid - spaces in datetime", - "data": "2023 01 15T12 00 00", - "valid": false - }, - { - "description": "Invalid - missing year digits", - "data": "230115T120000", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "20230115T120000X", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning", - "data": "X20230115T120000", - "valid": false - }, - { - "description": "Valid - year 0000", - "data": "00000101T120000", - "valid": true - }, - { - "description": "Valid - year 9999", - "data": "99991231T235959", - "valid": true - }, - { - "description": "Invalid - 30 February", - "data": "20230230T120000", - "valid": false - }, - { - "description": "Invalid - 31 February", - "data": "20230231T120000", - "valid": false - }, - { - "description": "Valid - 29 February (leap year validation is consumer responsibility)", - "data": "20230229T120000", - "valid": true - }, - { - "description": "Invalid - 31 April", - "data": "20230431T120000", - "valid": false - }, - { - "description": "Invalid - 31 June", - "data": "20230631T120000", - "valid": false - }, - { - "description": "Invalid - 31 September", - "data": "20230931T120000", - "valid": false - }, - { - "description": "Invalid - 31 November", - "data": "20231131T120000", - "valid": false - }, - { - "description": "Invalid - 32 January", - "data": "20230132T120000", - "valid": false - }, - { - "description": "Invalid - 32 March", - "data": "20230332T120000", - "valid": false - }, - { - "description": "Invalid - 32 May", - "data": "20230532T120000", - "valid": false - }, - { - "description": "Invalid - 32 July", - "data": "20230732T120000", - "valid": false - }, - { - "description": "Invalid - 32 August", - "data": "20230832T120000", - "valid": false - }, - { - "description": "Invalid - 32 October", - "data": "20231032T120000", - "valid": false - }, - { - "description": "Invalid - 32 December", - "data": "20231232T120000", - "valid": false - }, - { - "description": "Invalid - letter in year", - "data": "2O230115T120000", - "valid": false - }, - { - "description": "Invalid - letter in month", - "data": "2023O115T120000", - "valid": false - }, - { - "description": "Invalid - letter in day", - "data": "202301O5T120000", - "valid": false - }, - { - "description": "Invalid - letter in hour", - "data": "20230115TO20000", - "valid": false - }, - { - "description": "Invalid - letter in minute", - "data": "20230115T12O000", - "valid": false - }, - { - "description": "Invalid - letter in second", - "data": "20230115T1200O0", - "valid": false - }, - { - "description": "Valid - 30 April (30-day month)", - "data": "20230430T120000", - "valid": true - }, - { - "description": "Valid - 30 June (30-day month)", - "data": "20230630T120000", - "valid": true - }, - { - "description": "Valid - 30 September (30-day month)", - "data": "20230930T120000", - "valid": true - }, - { - "description": "Valid - 30 November (30-day month)", - "data": "20231130T120000", - "valid": true - }, - { - "description": "Valid - 31 January (31-day month)", - "data": "20230131T120000", - "valid": true - }, - { - "description": "Valid - 31 March (31-day month)", - "data": "20230331T120000", - "valid": true - }, - { - "description": "Valid - 31 May (31-day month)", - "data": "20230531T120000", - "valid": true - }, - { - "description": "Valid - 31 July (31-day month)", - "data": "20230731T120000", - "valid": true - }, - { - "description": "Valid - 31 August (31-day month)", - "data": "20230831T120000", - "valid": true - }, - { - "description": "Valid - 31 October (31-day month)", - "data": "20231031T120000", - "valid": true - }, - { - "description": "Valid - 31 December (31-day month)", - "data": "20231231T120000", - "valid": true - } - ] -} diff --git a/test/iso/datetime/2019/datetime/calendar-extended/v1.test.json b/test/iso/datetime/2019/datetime/calendar-extended/v1.test.json deleted file mode 100644 index 978ea7d9..00000000 --- a/test/iso/datetime/2019/datetime/calendar-extended/v1.test.json +++ /dev/null @@ -1,440 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/datetime/calendar-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 20180101120000, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 1985-04-12 23:20:50", - "data": "1985-04-12T23:20:50", - "valid": true - }, - { - "description": "Valid - midnight 2000-01-01 00:00:00", - "data": "2000-01-01T00:00:00", - "valid": true - }, - { - "description": "Valid - leap second 2023-12-31 23:59:60", - "data": "2023-12-31T23:59:60", - "valid": true - }, - { - "description": "Valid - leap day 2020-02-29 12:00:00", - "data": "2020-02-29T12:00:00", - "valid": true - }, - { - "description": "Valid - end of year 2023-12-31 23:59:59", - "data": "2023-12-31T23:59:59", - "valid": true - }, - { - "description": "Valid - start of year 2024-01-01 00:00:00", - "data": "2024-01-01T00:00:00", - "valid": true - }, - { - "description": "Valid - historical date 1900-03-15 06:30:45", - "data": "1900-03-15T06:30:45", - "valid": true - }, - { - "description": "Valid - future date 2100-08-20 18:45:30", - "data": "2100-08-20T18:45:30", - "valid": true - }, - { - "description": "Invalid - missing T designator", - "data": "1985-04-1223:20:50", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "1985-04-12t23:20:50", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - basic format (no hyphens or colons)", - "data": "19850412T232050", - "valid": false - }, - { - "description": "Invalid - month 00", - "data": "2023-00-12T12:00:00", - "valid": false - }, - { - "description": "Invalid - month 13", - "data": "2023-13-12T12:00:00", - "valid": false - }, - { - "description": "Invalid - month 99", - "data": "2023-99-12T12:00:00", - "valid": false - }, - { - "description": "Invalid - day 00", - "data": "2023-01-00T12:00:00", - "valid": false - }, - { - "description": "Invalid - day 32", - "data": "2023-01-32T12:00:00", - "valid": false - }, - { - "description": "Invalid - day 99", - "data": "2023-01-99T12:00:00", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "2023-01-15T24:00:00", - "valid": false - }, - { - "description": "Invalid - hour 25", - "data": "2023-01-15T25:00:00", - "valid": false - }, - { - "description": "Invalid - hour 99", - "data": "2023-01-15T99:00:00", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "2023-01-15T12:60:00", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "2023-01-15T12:99:00", - "valid": false - }, - { - "description": "Invalid - second 61", - "data": "2023-01-15T12:00:61", - "valid": false - }, - { - "description": "Invalid - second 99", - "data": "2023-01-15T12:00:99", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "2023-01-15T00:00:00", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "2023-01-15T23:00:00", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "2023-01-15T12:00:00", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "2023-01-15T12:59:00", - "valid": true - }, - { - "description": "Valid - second 00 (minimum)", - "data": "2023-01-15T12:00:00", - "valid": true - }, - { - "description": "Valid - second 59", - "data": "2023-01-15T12:00:59", - "valid": true - }, - { - "description": "Valid - second 60 (leap second)", - "data": "2023-06-30T23:59:60", - "valid": true - }, - { - "description": "Invalid - missing hyphens in date", - "data": "20230115T12:00:00", - "valid": false - }, - { - "description": "Invalid - missing colons in time", - "data": "2023-01-15T120000", - "valid": false - }, - { - "description": "Invalid - with Z designator", - "data": "2023-01-15T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - with time shift", - "data": "2023-01-15T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - with decimal seconds", - "data": "2023-01-15T12:00:00.5", - "valid": false - }, - { - "description": "Invalid - partial time (hour and minute only)", - "data": "2023-01-15T12:00", - "valid": false - }, - { - "description": "Invalid - partial time (hour only)", - "data": "2023-01-15T12", - "valid": false - }, - { - "description": "Invalid - date only", - "data": "2023-01-15", - "valid": false - }, - { - "description": "Invalid - time only", - "data": "T12:00:00", - "valid": false - }, - { - "description": "Valid - January (month 01)", - "data": "2023-01-15T12:00:00", - "valid": true - }, - { - "description": "Valid - December (month 12)", - "data": "2023-12-31T12:00:00", - "valid": true - }, - { - "description": "Invalid - spaces in datetime", - "data": "2023-01-15 T 12:00:00", - "valid": false - }, - { - "description": "Invalid - extra hyphen in date", - "data": "2023--01-15T12:00:00", - "valid": false - }, - { - "description": "Invalid - extra colon in time", - "data": "2023-01-15T12::00:00", - "valid": false - }, - { - "description": "Invalid - missing year digits", - "data": "23-01-15T12:00:00", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "2023-01-15T12:00:00X", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning", - "data": "X2023-01-15T12:00:00", - "valid": false - }, - { - "description": "Valid - year 0000", - "data": "0000-01-01T12:00:00", - "valid": true - }, - { - "description": "Valid - year 9999", - "data": "9999-12-31T23:59:59", - "valid": true - }, - { - "description": "Invalid - 30 February", - "data": "2023-02-30T12:00:00", - "valid": false - }, - { - "description": "Invalid - 31 February", - "data": "2023-02-31T12:00:00", - "valid": false - }, - { - "description": "Valid - 29 February (leap year validation is consumer responsibility)", - "data": "2023-02-29T12:00:00", - "valid": true - }, - { - "description": "Invalid - 31 April", - "data": "2023-04-31T12:00:00", - "valid": false - }, - { - "description": "Invalid - 31 June", - "data": "2023-06-31T12:00:00", - "valid": false - }, - { - "description": "Invalid - 31 September", - "data": "2023-09-31T12:00:00", - "valid": false - }, - { - "description": "Invalid - 31 November", - "data": "2023-11-31T12:00:00", - "valid": false - }, - { - "description": "Invalid - 32 January", - "data": "2023-01-32T12:00:00", - "valid": false - }, - { - "description": "Invalid - 32 March", - "data": "2023-03-32T12:00:00", - "valid": false - }, - { - "description": "Invalid - 32 May", - "data": "2023-05-32T12:00:00", - "valid": false - }, - { - "description": "Invalid - 32 July", - "data": "2023-07-32T12:00:00", - "valid": false - }, - { - "description": "Invalid - 32 August", - "data": "2023-08-32T12:00:00", - "valid": false - }, - { - "description": "Invalid - 32 October", - "data": "2023-10-32T12:00:00", - "valid": false - }, - { - "description": "Invalid - 32 December", - "data": "2023-12-32T12:00:00", - "valid": false - }, - { - "description": "Invalid - letter in year", - "data": "2O23-01-15T12:00:00", - "valid": false - }, - { - "description": "Invalid - letter in month", - "data": "2023-O1-15T12:00:00", - "valid": false - }, - { - "description": "Invalid - letter in day", - "data": "2023-01-O5T12:00:00", - "valid": false - }, - { - "description": "Invalid - letter in hour", - "data": "2023-01-15TO2:00:00", - "valid": false - }, - { - "description": "Invalid - letter in minute", - "data": "2023-01-15T12:O0:00", - "valid": false - }, - { - "description": "Invalid - letter in second", - "data": "2023-01-15T12:00:O0", - "valid": false - }, - { - "description": "Valid - 30 April (30-day month)", - "data": "2023-04-30T12:00:00", - "valid": true - }, - { - "description": "Valid - 30 June (30-day month)", - "data": "2023-06-30T12:00:00", - "valid": true - }, - { - "description": "Valid - 30 September (30-day month)", - "data": "2023-09-30T12:00:00", - "valid": true - }, - { - "description": "Valid - 30 November (30-day month)", - "data": "2023-11-30T12:00:00", - "valid": true - }, - { - "description": "Valid - 31 January (31-day month)", - "data": "2023-01-31T12:00:00", - "valid": true - }, - { - "description": "Valid - 31 March (31-day month)", - "data": "2023-03-31T12:00:00", - "valid": true - }, - { - "description": "Valid - 31 May (31-day month)", - "data": "2023-05-31T12:00:00", - "valid": true - }, - { - "description": "Valid - 31 July (31-day month)", - "data": "2023-07-31T12:00:00", - "valid": true - }, - { - "description": "Valid - 31 August (31-day month)", - "data": "2023-08-31T12:00:00", - "valid": true - }, - { - "description": "Valid - 31 October (31-day month)", - "data": "2023-10-31T12:00:00", - "valid": true - }, - { - "description": "Valid - 31 December (31-day month)", - "data": "2023-12-31T12:00:00", - "valid": true - } - ] -} diff --git a/test/iso/datetime/2019/datetime/calendar-minute-basic/v1.test.json b/test/iso/datetime/2019/datetime/calendar-minute-basic/v1.test.json deleted file mode 100644 index 3afe13e2..00000000 --- a/test/iso/datetime/2019/datetime/calendar-minute-basic/v1.test.json +++ /dev/null @@ -1,395 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/datetime/calendar-minute-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 201801011200, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 1985-04-12 10:15", - "data": "19850412T1015", - "valid": true - }, - { - "description": "Valid - midnight 2000-01-01 00:00", - "data": "20000101T0000", - "valid": true - }, - { - "description": "Valid - end of day 2023-12-31 23:59", - "data": "20231231T2359", - "valid": true - }, - { - "description": "Valid - leap day 2020-02-29 12:00", - "data": "20200229T1200", - "valid": true - }, - { - "description": "Valid - start of year 2024-01-01 00:00", - "data": "20240101T0000", - "valid": true - }, - { - "description": "Valid - historical date 1900-03-15 06:30", - "data": "19000315T0630", - "valid": true - }, - { - "description": "Valid - future date 2100-08-20 18:45", - "data": "21000820T1845", - "valid": true - }, - { - "description": "Invalid - missing T designator", - "data": "198504121015", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "19850412t1015", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - extended format (has hyphens and colons)", - "data": "1985-04-12T10:15", - "valid": false - }, - { - "description": "Invalid - month 00", - "data": "20230012T1200", - "valid": false - }, - { - "description": "Invalid - month 13", - "data": "20231312T1200", - "valid": false - }, - { - "description": "Invalid - month 99", - "data": "20239912T1200", - "valid": false - }, - { - "description": "Invalid - day 00", - "data": "20230100T1200", - "valid": false - }, - { - "description": "Invalid - day 32", - "data": "20230132T1200", - "valid": false - }, - { - "description": "Invalid - day 99", - "data": "20230199T1200", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "20230115T2400", - "valid": false - }, - { - "description": "Invalid - hour 25", - "data": "20230115T2500", - "valid": false - }, - { - "description": "Invalid - hour 99", - "data": "20230115T9900", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "20230115T1260", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "20230115T1299", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "20230115T0000", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "20230115T2300", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "20230115T1200", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "20230115T1259", - "valid": true - }, - { - "description": "Invalid - with seconds", - "data": "20230115T120000", - "valid": false - }, - { - "description": "Invalid - with Z designator", - "data": "20230115T1200Z", - "valid": false - }, - { - "description": "Invalid - with time shift", - "data": "20230115T1200+0100", - "valid": false - }, - { - "description": "Invalid - with decimal minutes", - "data": "20230115T1200.5", - "valid": false - }, - { - "description": "Invalid - partial time (hour only)", - "data": "20230115T12", - "valid": false - }, - { - "description": "Invalid - date only", - "data": "20230115", - "valid": false - }, - { - "description": "Invalid - time only", - "data": "T1200", - "valid": false - }, - { - "description": "Valid - January (month 01)", - "data": "20230115T1200", - "valid": true - }, - { - "description": "Valid - December (month 12)", - "data": "20231231T1200", - "valid": true - }, - { - "description": "Invalid - spaces in datetime", - "data": "2023 01 15T12 00", - "valid": false - }, - { - "description": "Invalid - missing year digits", - "data": "230115T1200", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "20230115T1200X", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning", - "data": "X20230115T1200", - "valid": false - }, - { - "description": "Invalid - too short (missing time digits)", - "data": "20230115T120", - "valid": false - }, - { - "description": "Invalid - too long", - "data": "20230115T12000", - "valid": false - }, - { - "description": "Valid - year 0000", - "data": "00000101T1200", - "valid": true - }, - { - "description": "Valid - year 9999", - "data": "99991231T2359", - "valid": true - }, - { - "description": "Invalid - 30 February", - "data": "20230230T1200", - "valid": false - }, - { - "description": "Invalid - 31 February", - "data": "20230231T1200", - "valid": false - }, - { - "description": "Valid - 29 February (leap year validation is consumer responsibility)", - "data": "20230229T1200", - "valid": true - }, - { - "description": "Invalid - 31 April", - "data": "20230431T1200", - "valid": false - }, - { - "description": "Invalid - 31 June", - "data": "20230631T1200", - "valid": false - }, - { - "description": "Invalid - 31 September", - "data": "20230931T1200", - "valid": false - }, - { - "description": "Invalid - 31 November", - "data": "20231131T1200", - "valid": false - }, - { - "description": "Invalid - 32 January", - "data": "20230132T1200", - "valid": false - }, - { - "description": "Invalid - 32 March", - "data": "20230332T1200", - "valid": false - }, - { - "description": "Invalid - 32 May", - "data": "20230532T1200", - "valid": false - }, - { - "description": "Invalid - 32 July", - "data": "20230732T1200", - "valid": false - }, - { - "description": "Invalid - 32 August", - "data": "20230832T1200", - "valid": false - }, - { - "description": "Invalid - 32 October", - "data": "20231032T1200", - "valid": false - }, - { - "description": "Invalid - 32 December", - "data": "20231232T1200", - "valid": false - }, - { - "description": "Invalid - letter in year", - "data": "2O230115T1200", - "valid": false - }, - { - "description": "Invalid - letter in month", - "data": "2023O115T1200", - "valid": false - }, - { - "description": "Invalid - letter in day", - "data": "202301O5T1200", - "valid": false - }, - { - "description": "Invalid - letter in hour", - "data": "20230115T1O00", - "valid": false - }, - { - "description": "Invalid - letter in minute", - "data": "20230115T12O0", - "valid": false - }, - { - "description": "Valid - 30 April (30-day month)", - "data": "20230430T1200", - "valid": true - }, - { - "description": "Valid - 30 June (30-day month)", - "data": "20230630T1200", - "valid": true - }, - { - "description": "Valid - 30 September (30-day month)", - "data": "20230930T1200", - "valid": true - }, - { - "description": "Valid - 30 November (30-day month)", - "data": "20231130T1200", - "valid": true - }, - { - "description": "Valid - 31 January (31-day month)", - "data": "20230131T1200", - "valid": true - }, - { - "description": "Valid - 31 March (31-day month)", - "data": "20230331T1200", - "valid": true - }, - { - "description": "Valid - 31 May (31-day month)", - "data": "20230531T1200", - "valid": true - }, - { - "description": "Valid - 31 July (31-day month)", - "data": "20230731T1200", - "valid": true - }, - { - "description": "Valid - 31 August (31-day month)", - "data": "20230831T1200", - "valid": true - }, - { - "description": "Valid - 31 October (31-day month)", - "data": "20231031T1200", - "valid": true - }, - { - "description": "Valid - 31 December (31-day month)", - "data": "20231231T1200", - "valid": true - } - ] -} diff --git a/test/iso/datetime/2019/datetime/calendar-minute-extended/v1.test.json b/test/iso/datetime/2019/datetime/calendar-minute-extended/v1.test.json deleted file mode 100644 index 2ddd8583..00000000 --- a/test/iso/datetime/2019/datetime/calendar-minute-extended/v1.test.json +++ /dev/null @@ -1,405 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/datetime/calendar-minute-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 201801011200, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 1985-04-12 10:15", - "data": "1985-04-12T10:15", - "valid": true - }, - { - "description": "Valid - midnight 2000-01-01 00:00", - "data": "2000-01-01T00:00", - "valid": true - }, - { - "description": "Valid - end of day 2023-12-31 23:59", - "data": "2023-12-31T23:59", - "valid": true - }, - { - "description": "Valid - leap day 2020-02-29 12:00", - "data": "2020-02-29T12:00", - "valid": true - }, - { - "description": "Valid - start of year 2024-01-01 00:00", - "data": "2024-01-01T00:00", - "valid": true - }, - { - "description": "Valid - historical date 1900-03-15 06:30", - "data": "1900-03-15T06:30", - "valid": true - }, - { - "description": "Valid - future date 2100-08-20 18:45", - "data": "2100-08-20T18:45", - "valid": true - }, - { - "description": "Invalid - missing T designator", - "data": "1985-04-1210:15", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "1985-04-12t10:15", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - basic format (no hyphens or colons)", - "data": "19850412T1015", - "valid": false - }, - { - "description": "Invalid - month 00", - "data": "2023-00-12T12:00", - "valid": false - }, - { - "description": "Invalid - month 13", - "data": "2023-13-12T12:00", - "valid": false - }, - { - "description": "Invalid - month 99", - "data": "2023-99-12T12:00", - "valid": false - }, - { - "description": "Invalid - day 00", - "data": "2023-01-00T12:00", - "valid": false - }, - { - "description": "Invalid - day 32", - "data": "2023-01-32T12:00", - "valid": false - }, - { - "description": "Invalid - day 99", - "data": "2023-01-99T12:00", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "2023-01-15T24:00", - "valid": false - }, - { - "description": "Invalid - hour 25", - "data": "2023-01-15T25:00", - "valid": false - }, - { - "description": "Invalid - hour 99", - "data": "2023-01-15T99:00", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "2023-01-15T12:60", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "2023-01-15T12:99", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "2023-01-15T00:00", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "2023-01-15T23:00", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "2023-01-15T12:00", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "2023-01-15T12:59", - "valid": true - }, - { - "description": "Invalid - missing hyphens in date", - "data": "20230115T12:00", - "valid": false - }, - { - "description": "Invalid - missing colon in time", - "data": "2023-01-15T1200", - "valid": false - }, - { - "description": "Invalid - with seconds", - "data": "2023-01-15T12:00:00", - "valid": false - }, - { - "description": "Invalid - with Z designator", - "data": "2023-01-15T12:00Z", - "valid": false - }, - { - "description": "Invalid - with time shift", - "data": "2023-01-15T12:00+01:00", - "valid": false - }, - { - "description": "Invalid - with decimal minutes", - "data": "2023-01-15T12:00.5", - "valid": false - }, - { - "description": "Invalid - partial time (hour only)", - "data": "2023-01-15T12", - "valid": false - }, - { - "description": "Invalid - date only", - "data": "2023-01-15", - "valid": false - }, - { - "description": "Invalid - time only", - "data": "T12:00", - "valid": false - }, - { - "description": "Valid - January (month 01)", - "data": "2023-01-15T12:00", - "valid": true - }, - { - "description": "Valid - December (month 12)", - "data": "2023-12-31T12:00", - "valid": true - }, - { - "description": "Invalid - spaces in datetime", - "data": "2023-01-15 T 12:00", - "valid": false - }, - { - "description": "Invalid - extra hyphen in date", - "data": "2023--01-15T12:00", - "valid": false - }, - { - "description": "Invalid - extra colon in time", - "data": "2023-01-15T12::00", - "valid": false - }, - { - "description": "Invalid - missing year digits", - "data": "23-01-15T12:00", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "2023-01-15T12:00X", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning", - "data": "X2023-01-15T12:00", - "valid": false - }, - { - "description": "Valid - year 0000", - "data": "0000-01-01T12:00", - "valid": true - }, - { - "description": "Valid - year 9999", - "data": "9999-12-31T23:59", - "valid": true - }, - { - "description": "Invalid - 30 February", - "data": "2023-02-30T12:00", - "valid": false - }, - { - "description": "Invalid - 31 February", - "data": "2023-02-31T12:00", - "valid": false - }, - { - "description": "Valid - 29 February (leap year validation is consumer responsibility)", - "data": "2023-02-29T12:00", - "valid": true - }, - { - "description": "Invalid - 31 April", - "data": "2023-04-31T12:00", - "valid": false - }, - { - "description": "Invalid - 31 June", - "data": "2023-06-31T12:00", - "valid": false - }, - { - "description": "Invalid - 31 September", - "data": "2023-09-31T12:00", - "valid": false - }, - { - "description": "Invalid - 31 November", - "data": "2023-11-31T12:00", - "valid": false - }, - { - "description": "Invalid - 32 January", - "data": "2023-01-32T12:00", - "valid": false - }, - { - "description": "Invalid - 32 March", - "data": "2023-03-32T12:00", - "valid": false - }, - { - "description": "Invalid - 32 May", - "data": "2023-05-32T12:00", - "valid": false - }, - { - "description": "Invalid - 32 July", - "data": "2023-07-32T12:00", - "valid": false - }, - { - "description": "Invalid - 32 August", - "data": "2023-08-32T12:00", - "valid": false - }, - { - "description": "Invalid - 32 October", - "data": "2023-10-32T12:00", - "valid": false - }, - { - "description": "Invalid - 32 December", - "data": "2023-12-32T12:00", - "valid": false - }, - { - "description": "Invalid - letter in year", - "data": "2O23-01-15T12:00", - "valid": false - }, - { - "description": "Invalid - letter in month", - "data": "2023-O1-15T12:00", - "valid": false - }, - { - "description": "Invalid - letter in day", - "data": "2023-01-O5T12:00", - "valid": false - }, - { - "description": "Invalid - letter in hour", - "data": "2023-01-15T1O:00", - "valid": false - }, - { - "description": "Invalid - letter in minute", - "data": "2023-01-15T12:O0", - "valid": false - }, - { - "description": "Valid - 30 April (30-day month)", - "data": "2023-04-30T12:00", - "valid": true - }, - { - "description": "Valid - 30 June (30-day month)", - "data": "2023-06-30T12:00", - "valid": true - }, - { - "description": "Valid - 30 September (30-day month)", - "data": "2023-09-30T12:00", - "valid": true - }, - { - "description": "Valid - 30 November (30-day month)", - "data": "2023-11-30T12:00", - "valid": true - }, - { - "description": "Valid - 31 January (31-day month)", - "data": "2023-01-31T12:00", - "valid": true - }, - { - "description": "Valid - 31 March (31-day month)", - "data": "2023-03-31T12:00", - "valid": true - }, - { - "description": "Valid - 31 May (31-day month)", - "data": "2023-05-31T12:00", - "valid": true - }, - { - "description": "Valid - 31 July (31-day month)", - "data": "2023-07-31T12:00", - "valid": true - }, - { - "description": "Valid - 31 August (31-day month)", - "data": "2023-08-31T12:00", - "valid": true - }, - { - "description": "Valid - 31 October (31-day month)", - "data": "2023-10-31T12:00", - "valid": true - }, - { - "description": "Valid - 31 December (31-day month)", - "data": "2023-12-31T12:00", - "valid": true - } - ] -} diff --git a/test/iso/datetime/2019/datetime/calendar-shift-basic/v1.test.json b/test/iso/datetime/2019/datetime/calendar-shift-basic/v1.test.json deleted file mode 100644 index 404c5eef..00000000 --- a/test/iso/datetime/2019/datetime/calendar-shift-basic/v1.test.json +++ /dev/null @@ -1,445 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/datetime/calendar-shift-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 20180101120000, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 1985-04-12 23:20:50 +04:00", - "data": "19850412T232050+0400", - "valid": true - }, - { - "description": "Valid - midnight 2000-01-01 00:00:00 -05:00", - "data": "20000101T000000-0500", - "valid": true - }, - { - "description": "Valid - leap second 2023-12-31 23:59:60 +00:00", - "data": "20231231T235960+0000", - "valid": true - }, - { - "description": "Valid - leap day 2020-02-29 12:00:00 +05:30", - "data": "20200229T120000+0530", - "valid": true - }, - { - "description": "Valid - positive shift +01:00", - "data": "20230115T120000+0100", - "valid": true - }, - { - "description": "Valid - negative shift -08:00", - "data": "20230115T120000-0800", - "valid": true - }, - { - "description": "Valid - maximum positive shift +23:59", - "data": "20230115T120000+2359", - "valid": true - }, - { - "description": "Valid - maximum negative shift -23:59", - "data": "20230115T120000-2359", - "valid": true - }, - { - "description": "Valid - zero shift +00:00", - "data": "20230115T120000+0000", - "valid": true - }, - { - "description": "Invalid - negative zero shift -00:00", - "data": "20230115T120000-0000", - "valid": false - }, - { - "description": "Valid - historical date 1900-03-15 06:30:45 +02:00", - "data": "19000315T063045+0200", - "valid": true - }, - { - "description": "Valid - future date 2100-08-20 18:45:30 -12:00", - "data": "21000820T184530-1200", - "valid": true - }, - { - "description": "Invalid - missing T designator", - "data": "19850412232050+0400", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "19850412t232050+0400", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - extended format", - "data": "1985-04-12T23:20:50+04:00", - "valid": false - }, - { - "description": "Invalid - missing time shift", - "data": "19850412T232050", - "valid": false - }, - { - "description": "Invalid - with Z instead of shift", - "data": "19850412T232050Z", - "valid": false - }, - { - "description": "Invalid - shift hour 24", - "data": "20230115T120000+2400", - "valid": false - }, - { - "description": "Invalid - shift hour 25", - "data": "20230115T120000+2500", - "valid": false - }, - { - "description": "Invalid - shift minute 60", - "data": "20230115T120000+0160", - "valid": false - }, - { - "description": "Invalid - shift minute 99", - "data": "20230115T120000+0199", - "valid": false - }, - { - "description": "Invalid - missing shift sign", - "data": "20230115T1200000400", - "valid": false - }, - { - "description": "Invalid - colon in shift (extended format shift)", - "data": "19850412T232050+04:00", - "valid": false - }, - { - "description": "Invalid - hourly shift only", - "data": "19850412T232050+04", - "valid": false - }, - { - "description": "Invalid - month 00", - "data": "20230012T120000+0100", - "valid": false - }, - { - "description": "Invalid - month 13", - "data": "20231312T120000+0100", - "valid": false - }, - { - "description": "Invalid - day 00", - "data": "20230100T120000+0100", - "valid": false - }, - { - "description": "Invalid - day 32", - "data": "20230132T120000+0100", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "20230115T240000+0100", - "valid": false - }, - { - "description": "Invalid - hour 25", - "data": "20230115T250000+0100", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "20230115T126000+0100", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "20230115T129900+0100", - "valid": false - }, - { - "description": "Invalid - second 61", - "data": "20230115T120061+0100", - "valid": false - }, - { - "description": "Invalid - second 99", - "data": "20230115T120099+0100", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "20230115T000000+0100", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "20230115T230000+0100", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "20230115T120000+0100", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "20230115T125900+0100", - "valid": true - }, - { - "description": "Valid - second 00 (minimum)", - "data": "20230115T120000+0100", - "valid": true - }, - { - "description": "Valid - second 59", - "data": "20230115T120059+0100", - "valid": true - }, - { - "description": "Valid - second 60 (leap second)", - "data": "20230630T235960+0100", - "valid": true - }, - { - "description": "Invalid - with decimal seconds", - "data": "20230115T120000.5+0100", - "valid": false - }, - { - "description": "Invalid - partial time (hour and minute only)", - "data": "20230115T1200+0100", - "valid": false - }, - { - "description": "Invalid - date only", - "data": "20230115+0100", - "valid": false - }, - { - "description": "Valid - January (month 01)", - "data": "20230115T120000+0100", - "valid": true - }, - { - "description": "Valid - December (month 12)", - "data": "20231231T120000+0100", - "valid": true - }, - { - "description": "Invalid - spaces in datetime", - "data": "2023 01 15T12 00 00+01 00", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "20230115T120000+0100X", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning", - "data": "X20230115T120000+0100", - "valid": false - }, - { - "description": "Valid - year 0000", - "data": "00000101T120000+0000", - "valid": true - }, - { - "description": "Valid - year 9999", - "data": "99991231T235959+0000", - "valid": true - }, - { - "description": "Invalid - 30 February", - "data": "20230230T120000+0100", - "valid": false - }, - { - "description": "Invalid - 31 February", - "data": "20230231T120000+0100", - "valid": false - }, - { - "description": "Valid - 29 February (leap year validation is consumer responsibility)", - "data": "20230229T120000+0100", - "valid": true - }, - { - "description": "Invalid - 31 April", - "data": "20230431T120000+0100", - "valid": false - }, - { - "description": "Invalid - 31 June", - "data": "20230631T120000+0100", - "valid": false - }, - { - "description": "Invalid - 31 September", - "data": "20230931T120000+0100", - "valid": false - }, - { - "description": "Invalid - 31 November", - "data": "20231131T120000+0100", - "valid": false - }, - { - "description": "Invalid - 32 January", - "data": "20230132T120000+0100", - "valid": false - }, - { - "description": "Invalid - 32 March", - "data": "20230332T120000+0100", - "valid": false - }, - { - "description": "Invalid - 32 May", - "data": "20230532T120000+0100", - "valid": false - }, - { - "description": "Invalid - 32 July", - "data": "20230732T120000+0100", - "valid": false - }, - { - "description": "Invalid - 32 August", - "data": "20230832T120000+0100", - "valid": false - }, - { - "description": "Invalid - 32 October", - "data": "20231032T120000+0100", - "valid": false - }, - { - "description": "Invalid - 32 December", - "data": "20231232T120000+0100", - "valid": false - }, - { - "description": "Invalid - letter in year", - "data": "2O230115T120000+0100", - "valid": false - }, - { - "description": "Invalid - letter in month", - "data": "2023O115T120000+0100", - "valid": false - }, - { - "description": "Invalid - letter in day", - "data": "202301O5T120000+0100", - "valid": false - }, - { - "description": "Invalid - letter in hour", - "data": "20230115T1O0000+0100", - "valid": false - }, - { - "description": "Invalid - letter in minute", - "data": "20230115T12O000+0100", - "valid": false - }, - { - "description": "Invalid - letter in second", - "data": "20230115T1200O0+0100", - "valid": false - }, - { - "description": "Valid - 30 April (30-day month)", - "data": "20230430T120000+0100", - "valid": true - }, - { - "description": "Valid - 30 June (30-day month)", - "data": "20230630T120000+0100", - "valid": true - }, - { - "description": "Valid - 30 September (30-day month)", - "data": "20230930T120000+0100", - "valid": true - }, - { - "description": "Valid - 30 November (30-day month)", - "data": "20231130T120000+0100", - "valid": true - }, - { - "description": "Valid - 31 January (31-day month)", - "data": "20230131T120000+0100", - "valid": true - }, - { - "description": "Valid - 31 March (31-day month)", - "data": "20230331T120000+0100", - "valid": true - }, - { - "description": "Valid - 31 May (31-day month)", - "data": "20230531T120000+0100", - "valid": true - }, - { - "description": "Valid - 31 July (31-day month)", - "data": "20230731T120000+0100", - "valid": true - }, - { - "description": "Valid - 31 August (31-day month)", - "data": "20230831T120000+0100", - "valid": true - }, - { - "description": "Valid - 31 October (31-day month)", - "data": "20231031T120000+0100", - "valid": true - }, - { - "description": "Valid - 31 December (31-day month)", - "data": "20231231T120000+0100", - "valid": true - } - ] -} diff --git a/test/iso/datetime/2019/datetime/calendar-shift-extended/v1.test.json b/test/iso/datetime/2019/datetime/calendar-shift-extended/v1.test.json deleted file mode 100644 index 9c72d6b8..00000000 --- a/test/iso/datetime/2019/datetime/calendar-shift-extended/v1.test.json +++ /dev/null @@ -1,455 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/datetime/calendar-shift-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 20180101120000, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 1985-04-12 23:20:50 +04:00", - "data": "1985-04-12T23:20:50+04:00", - "valid": true - }, - { - "description": "Valid - midnight 2000-01-01 00:00:00 -05:00", - "data": "2000-01-01T00:00:00-05:00", - "valid": true - }, - { - "description": "Valid - leap second 2023-12-31 23:59:60 +00:00", - "data": "2023-12-31T23:59:60+00:00", - "valid": true - }, - { - "description": "Valid - leap day 2020-02-29 12:00:00 +05:30", - "data": "2020-02-29T12:00:00+05:30", - "valid": true - }, - { - "description": "Valid - positive shift +01:00", - "data": "2023-01-15T12:00:00+01:00", - "valid": true - }, - { - "description": "Valid - negative shift -08:00", - "data": "2023-01-15T12:00:00-08:00", - "valid": true - }, - { - "description": "Valid - maximum positive shift +23:59", - "data": "2023-01-15T12:00:00+23:59", - "valid": true - }, - { - "description": "Valid - maximum negative shift -23:59", - "data": "2023-01-15T12:00:00-23:59", - "valid": true - }, - { - "description": "Valid - zero shift +00:00", - "data": "2023-01-15T12:00:00+00:00", - "valid": true - }, - { - "description": "Invalid - negative zero shift -00:00", - "data": "2023-01-15T12:00:00-00:00", - "valid": false - }, - { - "description": "Valid - historical date 1900-03-15 06:30:45 +02:00", - "data": "1900-03-15T06:30:45+02:00", - "valid": true - }, - { - "description": "Valid - future date 2100-08-20 18:45:30 -12:00", - "data": "2100-08-20T18:45:30-12:00", - "valid": true - }, - { - "description": "Invalid - missing T designator", - "data": "1985-04-1223:20:50+04:00", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "1985-04-12t23:20:50+04:00", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - basic format", - "data": "19850412T232050+0400", - "valid": false - }, - { - "description": "Invalid - missing time shift", - "data": "1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - with Z instead of shift", - "data": "1985-04-12T23:20:50Z", - "valid": false - }, - { - "description": "Invalid - shift hour 24", - "data": "2023-01-15T12:00:00+24:00", - "valid": false - }, - { - "description": "Invalid - shift hour 25", - "data": "2023-01-15T12:00:00+25:00", - "valid": false - }, - { - "description": "Invalid - shift minute 60", - "data": "2023-01-15T12:00:00+01:60", - "valid": false - }, - { - "description": "Invalid - shift minute 99", - "data": "2023-01-15T12:00:00+01:99", - "valid": false - }, - { - "description": "Invalid - missing shift sign", - "data": "2023-01-15T12:00:0004:00", - "valid": false - }, - { - "description": "Invalid - missing colon in shift (basic format shift)", - "data": "1985-04-12T23:20:50+0400", - "valid": false - }, - { - "description": "Invalid - hourly shift only", - "data": "1985-04-12T23:20:50+04", - "valid": false - }, - { - "description": "Invalid - month 00", - "data": "2023-00-12T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - month 13", - "data": "2023-13-12T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - day 00", - "data": "2023-01-00T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - day 32", - "data": "2023-01-32T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "2023-01-15T24:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - hour 25", - "data": "2023-01-15T25:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "2023-01-15T12:60:00+01:00", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "2023-01-15T12:99:00+01:00", - "valid": false - }, - { - "description": "Invalid - second 61", - "data": "2023-01-15T12:00:61+01:00", - "valid": false - }, - { - "description": "Invalid - second 99", - "data": "2023-01-15T12:00:99+01:00", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "2023-01-15T00:00:00+01:00", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "2023-01-15T23:00:00+01:00", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "2023-01-15T12:00:00+01:00", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "2023-01-15T12:59:00+01:00", - "valid": true - }, - { - "description": "Valid - second 00 (minimum)", - "data": "2023-01-15T12:00:00+01:00", - "valid": true - }, - { - "description": "Valid - second 59", - "data": "2023-01-15T12:00:59+01:00", - "valid": true - }, - { - "description": "Valid - second 60 (leap second)", - "data": "2023-06-30T23:59:60+01:00", - "valid": true - }, - { - "description": "Invalid - missing hyphens in date", - "data": "20230115T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - missing colons in time", - "data": "2023-01-15T120000+01:00", - "valid": false - }, - { - "description": "Invalid - with decimal seconds", - "data": "2023-01-15T12:00:00.5+01:00", - "valid": false - }, - { - "description": "Invalid - partial time (hour and minute only)", - "data": "2023-01-15T12:00+01:00", - "valid": false - }, - { - "description": "Invalid - date only", - "data": "2023-01-15+01:00", - "valid": false - }, - { - "description": "Valid - January (month 01)", - "data": "2023-01-15T12:00:00+01:00", - "valid": true - }, - { - "description": "Valid - December (month 12)", - "data": "2023-12-31T12:00:00+01:00", - "valid": true - }, - { - "description": "Invalid - spaces in datetime", - "data": "2023-01-15 T 12:00:00 + 01:00", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "2023-01-15T12:00:00+01:00X", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning", - "data": "X2023-01-15T12:00:00+01:00", - "valid": false - }, - { - "description": "Valid - year 0000", - "data": "0000-01-01T12:00:00+00:00", - "valid": true - }, - { - "description": "Valid - year 9999", - "data": "9999-12-31T23:59:59+00:00", - "valid": true - }, - { - "description": "Invalid - 30 February", - "data": "2023-02-30T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - 31 February", - "data": "2023-02-31T12:00:00+01:00", - "valid": false - }, - { - "description": "Valid - 29 February (leap year validation is consumer responsibility)", - "data": "2023-02-29T12:00:00+01:00", - "valid": true - }, - { - "description": "Invalid - 31 April", - "data": "2023-04-31T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - 31 June", - "data": "2023-06-31T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - 31 September", - "data": "2023-09-31T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - 31 November", - "data": "2023-11-31T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - 32 January", - "data": "2023-01-32T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - 32 March", - "data": "2023-03-32T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - 32 May", - "data": "2023-05-32T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - 32 July", - "data": "2023-07-32T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - 32 August", - "data": "2023-08-32T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - 32 October", - "data": "2023-10-32T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - 32 December", - "data": "2023-12-32T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - letter in year", - "data": "2O23-01-15T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - letter in month", - "data": "2023-O1-15T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - letter in day", - "data": "2023-01-O5T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - letter in hour", - "data": "2023-01-15T1O:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - letter in minute", - "data": "2023-01-15T12:O0:00+01:00", - "valid": false - }, - { - "description": "Invalid - letter in second", - "data": "2023-01-15T12:00:O0+01:00", - "valid": false - }, - { - "description": "Valid - 30 April (30-day month)", - "data": "2023-04-30T12:00:00+01:00", - "valid": true - }, - { - "description": "Valid - 30 June (30-day month)", - "data": "2023-06-30T12:00:00+01:00", - "valid": true - }, - { - "description": "Valid - 30 September (30-day month)", - "data": "2023-09-30T12:00:00+01:00", - "valid": true - }, - { - "description": "Valid - 30 November (30-day month)", - "data": "2023-11-30T12:00:00+01:00", - "valid": true - }, - { - "description": "Valid - 31 January (31-day month)", - "data": "2023-01-31T12:00:00+01:00", - "valid": true - }, - { - "description": "Valid - 31 March (31-day month)", - "data": "2023-03-31T12:00:00+01:00", - "valid": true - }, - { - "description": "Valid - 31 May (31-day month)", - "data": "2023-05-31T12:00:00+01:00", - "valid": true - }, - { - "description": "Valid - 31 July (31-day month)", - "data": "2023-07-31T12:00:00+01:00", - "valid": true - }, - { - "description": "Valid - 31 August (31-day month)", - "data": "2023-08-31T12:00:00+01:00", - "valid": true - }, - { - "description": "Valid - 31 October (31-day month)", - "data": "2023-10-31T12:00:00+01:00", - "valid": true - }, - { - "description": "Valid - 31 December (31-day month)", - "data": "2023-12-31T12:00:00+01:00", - "valid": true - } - ] -} diff --git a/test/iso/datetime/2019/datetime/calendar-shifthour-basic/v1.test.json b/test/iso/datetime/2019/datetime/calendar-shifthour-basic/v1.test.json deleted file mode 100644 index fea6b1ab..00000000 --- a/test/iso/datetime/2019/datetime/calendar-shifthour-basic/v1.test.json +++ /dev/null @@ -1,450 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/datetime/calendar-shifthour-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 20180101120000, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 1985-04-12 23:20:50 +04", - "data": "19850412T232050+04", - "valid": true - }, - { - "description": "Valid - midnight 2000-01-01 00:00:00 -05", - "data": "20000101T000000-05", - "valid": true - }, - { - "description": "Valid - leap second 2023-12-31 23:59:60 +00", - "data": "20231231T235960+00", - "valid": true - }, - { - "description": "Valid - leap day 2020-02-29 12:00:00 +05", - "data": "20200229T120000+05", - "valid": true - }, - { - "description": "Valid - positive shift +01", - "data": "20230115T120000+01", - "valid": true - }, - { - "description": "Valid - negative shift -08", - "data": "20230115T120000-08", - "valid": true - }, - { - "description": "Valid - maximum positive shift +23", - "data": "20230115T120000+23", - "valid": true - }, - { - "description": "Valid - maximum negative shift -23", - "data": "20230115T120000-23", - "valid": true - }, - { - "description": "Valid - zero shift +00", - "data": "20230115T120000+00", - "valid": true - }, - { - "description": "Invalid - negative zero shift -00", - "data": "20230115T120000-00", - "valid": false - }, - { - "description": "Valid - historical date 1900-03-15 06:30:45 +02", - "data": "19000315T063045+02", - "valid": true - }, - { - "description": "Valid - future date 2100-08-20 18:45:30 -12", - "data": "21000820T184530-12", - "valid": true - }, - { - "description": "Invalid - missing T designator", - "data": "19850412232050+04", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "19850412t232050+04", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - extended format", - "data": "1985-04-12T23:20:50+04", - "valid": false - }, - { - "description": "Invalid - missing time shift", - "data": "19850412T232050", - "valid": false - }, - { - "description": "Invalid - with Z instead of shift", - "data": "19850412T232050Z", - "valid": false - }, - { - "description": "Invalid - shift hour 24", - "data": "20230115T120000+24", - "valid": false - }, - { - "description": "Invalid - shift hour 25", - "data": "20230115T120000+25", - "valid": false - }, - { - "description": "Invalid - shift hour 99", - "data": "20230115T120000+99", - "valid": false - }, - { - "description": "Invalid - missing shift sign", - "data": "20230115T12000004", - "valid": false - }, - { - "description": "Invalid - shift with minutes (full shift)", - "data": "19850412T232050+0400", - "valid": false - }, - { - "description": "Invalid - shift with colon", - "data": "19850412T232050+04:00", - "valid": false - }, - { - "description": "Invalid - single digit shift", - "data": "19850412T232050+4", - "valid": false - }, - { - "description": "Invalid - three digit shift", - "data": "19850412T232050+004", - "valid": false - }, - { - "description": "Invalid - month 00", - "data": "20230012T120000+01", - "valid": false - }, - { - "description": "Invalid - month 13", - "data": "20231312T120000+01", - "valid": false - }, - { - "description": "Invalid - day 00", - "data": "20230100T120000+01", - "valid": false - }, - { - "description": "Invalid - day 32", - "data": "20230132T120000+01", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "20230115T240000+01", - "valid": false - }, - { - "description": "Invalid - hour 25", - "data": "20230115T250000+01", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "20230115T126000+01", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "20230115T129900+01", - "valid": false - }, - { - "description": "Invalid - second 61", - "data": "20230115T120061+01", - "valid": false - }, - { - "description": "Invalid - second 99", - "data": "20230115T120099+01", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "20230115T000000+01", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "20230115T230000+01", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "20230115T120000+01", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "20230115T125900+01", - "valid": true - }, - { - "description": "Valid - second 00 (minimum)", - "data": "20230115T120000+01", - "valid": true - }, - { - "description": "Valid - second 59", - "data": "20230115T120059+01", - "valid": true - }, - { - "description": "Valid - second 60 (leap second)", - "data": "20230630T235960+01", - "valid": true - }, - { - "description": "Invalid - with decimal seconds", - "data": "20230115T120000.5+01", - "valid": false - }, - { - "description": "Invalid - partial time (hour and minute only)", - "data": "20230115T1200+01", - "valid": false - }, - { - "description": "Invalid - date only", - "data": "20230115+01", - "valid": false - }, - { - "description": "Valid - January (month 01)", - "data": "20230115T120000+01", - "valid": true - }, - { - "description": "Valid - December (month 12)", - "data": "20231231T120000+01", - "valid": true - }, - { - "description": "Invalid - spaces in datetime", - "data": "2023 01 15T12 00 00+01", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "20230115T120000+01X", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning", - "data": "X20230115T120000+01", - "valid": false - }, - { - "description": "Valid - year 0000", - "data": "00000101T120000+00", - "valid": true - }, - { - "description": "Valid - year 9999", - "data": "99991231T235959+00", - "valid": true - }, - { - "description": "Invalid - 30 February", - "data": "20230230T120000+01", - "valid": false - }, - { - "description": "Invalid - 31 February", - "data": "20230231T120000+01", - "valid": false - }, - { - "description": "Valid - 29 February (leap year validation is consumer responsibility)", - "data": "20230229T120000+01", - "valid": true - }, - { - "description": "Invalid - 31 April", - "data": "20230431T120000+01", - "valid": false - }, - { - "description": "Invalid - 31 June", - "data": "20230631T120000+01", - "valid": false - }, - { - "description": "Invalid - 31 September", - "data": "20230931T120000+01", - "valid": false - }, - { - "description": "Invalid - 31 November", - "data": "20231131T120000+01", - "valid": false - }, - { - "description": "Invalid - 32 January", - "data": "20230132T120000+01", - "valid": false - }, - { - "description": "Invalid - 32 March", - "data": "20230332T120000+01", - "valid": false - }, - { - "description": "Invalid - 32 May", - "data": "20230532T120000+01", - "valid": false - }, - { - "description": "Invalid - 32 July", - "data": "20230732T120000+01", - "valid": false - }, - { - "description": "Invalid - 32 August", - "data": "20230832T120000+01", - "valid": false - }, - { - "description": "Invalid - 32 October", - "data": "20231032T120000+01", - "valid": false - }, - { - "description": "Invalid - 32 December", - "data": "20231232T120000+01", - "valid": false - }, - { - "description": "Invalid - letter in year", - "data": "2O230115T120000+01", - "valid": false - }, - { - "description": "Invalid - letter in month", - "data": "2023O115T120000+01", - "valid": false - }, - { - "description": "Invalid - letter in day", - "data": "202301O5T120000+01", - "valid": false - }, - { - "description": "Invalid - letter in hour", - "data": "20230115T1O0000+01", - "valid": false - }, - { - "description": "Invalid - letter in minute", - "data": "20230115T12O000+01", - "valid": false - }, - { - "description": "Invalid - letter in second", - "data": "20230115T1200O0+01", - "valid": false - }, - { - "description": "Valid - 30 April (30-day month)", - "data": "20230430T120000+01", - "valid": true - }, - { - "description": "Valid - 30 June (30-day month)", - "data": "20230630T120000+01", - "valid": true - }, - { - "description": "Valid - 30 September (30-day month)", - "data": "20230930T120000+01", - "valid": true - }, - { - "description": "Valid - 30 November (30-day month)", - "data": "20231130T120000+01", - "valid": true - }, - { - "description": "Valid - 31 January (31-day month)", - "data": "20230131T120000+01", - "valid": true - }, - { - "description": "Valid - 31 March (31-day month)", - "data": "20230331T120000+01", - "valid": true - }, - { - "description": "Valid - 31 May (31-day month)", - "data": "20230531T120000+01", - "valid": true - }, - { - "description": "Valid - 31 July (31-day month)", - "data": "20230731T120000+01", - "valid": true - }, - { - "description": "Valid - 31 August (31-day month)", - "data": "20230831T120000+01", - "valid": true - }, - { - "description": "Valid - 31 October (31-day month)", - "data": "20231031T120000+01", - "valid": true - }, - { - "description": "Valid - 31 December (31-day month)", - "data": "20231231T120000+01", - "valid": true - } - ] -} diff --git a/test/iso/datetime/2019/datetime/calendar-shifthour-extended/v1.test.json b/test/iso/datetime/2019/datetime/calendar-shifthour-extended/v1.test.json deleted file mode 100644 index b528e0a4..00000000 --- a/test/iso/datetime/2019/datetime/calendar-shifthour-extended/v1.test.json +++ /dev/null @@ -1,460 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/datetime/calendar-shifthour-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 20180101120000, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 1985-04-12 23:20:50 +04", - "data": "1985-04-12T23:20:50+04", - "valid": true - }, - { - "description": "Valid - midnight 2000-01-01 00:00:00 -05", - "data": "2000-01-01T00:00:00-05", - "valid": true - }, - { - "description": "Valid - leap second 2023-12-31 23:59:60 +00", - "data": "2023-12-31T23:59:60+00", - "valid": true - }, - { - "description": "Valid - leap day 2020-02-29 12:00:00 +05", - "data": "2020-02-29T12:00:00+05", - "valid": true - }, - { - "description": "Valid - positive shift +01", - "data": "2023-01-15T12:00:00+01", - "valid": true - }, - { - "description": "Valid - negative shift -08", - "data": "2023-01-15T12:00:00-08", - "valid": true - }, - { - "description": "Valid - maximum positive shift +23", - "data": "2023-01-15T12:00:00+23", - "valid": true - }, - { - "description": "Valid - maximum negative shift -23", - "data": "2023-01-15T12:00:00-23", - "valid": true - }, - { - "description": "Valid - zero shift +00", - "data": "2023-01-15T12:00:00+00", - "valid": true - }, - { - "description": "Invalid - negative zero shift -00", - "data": "2023-01-15T12:00:00-00", - "valid": false - }, - { - "description": "Valid - historical date 1900-03-15 06:30:45 +02", - "data": "1900-03-15T06:30:45+02", - "valid": true - }, - { - "description": "Valid - future date 2100-08-20 18:45:30 -12", - "data": "2100-08-20T18:45:30-12", - "valid": true - }, - { - "description": "Invalid - missing T designator", - "data": "1985-04-1223:20:50+04", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "1985-04-12t23:20:50+04", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - basic format", - "data": "19850412T232050+04", - "valid": false - }, - { - "description": "Invalid - missing time shift", - "data": "1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - with Z instead of shift", - "data": "1985-04-12T23:20:50Z", - "valid": false - }, - { - "description": "Invalid - shift hour 24", - "data": "2023-01-15T12:00:00+24", - "valid": false - }, - { - "description": "Invalid - shift hour 25", - "data": "2023-01-15T12:00:00+25", - "valid": false - }, - { - "description": "Invalid - shift hour 99", - "data": "2023-01-15T12:00:00+99", - "valid": false - }, - { - "description": "Invalid - missing shift sign", - "data": "2023-01-15T12:00:0004", - "valid": false - }, - { - "description": "Invalid - shift with minutes (full shift)", - "data": "1985-04-12T23:20:50+04:00", - "valid": false - }, - { - "description": "Invalid - shift without colon (basic format shift)", - "data": "1985-04-12T23:20:50+0400", - "valid": false - }, - { - "description": "Invalid - single digit shift", - "data": "1985-04-12T23:20:50+4", - "valid": false - }, - { - "description": "Invalid - three digit shift", - "data": "1985-04-12T23:20:50+004", - "valid": false - }, - { - "description": "Invalid - month 00", - "data": "2023-00-12T12:00:00+01", - "valid": false - }, - { - "description": "Invalid - month 13", - "data": "2023-13-12T12:00:00+01", - "valid": false - }, - { - "description": "Invalid - day 00", - "data": "2023-01-00T12:00:00+01", - "valid": false - }, - { - "description": "Invalid - day 32", - "data": "2023-01-32T12:00:00+01", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "2023-01-15T24:00:00+01", - "valid": false - }, - { - "description": "Invalid - hour 25", - "data": "2023-01-15T25:00:00+01", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "2023-01-15T12:60:00+01", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "2023-01-15T12:99:00+01", - "valid": false - }, - { - "description": "Invalid - second 61", - "data": "2023-01-15T12:00:61+01", - "valid": false - }, - { - "description": "Invalid - second 99", - "data": "2023-01-15T12:00:99+01", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "2023-01-15T00:00:00+01", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "2023-01-15T23:00:00+01", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "2023-01-15T12:00:00+01", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "2023-01-15T12:59:00+01", - "valid": true - }, - { - "description": "Valid - second 00 (minimum)", - "data": "2023-01-15T12:00:00+01", - "valid": true - }, - { - "description": "Valid - second 59", - "data": "2023-01-15T12:00:59+01", - "valid": true - }, - { - "description": "Valid - second 60 (leap second)", - "data": "2023-06-30T23:59:60+01", - "valid": true - }, - { - "description": "Invalid - missing hyphens in date", - "data": "20230115T12:00:00+01", - "valid": false - }, - { - "description": "Invalid - missing colons in time", - "data": "2023-01-15T120000+01", - "valid": false - }, - { - "description": "Invalid - with decimal seconds", - "data": "2023-01-15T12:00:00.5+01", - "valid": false - }, - { - "description": "Invalid - partial time (hour and minute only)", - "data": "2023-01-15T12:00+01", - "valid": false - }, - { - "description": "Invalid - date only", - "data": "2023-01-15+01", - "valid": false - }, - { - "description": "Valid - January (month 01)", - "data": "2023-01-15T12:00:00+01", - "valid": true - }, - { - "description": "Valid - December (month 12)", - "data": "2023-12-31T12:00:00+01", - "valid": true - }, - { - "description": "Invalid - spaces in datetime", - "data": "2023-01-15 T 12:00:00 + 01", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "2023-01-15T12:00:00+01X", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning", - "data": "X2023-01-15T12:00:00+01", - "valid": false - }, - { - "description": "Valid - year 0000", - "data": "0000-01-01T12:00:00+00", - "valid": true - }, - { - "description": "Valid - year 9999", - "data": "9999-12-31T23:59:59+00", - "valid": true - }, - { - "description": "Invalid - 30 February", - "data": "2023-02-30T12:00:00+01", - "valid": false - }, - { - "description": "Invalid - 31 February", - "data": "2023-02-31T12:00:00+01", - "valid": false - }, - { - "description": "Valid - 29 February (leap year validation is consumer responsibility)", - "data": "2023-02-29T12:00:00+01", - "valid": true - }, - { - "description": "Invalid - 31 April", - "data": "2023-04-31T12:00:00+01", - "valid": false - }, - { - "description": "Invalid - 31 June", - "data": "2023-06-31T12:00:00+01", - "valid": false - }, - { - "description": "Invalid - 31 September", - "data": "2023-09-31T12:00:00+01", - "valid": false - }, - { - "description": "Invalid - 31 November", - "data": "2023-11-31T12:00:00+01", - "valid": false - }, - { - "description": "Invalid - 32 January", - "data": "2023-01-32T12:00:00+01", - "valid": false - }, - { - "description": "Invalid - 32 March", - "data": "2023-03-32T12:00:00+01", - "valid": false - }, - { - "description": "Invalid - 32 May", - "data": "2023-05-32T12:00:00+01", - "valid": false - }, - { - "description": "Invalid - 32 July", - "data": "2023-07-32T12:00:00+01", - "valid": false - }, - { - "description": "Invalid - 32 August", - "data": "2023-08-32T12:00:00+01", - "valid": false - }, - { - "description": "Invalid - 32 October", - "data": "2023-10-32T12:00:00+01", - "valid": false - }, - { - "description": "Invalid - 32 December", - "data": "2023-12-32T12:00:00+01", - "valid": false - }, - { - "description": "Invalid - letter in year", - "data": "2O23-01-15T12:00:00+01", - "valid": false - }, - { - "description": "Invalid - letter in month", - "data": "2023-O1-15T12:00:00+01", - "valid": false - }, - { - "description": "Invalid - letter in day", - "data": "2023-01-O5T12:00:00+01", - "valid": false - }, - { - "description": "Invalid - letter in hour", - "data": "2023-01-15T1O:00:00+01", - "valid": false - }, - { - "description": "Invalid - letter in minute", - "data": "2023-01-15T12:O0:00+01", - "valid": false - }, - { - "description": "Invalid - letter in second", - "data": "2023-01-15T12:00:O0+01", - "valid": false - }, - { - "description": "Valid - 30 April (30-day month)", - "data": "2023-04-30T12:00:00+01", - "valid": true - }, - { - "description": "Valid - 30 June (30-day month)", - "data": "2023-06-30T12:00:00+01", - "valid": true - }, - { - "description": "Valid - 30 September (30-day month)", - "data": "2023-09-30T12:00:00+01", - "valid": true - }, - { - "description": "Valid - 30 November (30-day month)", - "data": "2023-11-30T12:00:00+01", - "valid": true - }, - { - "description": "Valid - 31 January (31-day month)", - "data": "2023-01-31T12:00:00+01", - "valid": true - }, - { - "description": "Valid - 31 March (31-day month)", - "data": "2023-03-31T12:00:00+01", - "valid": true - }, - { - "description": "Valid - 31 May (31-day month)", - "data": "2023-05-31T12:00:00+01", - "valid": true - }, - { - "description": "Valid - 31 July (31-day month)", - "data": "2023-07-31T12:00:00+01", - "valid": true - }, - { - "description": "Valid - 31 August (31-day month)", - "data": "2023-08-31T12:00:00+01", - "valid": true - }, - { - "description": "Valid - 31 October (31-day month)", - "data": "2023-10-31T12:00:00+01", - "valid": true - }, - { - "description": "Valid - 31 December (31-day month)", - "data": "2023-12-31T12:00:00+01", - "valid": true - } - ] -} diff --git a/test/iso/datetime/2019/datetime/calendar-utc-basic/v1.test.json b/test/iso/datetime/2019/datetime/calendar-utc-basic/v1.test.json deleted file mode 100644 index 6d98a0d8..00000000 --- a/test/iso/datetime/2019/datetime/calendar-utc-basic/v1.test.json +++ /dev/null @@ -1,440 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/datetime/calendar-utc-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 20180101120000, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 1985-04-12 23:20:50 UTC", - "data": "19850412T232050Z", - "valid": true - }, - { - "description": "Valid - midnight 2000-01-01 00:00:00 UTC", - "data": "20000101T000000Z", - "valid": true - }, - { - "description": "Valid - leap second 2023-12-31 23:59:60 UTC", - "data": "20231231T235960Z", - "valid": true - }, - { - "description": "Valid - leap day 2020-02-29 12:00:00 UTC", - "data": "20200229T120000Z", - "valid": true - }, - { - "description": "Valid - end of year 2023-12-31 23:59:59 UTC", - "data": "20231231T235959Z", - "valid": true - }, - { - "description": "Valid - start of year 2024-01-01 00:00:00 UTC", - "data": "20240101T000000Z", - "valid": true - }, - { - "description": "Valid - historical date 1900-03-15 06:30:45 UTC", - "data": "19000315T063045Z", - "valid": true - }, - { - "description": "Valid - future date 2100-08-20 18:45:30 UTC", - "data": "21000820T184530Z", - "valid": true - }, - { - "description": "Invalid - missing T designator", - "data": "19850412232050Z", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "19850412t232050Z", - "valid": false - }, - { - "description": "Invalid - lowercase z", - "data": "19850412T232050z", - "valid": false - }, - { - "description": "Invalid - missing Z designator", - "data": "19850412T232050", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - extended format", - "data": "1985-04-12T23:20:50Z", - "valid": false - }, - { - "description": "Invalid - month 00", - "data": "20230012T120000Z", - "valid": false - }, - { - "description": "Invalid - month 13", - "data": "20231312T120000Z", - "valid": false - }, - { - "description": "Invalid - month 99", - "data": "20239912T120000Z", - "valid": false - }, - { - "description": "Invalid - day 00", - "data": "20230100T120000Z", - "valid": false - }, - { - "description": "Invalid - day 32", - "data": "20230132T120000Z", - "valid": false - }, - { - "description": "Invalid - day 99", - "data": "20230199T120000Z", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "20230115T240000Z", - "valid": false - }, - { - "description": "Invalid - hour 25", - "data": "20230115T250000Z", - "valid": false - }, - { - "description": "Invalid - hour 99", - "data": "20230115T990000Z", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "20230115T126000Z", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "20230115T129900Z", - "valid": false - }, - { - "description": "Invalid - second 61", - "data": "20230115T120061Z", - "valid": false - }, - { - "description": "Invalid - second 99", - "data": "20230115T120099Z", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "20230115T000000Z", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "20230115T230000Z", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "20230115T120000Z", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "20230115T125900Z", - "valid": true - }, - { - "description": "Valid - second 00 (minimum)", - "data": "20230115T120000Z", - "valid": true - }, - { - "description": "Valid - second 59", - "data": "20230115T120059Z", - "valid": true - }, - { - "description": "Valid - second 60 (leap second)", - "data": "20230630T235960Z", - "valid": true - }, - { - "description": "Invalid - with time shift instead of Z", - "data": "20230115T120000+0100", - "valid": false - }, - { - "description": "Invalid - with hourly time shift", - "data": "20230115T120000+01", - "valid": false - }, - { - "description": "Invalid - with decimal seconds", - "data": "20230115T120000.5Z", - "valid": false - }, - { - "description": "Invalid - partial time (hour and minute only)", - "data": "20230115T1200Z", - "valid": false - }, - { - "description": "Invalid - partial time (hour only)", - "data": "20230115T12Z", - "valid": false - }, - { - "description": "Invalid - date only", - "data": "20230115Z", - "valid": false - }, - { - "description": "Invalid - time only", - "data": "T120000Z", - "valid": false - }, - { - "description": "Valid - January (month 01)", - "data": "20230115T120000Z", - "valid": true - }, - { - "description": "Valid - December (month 12)", - "data": "20231231T120000Z", - "valid": true - }, - { - "description": "Invalid - spaces in datetime", - "data": "2023 01 15T12 00 00Z", - "valid": false - }, - { - "description": "Invalid - missing year digits", - "data": "230115T120000Z", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "20230115T120000ZX", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning", - "data": "X20230115T120000Z", - "valid": false - }, - { - "description": "Invalid - double Z", - "data": "20230115T120000ZZ", - "valid": false - }, - { - "description": "Invalid - Z before time", - "data": "20230115TZ120000", - "valid": false - }, - { - "description": "Valid - year 0000", - "data": "00000101T120000Z", - "valid": true - }, - { - "description": "Valid - year 9999", - "data": "99991231T235959Z", - "valid": true - }, - { - "description": "Invalid - 30 February", - "data": "20230230T120000Z", - "valid": false - }, - { - "description": "Invalid - 31 February", - "data": "20230231T120000Z", - "valid": false - }, - { - "description": "Valid - 29 February (leap year validation is consumer responsibility)", - "data": "20230229T120000Z", - "valid": true - }, - { - "description": "Invalid - 31 April", - "data": "20230431T120000Z", - "valid": false - }, - { - "description": "Invalid - 31 June", - "data": "20230631T120000Z", - "valid": false - }, - { - "description": "Invalid - 31 September", - "data": "20230931T120000Z", - "valid": false - }, - { - "description": "Invalid - 31 November", - "data": "20231131T120000Z", - "valid": false - }, - { - "description": "Invalid - 32 January", - "data": "20230132T120000Z", - "valid": false - }, - { - "description": "Invalid - 32 March", - "data": "20230332T120000Z", - "valid": false - }, - { - "description": "Invalid - 32 May", - "data": "20230532T120000Z", - "valid": false - }, - { - "description": "Invalid - 32 July", - "data": "20230732T120000Z", - "valid": false - }, - { - "description": "Invalid - 32 August", - "data": "20230832T120000Z", - "valid": false - }, - { - "description": "Invalid - 32 October", - "data": "20231032T120000Z", - "valid": false - }, - { - "description": "Invalid - 32 December", - "data": "20231232T120000Z", - "valid": false - }, - { - "description": "Invalid - letter in year", - "data": "2O230115T120000Z", - "valid": false - }, - { - "description": "Invalid - letter in month", - "data": "2023O115T120000Z", - "valid": false - }, - { - "description": "Invalid - letter in day", - "data": "202301O5T120000Z", - "valid": false - }, - { - "description": "Invalid - letter in hour", - "data": "20230115T1O0000Z", - "valid": false - }, - { - "description": "Invalid - letter in minute", - "data": "20230115T12O000Z", - "valid": false - }, - { - "description": "Invalid - letter in second", - "data": "20230115T1200O0Z", - "valid": false - }, - { - "description": "Valid - 30 April (30-day month)", - "data": "20230430T120000Z", - "valid": true - }, - { - "description": "Valid - 30 June (30-day month)", - "data": "20230630T120000Z", - "valid": true - }, - { - "description": "Valid - 30 September (30-day month)", - "data": "20230930T120000Z", - "valid": true - }, - { - "description": "Valid - 30 November (30-day month)", - "data": "20231130T120000Z", - "valid": true - }, - { - "description": "Valid - 31 January (31-day month)", - "data": "20230131T120000Z", - "valid": true - }, - { - "description": "Valid - 31 March (31-day month)", - "data": "20230331T120000Z", - "valid": true - }, - { - "description": "Valid - 31 May (31-day month)", - "data": "20230531T120000Z", - "valid": true - }, - { - "description": "Valid - 31 July (31-day month)", - "data": "20230731T120000Z", - "valid": true - }, - { - "description": "Valid - 31 August (31-day month)", - "data": "20230831T120000Z", - "valid": true - }, - { - "description": "Valid - 31 October (31-day month)", - "data": "20231031T120000Z", - "valid": true - }, - { - "description": "Valid - 31 December (31-day month)", - "data": "20231231T120000Z", - "valid": true - } - ] -} diff --git a/test/iso/datetime/2019/datetime/calendar-utc-extended/v1.test.json b/test/iso/datetime/2019/datetime/calendar-utc-extended/v1.test.json deleted file mode 100644 index cb95fa2c..00000000 --- a/test/iso/datetime/2019/datetime/calendar-utc-extended/v1.test.json +++ /dev/null @@ -1,455 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/datetime/calendar-utc-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 20180101120000, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 1985-04-12 23:20:50 UTC", - "data": "1985-04-12T23:20:50Z", - "valid": true - }, - { - "description": "Valid - midnight 2000-01-01 00:00:00 UTC", - "data": "2000-01-01T00:00:00Z", - "valid": true - }, - { - "description": "Valid - leap second 2023-12-31 23:59:60 UTC", - "data": "2023-12-31T23:59:60Z", - "valid": true - }, - { - "description": "Valid - leap day 2020-02-29 12:00:00 UTC", - "data": "2020-02-29T12:00:00Z", - "valid": true - }, - { - "description": "Valid - end of year 2023-12-31 23:59:59 UTC", - "data": "2023-12-31T23:59:59Z", - "valid": true - }, - { - "description": "Valid - start of year 2024-01-01 00:00:00 UTC", - "data": "2024-01-01T00:00:00Z", - "valid": true - }, - { - "description": "Valid - historical date 1900-03-15 06:30:45 UTC", - "data": "1900-03-15T06:30:45Z", - "valid": true - }, - { - "description": "Valid - future date 2100-08-20 18:45:30 UTC", - "data": "2100-08-20T18:45:30Z", - "valid": true - }, - { - "description": "Invalid - missing T designator", - "data": "1985-04-1223:20:50Z", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "1985-04-12t23:20:50Z", - "valid": false - }, - { - "description": "Invalid - lowercase z", - "data": "1985-04-12T23:20:50z", - "valid": false - }, - { - "description": "Invalid - missing Z designator", - "data": "1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - basic format", - "data": "19850412T232050Z", - "valid": false - }, - { - "description": "Invalid - month 00", - "data": "2023-00-12T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - month 13", - "data": "2023-13-12T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - month 99", - "data": "2023-99-12T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - day 00", - "data": "2023-01-00T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - day 32", - "data": "2023-01-32T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - day 99", - "data": "2023-01-99T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "2023-01-15T24:00:00Z", - "valid": false - }, - { - "description": "Invalid - hour 25", - "data": "2023-01-15T25:00:00Z", - "valid": false - }, - { - "description": "Invalid - hour 99", - "data": "2023-01-15T99:00:00Z", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "2023-01-15T12:60:00Z", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "2023-01-15T12:99:00Z", - "valid": false - }, - { - "description": "Invalid - second 61", - "data": "2023-01-15T12:00:61Z", - "valid": false - }, - { - "description": "Invalid - second 99", - "data": "2023-01-15T12:00:99Z", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "2023-01-15T00:00:00Z", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "2023-01-15T23:00:00Z", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "2023-01-15T12:00:00Z", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "2023-01-15T12:59:00Z", - "valid": true - }, - { - "description": "Valid - second 00 (minimum)", - "data": "2023-01-15T12:00:00Z", - "valid": true - }, - { - "description": "Valid - second 59", - "data": "2023-01-15T12:00:59Z", - "valid": true - }, - { - "description": "Valid - second 60 (leap second)", - "data": "2023-06-30T23:59:60Z", - "valid": true - }, - { - "description": "Invalid - missing hyphens in date", - "data": "20230115T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - missing colons in time", - "data": "2023-01-15T120000Z", - "valid": false - }, - { - "description": "Invalid - with time shift instead of Z", - "data": "2023-01-15T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - with hourly time shift", - "data": "2023-01-15T12:00:00+01", - "valid": false - }, - { - "description": "Invalid - with decimal seconds", - "data": "2023-01-15T12:00:00.5Z", - "valid": false - }, - { - "description": "Invalid - partial time (hour and minute only)", - "data": "2023-01-15T12:00Z", - "valid": false - }, - { - "description": "Invalid - partial time (hour only)", - "data": "2023-01-15T12Z", - "valid": false - }, - { - "description": "Invalid - date only", - "data": "2023-01-15Z", - "valid": false - }, - { - "description": "Invalid - time only", - "data": "T12:00:00Z", - "valid": false - }, - { - "description": "Valid - January (month 01)", - "data": "2023-01-15T12:00:00Z", - "valid": true - }, - { - "description": "Valid - December (month 12)", - "data": "2023-12-31T12:00:00Z", - "valid": true - }, - { - "description": "Invalid - spaces in datetime", - "data": "2023-01-15 T 12:00:00Z", - "valid": false - }, - { - "description": "Invalid - extra hyphen in date", - "data": "2023--01-15T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - extra colon in time", - "data": "2023-01-15T12::00:00Z", - "valid": false - }, - { - "description": "Invalid - missing year digits", - "data": "23-01-15T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "2023-01-15T12:00:00ZX", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning", - "data": "X2023-01-15T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - double Z", - "data": "2023-01-15T12:00:00ZZ", - "valid": false - }, - { - "description": "Valid - year 0000", - "data": "0000-01-01T12:00:00Z", - "valid": true - }, - { - "description": "Valid - year 9999", - "data": "9999-12-31T23:59:59Z", - "valid": true - }, - { - "description": "Invalid - 30 February", - "data": "2023-02-30T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - 31 February", - "data": "2023-02-31T12:00:00Z", - "valid": false - }, - { - "description": "Valid - 29 February (leap year validation is consumer responsibility)", - "data": "2023-02-29T12:00:00Z", - "valid": true - }, - { - "description": "Invalid - 31 April", - "data": "2023-04-31T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - 31 June", - "data": "2023-06-31T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - 31 September", - "data": "2023-09-31T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - 31 November", - "data": "2023-11-31T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - 32 January", - "data": "2023-01-32T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - 32 March", - "data": "2023-03-32T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - 32 May", - "data": "2023-05-32T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - 32 July", - "data": "2023-07-32T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - 32 August", - "data": "2023-08-32T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - 32 October", - "data": "2023-10-32T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - 32 December", - "data": "2023-12-32T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - letter in year", - "data": "2O23-01-15T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - letter in month", - "data": "2023-O1-15T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - letter in day", - "data": "2023-01-O5T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - letter in hour", - "data": "2023-01-15T1O:00:00Z", - "valid": false - }, - { - "description": "Invalid - letter in minute", - "data": "2023-01-15T12:O0:00Z", - "valid": false - }, - { - "description": "Invalid - letter in second", - "data": "2023-01-15T12:00:O0Z", - "valid": false - }, - { - "description": "Valid - 30 April (30-day month)", - "data": "2023-04-30T12:00:00Z", - "valid": true - }, - { - "description": "Valid - 30 June (30-day month)", - "data": "2023-06-30T12:00:00Z", - "valid": true - }, - { - "description": "Valid - 30 September (30-day month)", - "data": "2023-09-30T12:00:00Z", - "valid": true - }, - { - "description": "Valid - 30 November (30-day month)", - "data": "2023-11-30T12:00:00Z", - "valid": true - }, - { - "description": "Valid - 31 January (31-day month)", - "data": "2023-01-31T12:00:00Z", - "valid": true - }, - { - "description": "Valid - 31 March (31-day month)", - "data": "2023-03-31T12:00:00Z", - "valid": true - }, - { - "description": "Valid - 31 May (31-day month)", - "data": "2023-05-31T12:00:00Z", - "valid": true - }, - { - "description": "Valid - 31 July (31-day month)", - "data": "2023-07-31T12:00:00Z", - "valid": true - }, - { - "description": "Valid - 31 August (31-day month)", - "data": "2023-08-31T12:00:00Z", - "valid": true - }, - { - "description": "Valid - 31 October (31-day month)", - "data": "2023-10-31T12:00:00Z", - "valid": true - }, - { - "description": "Valid - 31 December (31-day month)", - "data": "2023-12-31T12:00:00Z", - "valid": true - } - ] -} diff --git a/test/iso/datetime/2019/datetime/ordinal-basic/v1.test.json b/test/iso/datetime/2019/datetime/ordinal-basic/v1.test.json deleted file mode 100644 index 85c9b7b1..00000000 --- a/test/iso/datetime/2019/datetime/ordinal-basic/v1.test.json +++ /dev/null @@ -1,260 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/datetime/ordinal-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 2018001120000, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 1985-102 (Apr 12) 23:20:50", - "data": "1985102T232050", - "valid": true - }, - { - "description": "Valid - 2000-001 (Jan 1) 00:00:00", - "data": "2000001T000000", - "valid": true - }, - { - "description": "Valid - leap second 2023-365 23:59:60", - "data": "2023365T235960", - "valid": true - }, - { - "description": "Valid - leap day 2020-060 (Feb 29) 12:00:00", - "data": "2020060T120000", - "valid": true - }, - { - "description": "Valid - end of year 2023-365 23:59:59", - "data": "2023365T235959", - "valid": true - }, - { - "description": "Valid - start of year 2024-001 00:00:00", - "data": "2024001T000000", - "valid": true - }, - { - "description": "Valid - historical date 1900-074 (Mar 15) 06:30:45", - "data": "1900074T063045", - "valid": true - }, - { - "description": "Valid - future date 2100-232 (Aug 20) 18:45:30", - "data": "2100232T184530", - "valid": true - }, - { - "description": "Valid - leap year day 366 (2020-366)", - "data": "2020366T120000", - "valid": true - }, - { - "description": "Invalid - missing T designator", - "data": "1985102232050", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "1985102t232050", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - extended format (has hyphen)", - "data": "1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - day 000", - "data": "2023000T120000", - "valid": false - }, - { - "description": "Invalid - day 367", - "data": "2023367T120000", - "valid": false - }, - { - "description": "Invalid - day 999", - "data": "2023999T120000", - "valid": false - }, - { - "description": "Invalid - day with leading zeros 0001", - "data": "20230001T120000", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "2023100T240000", - "valid": false - }, - { - "description": "Invalid - hour 25", - "data": "2023100T250000", - "valid": false - }, - { - "description": "Invalid - hour 99", - "data": "2023100T990000", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "2023100T126000", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "2023100T129900", - "valid": false - }, - { - "description": "Invalid - second 61", - "data": "2023100T120061", - "valid": false - }, - { - "description": "Invalid - second 99", - "data": "2023100T120099", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "2023100T000000", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "2023100T230000", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "2023100T120000", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "2023100T125900", - "valid": true - }, - { - "description": "Valid - second 00 (minimum)", - "data": "2023100T120000", - "valid": true - }, - { - "description": "Valid - second 59", - "data": "2023100T120059", - "valid": true - }, - { - "description": "Valid - second 60 (leap second)", - "data": "2023181T235960", - "valid": true - }, - { - "description": "Invalid - with Z designator", - "data": "2023100T120000Z", - "valid": false - }, - { - "description": "Invalid - with time shift", - "data": "2023100T120000+0100", - "valid": false - }, - { - "description": "Invalid - with decimal seconds", - "data": "2023100T120000.5", - "valid": false - }, - { - "description": "Invalid - partial time (hour and minute only)", - "data": "2023100T1200", - "valid": false - }, - { - "description": "Invalid - partial time (hour only)", - "data": "2023100T12", - "valid": false - }, - { - "description": "Invalid - date only", - "data": "2023100", - "valid": false - }, - { - "description": "Invalid - time only", - "data": "T120000", - "valid": false - }, - { - "description": "Valid - day 001 (Jan 1)", - "data": "2023001T120000", - "valid": true - }, - { - "description": "Valid - day 365 (non-leap year last day)", - "data": "2023365T120000", - "valid": true - }, - { - "description": "Valid - day 366 (leap year last day)", - "data": "2020366T120000", - "valid": true - }, - { - "description": "Invalid - spaces in datetime", - "data": "2023 100T12 00 00", - "valid": false - }, - { - "description": "Invalid - too short day (2 digits)", - "data": "202310T120000", - "valid": false - }, - { - "description": "Invalid - missing year digits", - "data": "23100T120000", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "2023100T120000X", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning", - "data": "X2023100T120000", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/datetime/ordinal-extended/v1.test.json b/test/iso/datetime/2019/datetime/ordinal-extended/v1.test.json deleted file mode 100644 index 60443710..00000000 --- a/test/iso/datetime/2019/datetime/ordinal-extended/v1.test.json +++ /dev/null @@ -1,265 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/datetime/ordinal-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 2018001120000, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 1985-102 (Apr 12) 23:20:50", - "data": "1985-102T23:20:50", - "valid": true - }, - { - "description": "Valid - 2000-001 (Jan 1) 00:00:00", - "data": "2000-001T00:00:00", - "valid": true - }, - { - "description": "Valid - leap second 2023-365 23:59:60", - "data": "2023-365T23:59:60", - "valid": true - }, - { - "description": "Valid - leap day 2020-060 (Feb 29) 12:00:00", - "data": "2020-060T12:00:00", - "valid": true - }, - { - "description": "Valid - end of year 2023-365 23:59:59", - "data": "2023-365T23:59:59", - "valid": true - }, - { - "description": "Valid - start of year 2024-001 00:00:00", - "data": "2024-001T00:00:00", - "valid": true - }, - { - "description": "Valid - historical date 1900-074 (Mar 15) 06:30:45", - "data": "1900-074T06:30:45", - "valid": true - }, - { - "description": "Valid - future date 2100-232 (Aug 20) 18:45:30", - "data": "2100-232T18:45:30", - "valid": true - }, - { - "description": "Valid - leap year day 366 (2020-366)", - "data": "2020-366T12:00:00", - "valid": true - }, - { - "description": "Invalid - missing T designator", - "data": "1985-10223:20:50", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "1985-102t23:20:50", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - basic format (no hyphen or colons)", - "data": "1985102T232050", - "valid": false - }, - { - "description": "Invalid - day 000", - "data": "2023-000T12:00:00", - "valid": false - }, - { - "description": "Invalid - day 367", - "data": "2023-367T12:00:00", - "valid": false - }, - { - "description": "Invalid - day 999", - "data": "2023-999T12:00:00", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "2023-100T24:00:00", - "valid": false - }, - { - "description": "Invalid - hour 25", - "data": "2023-100T25:00:00", - "valid": false - }, - { - "description": "Invalid - hour 99", - "data": "2023-100T99:00:00", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "2023-100T12:60:00", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "2023-100T12:99:00", - "valid": false - }, - { - "description": "Invalid - second 61", - "data": "2023-100T12:00:61", - "valid": false - }, - { - "description": "Invalid - second 99", - "data": "2023-100T12:00:99", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "2023-100T00:00:00", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "2023-100T23:00:00", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "2023-100T12:00:00", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "2023-100T12:59:00", - "valid": true - }, - { - "description": "Valid - second 00 (minimum)", - "data": "2023-100T12:00:00", - "valid": true - }, - { - "description": "Valid - second 59", - "data": "2023-100T12:00:59", - "valid": true - }, - { - "description": "Valid - second 60 (leap second)", - "data": "2023-181T23:59:60", - "valid": true - }, - { - "description": "Invalid - missing hyphen in date", - "data": "2023100T12:00:00", - "valid": false - }, - { - "description": "Invalid - missing colons in time", - "data": "2023-100T120000", - "valid": false - }, - { - "description": "Invalid - with Z designator", - "data": "2023-100T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - with time shift", - "data": "2023-100T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - with decimal seconds", - "data": "2023-100T12:00:00.5", - "valid": false - }, - { - "description": "Invalid - partial time (hour and minute only)", - "data": "2023-100T12:00", - "valid": false - }, - { - "description": "Invalid - partial time (hour only)", - "data": "2023-100T12", - "valid": false - }, - { - "description": "Invalid - date only", - "data": "2023-100", - "valid": false - }, - { - "description": "Invalid - time only", - "data": "T12:00:00", - "valid": false - }, - { - "description": "Valid - day 001 (Jan 1)", - "data": "2023-001T12:00:00", - "valid": true - }, - { - "description": "Valid - day 365 (non-leap year last day)", - "data": "2023-365T12:00:00", - "valid": true - }, - { - "description": "Valid - day 366 (leap year last day)", - "data": "2020-366T12:00:00", - "valid": true - }, - { - "description": "Invalid - spaces in datetime", - "data": "2023-100 T 12:00:00", - "valid": false - }, - { - "description": "Invalid - extra hyphen", - "data": "2023--100T12:00:00", - "valid": false - }, - { - "description": "Invalid - missing year digits", - "data": "23-100T12:00:00", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "2023-100T12:00:00X", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning", - "data": "X2023-100T12:00:00", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/datetime/ordinal-minute-utc-basic/v1.test.json b/test/iso/datetime/2019/datetime/ordinal-minute-utc-basic/v1.test.json deleted file mode 100644 index 49d3afb8..00000000 --- a/test/iso/datetime/2019/datetime/ordinal-minute-utc-basic/v1.test.json +++ /dev/null @@ -1,235 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/datetime/ordinal-minute-utc-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 20180011200, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 1985-102 (Apr 12) 10:15 UTC", - "data": "1985102T1015Z", - "valid": true - }, - { - "description": "Valid - 2000-001 (Jan 1) 00:00 UTC", - "data": "2000001T0000Z", - "valid": true - }, - { - "description": "Valid - end of day 2023-365 23:59 UTC", - "data": "2023365T2359Z", - "valid": true - }, - { - "description": "Valid - leap day 2020-060 (Feb 29) 12:00 UTC", - "data": "2020060T1200Z", - "valid": true - }, - { - "description": "Valid - start of year 2024-001 00:00 UTC", - "data": "2024001T0000Z", - "valid": true - }, - { - "description": "Valid - historical date 1900-074 (Mar 15) 06:30 UTC", - "data": "1900074T0630Z", - "valid": true - }, - { - "description": "Valid - future date 2100-232 (Aug 20) 18:45 UTC", - "data": "2100232T1845Z", - "valid": true - }, - { - "description": "Valid - leap year day 366 (2020-366) UTC", - "data": "2020366T1200Z", - "valid": true - }, - { - "description": "Invalid - missing T designator", - "data": "19851021015Z", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "1985102t1015Z", - "valid": false - }, - { - "description": "Invalid - lowercase z", - "data": "1985102T1015z", - "valid": false - }, - { - "description": "Invalid - missing Z designator", - "data": "1985102T1015", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - extended format", - "data": "1985-102T10:15Z", - "valid": false - }, - { - "description": "Invalid - day 000", - "data": "2023000T1200Z", - "valid": false - }, - { - "description": "Invalid - day 367", - "data": "2023367T1200Z", - "valid": false - }, - { - "description": "Invalid - day 999", - "data": "2023999T1200Z", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "2023100T2400Z", - "valid": false - }, - { - "description": "Invalid - hour 25", - "data": "2023100T2500Z", - "valid": false - }, - { - "description": "Invalid - hour 99", - "data": "2023100T9900Z", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "2023100T1260Z", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "2023100T1299Z", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "2023100T0000Z", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "2023100T2300Z", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "2023100T1200Z", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "2023100T1259Z", - "valid": true - }, - { - "description": "Invalid - with seconds", - "data": "2023100T120000Z", - "valid": false - }, - { - "description": "Invalid - with time shift instead of Z", - "data": "2023100T1200+0100", - "valid": false - }, - { - "description": "Invalid - with hourly time shift", - "data": "2023100T1200+01", - "valid": false - }, - { - "description": "Invalid - with decimal minutes", - "data": "2023100T1200.5Z", - "valid": false - }, - { - "description": "Invalid - partial time (hour only)", - "data": "2023100T12Z", - "valid": false - }, - { - "description": "Invalid - date only", - "data": "2023100Z", - "valid": false - }, - { - "description": "Invalid - time only", - "data": "T1200Z", - "valid": false - }, - { - "description": "Valid - day 001 (Jan 1)", - "data": "2023001T1200Z", - "valid": true - }, - { - "description": "Valid - day 365 (non-leap year last day)", - "data": "2023365T1200Z", - "valid": true - }, - { - "description": "Valid - day 366 (leap year last day)", - "data": "2020366T1200Z", - "valid": true - }, - { - "description": "Invalid - spaces in datetime", - "data": "2023 100T12 00Z", - "valid": false - }, - { - "description": "Invalid - missing year digits", - "data": "23100T1200Z", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "2023100T1200ZX", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning", - "data": "X2023100T1200Z", - "valid": false - }, - { - "description": "Invalid - double Z", - "data": "2023100T1200ZZ", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/datetime/ordinal-minute-utc-extended/v1.test.json b/test/iso/datetime/2019/datetime/ordinal-minute-utc-extended/v1.test.json deleted file mode 100644 index 3f59ecaf..00000000 --- a/test/iso/datetime/2019/datetime/ordinal-minute-utc-extended/v1.test.json +++ /dev/null @@ -1,250 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/datetime/ordinal-minute-utc-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 20180011200, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 1985-102 (Apr 12) 10:15 UTC", - "data": "1985-102T10:15Z", - "valid": true - }, - { - "description": "Valid - 2000-001 (Jan 1) 00:00 UTC", - "data": "2000-001T00:00Z", - "valid": true - }, - { - "description": "Valid - end of day 2023-365 23:59 UTC", - "data": "2023-365T23:59Z", - "valid": true - }, - { - "description": "Valid - leap day 2020-060 (Feb 29) 12:00 UTC", - "data": "2020-060T12:00Z", - "valid": true - }, - { - "description": "Valid - start of year 2024-001 00:00 UTC", - "data": "2024-001T00:00Z", - "valid": true - }, - { - "description": "Valid - historical date 1900-074 (Mar 15) 06:30 UTC", - "data": "1900-074T06:30Z", - "valid": true - }, - { - "description": "Valid - future date 2100-232 (Aug 20) 18:45 UTC", - "data": "2100-232T18:45Z", - "valid": true - }, - { - "description": "Valid - leap year day 366 (2020-366) UTC", - "data": "2020-366T12:00Z", - "valid": true - }, - { - "description": "Invalid - missing T designator", - "data": "1985-10210:15Z", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "1985-102t10:15Z", - "valid": false - }, - { - "description": "Invalid - lowercase z", - "data": "1985-102T10:15z", - "valid": false - }, - { - "description": "Invalid - missing Z designator", - "data": "1985-102T10:15", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - basic format", - "data": "1985102T1015Z", - "valid": false - }, - { - "description": "Invalid - day 000", - "data": "2023-000T12:00Z", - "valid": false - }, - { - "description": "Invalid - day 367", - "data": "2023-367T12:00Z", - "valid": false - }, - { - "description": "Invalid - day 999", - "data": "2023-999T12:00Z", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "2023-100T24:00Z", - "valid": false - }, - { - "description": "Invalid - hour 25", - "data": "2023-100T25:00Z", - "valid": false - }, - { - "description": "Invalid - hour 99", - "data": "2023-100T99:00Z", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "2023-100T12:60Z", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "2023-100T12:99Z", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "2023-100T00:00Z", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "2023-100T23:00Z", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "2023-100T12:00Z", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "2023-100T12:59Z", - "valid": true - }, - { - "description": "Invalid - missing hyphen in date", - "data": "2023100T12:00Z", - "valid": false - }, - { - "description": "Invalid - missing colon in time", - "data": "2023-100T1200Z", - "valid": false - }, - { - "description": "Invalid - with seconds", - "data": "2023-100T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - with time shift instead of Z", - "data": "2023-100T12:00+01:00", - "valid": false - }, - { - "description": "Invalid - with hourly time shift", - "data": "2023-100T12:00+01", - "valid": false - }, - { - "description": "Invalid - with decimal minutes", - "data": "2023-100T12:00.5Z", - "valid": false - }, - { - "description": "Invalid - partial time (hour only)", - "data": "2023-100T12Z", - "valid": false - }, - { - "description": "Invalid - date only", - "data": "2023-100Z", - "valid": false - }, - { - "description": "Invalid - time only", - "data": "T12:00Z", - "valid": false - }, - { - "description": "Valid - day 001 (Jan 1)", - "data": "2023-001T12:00Z", - "valid": true - }, - { - "description": "Valid - day 365 (non-leap year last day)", - "data": "2023-365T12:00Z", - "valid": true - }, - { - "description": "Valid - day 366 (leap year last day)", - "data": "2020-366T12:00Z", - "valid": true - }, - { - "description": "Invalid - spaces in datetime", - "data": "2023-100 T 12:00Z", - "valid": false - }, - { - "description": "Invalid - extra hyphen", - "data": "2023--100T12:00Z", - "valid": false - }, - { - "description": "Invalid - missing year digits", - "data": "23-100T12:00Z", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "2023-100T12:00ZX", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning", - "data": "X2023-100T12:00Z", - "valid": false - }, - { - "description": "Invalid - double Z", - "data": "2023-100T12:00ZZ", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/datetime/ordinal-shift-basic/v1.test.json b/test/iso/datetime/2019/datetime/ordinal-shift-basic/v1.test.json deleted file mode 100644 index 90c4a459..00000000 --- a/test/iso/datetime/2019/datetime/ordinal-shift-basic/v1.test.json +++ /dev/null @@ -1,280 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/datetime/ordinal-shift-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 2018001120000, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 1985-102 (Apr 12) 23:20:50 +04:00", - "data": "1985102T232050+0400", - "valid": true - }, - { - "description": "Valid - 2000-001 (Jan 1) 00:00:00 -05:00", - "data": "2000001T000000-0500", - "valid": true - }, - { - "description": "Valid - leap second 2023-365 23:59:60 +00:00", - "data": "2023365T235960+0000", - "valid": true - }, - { - "description": "Valid - leap day 2020-060 (Feb 29) 12:00:00 +05:30", - "data": "2020060T120000+0530", - "valid": true - }, - { - "description": "Valid - positive shift +01:00", - "data": "2023100T120000+0100", - "valid": true - }, - { - "description": "Valid - negative shift -08:00", - "data": "2023100T120000-0800", - "valid": true - }, - { - "description": "Valid - maximum positive shift +23:59", - "data": "2023100T120000+2359", - "valid": true - }, - { - "description": "Valid - maximum negative shift -23:59", - "data": "2023100T120000-2359", - "valid": true - }, - { - "description": "Valid - zero shift +00:00", - "data": "2023100T120000+0000", - "valid": true - }, - { - "description": "Invalid - negative zero shift -00:00", - "data": "2023100T120000-0000", - "valid": false - }, - { - "description": "Valid - historical date 1900-074 (Mar 15) +02:00", - "data": "1900074T063045+0200", - "valid": true - }, - { - "description": "Valid - future date 2100-232 (Aug 20) -12:00", - "data": "2100232T184530-1200", - "valid": true - }, - { - "description": "Invalid - missing T designator", - "data": "1985102232050+0400", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "1985102t232050+0400", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - extended format", - "data": "1985-102T23:20:50+04:00", - "valid": false - }, - { - "description": "Invalid - missing time shift", - "data": "1985102T232050", - "valid": false - }, - { - "description": "Invalid - with Z instead of shift", - "data": "1985102T232050Z", - "valid": false - }, - { - "description": "Invalid - shift hour 24", - "data": "2023100T120000+2400", - "valid": false - }, - { - "description": "Invalid - shift hour 25", - "data": "2023100T120000+2500", - "valid": false - }, - { - "description": "Invalid - shift minute 60", - "data": "2023100T120000+0160", - "valid": false - }, - { - "description": "Invalid - shift minute 99", - "data": "2023100T120000+0199", - "valid": false - }, - { - "description": "Invalid - missing shift sign", - "data": "2023100T1200000400", - "valid": false - }, - { - "description": "Invalid - colon in shift (extended format shift)", - "data": "1985102T232050+04:00", - "valid": false - }, - { - "description": "Invalid - hourly shift only", - "data": "1985102T232050+04", - "valid": false - }, - { - "description": "Invalid - day 000", - "data": "2023000T120000+0100", - "valid": false - }, - { - "description": "Invalid - day 367", - "data": "2023367T120000+0100", - "valid": false - }, - { - "description": "Invalid - day 999", - "data": "2023999T120000+0100", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "2023100T240000+0100", - "valid": false - }, - { - "description": "Invalid - hour 25", - "data": "2023100T250000+0100", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "2023100T126000+0100", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "2023100T129900+0100", - "valid": false - }, - { - "description": "Invalid - second 61", - "data": "2023100T120061+0100", - "valid": false - }, - { - "description": "Invalid - second 99", - "data": "2023100T120099+0100", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "2023100T000000+0100", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "2023100T230000+0100", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "2023100T120000+0100", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "2023100T125900+0100", - "valid": true - }, - { - "description": "Valid - second 00 (minimum)", - "data": "2023100T120000+0100", - "valid": true - }, - { - "description": "Valid - second 59", - "data": "2023100T120059+0100", - "valid": true - }, - { - "description": "Valid - second 60 (leap second)", - "data": "2023181T235960+0100", - "valid": true - }, - { - "description": "Invalid - with decimal seconds", - "data": "2023100T120000.5+0100", - "valid": false - }, - { - "description": "Invalid - partial time (hour and minute only)", - "data": "2023100T1200+0100", - "valid": false - }, - { - "description": "Invalid - date only", - "data": "2023100+0100", - "valid": false - }, - { - "description": "Valid - day 001 (Jan 1)", - "data": "2023001T120000+0100", - "valid": true - }, - { - "description": "Valid - day 365 (non-leap year last day)", - "data": "2023365T120000+0100", - "valid": true - }, - { - "description": "Valid - day 366 (leap year last day)", - "data": "2020366T120000+0100", - "valid": true - }, - { - "description": "Invalid - spaces in datetime", - "data": "2023 100T12 00 00+01 00", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "2023100T120000+0100X", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning", - "data": "X2023100T120000+0100", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/datetime/ordinal-shift-extended/v1.test.json b/test/iso/datetime/2019/datetime/ordinal-shift-extended/v1.test.json deleted file mode 100644 index e02cac68..00000000 --- a/test/iso/datetime/2019/datetime/ordinal-shift-extended/v1.test.json +++ /dev/null @@ -1,290 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/datetime/ordinal-shift-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 2018001120000, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 1985-102 (Apr 12) 23:20:50 +04:00", - "data": "1985-102T23:20:50+04:00", - "valid": true - }, - { - "description": "Valid - 2000-001 (Jan 1) 00:00:00 -05:00", - "data": "2000-001T00:00:00-05:00", - "valid": true - }, - { - "description": "Valid - leap second 2023-365 23:59:60 +00:00", - "data": "2023-365T23:59:60+00:00", - "valid": true - }, - { - "description": "Valid - leap day 2020-060 (Feb 29) 12:00:00 +05:30", - "data": "2020-060T12:00:00+05:30", - "valid": true - }, - { - "description": "Valid - positive shift +01:00", - "data": "2023-100T12:00:00+01:00", - "valid": true - }, - { - "description": "Valid - negative shift -08:00", - "data": "2023-100T12:00:00-08:00", - "valid": true - }, - { - "description": "Valid - maximum positive shift +23:59", - "data": "2023-100T12:00:00+23:59", - "valid": true - }, - { - "description": "Valid - maximum negative shift -23:59", - "data": "2023-100T12:00:00-23:59", - "valid": true - }, - { - "description": "Valid - zero shift +00:00", - "data": "2023-100T12:00:00+00:00", - "valid": true - }, - { - "description": "Invalid - negative zero shift -00:00", - "data": "2023-100T12:00:00-00:00", - "valid": false - }, - { - "description": "Valid - historical date 1900-074 (Mar 15) +02:00", - "data": "1900-074T06:30:45+02:00", - "valid": true - }, - { - "description": "Valid - future date 2100-232 (Aug 20) -12:00", - "data": "2100-232T18:45:30-12:00", - "valid": true - }, - { - "description": "Invalid - missing T designator", - "data": "1985-10223:20:50+04:00", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "1985-102t23:20:50+04:00", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - basic format", - "data": "1985102T232050+0400", - "valid": false - }, - { - "description": "Invalid - missing time shift", - "data": "1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - with Z instead of shift", - "data": "1985-102T23:20:50Z", - "valid": false - }, - { - "description": "Invalid - shift hour 24", - "data": "2023-100T12:00:00+24:00", - "valid": false - }, - { - "description": "Invalid - shift hour 25", - "data": "2023-100T12:00:00+25:00", - "valid": false - }, - { - "description": "Invalid - shift minute 60", - "data": "2023-100T12:00:00+01:60", - "valid": false - }, - { - "description": "Invalid - shift minute 99", - "data": "2023-100T12:00:00+01:99", - "valid": false - }, - { - "description": "Invalid - missing shift sign", - "data": "2023-100T12:00:0004:00", - "valid": false - }, - { - "description": "Invalid - missing colon in shift (basic format shift)", - "data": "1985-102T23:20:50+0400", - "valid": false - }, - { - "description": "Invalid - hourly shift only", - "data": "1985-102T23:20:50+04", - "valid": false - }, - { - "description": "Invalid - day 000", - "data": "2023-000T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - day 367", - "data": "2023-367T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - day 999", - "data": "2023-999T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "2023-100T24:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - hour 25", - "data": "2023-100T25:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "2023-100T12:60:00+01:00", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "2023-100T12:99:00+01:00", - "valid": false - }, - { - "description": "Invalid - second 61", - "data": "2023-100T12:00:61+01:00", - "valid": false - }, - { - "description": "Invalid - second 99", - "data": "2023-100T12:00:99+01:00", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "2023-100T00:00:00+01:00", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "2023-100T23:00:00+01:00", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "2023-100T12:00:00+01:00", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "2023-100T12:59:00+01:00", - "valid": true - }, - { - "description": "Valid - second 00 (minimum)", - "data": "2023-100T12:00:00+01:00", - "valid": true - }, - { - "description": "Valid - second 59", - "data": "2023-100T12:00:59+01:00", - "valid": true - }, - { - "description": "Valid - second 60 (leap second)", - "data": "2023-181T23:59:60+01:00", - "valid": true - }, - { - "description": "Invalid - missing hyphen in date", - "data": "2023100T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - missing colons in time", - "data": "2023-100T120000+01:00", - "valid": false - }, - { - "description": "Invalid - with decimal seconds", - "data": "2023-100T12:00:00.5+01:00", - "valid": false - }, - { - "description": "Invalid - partial time (hour and minute only)", - "data": "2023-100T12:00+01:00", - "valid": false - }, - { - "description": "Invalid - date only", - "data": "2023-100+01:00", - "valid": false - }, - { - "description": "Valid - day 001 (Jan 1)", - "data": "2023-001T12:00:00+01:00", - "valid": true - }, - { - "description": "Valid - day 365 (non-leap year last day)", - "data": "2023-365T12:00:00+01:00", - "valid": true - }, - { - "description": "Valid - day 366 (leap year last day)", - "data": "2020-366T12:00:00+01:00", - "valid": true - }, - { - "description": "Invalid - spaces in datetime", - "data": "2023-100 T 12:00:00 + 01:00", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "2023-100T12:00:00+01:00X", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning", - "data": "X2023-100T12:00:00+01:00", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/datetime/ordinal-shifthour-basic/v1.test.json b/test/iso/datetime/2019/datetime/ordinal-shifthour-basic/v1.test.json deleted file mode 100644 index 00cc07ad..00000000 --- a/test/iso/datetime/2019/datetime/ordinal-shifthour-basic/v1.test.json +++ /dev/null @@ -1,285 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/datetime/ordinal-shifthour-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 2018001120000, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 1985-102 (Apr 12) 23:20:50 +04", - "data": "1985102T232050+04", - "valid": true - }, - { - "description": "Valid - 2000-001 (Jan 1) 00:00:00 -05", - "data": "2000001T000000-05", - "valid": true - }, - { - "description": "Valid - leap second 2023-365 23:59:60 +00", - "data": "2023365T235960+00", - "valid": true - }, - { - "description": "Valid - leap day 2020-060 (Feb 29) 12:00:00 +05", - "data": "2020060T120000+05", - "valid": true - }, - { - "description": "Valid - positive shift +01", - "data": "2023100T120000+01", - "valid": true - }, - { - "description": "Valid - negative shift -08", - "data": "2023100T120000-08", - "valid": true - }, - { - "description": "Valid - maximum positive shift +23", - "data": "2023100T120000+23", - "valid": true - }, - { - "description": "Valid - maximum negative shift -23", - "data": "2023100T120000-23", - "valid": true - }, - { - "description": "Valid - zero shift +00", - "data": "2023100T120000+00", - "valid": true - }, - { - "description": "Invalid - negative zero shift -00", - "data": "2023100T120000-00", - "valid": false - }, - { - "description": "Valid - historical date 1900-074 (Mar 15) +02", - "data": "1900074T063045+02", - "valid": true - }, - { - "description": "Valid - future date 2100-232 (Aug 20) -12", - "data": "2100232T184530-12", - "valid": true - }, - { - "description": "Invalid - missing T designator", - "data": "1985102232050+04", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "1985102t232050+04", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - extended format", - "data": "1985-102T23:20:50+04", - "valid": false - }, - { - "description": "Invalid - missing time shift", - "data": "1985102T232050", - "valid": false - }, - { - "description": "Invalid - with Z instead of shift", - "data": "1985102T232050Z", - "valid": false - }, - { - "description": "Invalid - shift hour 24", - "data": "2023100T120000+24", - "valid": false - }, - { - "description": "Invalid - shift hour 25", - "data": "2023100T120000+25", - "valid": false - }, - { - "description": "Invalid - shift hour 99", - "data": "2023100T120000+99", - "valid": false - }, - { - "description": "Invalid - missing shift sign", - "data": "2023100T12000004", - "valid": false - }, - { - "description": "Invalid - shift with minutes (full shift)", - "data": "1985102T232050+0400", - "valid": false - }, - { - "description": "Invalid - shift with colon", - "data": "1985102T232050+04:00", - "valid": false - }, - { - "description": "Invalid - single digit shift", - "data": "1985102T232050+4", - "valid": false - }, - { - "description": "Invalid - three digit shift", - "data": "1985102T232050+004", - "valid": false - }, - { - "description": "Invalid - day 000", - "data": "2023000T120000+01", - "valid": false - }, - { - "description": "Invalid - day 367", - "data": "2023367T120000+01", - "valid": false - }, - { - "description": "Invalid - day 999", - "data": "2023999T120000+01", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "2023100T240000+01", - "valid": false - }, - { - "description": "Invalid - hour 25", - "data": "2023100T250000+01", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "2023100T126000+01", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "2023100T129900+01", - "valid": false - }, - { - "description": "Invalid - second 61", - "data": "2023100T120061+01", - "valid": false - }, - { - "description": "Invalid - second 99", - "data": "2023100T120099+01", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "2023100T000000+01", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "2023100T230000+01", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "2023100T120000+01", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "2023100T125900+01", - "valid": true - }, - { - "description": "Valid - second 00 (minimum)", - "data": "2023100T120000+01", - "valid": true - }, - { - "description": "Valid - second 59", - "data": "2023100T120059+01", - "valid": true - }, - { - "description": "Valid - second 60 (leap second)", - "data": "2023181T235960+01", - "valid": true - }, - { - "description": "Invalid - with decimal seconds", - "data": "2023100T120000.5+01", - "valid": false - }, - { - "description": "Invalid - partial time (hour and minute only)", - "data": "2023100T1200+01", - "valid": false - }, - { - "description": "Invalid - date only", - "data": "2023100+01", - "valid": false - }, - { - "description": "Valid - day 001 (Jan 1)", - "data": "2023001T120000+01", - "valid": true - }, - { - "description": "Valid - day 365 (non-leap year last day)", - "data": "2023365T120000+01", - "valid": true - }, - { - "description": "Valid - day 366 (leap year last day)", - "data": "2020366T120000+01", - "valid": true - }, - { - "description": "Invalid - spaces in datetime", - "data": "2023 100T12 00 00+01", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "2023100T120000+01X", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning", - "data": "X2023100T120000+01", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/datetime/ordinal-shifthour-extended/v1.test.json b/test/iso/datetime/2019/datetime/ordinal-shifthour-extended/v1.test.json deleted file mode 100644 index 268af597..00000000 --- a/test/iso/datetime/2019/datetime/ordinal-shifthour-extended/v1.test.json +++ /dev/null @@ -1,295 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/datetime/ordinal-shifthour-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 2018001120000, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 1985-102 (Apr 12) 23:20:50 +04", - "data": "1985-102T23:20:50+04", - "valid": true - }, - { - "description": "Valid - 2000-001 (Jan 1) 00:00:00 -05", - "data": "2000-001T00:00:00-05", - "valid": true - }, - { - "description": "Valid - leap second 2023-365 23:59:60 +00", - "data": "2023-365T23:59:60+00", - "valid": true - }, - { - "description": "Valid - leap day 2020-060 (Feb 29) 12:00:00 +05", - "data": "2020-060T12:00:00+05", - "valid": true - }, - { - "description": "Valid - positive shift +01", - "data": "2023-100T12:00:00+01", - "valid": true - }, - { - "description": "Valid - negative shift -08", - "data": "2023-100T12:00:00-08", - "valid": true - }, - { - "description": "Valid - maximum positive shift +23", - "data": "2023-100T12:00:00+23", - "valid": true - }, - { - "description": "Valid - maximum negative shift -23", - "data": "2023-100T12:00:00-23", - "valid": true - }, - { - "description": "Valid - zero shift +00", - "data": "2023-100T12:00:00+00", - "valid": true - }, - { - "description": "Invalid - negative zero shift -00", - "data": "2023-100T12:00:00-00", - "valid": false - }, - { - "description": "Valid - historical date 1900-074 (Mar 15) +02", - "data": "1900-074T06:30:45+02", - "valid": true - }, - { - "description": "Valid - future date 2100-232 (Aug 20) -12", - "data": "2100-232T18:45:30-12", - "valid": true - }, - { - "description": "Invalid - missing T designator", - "data": "1985-10223:20:50+04", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "1985-102t23:20:50+04", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - basic format", - "data": "1985102T232050+04", - "valid": false - }, - { - "description": "Invalid - missing time shift", - "data": "1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - with Z instead of shift", - "data": "1985-102T23:20:50Z", - "valid": false - }, - { - "description": "Invalid - shift hour 24", - "data": "2023-100T12:00:00+24", - "valid": false - }, - { - "description": "Invalid - shift hour 25", - "data": "2023-100T12:00:00+25", - "valid": false - }, - { - "description": "Invalid - shift hour 99", - "data": "2023-100T12:00:00+99", - "valid": false - }, - { - "description": "Invalid - missing shift sign", - "data": "2023-100T12:00:0004", - "valid": false - }, - { - "description": "Invalid - shift with minutes (full shift)", - "data": "1985-102T23:20:50+04:00", - "valid": false - }, - { - "description": "Invalid - shift without colon (basic format shift)", - "data": "1985-102T23:20:50+0400", - "valid": false - }, - { - "description": "Invalid - single digit shift", - "data": "1985-102T23:20:50+4", - "valid": false - }, - { - "description": "Invalid - three digit shift", - "data": "1985-102T23:20:50+004", - "valid": false - }, - { - "description": "Invalid - day 000", - "data": "2023-000T12:00:00+01", - "valid": false - }, - { - "description": "Invalid - day 367", - "data": "2023-367T12:00:00+01", - "valid": false - }, - { - "description": "Invalid - day 999", - "data": "2023-999T12:00:00+01", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "2023-100T24:00:00+01", - "valid": false - }, - { - "description": "Invalid - hour 25", - "data": "2023-100T25:00:00+01", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "2023-100T12:60:00+01", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "2023-100T12:99:00+01", - "valid": false - }, - { - "description": "Invalid - second 61", - "data": "2023-100T12:00:61+01", - "valid": false - }, - { - "description": "Invalid - second 99", - "data": "2023-100T12:00:99+01", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "2023-100T00:00:00+01", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "2023-100T23:00:00+01", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "2023-100T12:00:00+01", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "2023-100T12:59:00+01", - "valid": true - }, - { - "description": "Valid - second 00 (minimum)", - "data": "2023-100T12:00:00+01", - "valid": true - }, - { - "description": "Valid - second 59", - "data": "2023-100T12:00:59+01", - "valid": true - }, - { - "description": "Valid - second 60 (leap second)", - "data": "2023-181T23:59:60+01", - "valid": true - }, - { - "description": "Invalid - missing hyphen in date", - "data": "2023100T12:00:00+01", - "valid": false - }, - { - "description": "Invalid - missing colons in time", - "data": "2023-100T120000+01", - "valid": false - }, - { - "description": "Invalid - with decimal seconds", - "data": "2023-100T12:00:00.5+01", - "valid": false - }, - { - "description": "Invalid - partial time (hour and minute only)", - "data": "2023-100T12:00+01", - "valid": false - }, - { - "description": "Invalid - date only", - "data": "2023-100+01", - "valid": false - }, - { - "description": "Valid - day 001 (Jan 1)", - "data": "2023-001T12:00:00+01", - "valid": true - }, - { - "description": "Valid - day 365 (non-leap year last day)", - "data": "2023-365T12:00:00+01", - "valid": true - }, - { - "description": "Valid - day 366 (leap year last day)", - "data": "2020-366T12:00:00+01", - "valid": true - }, - { - "description": "Invalid - spaces in datetime", - "data": "2023-100 T 12:00:00 + 01", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "2023-100T12:00:00+01X", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning", - "data": "X2023-100T12:00:00+01", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/datetime/ordinal-utc-basic/v1.test.json b/test/iso/datetime/2019/datetime/ordinal-utc-basic/v1.test.json deleted file mode 100644 index acf4cb8a..00000000 --- a/test/iso/datetime/2019/datetime/ordinal-utc-basic/v1.test.json +++ /dev/null @@ -1,265 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/datetime/ordinal-utc-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 2018001120000, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 1985-102 (Apr 12) 23:20:50 UTC", - "data": "1985102T232050Z", - "valid": true - }, - { - "description": "Valid - 2000-001 (Jan 1) 00:00:00 UTC", - "data": "2000001T000000Z", - "valid": true - }, - { - "description": "Valid - leap second 2023-365 23:59:60 UTC", - "data": "2023365T235960Z", - "valid": true - }, - { - "description": "Valid - leap day 2020-060 (Feb 29) 12:00:00 UTC", - "data": "2020060T120000Z", - "valid": true - }, - { - "description": "Valid - end of year 2023-365 23:59:59 UTC", - "data": "2023365T235959Z", - "valid": true - }, - { - "description": "Valid - start of year 2024-001 00:00:00 UTC", - "data": "2024001T000000Z", - "valid": true - }, - { - "description": "Valid - historical date 1900-074 (Mar 15) 06:30:45 UTC", - "data": "1900074T063045Z", - "valid": true - }, - { - "description": "Valid - future date 2100-232 (Aug 20) 18:45:30 UTC", - "data": "2100232T184530Z", - "valid": true - }, - { - "description": "Valid - leap year day 366 (2020-366) UTC", - "data": "2020366T120000Z", - "valid": true - }, - { - "description": "Invalid - missing T designator", - "data": "1985102232050Z", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "1985102t232050Z", - "valid": false - }, - { - "description": "Invalid - lowercase z", - "data": "1985102T232050z", - "valid": false - }, - { - "description": "Invalid - missing Z designator", - "data": "1985102T232050", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - extended format", - "data": "1985-102T23:20:50Z", - "valid": false - }, - { - "description": "Invalid - day 000", - "data": "2023000T120000Z", - "valid": false - }, - { - "description": "Invalid - day 367", - "data": "2023367T120000Z", - "valid": false - }, - { - "description": "Invalid - day 999", - "data": "2023999T120000Z", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "2023100T240000Z", - "valid": false - }, - { - "description": "Invalid - hour 25", - "data": "2023100T250000Z", - "valid": false - }, - { - "description": "Invalid - hour 99", - "data": "2023100T990000Z", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "2023100T126000Z", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "2023100T129900Z", - "valid": false - }, - { - "description": "Invalid - second 61", - "data": "2023100T120061Z", - "valid": false - }, - { - "description": "Invalid - second 99", - "data": "2023100T120099Z", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "2023100T000000Z", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "2023100T230000Z", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "2023100T120000Z", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "2023100T125900Z", - "valid": true - }, - { - "description": "Valid - second 00 (minimum)", - "data": "2023100T120000Z", - "valid": true - }, - { - "description": "Valid - second 59", - "data": "2023100T120059Z", - "valid": true - }, - { - "description": "Valid - second 60 (leap second)", - "data": "2023181T235960Z", - "valid": true - }, - { - "description": "Invalid - with time shift instead of Z", - "data": "2023100T120000+0100", - "valid": false - }, - { - "description": "Invalid - with hourly time shift", - "data": "2023100T120000+01", - "valid": false - }, - { - "description": "Invalid - with decimal seconds", - "data": "2023100T120000.5Z", - "valid": false - }, - { - "description": "Invalid - partial time (hour and minute only)", - "data": "2023100T1200Z", - "valid": false - }, - { - "description": "Invalid - partial time (hour only)", - "data": "2023100T12Z", - "valid": false - }, - { - "description": "Invalid - date only", - "data": "2023100Z", - "valid": false - }, - { - "description": "Invalid - time only", - "data": "T120000Z", - "valid": false - }, - { - "description": "Valid - day 001 (Jan 1)", - "data": "2023001T120000Z", - "valid": true - }, - { - "description": "Valid - day 365 (non-leap year last day)", - "data": "2023365T120000Z", - "valid": true - }, - { - "description": "Valid - day 366 (leap year last day)", - "data": "2020366T120000Z", - "valid": true - }, - { - "description": "Invalid - spaces in datetime", - "data": "2023 100T12 00 00Z", - "valid": false - }, - { - "description": "Invalid - missing year digits", - "data": "23100T120000Z", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "2023100T120000ZX", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning", - "data": "X2023100T120000Z", - "valid": false - }, - { - "description": "Invalid - double Z", - "data": "2023100T120000ZZ", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/datetime/ordinal-utc-extended/v1.test.json b/test/iso/datetime/2019/datetime/ordinal-utc-extended/v1.test.json deleted file mode 100644 index c34ce125..00000000 --- a/test/iso/datetime/2019/datetime/ordinal-utc-extended/v1.test.json +++ /dev/null @@ -1,280 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/datetime/ordinal-utc-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 2018001120000, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 1985-102 (Apr 12) 23:20:50 UTC", - "data": "1985-102T23:20:50Z", - "valid": true - }, - { - "description": "Valid - 2000-001 (Jan 1) 00:00:00 UTC", - "data": "2000-001T00:00:00Z", - "valid": true - }, - { - "description": "Valid - leap second 2023-365 23:59:60 UTC", - "data": "2023-365T23:59:60Z", - "valid": true - }, - { - "description": "Valid - leap day 2020-060 (Feb 29) 12:00:00 UTC", - "data": "2020-060T12:00:00Z", - "valid": true - }, - { - "description": "Valid - end of year 2023-365 23:59:59 UTC", - "data": "2023-365T23:59:59Z", - "valid": true - }, - { - "description": "Valid - start of year 2024-001 00:00:00 UTC", - "data": "2024-001T00:00:00Z", - "valid": true - }, - { - "description": "Valid - historical date 1900-074 (Mar 15) 06:30:45 UTC", - "data": "1900-074T06:30:45Z", - "valid": true - }, - { - "description": "Valid - future date 2100-232 (Aug 20) 18:45:30 UTC", - "data": "2100-232T18:45:30Z", - "valid": true - }, - { - "description": "Valid - leap year day 366 (2020-366) UTC", - "data": "2020-366T12:00:00Z", - "valid": true - }, - { - "description": "Invalid - missing T designator", - "data": "1985-10223:20:50Z", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "1985-102t23:20:50Z", - "valid": false - }, - { - "description": "Invalid - lowercase z", - "data": "1985-102T23:20:50z", - "valid": false - }, - { - "description": "Invalid - missing Z designator", - "data": "1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - basic format", - "data": "1985102T232050Z", - "valid": false - }, - { - "description": "Invalid - day 000", - "data": "2023-000T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - day 367", - "data": "2023-367T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - day 999", - "data": "2023-999T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "2023-100T24:00:00Z", - "valid": false - }, - { - "description": "Invalid - hour 25", - "data": "2023-100T25:00:00Z", - "valid": false - }, - { - "description": "Invalid - hour 99", - "data": "2023-100T99:00:00Z", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "2023-100T12:60:00Z", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "2023-100T12:99:00Z", - "valid": false - }, - { - "description": "Invalid - second 61", - "data": "2023-100T12:00:61Z", - "valid": false - }, - { - "description": "Invalid - second 99", - "data": "2023-100T12:00:99Z", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "2023-100T00:00:00Z", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "2023-100T23:00:00Z", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "2023-100T12:00:00Z", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "2023-100T12:59:00Z", - "valid": true - }, - { - "description": "Valid - second 00 (minimum)", - "data": "2023-100T12:00:00Z", - "valid": true - }, - { - "description": "Valid - second 59", - "data": "2023-100T12:00:59Z", - "valid": true - }, - { - "description": "Valid - second 60 (leap second)", - "data": "2023-181T23:59:60Z", - "valid": true - }, - { - "description": "Invalid - missing hyphen in date", - "data": "2023100T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - missing colons in time", - "data": "2023-100T120000Z", - "valid": false - }, - { - "description": "Invalid - with time shift instead of Z", - "data": "2023-100T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - with hourly time shift", - "data": "2023-100T12:00:00+01", - "valid": false - }, - { - "description": "Invalid - with decimal seconds", - "data": "2023-100T12:00:00.5Z", - "valid": false - }, - { - "description": "Invalid - partial time (hour and minute only)", - "data": "2023-100T12:00Z", - "valid": false - }, - { - "description": "Invalid - partial time (hour only)", - "data": "2023-100T12Z", - "valid": false - }, - { - "description": "Invalid - date only", - "data": "2023-100Z", - "valid": false - }, - { - "description": "Invalid - time only", - "data": "T12:00:00Z", - "valid": false - }, - { - "description": "Valid - day 001 (Jan 1)", - "data": "2023-001T12:00:00Z", - "valid": true - }, - { - "description": "Valid - day 365 (non-leap year last day)", - "data": "2023-365T12:00:00Z", - "valid": true - }, - { - "description": "Valid - day 366 (leap year last day)", - "data": "2020-366T12:00:00Z", - "valid": true - }, - { - "description": "Invalid - spaces in datetime", - "data": "2023-100 T 12:00:00Z", - "valid": false - }, - { - "description": "Invalid - extra hyphen", - "data": "2023--100T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - missing year digits", - "data": "23-100T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "2023-100T12:00:00ZX", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning", - "data": "X2023-100T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - double Z", - "data": "2023-100T12:00:00ZZ", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/datetime/week-basic/v1.test.json b/test/iso/datetime/2019/datetime/week-basic/v1.test.json deleted file mode 100644 index 304bf105..00000000 --- a/test/iso/datetime/2019/datetime/week-basic/v1.test.json +++ /dev/null @@ -1,270 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/datetime/week-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 2018011120000, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 1985-W15-5 (Apr 12) 23:20:50", - "data": "1985W155T232050", - "valid": true - }, - { - "description": "Valid - 2000-W01-1 (Jan 3) 00:00:00", - "data": "2000W011T000000", - "valid": true - }, - { - "description": "Valid - leap second 2023-W50-7 23:59:60", - "data": "2023W507T235960", - "valid": true - }, - { - "description": "Valid - 2020-W09-7 (Mar 1) 12:00:00", - "data": "2020W097T120000", - "valid": true - }, - { - "description": "Valid - end of year 2023-W52-7 23:59:59", - "data": "2023W527T235959", - "valid": true - }, - { - "description": "Valid - start of year 2024-W01-1 00:00:00", - "data": "2024W011T000000", - "valid": true - }, - { - "description": "Valid - historical date 1900-W09-7 06:30:45", - "data": "1900W097T063045", - "valid": true - }, - { - "description": "Valid - future date 2100-W33-7 18:45:30", - "data": "2100W337T184530", - "valid": true - }, - { - "description": "Invalid - missing T designator", - "data": "1985W155232050", - "valid": false - }, - { - "description": "Invalid - lowercase w", - "data": "1985w155T232050", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "1985W155t232050", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - extended format (has hyphens and colons)", - "data": "1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - week 00", - "data": "2023W007T120000", - "valid": false - }, - { - "description": "Invalid - week 54", - "data": "2023W547T120000", - "valid": false - }, - { - "description": "Invalid - week 99", - "data": "2023W997T120000", - "valid": false - }, - { - "description": "Invalid - day 0", - "data": "2023W100T120000", - "valid": false - }, - { - "description": "Invalid - day 8", - "data": "2023W108T120000", - "valid": false - }, - { - "description": "Invalid - day 9", - "data": "2023W109T120000", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "2023W101T240000", - "valid": false - }, - { - "description": "Invalid - hour 25", - "data": "2023W101T250000", - "valid": false - }, - { - "description": "Invalid - hour 99", - "data": "2023W101T990000", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "2023W101T126000", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "2023W101T129900", - "valid": false - }, - { - "description": "Invalid - second 61", - "data": "2023W101T120061", - "valid": false - }, - { - "description": "Invalid - second 99", - "data": "2023W101T120099", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "2023W101T000000", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "2023W101T230000", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "2023W101T120000", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "2023W101T125900", - "valid": true - }, - { - "description": "Valid - second 00 (minimum)", - "data": "2023W101T120000", - "valid": true - }, - { - "description": "Valid - second 59", - "data": "2023W101T120059", - "valid": true - }, - { - "description": "Valid - second 60 (leap second)", - "data": "2023W267T235960", - "valid": true - }, - { - "description": "Invalid - with Z designator", - "data": "2023W101T120000Z", - "valid": false - }, - { - "description": "Invalid - with time shift", - "data": "2023W101T120000+0100", - "valid": false - }, - { - "description": "Invalid - with decimal seconds", - "data": "2023W101T120000.5", - "valid": false - }, - { - "description": "Invalid - partial time (hour and minute only)", - "data": "2023W101T1200", - "valid": false - }, - { - "description": "Invalid - partial time (hour only)", - "data": "2023W101T12", - "valid": false - }, - { - "description": "Invalid - date only", - "data": "2023W101", - "valid": false - }, - { - "description": "Invalid - time only", - "data": "T120000", - "valid": false - }, - { - "description": "Valid - week 01 day 1 (Monday)", - "data": "2023W011T120000", - "valid": true - }, - { - "description": "Valid - week 53 day 7 (Sunday of week 53)", - "data": "2020W537T120000", - "valid": true - }, - { - "description": "Valid - day 7 (Sunday)", - "data": "2023W107T120000", - "valid": true - }, - { - "description": "Invalid - spaces in datetime", - "data": "2023 W10 1T12 00 00", - "valid": false - }, - { - "description": "Invalid - missing W designator", - "data": "2023101T120000", - "valid": false - }, - { - "description": "Invalid - missing year digits", - "data": "23W101T120000", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "2023W101T120000X", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning", - "data": "X2023W101T120000", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/datetime/week-extended/v1.test.json b/test/iso/datetime/2019/datetime/week-extended/v1.test.json deleted file mode 100644 index 02e8ad52..00000000 --- a/test/iso/datetime/2019/datetime/week-extended/v1.test.json +++ /dev/null @@ -1,285 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/datetime/week-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 2018011120000, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 1985-W15-5 (Apr 12) 23:20:50", - "data": "1985-W15-5T23:20:50", - "valid": true - }, - { - "description": "Valid - 2000-W01-1 (Jan 3) 00:00:00", - "data": "2000-W01-1T00:00:00", - "valid": true - }, - { - "description": "Valid - leap second 2023-W50-7 23:59:60", - "data": "2023-W50-7T23:59:60", - "valid": true - }, - { - "description": "Valid - 2020-W09-7 (Mar 1) 12:00:00", - "data": "2020-W09-7T12:00:00", - "valid": true - }, - { - "description": "Valid - end of year 2023-W52-7 23:59:59", - "data": "2023-W52-7T23:59:59", - "valid": true - }, - { - "description": "Valid - start of year 2024-W01-1 00:00:00", - "data": "2024-W01-1T00:00:00", - "valid": true - }, - { - "description": "Valid - historical date 1900-W09-7 06:30:45", - "data": "1900-W09-7T06:30:45", - "valid": true - }, - { - "description": "Valid - future date 2100-W33-7 18:45:30", - "data": "2100-W33-7T18:45:30", - "valid": true - }, - { - "description": "Invalid - missing T designator", - "data": "1985-W15-523:20:50", - "valid": false - }, - { - "description": "Invalid - lowercase w", - "data": "1985-w15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "1985-W15-5t23:20:50", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - basic format (no hyphens or colons)", - "data": "1985W155T232050", - "valid": false - }, - { - "description": "Invalid - week 00", - "data": "2023-W00-7T12:00:00", - "valid": false - }, - { - "description": "Invalid - week 54", - "data": "2023-W54-7T12:00:00", - "valid": false - }, - { - "description": "Invalid - week 99", - "data": "2023-W99-7T12:00:00", - "valid": false - }, - { - "description": "Invalid - day 0", - "data": "2023-W10-0T12:00:00", - "valid": false - }, - { - "description": "Invalid - day 8", - "data": "2023-W10-8T12:00:00", - "valid": false - }, - { - "description": "Invalid - day 9", - "data": "2023-W10-9T12:00:00", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "2023-W10-1T24:00:00", - "valid": false - }, - { - "description": "Invalid - hour 25", - "data": "2023-W10-1T25:00:00", - "valid": false - }, - { - "description": "Invalid - hour 99", - "data": "2023-W10-1T99:00:00", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "2023-W10-1T12:60:00", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "2023-W10-1T12:99:00", - "valid": false - }, - { - "description": "Invalid - second 61", - "data": "2023-W10-1T12:00:61", - "valid": false - }, - { - "description": "Invalid - second 99", - "data": "2023-W10-1T12:00:99", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "2023-W10-1T00:00:00", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "2023-W10-1T23:00:00", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "2023-W10-1T12:00:00", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "2023-W10-1T12:59:00", - "valid": true - }, - { - "description": "Valid - second 00 (minimum)", - "data": "2023-W10-1T12:00:00", - "valid": true - }, - { - "description": "Valid - second 59", - "data": "2023-W10-1T12:00:59", - "valid": true - }, - { - "description": "Valid - second 60 (leap second)", - "data": "2023-W26-7T23:59:60", - "valid": true - }, - { - "description": "Invalid - missing hyphens", - "data": "2023W101T12:00:00", - "valid": false - }, - { - "description": "Invalid - missing colons in time", - "data": "2023-W10-1T120000", - "valid": false - }, - { - "description": "Invalid - with Z designator", - "data": "2023-W10-1T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - with time shift", - "data": "2023-W10-1T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - with decimal seconds", - "data": "2023-W10-1T12:00:00.5", - "valid": false - }, - { - "description": "Invalid - partial time (hour and minute only)", - "data": "2023-W10-1T12:00", - "valid": false - }, - { - "description": "Invalid - partial time (hour only)", - "data": "2023-W10-1T12", - "valid": false - }, - { - "description": "Invalid - date only", - "data": "2023-W10-1", - "valid": false - }, - { - "description": "Invalid - time only", - "data": "T12:00:00", - "valid": false - }, - { - "description": "Valid - week 01 day 1 (Monday)", - "data": "2023-W01-1T12:00:00", - "valid": true - }, - { - "description": "Valid - week 53 day 7 (Sunday of week 53)", - "data": "2020-W53-7T12:00:00", - "valid": true - }, - { - "description": "Valid - day 7 (Sunday)", - "data": "2023-W10-7T12:00:00", - "valid": true - }, - { - "description": "Invalid - spaces in datetime", - "data": "2023-W10-1 T 12:00:00", - "valid": false - }, - { - "description": "Invalid - missing W designator", - "data": "2023-10-1T12:00:00", - "valid": false - }, - { - "description": "Invalid - extra hyphen", - "data": "2023--W10-1T12:00:00", - "valid": false - }, - { - "description": "Invalid - missing year digits", - "data": "23-W10-1T12:00:00", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "2023-W10-1T12:00:00X", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning", - "data": "X2023-W10-1T12:00:00", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/datetime/week-minute-shift-basic/v1.test.json b/test/iso/datetime/2019/datetime/week-minute-shift-basic/v1.test.json deleted file mode 100644 index 6c12dec9..00000000 --- a/test/iso/datetime/2019/datetime/week-minute-shift-basic/v1.test.json +++ /dev/null @@ -1,235 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/datetime/week-minute-shift-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 2018011200, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 1985-W15-5 10:15 +04:00", - "data": "1985W155T1015+0400", - "valid": true - }, - { - "description": "Valid - 2000-W01-1 00:00 -05:00", - "data": "2000W011T0000-0500", - "valid": true - }, - { - "description": "Valid - end of day 2023-W50-7 23:59 +00:00", - "data": "2023W507T2359+0000", - "valid": true - }, - { - "description": "Valid - positive shift +01:00", - "data": "2023W101T1200+0100", - "valid": true - }, - { - "description": "Valid - negative shift -08:00", - "data": "2023W101T1200-0800", - "valid": true - }, - { - "description": "Valid - maximum positive shift +23:59", - "data": "2023W101T1200+2359", - "valid": true - }, - { - "description": "Valid - maximum negative shift -23:59", - "data": "2023W101T1200-2359", - "valid": true - }, - { - "description": "Valid - zero shift +00:00", - "data": "2023W101T1200+0000", - "valid": true - }, - { - "description": "Invalid - negative zero shift -00:00", - "data": "2023W101T1200-0000", - "valid": false - }, - { - "description": "Valid - historical date 1900-W09-7 +02:00", - "data": "1900W097T0630+0200", - "valid": true - }, - { - "description": "Valid - future date 2100-W33-7 -12:00", - "data": "2100W337T1845-1200", - "valid": true - }, - { - "description": "Invalid - missing T designator", - "data": "1985W1551015+0400", - "valid": false - }, - { - "description": "Invalid - lowercase w", - "data": "1985w155T1015+0400", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "1985W155t1015+0400", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - extended format", - "data": "1985-W15-5T10:15+04:00", - "valid": false - }, - { - "description": "Invalid - missing time shift", - "data": "1985W155T1015", - "valid": false - }, - { - "description": "Invalid - with Z instead of shift", - "data": "1985W155T1015Z", - "valid": false - }, - { - "description": "Invalid - shift hour 24", - "data": "2023W101T1200+2400", - "valid": false - }, - { - "description": "Invalid - shift minute 60", - "data": "2023W101T1200+0160", - "valid": false - }, - { - "description": "Invalid - missing shift sign", - "data": "2023W101T12000400", - "valid": false - }, - { - "description": "Invalid - colon in shift (extended format shift)", - "data": "1985W155T1015+04:00", - "valid": false - }, - { - "description": "Invalid - hourly shift only", - "data": "1985W155T1015+04", - "valid": false - }, - { - "description": "Invalid - week 00", - "data": "2023W007T1200+0100", - "valid": false - }, - { - "description": "Invalid - week 54", - "data": "2023W547T1200+0100", - "valid": false - }, - { - "description": "Invalid - day 0", - "data": "2023W100T1200+0100", - "valid": false - }, - { - "description": "Invalid - day 8", - "data": "2023W108T1200+0100", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "2023W101T2400+0100", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "2023W101T1260+0100", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "2023W101T0000+0100", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "2023W101T2300+0100", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "2023W101T1259+0100", - "valid": true - }, - { - "description": "Invalid - with seconds", - "data": "2023W101T120000+0100", - "valid": false - }, - { - "description": "Invalid - with decimal minutes", - "data": "2023W101T1200.5+0100", - "valid": false - }, - { - "description": "Invalid - partial time (hour only)", - "data": "2023W101T12+0100", - "valid": false - }, - { - "description": "Valid - week 01 day 1", - "data": "2023W011T1200+0100", - "valid": true - }, - { - "description": "Valid - week 53 day 7", - "data": "2020W537T1200+0100", - "valid": true - }, - { - "description": "Invalid - spaces in datetime", - "data": "2023 W10 1T12 00+01 00", - "valid": false - }, - { - "description": "Invalid - missing W designator", - "data": "2023101T1200+0100", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "2023W101T1200+0100X", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning", - "data": "X2023W101T1200+0100", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/datetime/week-minute-shift-extended/v1.test.json b/test/iso/datetime/2019/datetime/week-minute-shift-extended/v1.test.json deleted file mode 100644 index c5b30ddf..00000000 --- a/test/iso/datetime/2019/datetime/week-minute-shift-extended/v1.test.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/datetime/week-minute-shift-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 2018011200, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 1985-W15-5 10:15 +04:00", - "data": "1985-W15-5T10:15+04:00", - "valid": true - }, - { - "description": "Valid - 2000-W01-1 00:00 -05:00", - "data": "2000-W01-1T00:00-05:00", - "valid": true - }, - { - "description": "Valid - end of day 2023-W50-7 23:59 +00:00", - "data": "2023-W50-7T23:59+00:00", - "valid": true - }, - { - "description": "Valid - positive shift +01:00", - "data": "2023-W10-1T12:00+01:00", - "valid": true - }, - { - "description": "Valid - negative shift -08:00", - "data": "2023-W10-1T12:00-08:00", - "valid": true - }, - { - "description": "Valid - maximum positive shift +23:59", - "data": "2023-W10-1T12:00+23:59", - "valid": true - }, - { - "description": "Valid - maximum negative shift -23:59", - "data": "2023-W10-1T12:00-23:59", - "valid": true - }, - { - "description": "Valid - zero shift +00:00", - "data": "2023-W10-1T12:00+00:00", - "valid": true - }, - { - "description": "Invalid - negative zero shift -00:00", - "data": "2023-W10-1T12:00-00:00", - "valid": false - }, - { - "description": "Valid - historical date 1900-W09-7 +02:00", - "data": "1900-W09-7T06:30+02:00", - "valid": true - }, - { - "description": "Valid - future date 2100-W33-7 -12:00", - "data": "2100-W33-7T18:45-12:00", - "valid": true - }, - { - "description": "Invalid - missing T designator", - "data": "1985-W15-510:15+04:00", - "valid": false - }, - { - "description": "Invalid - lowercase w", - "data": "1985-w15-5T10:15+04:00", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "1985-W15-5t10:15+04:00", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - basic format", - "data": "1985W155T1015+0400", - "valid": false - }, - { - "description": "Invalid - missing time shift", - "data": "1985-W15-5T10:15", - "valid": false - }, - { - "description": "Invalid - with Z instead of shift", - "data": "1985-W15-5T10:15Z", - "valid": false - }, - { - "description": "Invalid - shift hour 24", - "data": "2023-W10-1T12:00+24:00", - "valid": false - }, - { - "description": "Invalid - shift minute 60", - "data": "2023-W10-1T12:00+01:60", - "valid": false - }, - { - "description": "Invalid - missing shift sign", - "data": "2023-W10-1T12:0004:00", - "valid": false - }, - { - "description": "Invalid - missing colon in shift", - "data": "1985-W15-5T10:15+0400", - "valid": false - }, - { - "description": "Invalid - hourly shift only", - "data": "1985-W15-5T10:15+04", - "valid": false - }, - { - "description": "Invalid - week 00", - "data": "2023-W00-7T12:00+01:00", - "valid": false - }, - { - "description": "Invalid - week 54", - "data": "2023-W54-7T12:00+01:00", - "valid": false - }, - { - "description": "Invalid - day 0", - "data": "2023-W10-0T12:00+01:00", - "valid": false - }, - { - "description": "Invalid - day 8", - "data": "2023-W10-8T12:00+01:00", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "2023-W10-1T24:00+01:00", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "2023-W10-1T12:60+01:00", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "2023-W10-1T00:00+01:00", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "2023-W10-1T23:00+01:00", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "2023-W10-1T12:59+01:00", - "valid": true - }, - { - "description": "Invalid - missing hyphens", - "data": "2023W101T12:00+01:00", - "valid": false - }, - { - "description": "Invalid - missing colon in time", - "data": "2023-W10-1T1200+01:00", - "valid": false - }, - { - "description": "Invalid - with seconds", - "data": "2023-W10-1T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - with decimal minutes", - "data": "2023-W10-1T12:00.5+01:00", - "valid": false - }, - { - "description": "Invalid - partial time (hour only)", - "data": "2023-W10-1T12+01:00", - "valid": false - }, - { - "description": "Valid - week 01 day 1", - "data": "2023-W01-1T12:00+01:00", - "valid": true - }, - { - "description": "Valid - week 53 day 7", - "data": "2020-W53-7T12:00+01:00", - "valid": true - }, - { - "description": "Invalid - spaces in datetime", - "data": "2023-W10-1 T 12:00 + 01:00", - "valid": false - }, - { - "description": "Invalid - missing W designator", - "data": "2023-10-1T12:00+01:00", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "2023-W10-1T12:00+01:00X", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning", - "data": "X2023-W10-1T12:00+01:00", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/datetime/week-shift-basic/v1.test.json b/test/iso/datetime/2019/datetime/week-shift-basic/v1.test.json deleted file mode 100644 index 9698799c..00000000 --- a/test/iso/datetime/2019/datetime/week-shift-basic/v1.test.json +++ /dev/null @@ -1,235 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/datetime/week-shift-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 2018011120000, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 1985-W15-5 23:20:50 +04:00", - "data": "1985W155T232050+0400", - "valid": true - }, - { - "description": "Valid - 2000-W01-1 00:00:00 -05:00", - "data": "2000W011T000000-0500", - "valid": true - }, - { - "description": "Valid - leap second 2023-W50-7 23:59:60 +00:00", - "data": "2023W507T235960+0000", - "valid": true - }, - { - "description": "Valid - positive shift +01:00", - "data": "2023W101T120000+0100", - "valid": true - }, - { - "description": "Valid - negative shift -08:00", - "data": "2023W101T120000-0800", - "valid": true - }, - { - "description": "Valid - maximum positive shift +23:59", - "data": "2023W101T120000+2359", - "valid": true - }, - { - "description": "Valid - maximum negative shift -23:59", - "data": "2023W101T120000-2359", - "valid": true - }, - { - "description": "Valid - zero shift +00:00", - "data": "2023W101T120000+0000", - "valid": true - }, - { - "description": "Invalid - negative zero shift -00:00", - "data": "2023W101T120000-0000", - "valid": false - }, - { - "description": "Valid - historical date 1900-W09-7 +02:00", - "data": "1900W097T063045+0200", - "valid": true - }, - { - "description": "Valid - future date 2100-W33-7 -12:00", - "data": "2100W337T184530-1200", - "valid": true - }, - { - "description": "Invalid - missing T designator", - "data": "1985W155232050+0400", - "valid": false - }, - { - "description": "Invalid - lowercase w", - "data": "1985w155T232050+0400", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "1985W155t232050+0400", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - extended format", - "data": "1985-W15-5T23:20:50+04:00", - "valid": false - }, - { - "description": "Invalid - missing time shift", - "data": "1985W155T232050", - "valid": false - }, - { - "description": "Invalid - with Z instead of shift", - "data": "1985W155T232050Z", - "valid": false - }, - { - "description": "Invalid - shift hour 24", - "data": "2023W101T120000+2400", - "valid": false - }, - { - "description": "Invalid - shift minute 60", - "data": "2023W101T120000+0160", - "valid": false - }, - { - "description": "Invalid - missing shift sign", - "data": "2023W101T1200000400", - "valid": false - }, - { - "description": "Invalid - colon in shift (extended format shift)", - "data": "1985W155T232050+04:00", - "valid": false - }, - { - "description": "Invalid - hourly shift only", - "data": "1985W155T232050+04", - "valid": false - }, - { - "description": "Invalid - week 00", - "data": "2023W007T120000+0100", - "valid": false - }, - { - "description": "Invalid - week 54", - "data": "2023W547T120000+0100", - "valid": false - }, - { - "description": "Invalid - day 0", - "data": "2023W100T120000+0100", - "valid": false - }, - { - "description": "Invalid - day 8", - "data": "2023W108T120000+0100", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "2023W101T240000+0100", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "2023W101T126000+0100", - "valid": false - }, - { - "description": "Invalid - second 61", - "data": "2023W101T120061+0100", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "2023W101T000000+0100", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "2023W101T230000+0100", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "2023W101T125900+0100", - "valid": true - }, - { - "description": "Valid - second 60 (leap second)", - "data": "2023W267T235960+0100", - "valid": true - }, - { - "description": "Invalid - with decimal seconds", - "data": "2023W101T120000.5+0100", - "valid": false - }, - { - "description": "Invalid - partial time", - "data": "2023W101T1200+0100", - "valid": false - }, - { - "description": "Valid - week 01 day 1", - "data": "2023W011T120000+0100", - "valid": true - }, - { - "description": "Valid - week 53 day 7", - "data": "2020W537T120000+0100", - "valid": true - }, - { - "description": "Invalid - spaces in datetime", - "data": "2023 W10 1T12 00 00+01 00", - "valid": false - }, - { - "description": "Invalid - missing W designator", - "data": "2023101T120000+0100", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "2023W101T120000+0100X", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/datetime/week-shift-extended/v1.test.json b/test/iso/datetime/2019/datetime/week-shift-extended/v1.test.json deleted file mode 100644 index fea5423d..00000000 --- a/test/iso/datetime/2019/datetime/week-shift-extended/v1.test.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/datetime/week-shift-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 2018011120000, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 1985-W15-5 23:20:50 +04:00", - "data": "1985-W15-5T23:20:50+04:00", - "valid": true - }, - { - "description": "Valid - 2000-W01-1 00:00:00 -05:00", - "data": "2000-W01-1T00:00:00-05:00", - "valid": true - }, - { - "description": "Valid - leap second 2023-W50-7 23:59:60 +00:00", - "data": "2023-W50-7T23:59:60+00:00", - "valid": true - }, - { - "description": "Valid - positive shift +01:00", - "data": "2023-W10-1T12:00:00+01:00", - "valid": true - }, - { - "description": "Valid - negative shift -08:00", - "data": "2023-W10-1T12:00:00-08:00", - "valid": true - }, - { - "description": "Valid - maximum positive shift +23:59", - "data": "2023-W10-1T12:00:00+23:59", - "valid": true - }, - { - "description": "Valid - maximum negative shift -23:59", - "data": "2023-W10-1T12:00:00-23:59", - "valid": true - }, - { - "description": "Valid - zero shift +00:00", - "data": "2023-W10-1T12:00:00+00:00", - "valid": true - }, - { - "description": "Invalid - negative zero shift -00:00", - "data": "2023-W10-1T12:00:00-00:00", - "valid": false - }, - { - "description": "Valid - historical date 1900-W09-7 +02:00", - "data": "1900-W09-7T06:30:45+02:00", - "valid": true - }, - { - "description": "Valid - future date 2100-W33-7 -12:00", - "data": "2100-W33-7T18:45:30-12:00", - "valid": true - }, - { - "description": "Invalid - missing T designator", - "data": "1985-W15-523:20:50+04:00", - "valid": false - }, - { - "description": "Invalid - lowercase w", - "data": "1985-w15-5T23:20:50+04:00", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "1985-W15-5t23:20:50+04:00", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - basic format", - "data": "1985W155T232050+0400", - "valid": false - }, - { - "description": "Invalid - missing time shift", - "data": "1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - with Z instead of shift", - "data": "1985-W15-5T23:20:50Z", - "valid": false - }, - { - "description": "Invalid - shift hour 24", - "data": "2023-W10-1T12:00:00+24:00", - "valid": false - }, - { - "description": "Invalid - shift minute 60", - "data": "2023-W10-1T12:00:00+01:60", - "valid": false - }, - { - "description": "Invalid - missing shift sign", - "data": "2023-W10-1T12:00:0004:00", - "valid": false - }, - { - "description": "Invalid - missing colon in shift", - "data": "1985-W15-5T23:20:50+0400", - "valid": false - }, - { - "description": "Invalid - hourly shift only", - "data": "1985-W15-5T23:20:50+04", - "valid": false - }, - { - "description": "Invalid - week 00", - "data": "2023-W00-7T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - week 54", - "data": "2023-W54-7T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - day 0", - "data": "2023-W10-0T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - day 8", - "data": "2023-W10-8T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "2023-W10-1T24:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "2023-W10-1T12:60:00+01:00", - "valid": false - }, - { - "description": "Invalid - second 61", - "data": "2023-W10-1T12:00:61+01:00", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "2023-W10-1T00:00:00+01:00", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "2023-W10-1T23:00:00+01:00", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "2023-W10-1T12:59:00+01:00", - "valid": true - }, - { - "description": "Valid - second 60 (leap second)", - "data": "2023-W26-7T23:59:60+01:00", - "valid": true - }, - { - "description": "Invalid - missing hyphens", - "data": "2023W101T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - missing colons in time", - "data": "2023-W10-1T120000+01:00", - "valid": false - }, - { - "description": "Invalid - with decimal seconds", - "data": "2023-W10-1T12:00:00.5+01:00", - "valid": false - }, - { - "description": "Invalid - partial time", - "data": "2023-W10-1T12:00+01:00", - "valid": false - }, - { - "description": "Valid - week 01 day 1", - "data": "2023-W01-1T12:00:00+01:00", - "valid": true - }, - { - "description": "Valid - week 53 day 7", - "data": "2020-W53-7T12:00:00+01:00", - "valid": true - }, - { - "description": "Invalid - spaces in datetime", - "data": "2023-W10-1 T 12:00:00 + 01:00", - "valid": false - }, - { - "description": "Invalid - missing W designator", - "data": "2023-10-1T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "2023-W10-1T12:00:00+01:00X", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/datetime/week-shifthour-basic/v1.test.json b/test/iso/datetime/2019/datetime/week-shifthour-basic/v1.test.json deleted file mode 100644 index 8d31e2ce..00000000 --- a/test/iso/datetime/2019/datetime/week-shifthour-basic/v1.test.json +++ /dev/null @@ -1,240 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/datetime/week-shifthour-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 2018011120000, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 1985-W15-5 23:20:50 +04", - "data": "1985W155T232050+04", - "valid": true - }, - { - "description": "Valid - 2000-W01-1 00:00:00 -05", - "data": "2000W011T000000-05", - "valid": true - }, - { - "description": "Valid - leap second 2023-W50-7 23:59:60 +00", - "data": "2023W507T235960+00", - "valid": true - }, - { - "description": "Valid - positive shift +01", - "data": "2023W101T120000+01", - "valid": true - }, - { - "description": "Valid - negative shift -08", - "data": "2023W101T120000-08", - "valid": true - }, - { - "description": "Valid - maximum positive shift +23", - "data": "2023W101T120000+23", - "valid": true - }, - { - "description": "Valid - maximum negative shift -23", - "data": "2023W101T120000-23", - "valid": true - }, - { - "description": "Valid - zero shift +00", - "data": "2023W101T120000+00", - "valid": true - }, - { - "description": "Invalid - negative zero shift -00", - "data": "2023W101T120000-00", - "valid": false - }, - { - "description": "Valid - historical date 1900-W09-7 +02", - "data": "1900W097T063045+02", - "valid": true - }, - { - "description": "Valid - future date 2100-W33-7 -12", - "data": "2100W337T184530-12", - "valid": true - }, - { - "description": "Invalid - missing T designator", - "data": "1985W155232050+04", - "valid": false - }, - { - "description": "Invalid - lowercase w", - "data": "1985w155T232050+04", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "1985W155t232050+04", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - extended format", - "data": "1985-W15-5T23:20:50+04", - "valid": false - }, - { - "description": "Invalid - missing time shift", - "data": "1985W155T232050", - "valid": false - }, - { - "description": "Invalid - with Z instead of shift", - "data": "1985W155T232050Z", - "valid": false - }, - { - "description": "Invalid - shift hour 24", - "data": "2023W101T120000+24", - "valid": false - }, - { - "description": "Invalid - shift hour 99", - "data": "2023W101T120000+99", - "valid": false - }, - { - "description": "Invalid - missing shift sign", - "data": "2023W101T12000004", - "valid": false - }, - { - "description": "Invalid - shift with minutes", - "data": "1985W155T232050+0400", - "valid": false - }, - { - "description": "Invalid - shift with colon", - "data": "1985W155T232050+04:00", - "valid": false - }, - { - "description": "Invalid - single digit shift", - "data": "1985W155T232050+4", - "valid": false - }, - { - "description": "Invalid - week 00", - "data": "2023W007T120000+01", - "valid": false - }, - { - "description": "Invalid - week 54", - "data": "2023W547T120000+01", - "valid": false - }, - { - "description": "Invalid - day 0", - "data": "2023W100T120000+01", - "valid": false - }, - { - "description": "Invalid - day 8", - "data": "2023W108T120000+01", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "2023W101T240000+01", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "2023W101T126000+01", - "valid": false - }, - { - "description": "Invalid - second 61", - "data": "2023W101T120061+01", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "2023W101T000000+01", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "2023W101T230000+01", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "2023W101T125900+01", - "valid": true - }, - { - "description": "Valid - second 60 (leap second)", - "data": "2023W267T235960+01", - "valid": true - }, - { - "description": "Invalid - with decimal seconds", - "data": "2023W101T120000.5+01", - "valid": false - }, - { - "description": "Invalid - partial time", - "data": "2023W101T1200+01", - "valid": false - }, - { - "description": "Valid - week 01 day 1", - "data": "2023W011T120000+01", - "valid": true - }, - { - "description": "Valid - week 53 day 7", - "data": "2020W537T120000+01", - "valid": true - }, - { - "description": "Invalid - spaces in datetime", - "data": "2023 W10 1T12 00 00+01", - "valid": false - }, - { - "description": "Invalid - missing W designator", - "data": "2023101T120000+01", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "2023W101T120000+01X", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/datetime/week-shifthour-extended/v1.test.json b/test/iso/datetime/2019/datetime/week-shifthour-extended/v1.test.json deleted file mode 100644 index adea76f0..00000000 --- a/test/iso/datetime/2019/datetime/week-shifthour-extended/v1.test.json +++ /dev/null @@ -1,250 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/datetime/week-shifthour-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 2018011120000, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 1985-W15-5 23:20:50 +04", - "data": "1985-W15-5T23:20:50+04", - "valid": true - }, - { - "description": "Valid - 2000-W01-1 00:00:00 -05", - "data": "2000-W01-1T00:00:00-05", - "valid": true - }, - { - "description": "Valid - leap second 2023-W50-7 23:59:60 +00", - "data": "2023-W50-7T23:59:60+00", - "valid": true - }, - { - "description": "Valid - positive shift +01", - "data": "2023-W10-1T12:00:00+01", - "valid": true - }, - { - "description": "Valid - negative shift -08", - "data": "2023-W10-1T12:00:00-08", - "valid": true - }, - { - "description": "Valid - maximum positive shift +23", - "data": "2023-W10-1T12:00:00+23", - "valid": true - }, - { - "description": "Valid - maximum negative shift -23", - "data": "2023-W10-1T12:00:00-23", - "valid": true - }, - { - "description": "Valid - zero shift +00", - "data": "2023-W10-1T12:00:00+00", - "valid": true - }, - { - "description": "Invalid - negative zero shift -00", - "data": "2023-W10-1T12:00:00-00", - "valid": false - }, - { - "description": "Valid - historical date 1900-W09-7 +02", - "data": "1900-W09-7T06:30:45+02", - "valid": true - }, - { - "description": "Valid - future date 2100-W33-7 -12", - "data": "2100-W33-7T18:45:30-12", - "valid": true - }, - { - "description": "Invalid - missing T designator", - "data": "1985-W15-523:20:50+04", - "valid": false - }, - { - "description": "Invalid - lowercase w", - "data": "1985-w15-5T23:20:50+04", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "1985-W15-5t23:20:50+04", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - basic format", - "data": "1985W155T232050+04", - "valid": false - }, - { - "description": "Invalid - missing time shift", - "data": "1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - with Z instead of shift", - "data": "1985-W15-5T23:20:50Z", - "valid": false - }, - { - "description": "Invalid - shift hour 24", - "data": "2023-W10-1T12:00:00+24", - "valid": false - }, - { - "description": "Invalid - shift hour 99", - "data": "2023-W10-1T12:00:00+99", - "valid": false - }, - { - "description": "Invalid - missing shift sign", - "data": "2023-W10-1T12:00:0004", - "valid": false - }, - { - "description": "Invalid - shift with minutes", - "data": "1985-W15-5T23:20:50+04:00", - "valid": false - }, - { - "description": "Invalid - shift without colon (basic)", - "data": "1985-W15-5T23:20:50+0400", - "valid": false - }, - { - "description": "Invalid - single digit shift", - "data": "1985-W15-5T23:20:50+4", - "valid": false - }, - { - "description": "Invalid - week 00", - "data": "2023-W00-7T12:00:00+01", - "valid": false - }, - { - "description": "Invalid - week 54", - "data": "2023-W54-7T12:00:00+01", - "valid": false - }, - { - "description": "Invalid - day 0", - "data": "2023-W10-0T12:00:00+01", - "valid": false - }, - { - "description": "Invalid - day 8", - "data": "2023-W10-8T12:00:00+01", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "2023-W10-1T24:00:00+01", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "2023-W10-1T12:60:00+01", - "valid": false - }, - { - "description": "Invalid - second 61", - "data": "2023-W10-1T12:00:61+01", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "2023-W10-1T00:00:00+01", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "2023-W10-1T23:00:00+01", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "2023-W10-1T12:59:00+01", - "valid": true - }, - { - "description": "Valid - second 60 (leap second)", - "data": "2023-W26-7T23:59:60+01", - "valid": true - }, - { - "description": "Invalid - missing hyphens", - "data": "2023W101T12:00:00+01", - "valid": false - }, - { - "description": "Invalid - missing colons in time", - "data": "2023-W10-1T120000+01", - "valid": false - }, - { - "description": "Invalid - with decimal seconds", - "data": "2023-W10-1T12:00:00.5+01", - "valid": false - }, - { - "description": "Invalid - partial time", - "data": "2023-W10-1T12:00+01", - "valid": false - }, - { - "description": "Valid - week 01 day 1", - "data": "2023-W01-1T12:00:00+01", - "valid": true - }, - { - "description": "Valid - week 53 day 7", - "data": "2020-W53-7T12:00:00+01", - "valid": true - }, - { - "description": "Invalid - spaces in datetime", - "data": "2023-W10-1 T 12:00:00 + 01", - "valid": false - }, - { - "description": "Invalid - missing W designator", - "data": "2023-10-1T12:00:00+01", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "2023-W10-1T12:00:00+01X", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/datetime/week-utc-basic/v1.test.json b/test/iso/datetime/2019/datetime/week-utc-basic/v1.test.json deleted file mode 100644 index 2255fa16..00000000 --- a/test/iso/datetime/2019/datetime/week-utc-basic/v1.test.json +++ /dev/null @@ -1,285 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/datetime/week-utc-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 2018011120000, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 1985-W15-5 23:20:50 UTC", - "data": "1985W155T232050Z", - "valid": true - }, - { - "description": "Valid - 2000-W01-1 00:00:00 UTC", - "data": "2000W011T000000Z", - "valid": true - }, - { - "description": "Valid - leap second 2023-W50-7 23:59:60 UTC", - "data": "2023W507T235960Z", - "valid": true - }, - { - "description": "Valid - 2020-W09-7 12:00:00 UTC", - "data": "2020W097T120000Z", - "valid": true - }, - { - "description": "Valid - end of year 2023-W52-7 23:59:59 UTC", - "data": "2023W527T235959Z", - "valid": true - }, - { - "description": "Valid - start of year 2024-W01-1 00:00:00 UTC", - "data": "2024W011T000000Z", - "valid": true - }, - { - "description": "Valid - historical date 1900-W09-7 06:30:45 UTC", - "data": "1900W097T063045Z", - "valid": true - }, - { - "description": "Valid - future date 2100-W33-7 18:45:30 UTC", - "data": "2100W337T184530Z", - "valid": true - }, - { - "description": "Invalid - missing T designator", - "data": "1985W155232050Z", - "valid": false - }, - { - "description": "Invalid - lowercase w", - "data": "1985w155T232050Z", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "1985W155t232050Z", - "valid": false - }, - { - "description": "Invalid - lowercase z", - "data": "1985W155T232050z", - "valid": false - }, - { - "description": "Invalid - missing Z designator", - "data": "1985W155T232050", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - extended format", - "data": "1985-W15-5T23:20:50Z", - "valid": false - }, - { - "description": "Invalid - week 00", - "data": "2023W007T120000Z", - "valid": false - }, - { - "description": "Invalid - week 54", - "data": "2023W547T120000Z", - "valid": false - }, - { - "description": "Invalid - week 99", - "data": "2023W997T120000Z", - "valid": false - }, - { - "description": "Invalid - day 0", - "data": "2023W100T120000Z", - "valid": false - }, - { - "description": "Invalid - day 8", - "data": "2023W108T120000Z", - "valid": false - }, - { - "description": "Invalid - day 9", - "data": "2023W109T120000Z", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "2023W101T240000Z", - "valid": false - }, - { - "description": "Invalid - hour 25", - "data": "2023W101T250000Z", - "valid": false - }, - { - "description": "Invalid - hour 99", - "data": "2023W101T990000Z", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "2023W101T126000Z", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "2023W101T129900Z", - "valid": false - }, - { - "description": "Invalid - second 61", - "data": "2023W101T120061Z", - "valid": false - }, - { - "description": "Invalid - second 99", - "data": "2023W101T120099Z", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "2023W101T000000Z", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "2023W101T230000Z", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "2023W101T120000Z", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "2023W101T125900Z", - "valid": true - }, - { - "description": "Valid - second 00 (minimum)", - "data": "2023W101T120000Z", - "valid": true - }, - { - "description": "Valid - second 59", - "data": "2023W101T120059Z", - "valid": true - }, - { - "description": "Valid - second 60 (leap second)", - "data": "2023W267T235960Z", - "valid": true - }, - { - "description": "Invalid - with time shift instead of Z", - "data": "2023W101T120000+0100", - "valid": false - }, - { - "description": "Invalid - with hourly time shift", - "data": "2023W101T120000+01", - "valid": false - }, - { - "description": "Invalid - with decimal seconds", - "data": "2023W101T120000.5Z", - "valid": false - }, - { - "description": "Invalid - partial time (hour and minute only)", - "data": "2023W101T1200Z", - "valid": false - }, - { - "description": "Invalid - partial time (hour only)", - "data": "2023W101T12Z", - "valid": false - }, - { - "description": "Invalid - date only", - "data": "2023W101Z", - "valid": false - }, - { - "description": "Invalid - time only", - "data": "T120000Z", - "valid": false - }, - { - "description": "Valid - week 01 day 1 (Monday)", - "data": "2023W011T120000Z", - "valid": true - }, - { - "description": "Valid - week 53 day 7 (Sunday)", - "data": "2020W537T120000Z", - "valid": true - }, - { - "description": "Valid - day 7 (Sunday)", - "data": "2023W107T120000Z", - "valid": true - }, - { - "description": "Invalid - spaces in datetime", - "data": "2023 W10 1T12 00 00Z", - "valid": false - }, - { - "description": "Invalid - missing W designator", - "data": "2023101T120000Z", - "valid": false - }, - { - "description": "Invalid - missing year digits", - "data": "23W101T120000Z", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "2023W101T120000ZX", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning", - "data": "X2023W101T120000Z", - "valid": false - }, - { - "description": "Invalid - double Z", - "data": "2023W101T120000ZZ", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/datetime/week-utc-extended/v1.test.json b/test/iso/datetime/2019/datetime/week-utc-extended/v1.test.json deleted file mode 100644 index 3058789e..00000000 --- a/test/iso/datetime/2019/datetime/week-utc-extended/v1.test.json +++ /dev/null @@ -1,300 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/datetime/week-utc-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 2018011120000, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 1985-W15-5 23:20:50 UTC", - "data": "1985-W15-5T23:20:50Z", - "valid": true - }, - { - "description": "Valid - 2000-W01-1 00:00:00 UTC", - "data": "2000-W01-1T00:00:00Z", - "valid": true - }, - { - "description": "Valid - leap second 2023-W50-7 23:59:60 UTC", - "data": "2023-W50-7T23:59:60Z", - "valid": true - }, - { - "description": "Valid - 2020-W09-7 12:00:00 UTC", - "data": "2020-W09-7T12:00:00Z", - "valid": true - }, - { - "description": "Valid - end of year 2023-W52-7 23:59:59 UTC", - "data": "2023-W52-7T23:59:59Z", - "valid": true - }, - { - "description": "Valid - start of year 2024-W01-1 00:00:00 UTC", - "data": "2024-W01-1T00:00:00Z", - "valid": true - }, - { - "description": "Valid - historical date 1900-W09-7 06:30:45 UTC", - "data": "1900-W09-7T06:30:45Z", - "valid": true - }, - { - "description": "Valid - future date 2100-W33-7 18:45:30 UTC", - "data": "2100-W33-7T18:45:30Z", - "valid": true - }, - { - "description": "Invalid - missing T designator", - "data": "1985-W15-523:20:50Z", - "valid": false - }, - { - "description": "Invalid - lowercase w", - "data": "1985-w15-5T23:20:50Z", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "1985-W15-5t23:20:50Z", - "valid": false - }, - { - "description": "Invalid - lowercase z", - "data": "1985-W15-5T23:20:50z", - "valid": false - }, - { - "description": "Invalid - missing Z designator", - "data": "1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - basic format", - "data": "1985W155T232050Z", - "valid": false - }, - { - "description": "Invalid - week 00", - "data": "2023-W00-7T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - week 54", - "data": "2023-W54-7T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - week 99", - "data": "2023-W99-7T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - day 0", - "data": "2023-W10-0T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - day 8", - "data": "2023-W10-8T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - day 9", - "data": "2023-W10-9T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "2023-W10-1T24:00:00Z", - "valid": false - }, - { - "description": "Invalid - hour 25", - "data": "2023-W10-1T25:00:00Z", - "valid": false - }, - { - "description": "Invalid - hour 99", - "data": "2023-W10-1T99:00:00Z", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "2023-W10-1T12:60:00Z", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "2023-W10-1T12:99:00Z", - "valid": false - }, - { - "description": "Invalid - second 61", - "data": "2023-W10-1T12:00:61Z", - "valid": false - }, - { - "description": "Invalid - second 99", - "data": "2023-W10-1T12:00:99Z", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "2023-W10-1T00:00:00Z", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "2023-W10-1T23:00:00Z", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "2023-W10-1T12:00:00Z", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "2023-W10-1T12:59:00Z", - "valid": true - }, - { - "description": "Valid - second 00 (minimum)", - "data": "2023-W10-1T12:00:00Z", - "valid": true - }, - { - "description": "Valid - second 59", - "data": "2023-W10-1T12:00:59Z", - "valid": true - }, - { - "description": "Valid - second 60 (leap second)", - "data": "2023-W26-7T23:59:60Z", - "valid": true - }, - { - "description": "Invalid - missing hyphens", - "data": "2023W101T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - missing colons in time", - "data": "2023-W10-1T120000Z", - "valid": false - }, - { - "description": "Invalid - with time shift instead of Z", - "data": "2023-W10-1T12:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - with hourly time shift", - "data": "2023-W10-1T12:00:00+01", - "valid": false - }, - { - "description": "Invalid - with decimal seconds", - "data": "2023-W10-1T12:00:00.5Z", - "valid": false - }, - { - "description": "Invalid - partial time (hour and minute only)", - "data": "2023-W10-1T12:00Z", - "valid": false - }, - { - "description": "Invalid - partial time (hour only)", - "data": "2023-W10-1T12Z", - "valid": false - }, - { - "description": "Invalid - date only", - "data": "2023-W10-1Z", - "valid": false - }, - { - "description": "Invalid - time only", - "data": "T12:00:00Z", - "valid": false - }, - { - "description": "Valid - week 01 day 1 (Monday)", - "data": "2023-W01-1T12:00:00Z", - "valid": true - }, - { - "description": "Valid - week 53 day 7 (Sunday)", - "data": "2020-W53-7T12:00:00Z", - "valid": true - }, - { - "description": "Valid - day 7 (Sunday)", - "data": "2023-W10-7T12:00:00Z", - "valid": true - }, - { - "description": "Invalid - spaces in datetime", - "data": "2023-W10-1 T 12:00:00Z", - "valid": false - }, - { - "description": "Invalid - missing W designator", - "data": "2023-10-1T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - extra hyphen", - "data": "2023--W10-1T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - missing year digits", - "data": "23-W10-1T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "2023-W10-1T12:00:00ZX", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning", - "data": "X2023-W10-1T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - double Z", - "data": "2023-W10-1T12:00:00ZZ", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/duration/calendar-basic/v1.test.json b/test/iso/datetime/2019/duration/calendar-basic/v1.test.json deleted file mode 100644 index a6fe7614..00000000 --- a/test/iso/datetime/2019/duration/calendar-basic/v1.test.json +++ /dev/null @@ -1,350 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/duration/calendar-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 20110223, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 2 years 1 month 10 days, 22 hours 33 minutes 55 seconds", - "data": "P00020110T223355", - "valid": true - }, - { - "description": "Valid - 1 year 1 month 1 day, 0 hours 0 minutes 0 seconds", - "data": "P00010101T000000", - "valid": true - }, - { - "description": "Invalid - 31 days exceeds the 30-day carry-over point", - "data": "P00001231T235959", - "valid": false - }, - { - "description": "Valid - 10 years 6 months 15 days, 12 hours 30 minutes 45 seconds", - "data": "P00100615T123045", - "valid": true - }, - { - "description": "Invalid - missing P prefix", - "data": "00020110T223355", - "valid": false - }, - { - "description": "Invalid - missing T separator", - "data": "P00020110223355", - "valid": false - }, - { - "description": "Invalid - lowercase p", - "data": "p00020110T223355", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "P00020110t223355", - "valid": false - }, - { - "description": "Invalid - too few date digits", - "data": "P0020110T223355", - "valid": false - }, - { - "description": "Invalid - too many date digits", - "data": "P000020110T223355", - "valid": false - }, - { - "description": "Invalid - too few time digits", - "data": "P00020110T22335", - "valid": false - }, - { - "description": "Invalid - too many time digits", - "data": "P00020110T2233555", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - spaces in duration", - "data": "P0002 0110 T22 33 55", - "valid": false - }, - { - "description": "Invalid - hyphens (extended format)", - "data": "P0002-01-10T22:33:55", - "valid": false - }, - { - "description": "Invalid - colons in time (extended format)", - "data": "P00020110T22:33:55", - "valid": false - }, - { - "description": "Valid - zero months is a legal duration quantity", - "data": "P00000001T000000", - "valid": true - }, - { - "description": "Valid - zero months with days is a legal duration quantity", - "data": "P00010001T000000", - "valid": true - }, - { - "description": "Invalid - month 13 (months should be 01-12)", - "data": "P00011301T000000", - "valid": false - }, - { - "description": "Invalid - month 99 (months should be 01-12)", - "data": "P00019901T000000", - "valid": false - }, - { - "description": "Valid - zero days is a legal duration quantity", - "data": "P00010100T000000", - "valid": true - }, - { - "description": "Invalid - day 32 (days should be 01-31)", - "data": "P00010132T000000", - "valid": false - }, - { - "description": "Invalid - day 99 (days should be 01-31)", - "data": "P00010199T000000", - "valid": false - }, - { - "description": "Invalid - hour 24 (hours should be 00-23)", - "data": "P00010101T240000", - "valid": false - }, - { - "description": "Invalid - hour 99 (hours should be 00-23)", - "data": "P00010101T990000", - "valid": false - }, - { - "description": "Invalid - minute 60 (minutes should be 00-59)", - "data": "P00010101T006000", - "valid": false - }, - { - "description": "Invalid - minute 99 (minutes should be 00-59)", - "data": "P00010101T009900", - "valid": false - }, - { - "description": "Invalid - second 60 (seconds should be 00-59)", - "data": "P00010101T000060", - "valid": false - }, - { - "description": "Invalid - second 99 (seconds should be 00-59)", - "data": "P00010101T000099", - "valid": false - }, - { - "description": "Valid - month 01 (minimum valid month)", - "data": "P00000101T000000", - "valid": true - }, - { - "description": "Valid - month 12 (maximum valid month)", - "data": "P00001201T000000", - "valid": true - }, - { - "description": "Valid - day 01 (minimum valid day)", - "data": "P00000101T000000", - "valid": true - }, - { - "description": "Invalid - 31 days exceeds the 30-day carry-over point", - "data": "P00000131T000000", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum valid hour)", - "data": "P00000101T000000", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum valid hour)", - "data": "P00000101T230000", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum valid minute)", - "data": "P00000101T000000", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum valid minute)", - "data": "P00000101T005900", - "valid": true - }, - { - "description": "Valid - second 00 (minimum valid second)", - "data": "P00000101T000000", - "valid": true - }, - { - "description": "Valid - second 59 (maximum valid second)", - "data": "P00000101T000059", - "valid": true - }, - { - "description": "Invalid - durations take no sign and no expanded year form", - "data": "P+100000101T000000", - "valid": false - }, - { - "description": "Invalid - durations take no sign and no expanded year form", - "data": "P-100000101T000000", - "valid": false - }, - { - "description": "Invalid - durations take no sign and no expanded year form", - "data": "P+10000000101T000000", - "valid": false - }, - { - "description": "Invalid - durations take no sign and no expanded year form", - "data": "P-10000000000101T000000", - "valid": false - }, - { - "description": "Invalid - expanded year without sign (5 digits)", - "data": "P100000101T000000", - "valid": false - }, - { - "description": "Invalid - 4 digit year with plus sign", - "data": "P+00010101T000000", - "valid": false - }, - { - "description": "Invalid - 4 digit year with minus sign", - "data": "P-00010101T000000", - "valid": false - }, - { - "description": "Invalid - month without leading zero (single digit)", - "data": "P00000101T00000", - "valid": false - }, - { - "description": "Invalid - day without leading zero (single digit)", - "data": "P0000011T00000", - "valid": false - }, - { - "description": "Invalid - hour without leading zero (single digit)", - "data": "P00000101T10000", - "valid": false - }, - { - "description": "Invalid - minute without leading zero (single digit)", - "data": "P00000101T00100", - "valid": false - }, - { - "description": "Invalid - second without leading zero (single digit)", - "data": "P00000101T00001", - "valid": false - }, - { - "description": "Valid - zero months is a legal duration quantity", - "data": "P00010001T000000", - "valid": true - }, - { - "description": "Invalid - month 13", - "data": "P00011301T000000", - "valid": false - }, - { - "description": "Valid - zero days is a legal duration quantity", - "data": "P00010100T000000", - "valid": true - }, - { - "description": "Invalid - day 32", - "data": "P00010132T000000", - "valid": false - }, - { - "description": "Valid - month and day fields are quantities, not a calendar date", - "data": "P00010230T000000", - "valid": true - }, - { - "description": "Invalid - February 31", - "data": "P00010231T000000", - "valid": false - }, - { - "description": "Invalid - April 31", - "data": "P00010431T000000", - "valid": false - }, - { - "description": "Invalid - June 31", - "data": "P00010631T000000", - "valid": false - }, - { - "description": "Invalid - September 31", - "data": "P00010931T000000", - "valid": false - }, - { - "description": "Invalid - November 31", - "data": "P00011131T000000", - "valid": false - }, - { - "description": "Valid - February 29 (leap year validation is consumer responsibility)", - "data": "P00010229T000000", - "valid": true - }, - { - "description": "Valid - April 30", - "data": "P00010430T000000", - "valid": true - }, - { - "description": "Invalid - 31 days exceeds the 30-day carry-over point", - "data": "P00010131T000000", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/duration/calendar-extended/v1.test.json b/test/iso/datetime/2019/duration/calendar-extended/v1.test.json deleted file mode 100644 index 3e0e6656..00000000 --- a/test/iso/datetime/2019/duration/calendar-extended/v1.test.json +++ /dev/null @@ -1,350 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/duration/calendar-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 20110223, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 2 years 1 month 10 days, 22 hours 33 minutes 55 seconds", - "data": "P0002-01-10T22:33:55", - "valid": true - }, - { - "description": "Valid - 1 year 1 month 1 day, 0 hours 0 minutes 0 seconds", - "data": "P0001-01-01T00:00:00", - "valid": true - }, - { - "description": "Invalid - 31 days exceeds the 30-day carry-over point", - "data": "P0000-12-31T23:59:59", - "valid": false - }, - { - "description": "Valid - 10 years 6 months 15 days, 12 hours 30 minutes 45 seconds", - "data": "P0010-06-15T12:30:45", - "valid": true - }, - { - "description": "Invalid - missing P prefix", - "data": "0002-01-10T22:33:55", - "valid": false - }, - { - "description": "Invalid - missing T separator", - "data": "P0002-01-1022:33:55", - "valid": false - }, - { - "description": "Invalid - lowercase p", - "data": "p0002-01-10T22:33:55", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "P0002-01-10t22:33:55", - "valid": false - }, - { - "description": "Invalid - missing date hyphens", - "data": "P00020110T22:33:55", - "valid": false - }, - { - "description": "Invalid - missing time colons", - "data": "P0002-01-10T223355", - "valid": false - }, - { - "description": "Invalid - too few year digits", - "data": "P002-01-10T22:33:55", - "valid": false - }, - { - "description": "Invalid - too many year digits", - "data": "P00002-01-10T22:33:55", - "valid": false - }, - { - "description": "Invalid - too few month digits", - "data": "P0002-1-10T22:33:55", - "valid": false - }, - { - "description": "Invalid - too many month digits", - "data": "P0002-001-10T22:33:55", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - spaces in duration", - "data": "P0002-01-10 T 22:33:55", - "valid": false - }, - { - "description": "Valid - zero months is a legal duration quantity", - "data": "P0000-00-01T00:00:00", - "valid": true - }, - { - "description": "Valid - zero months with days is a legal duration quantity", - "data": "P0001-00-01T00:00:00", - "valid": true - }, - { - "description": "Invalid - month 13 (months should be 01-12)", - "data": "P0001-13-01T00:00:00", - "valid": false - }, - { - "description": "Invalid - month 99 (months should be 01-12)", - "data": "P0001-99-01T00:00:00", - "valid": false - }, - { - "description": "Valid - zero days is a legal duration quantity", - "data": "P0001-01-00T00:00:00", - "valid": true - }, - { - "description": "Invalid - day 32 (days should be 01-31)", - "data": "P0001-01-32T00:00:00", - "valid": false - }, - { - "description": "Invalid - day 99 (days should be 01-31)", - "data": "P0001-01-99T00:00:00", - "valid": false - }, - { - "description": "Invalid - hour 24 (hours should be 00-23)", - "data": "P0001-01-01T24:00:00", - "valid": false - }, - { - "description": "Invalid - hour 99 (hours should be 00-23)", - "data": "P0001-01-01T99:00:00", - "valid": false - }, - { - "description": "Invalid - minute 60 (minutes should be 00-59)", - "data": "P0001-01-01T00:60:00", - "valid": false - }, - { - "description": "Invalid - minute 99 (minutes should be 00-59)", - "data": "P0001-01-01T00:99:00", - "valid": false - }, - { - "description": "Invalid - second 60 (seconds should be 00-59)", - "data": "P0001-01-01T00:00:60", - "valid": false - }, - { - "description": "Invalid - second 99 (seconds should be 00-59)", - "data": "P0001-01-01T00:00:99", - "valid": false - }, - { - "description": "Valid - month 01 (minimum valid month)", - "data": "P0000-01-01T00:00:00", - "valid": true - }, - { - "description": "Valid - month 12 (maximum valid month)", - "data": "P0000-12-01T00:00:00", - "valid": true - }, - { - "description": "Valid - day 01 (minimum valid day)", - "data": "P0000-01-01T00:00:00", - "valid": true - }, - { - "description": "Invalid - 31 days exceeds the 30-day carry-over point", - "data": "P0000-01-31T00:00:00", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum valid hour)", - "data": "P0000-01-01T00:00:00", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum valid hour)", - "data": "P0000-01-01T23:00:00", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum valid minute)", - "data": "P0000-01-01T00:00:00", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum valid minute)", - "data": "P0000-01-01T00:59:00", - "valid": true - }, - { - "description": "Valid - second 00 (minimum valid second)", - "data": "P0000-01-01T00:00:00", - "valid": true - }, - { - "description": "Valid - second 59 (maximum valid second)", - "data": "P0000-01-01T00:00:59", - "valid": true - }, - { - "description": "Invalid - durations take no sign and no expanded year form", - "data": "P+10000-01-01T00:00:00", - "valid": false - }, - { - "description": "Invalid - durations take no sign and no expanded year form", - "data": "P-10000-01-01T00:00:00", - "valid": false - }, - { - "description": "Invalid - durations take no sign and no expanded year form", - "data": "P+100000-01-01T00:00:00", - "valid": false - }, - { - "description": "Invalid - durations take no sign and no expanded year form", - "data": "P-1000000000-01-01T00:00:00", - "valid": false - }, - { - "description": "Invalid - expanded year without sign (5 digits)", - "data": "P10000-01-01T00:00:00", - "valid": false - }, - { - "description": "Invalid - 4 digit year with plus sign", - "data": "P+0001-01-01T00:00:00", - "valid": false - }, - { - "description": "Invalid - 4 digit year with minus sign", - "data": "P-0001-01-01T00:00:00", - "valid": false - }, - { - "description": "Invalid - month without leading zero (single digit)", - "data": "P0000-1-01T00:00:00", - "valid": false - }, - { - "description": "Invalid - day without leading zero (single digit)", - "data": "P0000-01-1T00:00:00", - "valid": false - }, - { - "description": "Invalid - hour without leading zero (single digit)", - "data": "P0000-01-01T1:00:00", - "valid": false - }, - { - "description": "Invalid - minute without leading zero (single digit)", - "data": "P0000-01-01T00:1:00", - "valid": false - }, - { - "description": "Invalid - second without leading zero (single digit)", - "data": "P0000-01-01T00:00:1", - "valid": false - }, - { - "description": "Valid - zero months is a legal duration quantity", - "data": "P0001-00-01T00:00:00", - "valid": true - }, - { - "description": "Invalid - month 13", - "data": "P0001-13-01T00:00:00", - "valid": false - }, - { - "description": "Valid - zero days is a legal duration quantity", - "data": "P0001-01-00T00:00:00", - "valid": true - }, - { - "description": "Invalid - day 32", - "data": "P0001-01-32T00:00:00", - "valid": false - }, - { - "description": "Valid - month and day fields are quantities, not a calendar date", - "data": "P0001-02-30T00:00:00", - "valid": true - }, - { - "description": "Invalid - February 31", - "data": "P0001-02-31T00:00:00", - "valid": false - }, - { - "description": "Invalid - April 31", - "data": "P0001-04-31T00:00:00", - "valid": false - }, - { - "description": "Invalid - June 31", - "data": "P0001-06-31T00:00:00", - "valid": false - }, - { - "description": "Invalid - September 31", - "data": "P0001-09-31T00:00:00", - "valid": false - }, - { - "description": "Invalid - November 31", - "data": "P0001-11-31T00:00:00", - "valid": false - }, - { - "description": "Valid - February 29 (leap year validation is consumer responsibility)", - "data": "P0001-02-29T00:00:00", - "valid": true - }, - { - "description": "Valid - April 30", - "data": "P0001-04-30T00:00:00", - "valid": true - }, - { - "description": "Invalid - 31 days exceeds the 30-day carry-over point", - "data": "P0001-01-31T00:00:00", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/duration/designator-extension/v1.test.json b/test/iso/datetime/2019/duration/designator-extension/v1.test.json deleted file mode 100644 index efdc9dd9..00000000 --- a/test/iso/datetime/2019/duration/designator-extension/v1.test.json +++ /dev/null @@ -1,350 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/duration/designator-extension/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - full duration with all components", - "data": "P3Y6M4DT12H30M5S", - "valid": true - }, - { - "description": "Valid - only years", - "data": "P1Y", - "valid": true - }, - { - "description": "Valid - only time component (hours)", - "data": "PT1H", - "valid": true - }, - { - "description": "Valid - days and seconds", - "data": "P1DT1S", - "valid": true - }, - { - "description": "Valid - all zeros", - "data": "P0Y0M0DT0H0M0S", - "valid": true - }, - { - "description": "Valid - only months", - "data": "P5M", - "valid": true - }, - { - "description": "Valid - only days", - "data": "P100D", - "valid": true - }, - { - "description": "Valid - only minutes", - "data": "PT30M", - "valid": true - }, - { - "description": "Valid - only seconds", - "data": "PT45S", - "valid": true - }, - { - "description": "Valid - seconds with decimal fraction", - "data": "PT1.5S", - "valid": true - }, - { - "description": "Valid - years and months", - "data": "P2Y3M", - "valid": true - }, - { - "description": "Valid - hours and minutes", - "data": "PT12H30M", - "valid": true - }, - { - "description": "Invalid - missing P prefix", - "data": "3Y6M4DT12H30M5S", - "valid": false - }, - { - "description": "Invalid - lowercase p", - "data": "p1Y", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "P1Dt1H", - "valid": false - }, - { - "description": "Invalid - time component without T", - "data": "P1D1H", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - only P", - "data": "P", - "valid": false - }, - { - "description": "Invalid - only PT", - "data": "PT", - "valid": false - }, - { - "description": "Invalid - spaces in duration", - "data": "P1Y 2M", - "valid": false - }, - { - "description": "Invalid - wrong order (months before years)", - "data": "P6M3Y", - "valid": false - }, - { - "description": "Valid - 13 months (durations can exceed calendar limits)", - "data": "P13M", - "valid": true - }, - { - "description": "Valid - 32 days (durations can exceed calendar limits)", - "data": "P32D", - "valid": true - }, - { - "description": "Valid - 25 hours (durations can exceed calendar limits)", - "data": "PT25H", - "valid": true - }, - { - "description": "Valid - 60 minutes (durations can exceed calendar limits)", - "data": "PT60M", - "valid": true - }, - { - "description": "Valid - 60 seconds (durations can exceed calendar limits)", - "data": "PT60S", - "valid": true - }, - { - "description": "Valid - 100 hours (durations can exceed calendar limits)", - "data": "PT100H", - "valid": true - }, - { - "description": "Valid - 500 days (durations can exceed calendar limits)", - "data": "P500D", - "valid": true - }, - { - "description": "Valid - zero years", - "data": "P0Y", - "valid": true - }, - { - "description": "Valid - zero months", - "data": "P0M", - "valid": true - }, - { - "description": "Valid - zero days", - "data": "P0D", - "valid": true - }, - { - "description": "Valid - zero hours", - "data": "PT0H", - "valid": true - }, - { - "description": "Valid - zero minutes", - "data": "PT0M", - "valid": true - }, - { - "description": "Valid - zero seconds", - "data": "PT0S", - "valid": true - }, - { - "description": "Valid negative - days only", - "data": "-P100D", - "valid": true - }, - { - "description": "Valid negative - year month and days", - "data": "-P1Y2M3D", - "valid": true - }, - { - "description": "Valid negative - full representation", - "data": "-P3Y6M4DT12H30M5S", - "valid": true - }, - { - "description": "Valid negative - time only hours and minutes", - "data": "-PT5H30M", - "valid": true - }, - { - "description": "Valid negative - year only", - "data": "-P1Y", - "valid": true - }, - { - "description": "Valid negative - hours only", - "data": "-PT1H", - "valid": true - }, - { - "description": "Valid negative - decimal year", - "data": "-P1.5Y", - "valid": true - }, - { - "description": "Valid negative - months only", - "data": "-P6M", - "valid": true - }, - { - "description": "Valid negative - seconds only", - "data": "-PT30S", - "valid": true - }, - { - "description": "Valid negative - year month day", - "data": "-P1Y2M3D", - "valid": true - }, - { - "description": "Valid negative - hours minutes seconds", - "data": "-PT10H20M30S", - "valid": true - }, - { - "description": "Valid negative - decimal seconds", - "data": "-PT1.5S", - "valid": true - }, - { - "description": "Valid negative - zero duration", - "data": "-P0Y0M0DT0H0M0S", - "valid": true - }, - { - "description": "Invalid - empty P", - "data": "P", - "valid": false - }, - { - "description": "Invalid - empty PT", - "data": "PT", - "valid": false - }, - { - "description": "Invalid - empty -P", - "data": "-P", - "valid": false - }, - { - "description": "Invalid - empty -PT", - "data": "-PT", - "valid": false - }, - { - "description": "Invalid - double minus", - "data": "--P1Y", - "valid": false - }, - { - "description": "Invalid - minus in wrong position", - "data": "P-1Y", - "valid": false - }, - { - "description": "Invalid - missing P", - "data": "-1Y", - "valid": false - }, - { - "description": "Invalid - missing T separator", - "data": "-P1Y1H", - "valid": false - }, - { - "description": "Invalid - wrong designator order", - "data": "-P1D2M3Y", - "valid": false - }, - { - "description": "Invalid - time before date", - "data": "-PT1H1D", - "valid": false - }, - { - "description": "Invalid type - number", - "data": 100, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - negative week duration", - "valid": true, - "data": "-P1W" - }, - { - "description": "Valid - negative duration with months omitted", - "valid": true, - "data": "-P1Y1D" - } - ] -} diff --git a/test/iso/datetime/2019/duration/designator/v1.test.json b/test/iso/datetime/2019/duration/designator/v1.test.json deleted file mode 100644 index 66e99214..00000000 --- a/test/iso/datetime/2019/duration/designator/v1.test.json +++ /dev/null @@ -1,225 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/duration/designator/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - full duration with all components", - "data": "P3Y6M4DT12H30M5S", - "valid": true - }, - { - "description": "Valid - only years", - "data": "P1Y", - "valid": true - }, - { - "description": "Valid - only time component (hours)", - "data": "PT1H", - "valid": true - }, - { - "description": "Valid - days and seconds", - "data": "P1DT1S", - "valid": true - }, - { - "description": "Valid - all zeros", - "data": "P0Y0M0DT0H0M0S", - "valid": true - }, - { - "description": "Valid - only months", - "data": "P5M", - "valid": true - }, - { - "description": "Valid - only days", - "data": "P100D", - "valid": true - }, - { - "description": "Valid - only minutes", - "data": "PT30M", - "valid": true - }, - { - "description": "Valid - only seconds", - "data": "PT45S", - "valid": true - }, - { - "description": "Valid - seconds with decimal fraction", - "data": "PT1.5S", - "valid": true - }, - { - "description": "Valid - years and months", - "data": "P2Y3M", - "valid": true - }, - { - "description": "Valid - hours and minutes", - "data": "PT12H30M", - "valid": true - }, - { - "description": "Invalid - missing P prefix", - "data": "3Y6M4DT12H30M5S", - "valid": false - }, - { - "description": "Invalid - lowercase p", - "data": "p1Y", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "P1Dt1H", - "valid": false - }, - { - "description": "Invalid - time component without T", - "data": "P1D1H", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - only P", - "data": "P", - "valid": false - }, - { - "description": "Invalid - only PT", - "data": "PT", - "valid": false - }, - { - "description": "Invalid - spaces in duration", - "data": "P1Y 2M", - "valid": false - }, - { - "description": "Invalid - wrong order (months before years)", - "data": "P6M3Y", - "valid": false - }, - { - "description": "Valid - 13 months (durations can exceed calendar limits)", - "data": "P13M", - "valid": true - }, - { - "description": "Valid - 32 days (durations can exceed calendar limits)", - "data": "P32D", - "valid": true - }, - { - "description": "Valid - 25 hours (durations can exceed calendar limits)", - "data": "PT25H", - "valid": true - }, - { - "description": "Valid - 60 minutes (durations can exceed calendar limits)", - "data": "PT60M", - "valid": true - }, - { - "description": "Valid - 60 seconds (durations can exceed calendar limits)", - "data": "PT60S", - "valid": true - }, - { - "description": "Valid - 100 hours (durations can exceed calendar limits)", - "data": "PT100H", - "valid": true - }, - { - "description": "Valid - 500 days (durations can exceed calendar limits)", - "data": "P500D", - "valid": true - }, - { - "description": "Valid - zero years", - "data": "P0Y", - "valid": true - }, - { - "description": "Valid - zero months", - "data": "P0M", - "valid": true - }, - { - "description": "Valid - zero days", - "data": "P0D", - "valid": true - }, - { - "description": "Valid - zero hours", - "data": "PT0H", - "valid": true - }, - { - "description": "Valid - zero minutes", - "data": "PT0M", - "valid": true - }, - { - "description": "Valid - zero seconds", - "data": "PT0S", - "valid": true - }, - { - "description": "Valid - years and days with months omitted", - "valid": true, - "data": "P1Y1D" - }, - { - "description": "Valid - hours and seconds with minutes omitted", - "valid": true, - "data": "PT1H1S" - }, - { - "description": "Valid - comma as the decimal sign", - "valid": true, - "data": "P0,5Y" - }, - { - "description": "Invalid - components out of order", - "valid": false, - "data": "P1D1Y" - }, - { - "description": "Invalid - fraction on a component that is not the lowest order", - "valid": false, - "data": "P0.5Y1D" - } - ] -} diff --git a/test/iso/datetime/2019/duration/ordinal-basic/v1.test.json b/test/iso/datetime/2019/duration/ordinal-basic/v1.test.json deleted file mode 100644 index 92648636..00000000 --- a/test/iso/datetime/2019/duration/ordinal-basic/v1.test.json +++ /dev/null @@ -1,300 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/duration/ordinal-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 2178223355, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 2 years day 178, 22 hours 33 minutes 55 seconds", - "data": "P0002178T223355", - "valid": true - }, - { - "description": "Valid - 1 year day 1, 0 hours 0 minutes 0 seconds", - "data": "P0001001T000000", - "valid": true - }, - { - "description": "Valid - 1 year day 365, 23 hours 59 minutes 59 seconds", - "data": "P0001365T235959", - "valid": true - }, - { - "description": "Valid - 10 years day 100, 12 hours 30 minutes 45 seconds", - "data": "P0010100T123045", - "valid": true - }, - { - "description": "Invalid - 366 days exceeds the carry-over point", - "data": "P0005366T061530", - "valid": false - }, - { - "description": "Invalid - missing P prefix", - "data": "0002178T223355", - "valid": false - }, - { - "description": "Invalid - missing T separator", - "data": "P0002178223355", - "valid": false - }, - { - "description": "Invalid - lowercase p", - "data": "p0002178T223355", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "P0002178t223355", - "valid": false - }, - { - "description": "Invalid - too few ordinal date digits", - "data": "P000278T223355", - "valid": false - }, - { - "description": "Invalid - too many ordinal date digits", - "data": "P00002178T223355", - "valid": false - }, - { - "description": "Invalid - too few time digits", - "data": "P0002178T22335", - "valid": false - }, - { - "description": "Invalid - too many time digits", - "data": "P0002178T2233555", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - spaces in duration", - "data": "P0002 178 T22 33 55", - "valid": false - }, - { - "description": "Invalid - hyphen (extended format)", - "data": "P0002-178T223355", - "valid": false - }, - { - "description": "Invalid - colons in time (extended format)", - "data": "P0002178T22:33:55", - "valid": false - }, - { - "description": "Valid - zero days is a legal duration quantity", - "data": "P0001000T000000", - "valid": true - }, - { - "description": "Invalid - ordinal day 367 (ordinal days should be 001-366)", - "data": "P0001367T000000", - "valid": false - }, - { - "description": "Invalid - ordinal day 999 (ordinal days should be 001-366)", - "data": "P0001999T000000", - "valid": false - }, - { - "description": "Invalid - hour 24 (hours should be 00-23)", - "data": "P0001001T240000", - "valid": false - }, - { - "description": "Invalid - hour 99 (hours should be 00-23)", - "data": "P0001001T990000", - "valid": false - }, - { - "description": "Invalid - minute 60 (minutes should be 00-59)", - "data": "P0001001T006000", - "valid": false - }, - { - "description": "Invalid - minute 99 (minutes should be 00-59)", - "data": "P0001001T009900", - "valid": false - }, - { - "description": "Invalid - second 60 (seconds should be 00-59)", - "data": "P0001001T000060", - "valid": false - }, - { - "description": "Invalid - second 99 (seconds should be 00-59)", - "data": "P0001001T000099", - "valid": false - }, - { - "description": "Valid - ordinal day 001 (minimum valid ordinal day)", - "data": "P0000001T000000", - "valid": true - }, - { - "description": "Invalid - 366 days exceeds the carry-over point", - "data": "P0000366T000000", - "valid": false - }, - { - "description": "Valid - ordinal day 365", - "data": "P0000365T000000", - "valid": true - }, - { - "description": "Valid - hour 00 (minimum valid hour)", - "data": "P0000001T000000", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum valid hour)", - "data": "P0000001T230000", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum valid minute)", - "data": "P0000001T000000", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum valid minute)", - "data": "P0000001T005900", - "valid": true - }, - { - "description": "Valid - second 00 (minimum valid second)", - "data": "P0000001T000000", - "valid": true - }, - { - "description": "Valid - second 59 (maximum valid second)", - "data": "P0000001T000059", - "valid": true - }, - { - "description": "Invalid - durations take no sign and no expanded year form", - "data": "P+10000001T000000", - "valid": false - }, - { - "description": "Invalid - durations take no sign and no expanded year form", - "data": "P-10000001T000000", - "valid": false - }, - { - "description": "Invalid - durations take no sign and no expanded year form", - "data": "P+100000001T000000", - "valid": false - }, - { - "description": "Invalid - durations take no sign and no expanded year form", - "data": "P-1000000000001T000000", - "valid": false - }, - { - "description": "Invalid - expanded year without sign (5 digits)", - "data": "P10000001T000000", - "valid": false - }, - { - "description": "Invalid - 4 digit year with plus sign", - "data": "P+0001001T000000", - "valid": false - }, - { - "description": "Invalid - 4 digit year with minus sign", - "data": "P-0001001T000000", - "valid": false - }, - { - "description": "Invalid - ordinal day without leading zeros (single digit)", - "data": "P00001T00000", - "valid": false - }, - { - "description": "Invalid - ordinal day without leading zeros (two digits)", - "data": "P000001T00000", - "valid": false - }, - { - "description": "Invalid - hour without leading zero (single digit)", - "data": "P0000001T10000", - "valid": false - }, - { - "description": "Invalid - minute without leading zero (single digit)", - "data": "P0000001T00100", - "valid": false - }, - { - "description": "Invalid - second without leading zero (single digit)", - "data": "P0000001T00001", - "valid": false - }, - { - "description": "Invalid - day 367", - "data": "P0001367T000000", - "valid": false - }, - { - "description": "Invalid - day 400", - "data": "P0001400T000000", - "valid": false - }, - { - "description": "Invalid - day 500", - "data": "P0001500T000000", - "valid": false - }, - { - "description": "Invalid - day 999", - "data": "P0001999T000000", - "valid": false - }, - { - "description": "Invalid - 366 days exceeds the carry-over point", - "data": "P0001366T000000", - "valid": false - }, - { - "description": "Valid - day 001", - "data": "P0001001T000000", - "valid": true - }, - { - "description": "Valid - day 365", - "data": "P0001365T000000", - "valid": true - } - ] -} diff --git a/test/iso/datetime/2019/duration/ordinal-extended/v1.test.json b/test/iso/datetime/2019/duration/ordinal-extended/v1.test.json deleted file mode 100644 index 5214b9c5..00000000 --- a/test/iso/datetime/2019/duration/ordinal-extended/v1.test.json +++ /dev/null @@ -1,300 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/duration/ordinal-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 2178223355, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 2 years day 178, 22 hours 33 minutes 55 seconds", - "data": "P0002-178T22:33:55", - "valid": true - }, - { - "description": "Valid - 1 year day 1, 0 hours 0 minutes 0 seconds", - "data": "P0001-001T00:00:00", - "valid": true - }, - { - "description": "Valid - 1 year day 365, 23 hours 59 minutes 59 seconds", - "data": "P0001-365T23:59:59", - "valid": true - }, - { - "description": "Valid - 10 years day 100, 12 hours 30 minutes 45 seconds", - "data": "P0010-100T12:30:45", - "valid": true - }, - { - "description": "Invalid - 366 days exceeds the carry-over point", - "data": "P0005-366T06:15:30", - "valid": false - }, - { - "description": "Invalid - missing P prefix", - "data": "0002-178T22:33:55", - "valid": false - }, - { - "description": "Invalid - missing T separator", - "data": "P0002-17822:33:55", - "valid": false - }, - { - "description": "Invalid - lowercase p", - "data": "p0002-178T22:33:55", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "P0002-178t22:33:55", - "valid": false - }, - { - "description": "Invalid - missing hyphen", - "data": "P0002178T22:33:55", - "valid": false - }, - { - "description": "Invalid - missing time colons", - "data": "P0002-178T223355", - "valid": false - }, - { - "description": "Invalid - too few year digits", - "data": "P002-178T22:33:55", - "valid": false - }, - { - "description": "Invalid - too many year digits", - "data": "P00002-178T22:33:55", - "valid": false - }, - { - "description": "Invalid - too few day digits", - "data": "P0002-78T22:33:55", - "valid": false - }, - { - "description": "Invalid - too many day digits", - "data": "P0002-1780T22:33:55", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - spaces in duration", - "data": "P0002-178 T 22:33:55", - "valid": false - }, - { - "description": "Valid - zero days is a legal duration quantity", - "data": "P0001-000T00:00:00", - "valid": true - }, - { - "description": "Invalid - ordinal day 367 (ordinal days should be 001-366)", - "data": "P0001-367T00:00:00", - "valid": false - }, - { - "description": "Invalid - ordinal day 999 (ordinal days should be 001-366)", - "data": "P0001-999T00:00:00", - "valid": false - }, - { - "description": "Invalid - hour 24 (hours should be 00-23)", - "data": "P0001-001T24:00:00", - "valid": false - }, - { - "description": "Invalid - hour 99 (hours should be 00-23)", - "data": "P0001-001T99:00:00", - "valid": false - }, - { - "description": "Invalid - minute 60 (minutes should be 00-59)", - "data": "P0001-001T00:60:00", - "valid": false - }, - { - "description": "Invalid - minute 99 (minutes should be 00-59)", - "data": "P0001-001T00:99:00", - "valid": false - }, - { - "description": "Invalid - second 60 (seconds should be 00-59)", - "data": "P0001-001T00:00:60", - "valid": false - }, - { - "description": "Invalid - second 99 (seconds should be 00-59)", - "data": "P0001-001T00:00:99", - "valid": false - }, - { - "description": "Valid - ordinal day 001 (minimum valid ordinal day)", - "data": "P0000-001T00:00:00", - "valid": true - }, - { - "description": "Invalid - 366 days exceeds the carry-over point", - "data": "P0000-366T00:00:00", - "valid": false - }, - { - "description": "Valid - ordinal day 365", - "data": "P0000-365T00:00:00", - "valid": true - }, - { - "description": "Valid - hour 00 (minimum valid hour)", - "data": "P0000-001T00:00:00", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum valid hour)", - "data": "P0000-001T23:00:00", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum valid minute)", - "data": "P0000-001T00:00:00", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum valid minute)", - "data": "P0000-001T00:59:00", - "valid": true - }, - { - "description": "Valid - second 00 (minimum valid second)", - "data": "P0000-001T00:00:00", - "valid": true - }, - { - "description": "Valid - second 59 (maximum valid second)", - "data": "P0000-001T00:00:59", - "valid": true - }, - { - "description": "Invalid - durations take no sign and no expanded year form", - "data": "P+10000-001T00:00:00", - "valid": false - }, - { - "description": "Invalid - durations take no sign and no expanded year form", - "data": "P-10000-001T00:00:00", - "valid": false - }, - { - "description": "Invalid - durations take no sign and no expanded year form", - "data": "P+100000-001T00:00:00", - "valid": false - }, - { - "description": "Invalid - durations take no sign and no expanded year form", - "data": "P-1000000000-001T00:00:00", - "valid": false - }, - { - "description": "Invalid - expanded year without sign (5 digits)", - "data": "P10000-001T00:00:00", - "valid": false - }, - { - "description": "Invalid - 4 digit year with plus sign", - "data": "P+0001-001T00:00:00", - "valid": false - }, - { - "description": "Invalid - 4 digit year with minus sign", - "data": "P-0001-001T00:00:00", - "valid": false - }, - { - "description": "Invalid - ordinal day without leading zeros (single digit)", - "data": "P0000-1T00:00:00", - "valid": false - }, - { - "description": "Invalid - ordinal day without leading zeros (two digits)", - "data": "P0000-01T00:00:00", - "valid": false - }, - { - "description": "Invalid - hour without leading zero (single digit)", - "data": "P0000-001T1:00:00", - "valid": false - }, - { - "description": "Invalid - minute without leading zero (single digit)", - "data": "P0000-001T00:1:00", - "valid": false - }, - { - "description": "Invalid - second without leading zero (single digit)", - "data": "P0000-001T00:00:1", - "valid": false - }, - { - "description": "Invalid - day 367", - "data": "P0001-367T00:00:00", - "valid": false - }, - { - "description": "Invalid - day 400", - "data": "P0001-400T00:00:00", - "valid": false - }, - { - "description": "Invalid - day 500", - "data": "P0001-500T00:00:00", - "valid": false - }, - { - "description": "Invalid - day 999", - "data": "P0001-999T00:00:00", - "valid": false - }, - { - "description": "Invalid - 366 days exceeds the carry-over point", - "data": "P0001-366T00:00:00", - "valid": false - }, - { - "description": "Valid - day 001", - "data": "P0001-001T00:00:00", - "valid": true - }, - { - "description": "Valid - day 365", - "data": "P0001-365T00:00:00", - "valid": true - } - ] -} diff --git a/test/iso/datetime/2019/duration/weeks/v1.test.json b/test/iso/datetime/2019/duration/weeks/v1.test.json deleted file mode 100644 index 045cc1a8..00000000 --- a/test/iso/datetime/2019/duration/weeks/v1.test.json +++ /dev/null @@ -1,120 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/duration/weeks/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 10, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 10 weeks", - "data": "P10W", - "valid": true - }, - { - "description": "Valid - 1 week", - "data": "P1W", - "valid": true - }, - { - "description": "Valid - 52 weeks", - "data": "P52W", - "valid": true - }, - { - "description": "Valid - 0 weeks", - "data": "P0W", - "valid": true - }, - { - "description": "Valid - 100 weeks", - "data": "P100W", - "valid": true - }, - { - "description": "Invalid - missing P prefix", - "data": "10W", - "valid": false - }, - { - "description": "Invalid - lowercase p", - "data": "p10W", - "valid": false - }, - { - "description": "Invalid - lowercase w", - "data": "P10w", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - only P", - "data": "P", - "valid": false - }, - { - "description": "Invalid - only PW", - "data": "PW", - "valid": false - }, - { - "description": "Valid - decimal weeks", - "data": "P1.5W", - "valid": true - }, - { - "description": "Invalid - spaces in duration", - "data": "P 10 W", - "valid": false - }, - { - "description": "Invalid - additional characters", - "data": "P10WD", - "valid": false - }, - { - "description": "Invalid - weeks mixed with days (ISO 8601 discourages mixing)", - "data": "P1W2D", - "valid": false - }, - { - "description": "Invalid - weeks mixed with years", - "data": "P1Y2W", - "valid": false - }, - { - "description": "Invalid - weeks mixed with time", - "data": "P1WT1H", - "valid": false - }, - { - "description": "Valid - comma as the decimal sign", - "valid": true, - "data": "P1,5W" - } - ] -} diff --git a/test/iso/datetime/2019/interval/duration-end-calendar-basic/v1.test.json b/test/iso/datetime/2019/interval/duration-end-calendar-basic/v1.test.json deleted file mode 100644 index 400e889e..00000000 --- a/test/iso/datetime/2019/interval/duration-end-calendar-basic/v1.test.json +++ /dev/null @@ -1,405 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/interval/duration-end-calendar-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 19850412232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - full duration", - "data": "P1Y2M15DT12H30M0S/19850412T232050", - "valid": true - }, - { - "description": "Valid - only years duration", - "data": "P1Y/20001231T235959", - "valid": true - }, - { - "description": "Valid - time duration", - "data": "PT5H30M/20230615T180000", - "valid": true - }, - { - "description": "Valid - weeks duration", - "data": "P2W/19850101T000000", - "valid": true - }, - { - "description": "Invalid - extended format datetime", - "data": "P1Y/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - missing slash", - "data": "P1Y19850412T232050", - "valid": false - }, - { - "description": "Invalid - start datetime instead of duration", - "data": "19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - empty duration", - "data": "P/19850412T232050", - "valid": false - }, - { - "description": "Invalid - ordinal date end", - "data": "P1Y/1985102T232050", - "valid": false - }, - { - "description": "Invalid - week date end", - "data": "P1Y/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - end month 13", - "data": "P1Y/19851312T232050", - "valid": false - }, - { - "description": "Invalid - end day 32", - "data": "P1Y/19850432T232050", - "valid": false - }, - { - "description": "Invalid - end 31 April", - "data": "P1Y/19850431T232050", - "valid": false - }, - { - "description": "Valid - leap second in end", - "data": "P1D/19850412T235960", - "valid": true - }, - { - "description": "Valid - 29 February end", - "data": "P1Y/20230229T120000", - "valid": true - }, - { - "description": "Invalid - end month 00", - "data": "P1Y/19850012T232050", - "valid": false - }, - { - "description": "Invalid - end day 00", - "data": "P1Y/19850400T232050", - "valid": false - }, - { - "description": "Invalid - end 30 February", - "data": "P1Y/20230230T120000", - "valid": false - }, - { - "description": "Invalid - end 31 June", - "data": "P1Y/19850631T120000", - "valid": false - }, - { - "description": "Invalid - end 31 September", - "data": "P1Y/19850931T120000", - "valid": false - }, - { - "description": "Invalid - end 31 November", - "data": "P1Y/19851131T120000", - "valid": false - }, - { - "description": "Invalid - end hour 24", - "data": "P1Y/19850412T242050", - "valid": false - }, - { - "description": "Invalid - end hour 25", - "data": "P1Y/19850412T252050", - "valid": false - }, - { - "description": "Invalid - end hour 99", - "data": "P1Y/19850412T992050", - "valid": false - }, - { - "description": "Invalid - end minute 60", - "data": "P1Y/19850412T236050", - "valid": false - }, - { - "description": "Invalid - end minute 99", - "data": "P1Y/19850412T239950", - "valid": false - }, - { - "description": "Invalid - end second 61", - "data": "P1Y/19850412T232061", - "valid": false - }, - { - "description": "Invalid - end second 99", - "data": "P1Y/19850412T232099", - "valid": false - }, - { - "description": "Invalid - missing T separator in end", - "data": "P1Y/19850412232050", - "valid": false - }, - { - "description": "Invalid - lowercase t in end", - "data": "P1Y/19850412t232050", - "valid": false - }, - { - "description": "Invalid - duration without P prefix", - "data": "1Y2M15DT12H30M0S/19850412T232050", - "valid": false - }, - { - "description": "Invalid - lowercase p in duration", - "data": "p1Y/19850412T232050", - "valid": false - }, - { - "description": "Invalid - lowercase t in duration", - "data": "P1Dt1H/19850412T232050", - "valid": false - }, - { - "description": "Invalid - empty time duration (only PT)", - "data": "PT/19850412T232050", - "valid": false - }, - { - "description": "Invalid - double slash separator", - "data": "P1Y//19850412T232050", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "P1Y\\19850412T232050", - "valid": false - }, - { - "description": "Valid - zero duration components", - "data": "P0Y0M0DT0H0M0S/20230101T000000", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in years", - "data": "P1.5Y/20230101T120000", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in months", - "data": "P3M15DT2.5H/20230101T120000", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in days", - "data": "P10.5D/20230101T120000", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in hours", - "data": "PT2.5H/20230101T120000", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in minutes", - "data": "PT45.5M/20230101T120000", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in seconds", - "data": "PT10.123S/20230101T120000", - "valid": true - }, - { - "description": "Valid - decimal weeks", - "data": "P1.5W/20230101T120000", - "valid": true - }, - { - "description": "Invalid - duration wrong component order (M before Y)", - "data": "P6M3Y/19850412T232050", - "valid": false - }, - { - "description": "Invalid - duration wrong component order (D before M)", - "data": "P15D6M/19850412T232050", - "valid": false - }, - { - "description": "Invalid - duration time without T designator", - "data": "P1D1H/19850412T232050", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with other units", - "data": "P1W2D/19850412T232050", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with years", - "data": "P1Y2W/19850412T232050", - "valid": false - }, - { - "description": "Invalid - duration weeks with time", - "data": "P1WT1H/19850412T232050", - "valid": false - }, - { - "description": "Valid - large year value", - "data": "P500Y/20230101T000000", - "valid": true - }, - { - "description": "Valid - large day value", - "data": "P500D/20230101T000000", - "valid": true - }, - { - "description": "Valid - large hour value", - "data": "PT100H/20230101T000000", - "valid": true - }, - { - "description": "Valid - 13 months", - "data": "P13M/20230101T000000", - "valid": true - }, - { - "description": "Invalid - too short", - "data": "P1Y/19850412T23205", - "valid": false - }, - { - "description": "Invalid - too long", - "data": "P1Y/19850412T2320500", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "P1Y/19850412T232050X", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning of duration", - "data": "XP1Y/19850412T232050", - "valid": false - }, - { - "description": "Invalid - spaces in datetime", - "data": "P1Y/1985 04 12T23 20 50", - "valid": false - }, - { - "description": "Invalid - letter in year", - "data": "P1Y/I9850412T232050", - "valid": false - }, - { - "description": "Invalid - letter in month", - "data": "P1Y/1985O412T232050", - "valid": false - }, - { - "description": "Invalid - letter in day", - "data": "P1Y/198504I2T232050", - "valid": false - }, - { - "description": "Invalid - letter in hour", - "data": "P1Y/19850412TI32050", - "valid": false - }, - { - "description": "Invalid - letter in minute", - "data": "P1Y/19850412T23I050", - "valid": false - }, - { - "description": "Invalid - letter in second", - "data": "P1Y/19850412T2320I0", - "valid": false - }, - { - "description": "Invalid - duration with spaces", - "data": "P1Y 2M/19850412T232050", - "valid": false - }, - { - "description": "Invalid - duration with extra slash", - "data": "P1Y/2M/19850412T232050", - "valid": false - }, - { - "description": "Valid - PT60M (durations can exceed calendar limits)", - "data": "PT60M/19850412T232050", - "valid": true - }, - { - "description": "Valid - PT60S (durations can exceed calendar limits)", - "data": "PT60S/19850412T232050", - "valid": true - }, - { - "description": "Valid - PT25H (durations can exceed calendar limits)", - "data": "PT25H/19850412T232050", - "valid": true - }, - { - "description": "Valid - P32D (durations can exceed calendar limits)", - "data": "P32D/19850412T232050", - "valid": true - }, - { - "description": "Invalid - missing end datetime", - "data": "P1Y2M15DT12H30M0S/", - "valid": false - }, - { - "description": "Invalid - only separator", - "data": "/", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - spaces around separator", - "data": "P1Y / 19850412T232050", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/interval/duration-end-calendar-extended/v1.test.json b/test/iso/datetime/2019/interval/duration-end-calendar-extended/v1.test.json deleted file mode 100644 index f7fe4058..00000000 --- a/test/iso/datetime/2019/interval/duration-end-calendar-extended/v1.test.json +++ /dev/null @@ -1,380 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/interval/duration-end-calendar-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 19850412232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - full duration", - "data": "P1Y2M15DT12H30M0S/1985-04-12T23:20:50", - "valid": true - }, - { - "description": "Valid - only years duration", - "data": "P1Y/2000-12-31T23:59:59", - "valid": true - }, - { - "description": "Valid - time duration", - "data": "PT5H30M/2023-06-15T18:00:00", - "valid": true - }, - { - "description": "Valid - weeks duration", - "data": "P2W/1985-01-01T00:00:00", - "valid": true - }, - { - "description": "Invalid - basic format datetime", - "data": "P1Y/19850412T232050", - "valid": false - }, - { - "description": "Invalid - missing slash", - "data": "P1Y1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - start datetime instead of duration", - "data": "1985-04-12T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - empty duration", - "data": "P/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - ordinal date end", - "data": "P1Y/1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - week date end", - "data": "P1Y/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - end month 13", - "data": "P1Y/1985-13-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - end day 32", - "data": "P1Y/1985-04-32T23:20:50", - "valid": false - }, - { - "description": "Invalid - end 31 April", - "data": "P1Y/1985-04-31T23:20:50", - "valid": false - }, - { - "description": "Valid - leap second in end", - "data": "P1D/1985-04-12T23:59:60", - "valid": true - }, - { - "description": "Valid - 29 February end", - "data": "P1Y/2023-02-29T12:00:00", - "valid": true - }, - { - "description": "Invalid - end month 00", - "data": "P1Y/1985-00-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - end day 00", - "data": "P1Y/1985-04-00T23:20:50", - "valid": false - }, - { - "description": "Invalid - end 30 February", - "data": "P1Y/2023-02-30T12:00:00", - "valid": false - }, - { - "description": "Invalid - end 31 June", - "data": "P1Y/1985-06-31T12:00:00", - "valid": false - }, - { - "description": "Invalid - end 31 September", - "data": "P1Y/1985-09-31T12:00:00", - "valid": false - }, - { - "description": "Invalid - end 31 November", - "data": "P1Y/1985-11-31T12:00:00", - "valid": false - }, - { - "description": "Invalid - end hour 24", - "data": "P1Y/1985-04-12T24:20:50", - "valid": false - }, - { - "description": "Invalid - end hour 25", - "data": "P1Y/1985-04-12T25:20:50", - "valid": false - }, - { - "description": "Invalid - end hour 99", - "data": "P1Y/1985-04-12T99:20:50", - "valid": false - }, - { - "description": "Invalid - end minute 60", - "data": "P1Y/1985-04-12T23:60:50", - "valid": false - }, - { - "description": "Invalid - end minute 99", - "data": "P1Y/1985-04-12T23:99:50", - "valid": false - }, - { - "description": "Invalid - end second 61", - "data": "P1Y/1985-04-12T23:20:61", - "valid": false - }, - { - "description": "Invalid - end second 99", - "data": "P1Y/1985-04-12T23:20:99", - "valid": false - }, - { - "description": "Invalid - missing T separator in end", - "data": "P1Y/1985-04-12 23:20:50", - "valid": false - }, - { - "description": "Invalid - lowercase t in end", - "data": "P1Y/1985-04-12t23:20:50", - "valid": false - }, - { - "description": "Invalid - duration without P prefix", - "data": "1Y2M15DT12H30M0S/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - lowercase p in duration", - "data": "p1Y/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - lowercase t in duration", - "data": "P1Dt1H/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - empty time duration (only PT)", - "data": "PT/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - double slash separator", - "data": "P1Y//1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "P1Y\\1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Valid - zero duration components", - "data": "P0Y0M0DT0H0M0S/2023-01-01T00:00:00", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in years", - "data": "P1.5Y/2023-01-01T12:00:00", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in months", - "data": "P3M15DT2.5H/2023-01-01T12:00:00", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in days", - "data": "P10.5D/2023-01-01T12:00:00", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in hours", - "data": "PT2.5H/2023-01-01T12:00:00", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in minutes", - "data": "PT45.5M/2023-01-01T12:00:00", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in seconds", - "data": "PT10.123S/2023-01-01T12:00:00", - "valid": true - }, - { - "description": "Valid - decimal weeks", - "data": "P1.5W/2023-01-01T12:00:00", - "valid": true - }, - { - "description": "Invalid - duration wrong component order (M before Y)", - "data": "P6M3Y/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration wrong component order (D before M)", - "data": "P15D6M/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration time without T designator", - "data": "P1D1H/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with other units", - "data": "P1W2D/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with years", - "data": "P1Y2W/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration weeks with time", - "data": "P1WT1H/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Valid - large year value", - "data": "P500Y/2023-01-01T00:00:00", - "valid": true - }, - { - "description": "Valid - large day value", - "data": "P500D/2023-01-01T00:00:00", - "valid": true - }, - { - "description": "Valid - large hour value", - "data": "PT100H/2023-01-01T00:00:00", - "valid": true - }, - { - "description": "Valid - 13 months", - "data": "P13M/2023-01-01T00:00:00", - "valid": true - }, - { - "description": "Invalid - letter in year", - "data": "P1Y/I985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - letter in month", - "data": "P1Y/1985-O4-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - letter in day", - "data": "P1Y/1985-04-I2T23:20:50", - "valid": false - }, - { - "description": "Invalid - letter in hour", - "data": "P1Y/1985-04-12TI3:20:50", - "valid": false - }, - { - "description": "Invalid - letter in minute", - "data": "P1Y/1985-04-12T23:I0:50", - "valid": false - }, - { - "description": "Invalid - letter in second", - "data": "P1Y/1985-04-12T23:20:I0", - "valid": false - }, - { - "description": "Invalid - duration with spaces", - "data": "P1Y 2M/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration with extra slash", - "data": "P1Y/2M/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Valid - PT60M (durations can exceed calendar limits)", - "data": "PT60M/1985-04-12T23:20:50", - "valid": true - }, - { - "description": "Valid - PT60S (durations can exceed calendar limits)", - "data": "PT60S/1985-04-12T23:20:50", - "valid": true - }, - { - "description": "Valid - PT25H (durations can exceed calendar limits)", - "data": "PT25H/1985-04-12T23:20:50", - "valid": true - }, - { - "description": "Valid - P32D (durations can exceed calendar limits)", - "data": "P32D/1985-04-12T23:20:50", - "valid": true - }, - { - "description": "Invalid - missing end datetime", - "data": "P1Y2M15DT12H30M0S/", - "valid": false - }, - { - "description": "Invalid - only separator", - "data": "/", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - spaces around separator", - "data": "P1Y / 1985-04-12T23:20:50", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/interval/duration-end-ordinal-basic/v1.test.json b/test/iso/datetime/2019/interval/duration-end-ordinal-basic/v1.test.json deleted file mode 100644 index 5abd3a4d..00000000 --- a/test/iso/datetime/2019/interval/duration-end-ordinal-basic/v1.test.json +++ /dev/null @@ -1,360 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/interval/duration-end-ordinal-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985102232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - full duration", - "data": "P1Y2M15DT12H30M0S/1985102T232050", - "valid": true - }, - { - "description": "Valid - only years duration", - "data": "P1Y/2000366T235959", - "valid": true - }, - { - "description": "Valid - time duration", - "data": "PT5H30M/2023166T180000", - "valid": true - }, - { - "description": "Valid - weeks duration", - "data": "P2W/1985001T000000", - "valid": true - }, - { - "description": "Invalid - extended format", - "data": "P1Y/1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - missing slash", - "data": "P1Y1985102T232050", - "valid": false - }, - { - "description": "Invalid - empty duration", - "data": "P/1985102T232050", - "valid": false - }, - { - "description": "Invalid - calendar date end", - "data": "P1Y/19850412T232050", - "valid": false - }, - { - "description": "Invalid - week date end", - "data": "P1Y/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - day 000", - "data": "P1Y/1985000T232050", - "valid": false - }, - { - "description": "Invalid - day 367", - "data": "P1Y/1985367T232050", - "valid": false - }, - { - "description": "Valid - day 366", - "data": "P1Y/2020366T000000", - "valid": true - }, - { - "description": "Invalid - end hour 24", - "data": "P1Y/1985102T242050", - "valid": false - }, - { - "description": "Invalid - end hour 25", - "data": "P1Y/1985102T252050", - "valid": false - }, - { - "description": "Invalid - end hour 99", - "data": "P1Y/1985102T992050", - "valid": false - }, - { - "description": "Invalid - end minute 60", - "data": "P1Y/1985102T236050", - "valid": false - }, - { - "description": "Invalid - end minute 99", - "data": "P1Y/1985102T239950", - "valid": false - }, - { - "description": "Invalid - end second 61", - "data": "P1Y/1985102T232061", - "valid": false - }, - { - "description": "Invalid - end second 99", - "data": "P1Y/1985102T232099", - "valid": false - }, - { - "description": "Invalid - missing T separator in end", - "data": "P1Y/1985102232050", - "valid": false - }, - { - "description": "Invalid - lowercase t in end", - "data": "P1Y/1985102t232050", - "valid": false - }, - { - "description": "Invalid - duration without P prefix", - "data": "1Y2M15DT12H30M0S/1985102T232050", - "valid": false - }, - { - "description": "Invalid - lowercase p in duration", - "data": "p1Y/1985102T232050", - "valid": false - }, - { - "description": "Invalid - lowercase t in duration", - "data": "P1Dt1H/1985102T232050", - "valid": false - }, - { - "description": "Invalid - empty time duration (only PT)", - "data": "PT/1985102T232050", - "valid": false - }, - { - "description": "Invalid - double slash separator", - "data": "P1Y//1985102T232050", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "P1Y\\1985102T232050", - "valid": false - }, - { - "description": "Valid - leap second in end", - "data": "P1D/1985102T235960", - "valid": true - }, - { - "description": "Valid - zero duration components", - "data": "P0Y0M0DT0H0M0S/2023001T000000", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in years", - "data": "P1.5Y/2023001T120000", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in months", - "data": "P3M15DT2.5H/2023001T120000", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in days", - "data": "P10.5D/2023001T120000", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in hours", - "data": "PT2.5H/2023001T120000", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in minutes", - "data": "PT45.5M/2023001T120000", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in seconds", - "data": "PT10.123S/2023001T120000", - "valid": true - }, - { - "description": "Valid - decimal weeks", - "data": "P1.5W/2023001T120000", - "valid": true - }, - { - "description": "Invalid - duration wrong component order (M before Y)", - "data": "P6M3Y/1985102T232050", - "valid": false - }, - { - "description": "Invalid - duration wrong component order (D before M)", - "data": "P15D6M/1985102T232050", - "valid": false - }, - { - "description": "Invalid - duration time without T designator", - "data": "P1D1H/1985102T232050", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with other units", - "data": "P1W2D/1985102T232050", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with years", - "data": "P1Y2W/1985102T232050", - "valid": false - }, - { - "description": "Invalid - duration weeks with time", - "data": "P1WT1H/1985102T232050", - "valid": false - }, - { - "description": "Valid - large year value", - "data": "P500Y/2023001T000000", - "valid": true - }, - { - "description": "Valid - large day value", - "data": "P500D/2023001T000000", - "valid": true - }, - { - "description": "Valid - large hour value", - "data": "PT100H/2023001T000000", - "valid": true - }, - { - "description": "Valid - 13 months", - "data": "P13M/2023001T000000", - "valid": true - }, - { - "description": "Invalid - too short", - "data": "P1Y/1985102T23205", - "valid": false - }, - { - "description": "Invalid - too long", - "data": "P1Y/1985102T2320500", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "P1Y/1985102T232050X", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning of duration", - "data": "XP1Y/1985102T232050", - "valid": false - }, - { - "description": "Invalid - spaces in datetime", - "data": "P1Y/1985 102T23 20 50", - "valid": false - }, - { - "description": "Invalid - letter in year", - "data": "P1Y/I985102T232050", - "valid": false - }, - { - "description": "Invalid - letter in day", - "data": "P1Y/1985I02T232050", - "valid": false - }, - { - "description": "Invalid - letter in hour", - "data": "P1Y/1985102TI32050", - "valid": false - }, - { - "description": "Invalid - letter in minute", - "data": "P1Y/1985102T23I050", - "valid": false - }, - { - "description": "Invalid - letter in second", - "data": "P1Y/1985102T2320I0", - "valid": false - }, - { - "description": "Invalid - duration with spaces", - "data": "P1Y 2M/1985102T232050", - "valid": false - }, - { - "description": "Invalid - duration with extra slash", - "data": "P1Y/2M/1985102T232050", - "valid": false - }, - { - "description": "Valid - PT60M (durations can exceed calendar limits)", - "data": "PT60M/1985102T232050", - "valid": true - }, - { - "description": "Valid - PT60S (durations can exceed calendar limits)", - "data": "PT60S/1985102T232050", - "valid": true - }, - { - "description": "Valid - PT25H (durations can exceed calendar limits)", - "data": "PT25H/1985102T232050", - "valid": true - }, - { - "description": "Valid - P32D (durations can exceed calendar limits)", - "data": "P32D/1985102T232050", - "valid": true - }, - { - "description": "Invalid - missing end datetime", - "data": "P1Y2M15DT12H30M0S/", - "valid": false - }, - { - "description": "Invalid - only separator", - "data": "/", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - spaces around separator", - "data": "P1Y / 1985102T232050", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/interval/duration-end-ordinal-extended/v1.test.json b/test/iso/datetime/2019/interval/duration-end-ordinal-extended/v1.test.json deleted file mode 100644 index 8592bb79..00000000 --- a/test/iso/datetime/2019/interval/duration-end-ordinal-extended/v1.test.json +++ /dev/null @@ -1,335 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/interval/duration-end-ordinal-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985102232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - full duration", - "data": "P1Y2M15DT12H30M0S/1985-102T23:20:50", - "valid": true - }, - { - "description": "Valid - only years duration", - "data": "P1Y/2000-366T23:59:59", - "valid": true - }, - { - "description": "Valid - time duration", - "data": "PT5H30M/2023-166T18:00:00", - "valid": true - }, - { - "description": "Valid - weeks duration", - "data": "P2W/1985-001T00:00:00", - "valid": true - }, - { - "description": "Invalid - basic format", - "data": "P1Y/1985102T232050", - "valid": false - }, - { - "description": "Invalid - missing slash", - "data": "P1Y1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - empty duration", - "data": "P/1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - calendar date end", - "data": "P1Y/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - week date end", - "data": "P1Y/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - day 000", - "data": "P1Y/1985-000T23:20:50", - "valid": false - }, - { - "description": "Invalid - day 367", - "data": "P1Y/1985-367T23:20:50", - "valid": false - }, - { - "description": "Valid - day 366", - "data": "P1Y/2020-366T00:00:00", - "valid": true - }, - { - "description": "Invalid - end hour 24", - "data": "P1Y/1985-102T24:20:50", - "valid": false - }, - { - "description": "Invalid - end hour 25", - "data": "P1Y/1985-102T25:20:50", - "valid": false - }, - { - "description": "Invalid - end hour 99", - "data": "P1Y/1985-102T99:20:50", - "valid": false - }, - { - "description": "Invalid - end minute 60", - "data": "P1Y/1985-102T23:60:50", - "valid": false - }, - { - "description": "Invalid - end minute 99", - "data": "P1Y/1985-102T23:99:50", - "valid": false - }, - { - "description": "Invalid - end second 61", - "data": "P1Y/1985-102T23:20:61", - "valid": false - }, - { - "description": "Invalid - end second 99", - "data": "P1Y/1985-102T23:20:99", - "valid": false - }, - { - "description": "Invalid - missing T separator in end", - "data": "P1Y/1985-102 23:20:50", - "valid": false - }, - { - "description": "Invalid - lowercase t in end", - "data": "P1Y/1985-102t23:20:50", - "valid": false - }, - { - "description": "Invalid - duration without P prefix", - "data": "1Y2M15DT12H30M0S/1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - lowercase p in duration", - "data": "p1Y/1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - lowercase t in duration", - "data": "P1Dt1H/1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - empty time duration (only PT)", - "data": "PT/1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - double slash separator", - "data": "P1Y//1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "P1Y\\1985-102T23:20:50", - "valid": false - }, - { - "description": "Valid - leap second in end", - "data": "P1D/1985-102T23:59:60", - "valid": true - }, - { - "description": "Valid - zero duration components", - "data": "P0Y0M0DT0H0M0S/2023-001T00:00:00", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in years", - "data": "P1.5Y/2023-001T12:00:00", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in months", - "data": "P3M15DT2.5H/2023-001T12:00:00", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in days", - "data": "P10.5D/2023-001T12:00:00", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in hours", - "data": "PT2.5H/2023-001T12:00:00", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in minutes", - "data": "PT45.5M/2023-001T12:00:00", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in seconds", - "data": "PT10.123S/2023-001T12:00:00", - "valid": true - }, - { - "description": "Valid - decimal weeks", - "data": "P1.5W/2023-001T12:00:00", - "valid": true - }, - { - "description": "Invalid - duration wrong component order (M before Y)", - "data": "P6M3Y/1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration wrong component order (D before M)", - "data": "P15D6M/1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration time without T designator", - "data": "P1D1H/1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with other units", - "data": "P1W2D/1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with years", - "data": "P1Y2W/1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration weeks with time", - "data": "P1WT1H/1985-102T23:20:50", - "valid": false - }, - { - "description": "Valid - large year value", - "data": "P500Y/2023-001T00:00:00", - "valid": true - }, - { - "description": "Valid - large day value", - "data": "P500D/2023-001T00:00:00", - "valid": true - }, - { - "description": "Valid - large hour value", - "data": "PT100H/2023-001T00:00:00", - "valid": true - }, - { - "description": "Valid - 13 months", - "data": "P13M/2023-001T00:00:00", - "valid": true - }, - { - "description": "Invalid - letter in year", - "data": "P1Y/I985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - letter in day", - "data": "P1Y/1985-I02T23:20:50", - "valid": false - }, - { - "description": "Invalid - letter in hour", - "data": "P1Y/1985-102TI3:20:50", - "valid": false - }, - { - "description": "Invalid - letter in minute", - "data": "P1Y/1985-102T23:I0:50", - "valid": false - }, - { - "description": "Invalid - letter in second", - "data": "P1Y/1985-102T23:20:I0", - "valid": false - }, - { - "description": "Invalid - duration with spaces", - "data": "P1Y 2M/1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration with extra slash", - "data": "P1Y/2M/1985-102T23:20:50", - "valid": false - }, - { - "description": "Valid - PT60M (durations can exceed calendar limits)", - "data": "PT60M/1985-102T23:20:50", - "valid": true - }, - { - "description": "Valid - PT60S (durations can exceed calendar limits)", - "data": "PT60S/1985-102T23:20:50", - "valid": true - }, - { - "description": "Valid - PT25H (durations can exceed calendar limits)", - "data": "PT25H/1985-102T23:20:50", - "valid": true - }, - { - "description": "Valid - P32D (durations can exceed calendar limits)", - "data": "P32D/1985-102T23:20:50", - "valid": true - }, - { - "description": "Invalid - missing end datetime", - "data": "P1Y2M15DT12H30M0S/", - "valid": false - }, - { - "description": "Invalid - only separator", - "data": "/", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - spaces around separator", - "data": "P1Y / 1985-102T23:20:50", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/interval/duration-end-week-basic/v1.test.json b/test/iso/datetime/2019/interval/duration-end-week-basic/v1.test.json deleted file mode 100644 index a2ebb9ef..00000000 --- a/test/iso/datetime/2019/interval/duration-end-week-basic/v1.test.json +++ /dev/null @@ -1,390 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/interval/duration-end-week-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985155232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - full duration", - "data": "P1Y2M15DT12H30M0S/1985W155T232050", - "valid": true - }, - { - "description": "Valid - only years duration", - "data": "P1Y/2000W527T235959", - "valid": true - }, - { - "description": "Valid - time duration", - "data": "PT5H30M/2023W241T180000", - "valid": true - }, - { - "description": "Valid - weeks duration", - "data": "P2W/1985W011T000000", - "valid": true - }, - { - "description": "Invalid - extended format", - "data": "P1Y/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - missing slash", - "data": "P1Y1985W155T232050", - "valid": false - }, - { - "description": "Invalid - empty duration", - "data": "P/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - calendar date end", - "data": "P1Y/19850412T232050", - "valid": false - }, - { - "description": "Invalid - ordinal date end", - "data": "P1Y/1985102T232050", - "valid": false - }, - { - "description": "Invalid - week 00", - "data": "P1Y/1985W005T232050", - "valid": false - }, - { - "description": "Invalid - week 54", - "data": "P1Y/1985W545T232050", - "valid": false - }, - { - "description": "Invalid - day 0", - "data": "P1Y/1985W150T232050", - "valid": false - }, - { - "description": "Invalid - day 8", - "data": "P1Y/1985W158T232050", - "valid": false - }, - { - "description": "Valid - week 53", - "data": "P1Y/2020W531T000000", - "valid": true - }, - { - "description": "Invalid - end hour 24", - "data": "P1Y/1985W155T242050", - "valid": false - }, - { - "description": "Invalid - end hour 25", - "data": "P1Y/1985W155T252050", - "valid": false - }, - { - "description": "Invalid - end hour 99", - "data": "P1Y/1985W155T992050", - "valid": false - }, - { - "description": "Invalid - end minute 60", - "data": "P1Y/1985W155T236050", - "valid": false - }, - { - "description": "Invalid - end minute 99", - "data": "P1Y/1985W155T239950", - "valid": false - }, - { - "description": "Invalid - end second 61", - "data": "P1Y/1985W155T232061", - "valid": false - }, - { - "description": "Invalid - end second 99", - "data": "P1Y/1985W155T232099", - "valid": false - }, - { - "description": "Invalid - missing T separator in end", - "data": "P1Y/1985W155232050", - "valid": false - }, - { - "description": "Invalid - lowercase t in end", - "data": "P1Y/1985W155t232050", - "valid": false - }, - { - "description": "Invalid - lowercase w in end", - "data": "P1Y/1985w155T232050", - "valid": false - }, - { - "description": "Invalid - duration without P prefix", - "data": "1Y2M15DT12H30M0S/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - lowercase p in duration", - "data": "p1Y/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - lowercase t in duration", - "data": "P1Dt1H/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - empty time duration (only PT)", - "data": "PT/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - double slash separator", - "data": "P1Y//1985W155T232050", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "P1Y\\1985W155T232050", - "valid": false - }, - { - "description": "Valid - leap second in end", - "data": "P1D/1985W155T235960", - "valid": true - }, - { - "description": "Valid - zero duration components", - "data": "P0Y0M0DT0H0M0S/2023W011T000000", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in years", - "data": "P1.5Y/2023W011T120000", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in months", - "data": "P3M15DT2.5H/2023W011T120000", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in days", - "data": "P10.5D/2023W011T120000", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in hours", - "data": "PT2.5H/2023W011T120000", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in minutes", - "data": "PT45.5M/2023W011T120000", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in seconds", - "data": "PT10.123S/2023W011T120000", - "valid": true - }, - { - "description": "Valid - decimal weeks", - "data": "P1.5W/2023W011T120000", - "valid": true - }, - { - "description": "Invalid - duration wrong component order (M before Y)", - "data": "P6M3Y/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - duration wrong component order (D before M)", - "data": "P15D6M/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - duration time without T designator", - "data": "P1D1H/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with other units", - "data": "P1W2D/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with years", - "data": "P1Y2W/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - duration weeks with time", - "data": "P1WT1H/1985W155T232050", - "valid": false - }, - { - "description": "Valid - large year value", - "data": "P500Y/2023W011T000000", - "valid": true - }, - { - "description": "Valid - large day value", - "data": "P500D/2023W011T000000", - "valid": true - }, - { - "description": "Valid - large hour value", - "data": "PT100H/2023W011T000000", - "valid": true - }, - { - "description": "Valid - 13 months", - "data": "P13M/2023W011T000000", - "valid": true - }, - { - "description": "Invalid - too short", - "data": "P1Y/1985W155T23205", - "valid": false - }, - { - "description": "Invalid - too long", - "data": "P1Y/1985W155T2320500", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "P1Y/1985W155T232050X", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning of duration", - "data": "XP1Y/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - spaces in datetime", - "data": "P1Y/1985 W15 5T23 20 50", - "valid": false - }, - { - "description": "Invalid - letter in year", - "data": "P1Y/I985W155T232050", - "valid": false - }, - { - "description": "Invalid - letter in week", - "data": "P1Y/1985WI55T232050", - "valid": false - }, - { - "description": "Invalid - letter in day", - "data": "P1Y/1985W15IT232050", - "valid": false - }, - { - "description": "Invalid - letter in hour", - "data": "P1Y/1985W155TI32050", - "valid": false - }, - { - "description": "Invalid - letter in minute", - "data": "P1Y/1985W155T23I050", - "valid": false - }, - { - "description": "Invalid - letter in second", - "data": "P1Y/1985W155T2320I0", - "valid": false - }, - { - "description": "Invalid - duration with spaces", - "data": "P1Y 2M/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - duration with extra slash", - "data": "P1Y/2M/1985W155T232050", - "valid": false - }, - { - "description": "Valid - PT60M (durations can exceed calendar limits)", - "data": "PT60M/1985W155T232050", - "valid": true - }, - { - "description": "Valid - PT60S (durations can exceed calendar limits)", - "data": "PT60S/1985W155T232050", - "valid": true - }, - { - "description": "Valid - PT25H (durations can exceed calendar limits)", - "data": "PT25H/1985W155T232050", - "valid": true - }, - { - "description": "Valid - P32D (durations can exceed calendar limits)", - "data": "P32D/1985W155T232050", - "valid": true - }, - { - "description": "Invalid - missing end datetime", - "data": "P1Y2M15DT12H30M0S/", - "valid": false - }, - { - "description": "Invalid - only separator", - "data": "/", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - spaces around separator", - "data": "P1Y / 1985W155T232050", - "valid": false - }, - { - "description": "Valid - week 01 day 1", - "data": "P1Y/2023W011T120000", - "valid": true - }, - { - "description": "Valid - week 52 day 7", - "data": "P1Y/2023W527T120000", - "valid": true - } - ] -} diff --git a/test/iso/datetime/2019/interval/duration-end-week-extended/v1.test.json b/test/iso/datetime/2019/interval/duration-end-week-extended/v1.test.json deleted file mode 100644 index ceed38e3..00000000 --- a/test/iso/datetime/2019/interval/duration-end-week-extended/v1.test.json +++ /dev/null @@ -1,360 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/interval/duration-end-week-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985155232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - full duration", - "data": "P1Y2M15DT12H30M0S/1985-W15-5T23:20:50", - "valid": true - }, - { - "description": "Valid - only years duration", - "data": "P1Y/2000-W52-7T23:59:59", - "valid": true - }, - { - "description": "Valid - time duration", - "data": "PT5H30M/2023-W24-1T18:00:00", - "valid": true - }, - { - "description": "Valid - weeks duration", - "data": "P2W/1985-W01-1T00:00:00", - "valid": true - }, - { - "description": "Invalid - basic format", - "data": "P1Y/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - missing slash", - "data": "P1Y1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - empty duration", - "data": "P/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - calendar date end", - "data": "P1Y/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - ordinal date end", - "data": "P1Y/1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - week 00", - "data": "P1Y/1985-W00-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - week 54", - "data": "P1Y/1985-W54-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - day 0", - "data": "P1Y/1985-W15-0T23:20:50", - "valid": false - }, - { - "description": "Invalid - day 8", - "data": "P1Y/1985-W15-8T23:20:50", - "valid": false - }, - { - "description": "Valid - week 53", - "data": "P1Y/2020-W53-1T00:00:00", - "valid": true - }, - { - "description": "Invalid - end hour 24", - "data": "P1Y/1985-W15-5T24:20:50", - "valid": false - }, - { - "description": "Invalid - end hour 25", - "data": "P1Y/1985-W15-5T25:20:50", - "valid": false - }, - { - "description": "Invalid - end hour 99", - "data": "P1Y/1985-W15-5T99:20:50", - "valid": false - }, - { - "description": "Invalid - end minute 60", - "data": "P1Y/1985-W15-5T23:60:50", - "valid": false - }, - { - "description": "Invalid - end minute 99", - "data": "P1Y/1985-W15-5T23:99:50", - "valid": false - }, - { - "description": "Invalid - end second 61", - "data": "P1Y/1985-W15-5T23:20:61", - "valid": false - }, - { - "description": "Invalid - end second 99", - "data": "P1Y/1985-W15-5T23:20:99", - "valid": false - }, - { - "description": "Invalid - missing T separator in end", - "data": "P1Y/1985-W15-5 23:20:50", - "valid": false - }, - { - "description": "Invalid - lowercase t in end", - "data": "P1Y/1985-W15-5t23:20:50", - "valid": false - }, - { - "description": "Invalid - duration without P prefix", - "data": "1Y2M15DT12H30M0S/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - lowercase p in duration", - "data": "p1Y/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - lowercase t in duration", - "data": "P1Dt1H/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - empty time duration (only PT)", - "data": "PT/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - double slash separator", - "data": "P1Y//1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "P1Y\\1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Valid - leap second in end", - "data": "P1D/1985-W15-5T23:59:60", - "valid": true - }, - { - "description": "Valid - zero duration components", - "data": "P0Y0M0DT0H0M0S/2023-W01-1T00:00:00", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in years", - "data": "P1.5Y/2023-W01-1T12:00:00", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in months", - "data": "P3M15DT2.5H/2023-W01-1T12:00:00", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in days", - "data": "P10.5D/2023-W01-1T12:00:00", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in hours", - "data": "PT2.5H/2023-W01-1T12:00:00", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in minutes", - "data": "PT45.5M/2023-W01-1T12:00:00", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in seconds", - "data": "PT10.123S/2023-W01-1T12:00:00", - "valid": true - }, - { - "description": "Valid - decimal weeks", - "data": "P1.5W/2023-W01-1T12:00:00", - "valid": true - }, - { - "description": "Invalid - duration wrong component order (M before Y)", - "data": "P6M3Y/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration wrong component order (D before M)", - "data": "P15D6M/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration time without T designator", - "data": "P1D1H/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with other units", - "data": "P1W2D/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with years", - "data": "P1Y2W/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration weeks with time", - "data": "P1WT1H/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Valid - large year value", - "data": "P500Y/2023-W01-1T00:00:00", - "valid": true - }, - { - "description": "Valid - large day value", - "data": "P500D/2023-W01-1T00:00:00", - "valid": true - }, - { - "description": "Valid - large hour value", - "data": "PT100H/2023-W01-1T00:00:00", - "valid": true - }, - { - "description": "Valid - 13 months", - "data": "P13M/2023-W01-1T00:00:00", - "valid": true - }, - { - "description": "Invalid - letter in year", - "data": "P1Y/I985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - letter in week", - "data": "P1Y/1985-WI5-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - letter in day", - "data": "P1Y/1985-W15-IT23:20:50", - "valid": false - }, - { - "description": "Invalid - letter in hour", - "data": "P1Y/1985-W15-5TI3:20:50", - "valid": false - }, - { - "description": "Invalid - letter in minute", - "data": "P1Y/1985-W15-5T23:I0:50", - "valid": false - }, - { - "description": "Invalid - letter in second", - "data": "P1Y/1985-W15-5T23:20:I0", - "valid": false - }, - { - "description": "Invalid - duration with spaces", - "data": "P1Y 2M/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration with extra slash", - "data": "P1Y/2M/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Valid - PT60M (durations can exceed calendar limits)", - "data": "PT60M/1985-W15-5T23:20:50", - "valid": true - }, - { - "description": "Valid - PT60S (durations can exceed calendar limits)", - "data": "PT60S/1985-W15-5T23:20:50", - "valid": true - }, - { - "description": "Valid - PT25H (durations can exceed calendar limits)", - "data": "PT25H/1985-W15-5T23:20:50", - "valid": true - }, - { - "description": "Valid - P32D (durations can exceed calendar limits)", - "data": "P32D/1985-W15-5T23:20:50", - "valid": true - }, - { - "description": "Invalid - missing end datetime", - "data": "P1Y2M15DT12H30M0S/", - "valid": false - }, - { - "description": "Invalid - only separator", - "data": "/", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - spaces around separator", - "data": "P1Y / 1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Valid - week 01 day 1", - "data": "P1Y/2023-W01-1T12:00:00", - "valid": true - }, - { - "description": "Valid - week 52 day 7", - "data": "P1Y/2023-W52-7T12:00:00", - "valid": true - } - ] -} diff --git a/test/iso/datetime/2019/interval/start-duration-calendar-basic/v1.test.json b/test/iso/datetime/2019/interval/start-duration-calendar-basic/v1.test.json deleted file mode 100644 index c2281b78..00000000 --- a/test/iso/datetime/2019/interval/start-duration-calendar-basic/v1.test.json +++ /dev/null @@ -1,425 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/interval/start-duration-calendar-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 19850412232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - full duration with all components", - "data": "19850412T232050/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - only years duration", - "data": "20000101T000000/P1Y", - "valid": true - }, - { - "description": "Valid - only time component duration", - "data": "20230615T120000/PT5H30M", - "valid": true - }, - { - "description": "Valid - weeks duration", - "data": "19851231T235959/P2W", - "valid": true - }, - { - "description": "Valid - days and seconds duration", - "data": "20230101T000000/P5DT30S", - "valid": true - }, - { - "description": "Valid - months duration", - "data": "20231231T120000/P6M", - "valid": true - }, - { - "description": "Valid - hours duration", - "data": "20000630T180000/PT12H", - "valid": true - }, - { - "description": "Invalid - missing separator slash", - "data": "19850412T232050P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - extended format datetime", - "data": "1985-04-12T23:20:50/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - missing duration", - "data": "19850412T232050/", - "valid": false - }, - { - "description": "Invalid - missing start datetime", - "data": "/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - only separator", - "data": "/", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - spaces around separator", - "data": "19850412T232050 / P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - start month 00", - "data": "19850012T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - start month 13", - "data": "19851312T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - start day 00", - "data": "19850400T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - start day 32", - "data": "19850432T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - start 31 April", - "data": "19850431T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - start 30 February", - "data": "20230230T120000/P1Y", - "valid": false - }, - { - "description": "Invalid - start hour 24", - "data": "19850412T242050/P1Y", - "valid": false - }, - { - "description": "Invalid - start minute 60", - "data": "19850412T236050/P1Y", - "valid": false - }, - { - "description": "Invalid - start second 61", - "data": "19850412T232061/P1Y", - "valid": false - }, - { - "description": "Invalid - missing T separator in start", - "data": "19850412232050/P1Y", - "valid": false - }, - { - "description": "Invalid - lowercase t in start", - "data": "19850412t232050/P1Y", - "valid": false - }, - { - "description": "Invalid - end datetime instead of duration", - "data": "19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - duration without P prefix", - "data": "19850412T232050/1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - lowercase p in duration", - "data": "19850412T232050/p1Y", - "valid": false - }, - { - "description": "Invalid - lowercase t in duration", - "data": "19850412T232050/P1Dt1H", - "valid": false - }, - { - "description": "Invalid - empty duration (only P)", - "data": "19850412T232050/P", - "valid": false - }, - { - "description": "Invalid - empty time duration (only PT)", - "data": "19850412T232050/PT", - "valid": false - }, - { - "description": "Invalid - ordinal date instead of calendar", - "data": "1985102T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - week date instead of calendar", - "data": "1985W155T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - double slash separator", - "data": "19850412T232050//P1Y", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "19850412T232050\\P1Y", - "valid": false - }, - { - "description": "Valid - 29 February (leap year validation is consumer responsibility)", - "data": "20230229T120000/P1Y", - "valid": true - }, - { - "description": "Valid - leap second in start", - "data": "19850412T235960/P1D", - "valid": true - }, - { - "description": "Valid - zero duration components", - "data": "20230101T000000/P0Y0M0DT0H0M0S", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction", - "data": "20230101T120000/P1.5Y", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction", - "data": "20230101T120000/PT2.5H", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in months", - "data": "20230101T120000/P3M15DT2.5H", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in days", - "data": "20230101T120000/P10.5D", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in minutes", - "data": "20230101T120000/PT45.5M", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in seconds", - "data": "20230101T120000/PT10.123S", - "valid": true - }, - { - "description": "Valid - decimal weeks", - "data": "20230101T120000/P1.5W", - "valid": true - }, - { - "description": "Invalid - duration wrong component order (M before Y)", - "data": "19850412T232050/P6M3Y", - "valid": false - }, - { - "description": "Invalid - duration wrong component order (D before M)", - "data": "19850412T232050/P15D6M", - "valid": false - }, - { - "description": "Invalid - duration time without T designator", - "data": "19850412T232050/P1D1H", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with other units", - "data": "19850412T232050/P1W2D", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with years", - "data": "19850412T232050/P1Y2W", - "valid": false - }, - { - "description": "Invalid - duration weeks with time", - "data": "19850412T232050/P1WT1H", - "valid": false - }, - { - "description": "Valid - large year value", - "data": "20230101T000000/P500Y", - "valid": true - }, - { - "description": "Valid - large day value", - "data": "20230101T000000/P500D", - "valid": true - }, - { - "description": "Valid - large hour value", - "data": "20230101T000000/PT100H", - "valid": true - }, - { - "description": "Valid - 13 months", - "data": "20230101T000000/P13M", - "valid": true - }, - { - "description": "Invalid - start hour 25", - "data": "19850412T252050/P1Y", - "valid": false - }, - { - "description": "Invalid - start hour 99", - "data": "19850412T992050/P1Y", - "valid": false - }, - { - "description": "Invalid - start minute 99", - "data": "19850412T239950/P1Y", - "valid": false - }, - { - "description": "Invalid - start second 99", - "data": "19850412T232099/P1Y", - "valid": false - }, - { - "description": "Invalid - too short", - "data": "19850412T23205/P1Y", - "valid": false - }, - { - "description": "Invalid - too long", - "data": "19850412T2320500/P1Y", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "19850412T232050X/P1Y", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning", - "data": "X19850412T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - spaces in datetime", - "data": "1985 04 12T23 20 50/P1Y", - "valid": false - }, - { - "description": "Invalid - letter in year", - "data": "I9850412T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - letter in month", - "data": "1985O412T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - letter in day", - "data": "198504I2T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - letter in hour", - "data": "19850412TI32050/P1Y", - "valid": false - }, - { - "description": "Invalid - letter in minute", - "data": "19850412T23I050/P1Y", - "valid": false - }, - { - "description": "Invalid - letter in second", - "data": "19850412T2320I0/P1Y", - "valid": false - }, - { - "description": "Invalid - 31 June", - "data": "19850631T120000/P1Y", - "valid": false - }, - { - "description": "Invalid - 31 September", - "data": "19850931T120000/P1Y", - "valid": false - }, - { - "description": "Invalid - 31 November", - "data": "19851131T120000/P1Y", - "valid": false - }, - { - "description": "Invalid - duration with spaces", - "data": "19850412T232050/P1Y 2M", - "valid": false - }, - { - "description": "Invalid - duration with extra slash", - "data": "19850412T232050/P1Y/2M", - "valid": false - }, - { - "description": "Valid - PT60M (durations can exceed calendar limits)", - "data": "19850412T232050/PT60M", - "valid": true - }, - { - "description": "Valid - PT60S (durations can exceed calendar limits)", - "data": "19850412T232050/PT60S", - "valid": true - }, - { - "description": "Valid - PT25H (durations can exceed calendar limits)", - "data": "19850412T232050/PT25H", - "valid": true - }, - { - "description": "Valid - P32D (durations can exceed calendar limits)", - "data": "19850412T232050/P32D", - "valid": true - } - ] -} diff --git a/test/iso/datetime/2019/interval/start-duration-calendar-extended/v1.test.json b/test/iso/datetime/2019/interval/start-duration-calendar-extended/v1.test.json deleted file mode 100644 index c838ce36..00000000 --- a/test/iso/datetime/2019/interval/start-duration-calendar-extended/v1.test.json +++ /dev/null @@ -1,315 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/interval/start-duration-calendar-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 19850412232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - full duration with all components", - "data": "1985-04-12T23:20:50/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - only years duration", - "data": "2000-01-01T00:00:00/P1Y", - "valid": true - }, - { - "description": "Valid - only time component duration", - "data": "2023-06-15T12:00:00/PT5H30M", - "valid": true - }, - { - "description": "Valid - weeks duration", - "data": "1985-12-31T23:59:59/P2W", - "valid": true - }, - { - "description": "Valid - days and seconds duration", - "data": "2023-01-01T00:00:00/P5DT30S", - "valid": true - }, - { - "description": "Valid - months duration", - "data": "2023-12-31T12:00:00/P6M", - "valid": true - }, - { - "description": "Valid - hours duration", - "data": "2000-06-30T18:00:00/PT12H", - "valid": true - }, - { - "description": "Invalid - missing separator slash", - "data": "1985-04-12T23:20:50P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - basic format datetime", - "data": "19850412T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - missing duration", - "data": "1985-04-12T23:20:50/", - "valid": false - }, - { - "description": "Invalid - missing start datetime", - "data": "/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - only separator", - "data": "/", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - spaces around separator", - "data": "1985-04-12T23:20:50 / P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - start month 00", - "data": "1985-00-12T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - start month 13", - "data": "1985-13-12T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - start day 00", - "data": "1985-04-00T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - start day 32", - "data": "1985-04-32T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - start 31 April", - "data": "1985-04-31T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - start 30 February", - "data": "2023-02-30T12:00:00/P1Y", - "valid": false - }, - { - "description": "Invalid - start hour 24", - "data": "1985-04-12T24:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - start minute 60", - "data": "1985-04-12T23:60:50/P1Y", - "valid": false - }, - { - "description": "Invalid - start second 61", - "data": "1985-04-12T23:20:61/P1Y", - "valid": false - }, - { - "description": "Invalid - missing T separator in start", - "data": "1985-04-12 23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - lowercase t in start", - "data": "1985-04-12t23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - end datetime instead of duration", - "data": "1985-04-12T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - duration without P prefix", - "data": "1985-04-12T23:20:50/1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - lowercase p in duration", - "data": "1985-04-12T23:20:50/p1Y", - "valid": false - }, - { - "description": "Invalid - lowercase t in duration", - "data": "1985-04-12T23:20:50/P1Dt1H", - "valid": false - }, - { - "description": "Invalid - empty duration (only P)", - "data": "1985-04-12T23:20:50/P", - "valid": false - }, - { - "description": "Invalid - empty time duration (only PT)", - "data": "1985-04-12T23:20:50/PT", - "valid": false - }, - { - "description": "Invalid - ordinal date instead of calendar", - "data": "1985-102T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - week date instead of calendar", - "data": "1985-W15-5T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - double slash separator", - "data": "1985-04-12T23:20:50//P1Y", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "1985-04-12T23:20:50\\P1Y", - "valid": false - }, - { - "description": "Valid - 29 February (leap year validation is consumer responsibility)", - "data": "2023-02-29T12:00:00/P1Y", - "valid": true - }, - { - "description": "Valid - leap second in start", - "data": "1985-04-12T23:59:60/P1D", - "valid": true - }, - { - "description": "Valid - zero duration components", - "data": "2023-01-01T00:00:00/P0Y0M0DT0H0M0S", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in years", - "data": "2023-01-01T12:00:00/P1.5Y", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in months", - "data": "2023-01-01T12:00:00/P3M15DT2.5H", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in days", - "data": "2023-01-01T12:00:00/P10.5D", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in hours", - "data": "2023-01-01T12:00:00/PT2.5H", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in minutes", - "data": "2023-01-01T12:00:00/PT45.5M", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in seconds", - "data": "2023-01-01T12:00:00/PT10.123S", - "valid": true - }, - { - "description": "Valid - decimal weeks", - "data": "2023-01-01T12:00:00/P1.5W", - "valid": true - }, - { - "description": "Invalid - duration wrong component order (M before Y)", - "data": "1985-04-12T23:20:50/P6M3Y", - "valid": false - }, - { - "description": "Invalid - duration wrong component order (D before M)", - "data": "1985-04-12T23:20:50/P15D6M", - "valid": false - }, - { - "description": "Invalid - duration time without T designator", - "data": "1985-04-12T23:20:50/P1D1H", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with other units", - "data": "1985-04-12T23:20:50/P1W2D", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with years", - "data": "1985-04-12T23:20:50/P1Y2W", - "valid": false - }, - { - "description": "Invalid - duration weeks with time", - "data": "1985-04-12T23:20:50/P1WT1H", - "valid": false - }, - { - "description": "Valid - large year value", - "data": "2023-01-01T00:00:00/P500Y", - "valid": true - }, - { - "description": "Valid - large day value", - "data": "2023-01-01T00:00:00/P500D", - "valid": true - }, - { - "description": "Valid - large hour value", - "data": "2023-01-01T00:00:00/PT100H", - "valid": true - }, - { - "description": "Valid - 13 months", - "data": "2023-01-01T00:00:00/P13M", - "valid": true - }, - { - "description": "Valid - duration with months omitted", - "valid": true, - "data": "1985-04-12T23:20:50/P1Y1D" - }, - { - "description": "Valid - duration with a comma decimal sign", - "valid": true, - "data": "1985-04-12T23:20:50/PT0,5S" - } - ] -} diff --git a/test/iso/datetime/2019/interval/start-duration-ordinal-basic/v1.test.json b/test/iso/datetime/2019/interval/start-duration-ordinal-basic/v1.test.json deleted file mode 100644 index 634ceb10..00000000 --- a/test/iso/datetime/2019/interval/start-duration-ordinal-basic/v1.test.json +++ /dev/null @@ -1,285 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/interval/start-duration-ordinal-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985102232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - full duration with all components", - "data": "1985102T232050/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - only years duration", - "data": "2000001T000000/P1Y", - "valid": true - }, - { - "description": "Valid - only time component duration", - "data": "2023166T120000/PT5H30M", - "valid": true - }, - { - "description": "Valid - weeks duration", - "data": "1985365T235959/P2W", - "valid": true - }, - { - "description": "Valid - days and seconds duration", - "data": "2023001T000000/P5DT30S", - "valid": true - }, - { - "description": "Valid - months duration", - "data": "2023365T120000/P6M", - "valid": true - }, - { - "description": "Valid - hours duration", - "data": "2000182T180000/PT12H", - "valid": true - }, - { - "description": "Invalid - missing separator slash", - "data": "1985102T232050P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - extended format datetime", - "data": "1985-102T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - missing duration", - "data": "1985102T232050/", - "valid": false - }, - { - "description": "Invalid - missing start datetime", - "data": "/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - only separator", - "data": "/", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - spaces around separator", - "data": "1985102T232050 / P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - start day 000", - "data": "1985000T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - start day 367", - "data": "1985367T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - start hour 24", - "data": "1985102T242050/P1Y", - "valid": false - }, - { - "description": "Invalid - start minute 60", - "data": "1985102T236050/P1Y", - "valid": false - }, - { - "description": "Invalid - start second 61", - "data": "1985102T232061/P1Y", - "valid": false - }, - { - "description": "Invalid - missing T separator in start", - "data": "1985102232050/P1Y", - "valid": false - }, - { - "description": "Invalid - lowercase t in start", - "data": "1985102t232050/P1Y", - "valid": false - }, - { - "description": "Invalid - end datetime instead of duration", - "data": "1985102T232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - duration without P prefix", - "data": "1985102T232050/1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - lowercase p in duration", - "data": "1985102T232050/p1Y", - "valid": false - }, - { - "description": "Invalid - lowercase t in duration", - "data": "1985102T232050/P1Dt1H", - "valid": false - }, - { - "description": "Invalid - empty duration (only P)", - "data": "1985102T232050/P", - "valid": false - }, - { - "description": "Invalid - empty time duration (only PT)", - "data": "1985102T232050/PT", - "valid": false - }, - { - "description": "Invalid - calendar date instead of ordinal", - "data": "19850412T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - week date instead of ordinal", - "data": "1985W155T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - double slash separator", - "data": "1985102T232050//P1Y", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "1985102T232050\\P1Y", - "valid": false - }, - { - "description": "Valid - day 366 (leap year validation is consumer responsibility)", - "data": "2020366T000000/P1Y", - "valid": true - }, - { - "description": "Valid - leap second in start", - "data": "1985102T235960/P1D", - "valid": true - }, - { - "description": "Valid - zero duration components", - "data": "2023001T000000/P0Y0M0DT0H0M0S", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in years", - "data": "2023001T120000/P1.5Y", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in months", - "data": "2023001T120000/P3M15DT2.5H", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in days", - "data": "2023001T120000/P10.5D", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in hours", - "data": "2023001T120000/PT2.5H", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in minutes", - "data": "2023001T120000/PT45.5M", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in seconds", - "data": "2023001T120000/PT10.123S", - "valid": true - }, - { - "description": "Valid - decimal weeks", - "data": "2023001T120000/P1.5W", - "valid": true - }, - { - "description": "Invalid - duration wrong component order (M before Y)", - "data": "1985102T232050/P6M3Y", - "valid": false - }, - { - "description": "Invalid - duration wrong component order (D before M)", - "data": "1985102T232050/P15D6M", - "valid": false - }, - { - "description": "Invalid - duration time without T designator", - "data": "1985102T232050/P1D1H", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with other units", - "data": "1985102T232050/P1W2D", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with years", - "data": "1985102T232050/P1Y2W", - "valid": false - }, - { - "description": "Invalid - duration weeks with time", - "data": "1985102T232050/P1WT1H", - "valid": false - }, - { - "description": "Valid - large year value", - "data": "2023001T000000/P500Y", - "valid": true - }, - { - "description": "Valid - large day value", - "data": "2023001T000000/P500D", - "valid": true - }, - { - "description": "Valid - large hour value", - "data": "2023001T000000/PT100H", - "valid": true - }, - { - "description": "Valid - 13 months", - "data": "2023001T000000/P13M", - "valid": true - } - ] -} diff --git a/test/iso/datetime/2019/interval/start-duration-ordinal-extended/v1.test.json b/test/iso/datetime/2019/interval/start-duration-ordinal-extended/v1.test.json deleted file mode 100644 index fa4228ff..00000000 --- a/test/iso/datetime/2019/interval/start-duration-ordinal-extended/v1.test.json +++ /dev/null @@ -1,285 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/interval/start-duration-ordinal-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985102232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - full duration with all components", - "data": "1985-102T23:20:50/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - only years duration", - "data": "2000-001T00:00:00/P1Y", - "valid": true - }, - { - "description": "Valid - only time component duration", - "data": "2023-166T12:00:00/PT5H30M", - "valid": true - }, - { - "description": "Valid - weeks duration", - "data": "1985-365T23:59:59/P2W", - "valid": true - }, - { - "description": "Valid - days and seconds duration", - "data": "2023-001T00:00:00/P5DT30S", - "valid": true - }, - { - "description": "Valid - months duration", - "data": "2023-365T12:00:00/P6M", - "valid": true - }, - { - "description": "Valid - hours duration", - "data": "2000-182T18:00:00/PT12H", - "valid": true - }, - { - "description": "Invalid - missing separator slash", - "data": "1985-102T23:20:50P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - basic format datetime", - "data": "1985102T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - missing duration", - "data": "1985-102T23:20:50/", - "valid": false - }, - { - "description": "Invalid - missing start datetime", - "data": "/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - only separator", - "data": "/", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - spaces around separator", - "data": "1985-102T23:20:50 / P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - start day 000", - "data": "1985-000T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - start day 367", - "data": "1985-367T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - start hour 24", - "data": "1985-102T24:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - start minute 60", - "data": "1985-102T23:60:50/P1Y", - "valid": false - }, - { - "description": "Invalid - start second 61", - "data": "1985-102T23:20:61/P1Y", - "valid": false - }, - { - "description": "Invalid - missing T separator in start", - "data": "1985-102 23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - lowercase t in start", - "data": "1985-102t23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - end datetime instead of duration", - "data": "1985-102T23:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - duration without P prefix", - "data": "1985-102T23:20:50/1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - lowercase p in duration", - "data": "1985-102T23:20:50/p1Y", - "valid": false - }, - { - "description": "Invalid - lowercase t in duration", - "data": "1985-102T23:20:50/P1Dt1H", - "valid": false - }, - { - "description": "Invalid - empty duration (only P)", - "data": "1985-102T23:20:50/P", - "valid": false - }, - { - "description": "Invalid - empty time duration (only PT)", - "data": "1985-102T23:20:50/PT", - "valid": false - }, - { - "description": "Invalid - calendar date instead of ordinal", - "data": "1985-04-12T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - week date instead of ordinal", - "data": "1985-W15-5T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - double slash separator", - "data": "1985-102T23:20:50//P1Y", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "1985-102T23:20:50\\P1Y", - "valid": false - }, - { - "description": "Valid - day 366 (leap year validation is consumer responsibility)", - "data": "2020-366T00:00:00/P1Y", - "valid": true - }, - { - "description": "Valid - leap second in start", - "data": "1985-102T23:59:60/P1D", - "valid": true - }, - { - "description": "Valid - zero duration components", - "data": "2023-001T00:00:00/P0Y0M0DT0H0M0S", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in years", - "data": "2023-001T12:00:00/P1.5Y", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in months", - "data": "2023-001T12:00:00/P3M15DT2.5H", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in days", - "data": "2023-001T12:00:00/P10.5D", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in hours", - "data": "2023-001T12:00:00/PT2.5H", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in minutes", - "data": "2023-001T12:00:00/PT45.5M", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in seconds", - "data": "2023-001T12:00:00/PT10.123S", - "valid": true - }, - { - "description": "Valid - decimal weeks", - "data": "2023-001T12:00:00/P1.5W", - "valid": true - }, - { - "description": "Invalid - duration wrong component order (M before Y)", - "data": "1985-102T23:20:50/P6M3Y", - "valid": false - }, - { - "description": "Invalid - duration wrong component order (D before M)", - "data": "1985-102T23:20:50/P15D6M", - "valid": false - }, - { - "description": "Invalid - duration time without T designator", - "data": "1985-102T23:20:50/P1D1H", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with other units", - "data": "1985-102T23:20:50/P1W2D", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with years", - "data": "1985-102T23:20:50/P1Y2W", - "valid": false - }, - { - "description": "Invalid - duration weeks with time", - "data": "1985-102T23:20:50/P1WT1H", - "valid": false - }, - { - "description": "Valid - large year value", - "data": "2023-001T00:00:00/P500Y", - "valid": true - }, - { - "description": "Valid - large day value", - "data": "2023-001T00:00:00/P500D", - "valid": true - }, - { - "description": "Valid - large hour value", - "data": "2023-001T00:00:00/PT100H", - "valid": true - }, - { - "description": "Valid - 13 months", - "data": "2023-001T00:00:00/P13M", - "valid": true - } - ] -} diff --git a/test/iso/datetime/2019/interval/start-duration-week-basic/v1.test.json b/test/iso/datetime/2019/interval/start-duration-week-basic/v1.test.json deleted file mode 100644 index c0cfbffb..00000000 --- a/test/iso/datetime/2019/interval/start-duration-week-basic/v1.test.json +++ /dev/null @@ -1,425 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/interval/start-duration-week-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985155232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - full duration with all components", - "data": "1985W155T232050/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - only years duration", - "data": "2000W011T000000/P1Y", - "valid": true - }, - { - "description": "Valid - only time component duration", - "data": "2023W241T120000/PT5H30M", - "valid": true - }, - { - "description": "Valid - weeks duration", - "data": "1985W527T235959/P2W", - "valid": true - }, - { - "description": "Valid - days and seconds duration", - "data": "2023W011T000000/P5DT30S", - "valid": true - }, - { - "description": "Valid - months duration", - "data": "2023W527T120000/P6M", - "valid": true - }, - { - "description": "Valid - hours duration", - "data": "2000W265T180000/PT12H", - "valid": true - }, - { - "description": "Invalid - missing separator slash", - "data": "1985W155T232050P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - extended format datetime", - "data": "1985-W15-5T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - missing duration", - "data": "1985W155T232050/", - "valid": false - }, - { - "description": "Invalid - missing start datetime", - "data": "/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - only separator", - "data": "/", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - spaces around separator", - "data": "1985W155T232050 / P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - start week 00", - "data": "1985W005T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - start week 54", - "data": "1985W545T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - start day 0", - "data": "1985W150T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - start day 8", - "data": "1985W158T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - start hour 24", - "data": "1985W155T242050/P1Y", - "valid": false - }, - { - "description": "Invalid - start hour 25", - "data": "1985W155T252050/P1Y", - "valid": false - }, - { - "description": "Invalid - start hour 99", - "data": "1985W155T992050/P1Y", - "valid": false - }, - { - "description": "Invalid - start minute 60", - "data": "1985W155T236050/P1Y", - "valid": false - }, - { - "description": "Invalid - start minute 99", - "data": "1985W155T239950/P1Y", - "valid": false - }, - { - "description": "Invalid - start second 61", - "data": "1985W155T232061/P1Y", - "valid": false - }, - { - "description": "Invalid - start second 99", - "data": "1985W155T232099/P1Y", - "valid": false - }, - { - "description": "Invalid - missing T separator in start", - "data": "1985W155232050/P1Y", - "valid": false - }, - { - "description": "Invalid - lowercase t in start", - "data": "1985W155t232050/P1Y", - "valid": false - }, - { - "description": "Invalid - lowercase w", - "data": "1985w155T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - end datetime instead of duration", - "data": "1985W155T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - duration without P prefix", - "data": "1985W155T232050/1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - lowercase p in duration", - "data": "1985W155T232050/p1Y", - "valid": false - }, - { - "description": "Invalid - lowercase t in duration", - "data": "1985W155T232050/P1Dt1H", - "valid": false - }, - { - "description": "Invalid - empty duration (only P)", - "data": "1985W155T232050/P", - "valid": false - }, - { - "description": "Invalid - empty time duration (only PT)", - "data": "1985W155T232050/PT", - "valid": false - }, - { - "description": "Invalid - calendar date instead of week", - "data": "19850412T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - ordinal date instead of week", - "data": "1985102T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - double slash separator", - "data": "1985W155T232050//P1Y", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "1985W155T232050\\P1Y", - "valid": false - }, - { - "description": "Valid - week 53 (long year validation is consumer responsibility)", - "data": "2020W531T000000/P1Y", - "valid": true - }, - { - "description": "Valid - leap second in start", - "data": "1985W155T235960/P1D", - "valid": true - }, - { - "description": "Valid - zero duration components", - "data": "2023W011T000000/P0Y0M0DT0H0M0S", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in years", - "data": "2023W011T120000/P1.5Y", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in months", - "data": "2023W011T120000/P3M15DT2.5H", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in days", - "data": "2023W011T120000/P10.5D", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in hours", - "data": "2023W011T120000/PT2.5H", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in minutes", - "data": "2023W011T120000/PT45.5M", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in seconds", - "data": "2023W011T120000/PT10.123S", - "valid": true - }, - { - "description": "Valid - decimal weeks", - "data": "2023W011T120000/P1.5W", - "valid": true - }, - { - "description": "Invalid - duration wrong component order (M before Y)", - "data": "1985W155T232050/P6M3Y", - "valid": false - }, - { - "description": "Invalid - duration wrong component order (D before M)", - "data": "1985W155T232050/P15D6M", - "valid": false - }, - { - "description": "Invalid - duration time without T designator", - "data": "1985W155T232050/P1D1H", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with other units", - "data": "1985W155T232050/P1W2D", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with years", - "data": "1985W155T232050/P1Y2W", - "valid": false - }, - { - "description": "Invalid - duration weeks with time", - "data": "1985W155T232050/P1WT1H", - "valid": false - }, - { - "description": "Valid - large year value", - "data": "2023W011T000000/P500Y", - "valid": true - }, - { - "description": "Valid - large day value", - "data": "2023W011T000000/P500D", - "valid": true - }, - { - "description": "Valid - large hour value", - "data": "2023W011T000000/PT100H", - "valid": true - }, - { - "description": "Valid - 13 months", - "data": "2023W011T000000/P13M", - "valid": true - }, - { - "description": "Invalid - too short", - "data": "1985W155T23205/P1Y", - "valid": false - }, - { - "description": "Invalid - too long", - "data": "1985W155T2320500/P1Y", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "1985W155T232050X/P1Y", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning", - "data": "X1985W155T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - spaces in datetime", - "data": "1985 W15 5T23 20 50/P1Y", - "valid": false - }, - { - "description": "Invalid - letter in year", - "data": "I985W155T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - letter in week", - "data": "1985WI55T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - letter in day", - "data": "1985W15IT232050/P1Y", - "valid": false - }, - { - "description": "Invalid - letter in hour", - "data": "1985W155TI32050/P1Y", - "valid": false - }, - { - "description": "Invalid - letter in minute", - "data": "1985W155T23I050/P1Y", - "valid": false - }, - { - "description": "Invalid - letter in second", - "data": "1985W155T2320I0/P1Y", - "valid": false - }, - { - "description": "Valid - week 01 day 1", - "data": "2023W011T120000/P1Y", - "valid": true - }, - { - "description": "Valid - week 52 day 7", - "data": "2023W527T120000/P1Y", - "valid": true - }, - { - "description": "Valid - year 0000", - "data": "0000W011T120000/P1Y", - "valid": true - }, - { - "description": "Valid - year 9999", - "data": "9999W527T235959/P1Y", - "valid": true - }, - { - "description": "Invalid - duration with spaces", - "data": "1985W155T232050/P1Y 2M", - "valid": false - }, - { - "description": "Invalid - duration with extra slash", - "data": "1985W155T232050/P1Y/2M", - "valid": false - }, - { - "description": "Valid - PT60M (durations can exceed calendar limits)", - "data": "1985W155T232050/PT60M", - "valid": true - }, - { - "description": "Valid - PT60S (durations can exceed calendar limits)", - "data": "1985W155T232050/PT60S", - "valid": true - }, - { - "description": "Valid - PT25H (durations can exceed calendar limits)", - "data": "1985W155T232050/PT25H", - "valid": true - }, - { - "description": "Valid - P32D (durations can exceed calendar limits)", - "data": "1985W155T232050/P32D", - "valid": true - } - ] -} diff --git a/test/iso/datetime/2019/interval/start-duration-week-extended/v1.test.json b/test/iso/datetime/2019/interval/start-duration-week-extended/v1.test.json deleted file mode 100644 index 61ae2ac1..00000000 --- a/test/iso/datetime/2019/interval/start-duration-week-extended/v1.test.json +++ /dev/null @@ -1,295 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/interval/start-duration-week-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985155232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - full duration with all components", - "data": "1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - only years duration", - "data": "2000-W01-1T00:00:00/P1Y", - "valid": true - }, - { - "description": "Valid - only time component duration", - "data": "2023-W24-1T12:00:00/PT5H30M", - "valid": true - }, - { - "description": "Valid - weeks duration", - "data": "1985-W52-7T23:59:59/P2W", - "valid": true - }, - { - "description": "Valid - days and seconds duration", - "data": "2023-W01-1T00:00:00/P5DT30S", - "valid": true - }, - { - "description": "Valid - months duration", - "data": "2023-W52-7T12:00:00/P6M", - "valid": true - }, - { - "description": "Valid - hours duration", - "data": "2000-W26-5T18:00:00/PT12H", - "valid": true - }, - { - "description": "Invalid - missing separator slash", - "data": "1985-W15-5T23:20:50P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - basic format datetime", - "data": "1985W155T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - missing duration", - "data": "1985-W15-5T23:20:50/", - "valid": false - }, - { - "description": "Invalid - missing start datetime", - "data": "/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - only separator", - "data": "/", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - spaces around separator", - "data": "1985-W15-5T23:20:50 / P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - start week 00", - "data": "1985-W00-5T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - start week 54", - "data": "1985-W54-5T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - start day 0", - "data": "1985-W15-0T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - start day 8", - "data": "1985-W15-8T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - start hour 24", - "data": "1985-W15-5T24:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - start minute 60", - "data": "1985-W15-5T23:60:50/P1Y", - "valid": false - }, - { - "description": "Invalid - start second 61", - "data": "1985-W15-5T23:20:61/P1Y", - "valid": false - }, - { - "description": "Invalid - missing T separator in start", - "data": "1985-W15-5 23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - lowercase t in start", - "data": "1985-W15-5t23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - end datetime instead of duration", - "data": "1985-W15-5T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - duration without P prefix", - "data": "1985-W15-5T23:20:50/1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - lowercase p in duration", - "data": "1985-W15-5T23:20:50/p1Y", - "valid": false - }, - { - "description": "Invalid - lowercase t in duration", - "data": "1985-W15-5T23:20:50/P1Dt1H", - "valid": false - }, - { - "description": "Invalid - empty duration (only P)", - "data": "1985-W15-5T23:20:50/P", - "valid": false - }, - { - "description": "Invalid - empty time duration (only PT)", - "data": "1985-W15-5T23:20:50/PT", - "valid": false - }, - { - "description": "Invalid - calendar date instead of week", - "data": "1985-04-12T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - ordinal date instead of week", - "data": "1985-102T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - double slash separator", - "data": "1985-W15-5T23:20:50//P1Y", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "1985-W15-5T23:20:50\\P1Y", - "valid": false - }, - { - "description": "Valid - week 53 (long year validation is consumer responsibility)", - "data": "2020-W53-1T00:00:00/P1Y", - "valid": true - }, - { - "description": "Valid - leap second in start", - "data": "1985-W15-5T23:59:60/P1D", - "valid": true - }, - { - "description": "Valid - zero duration components", - "data": "2023-W01-1T00:00:00/P0Y0M0DT0H0M0S", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in years", - "data": "2023-W01-1T12:00:00/P1.5Y", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in months", - "data": "2023-W01-1T12:00:00/P3M15DT2.5H", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in days", - "data": "2023-W01-1T12:00:00/P10.5D", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in hours", - "data": "2023-W01-1T12:00:00/PT2.5H", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in minutes", - "data": "2023-W01-1T12:00:00/PT45.5M", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in seconds", - "data": "2023-W01-1T12:00:00/PT10.123S", - "valid": true - }, - { - "description": "Valid - decimal weeks", - "data": "2023-W01-1T12:00:00/P1.5W", - "valid": true - }, - { - "description": "Invalid - duration wrong component order (M before Y)", - "data": "1985-W15-5T23:20:50/P6M3Y", - "valid": false - }, - { - "description": "Invalid - duration wrong component order (D before M)", - "data": "1985-W15-5T23:20:50/P15D6M", - "valid": false - }, - { - "description": "Invalid - duration time without T designator", - "data": "1985-W15-5T23:20:50/P1D1H", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with other units", - "data": "1985-W15-5T23:20:50/P1W2D", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with years", - "data": "1985-W15-5T23:20:50/P1Y2W", - "valid": false - }, - { - "description": "Invalid - duration weeks with time", - "data": "1985-W15-5T23:20:50/P1WT1H", - "valid": false - }, - { - "description": "Valid - large year value", - "data": "2023-W01-1T00:00:00/P500Y", - "valid": true - }, - { - "description": "Valid - large day value", - "data": "2023-W01-1T00:00:00/P500D", - "valid": true - }, - { - "description": "Valid - large hour value", - "data": "2023-W01-1T00:00:00/PT100H", - "valid": true - }, - { - "description": "Valid - 13 months", - "data": "2023-W01-1T00:00:00/P13M", - "valid": true - } - ] -} diff --git a/test/iso/datetime/2019/interval/start-end-calendar-basic/v1.test.json b/test/iso/datetime/2019/interval/start-end-calendar-basic/v1.test.json deleted file mode 100644 index e8923346..00000000 --- a/test/iso/datetime/2019/interval/start-end-calendar-basic/v1.test.json +++ /dev/null @@ -1,470 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/interval/start-end-calendar-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 19850412232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 12 April 1985 to 25 June 1985", - "data": "19850412T232050/19850625T103000", - "valid": true - }, - { - "description": "Valid - 1 January 2000 to 31 December 2000", - "data": "20000101T000000/20001231T235959", - "valid": true - }, - { - "description": "Valid - same day interval", - "data": "20230101T120000/20230101T180000", - "valid": true - }, - { - "description": "Valid - cross year boundary", - "data": "20221231T230000/20230101T010000", - "valid": true - }, - { - "description": "Valid - 31 January to 28 February", - "data": "20230131T000000/20230228T235959", - "valid": true - }, - { - "description": "Valid - leap year February 29", - "data": "20200228T120000/20200229T120000", - "valid": true - }, - { - "description": "Valid - with leap second (60 seconds)", - "data": "19850412T235960/19850413T000000", - "valid": true - }, - { - "description": "Valid - midnight to midnight", - "data": "20230101T000000/20230102T000000", - "valid": true - }, - { - "description": "Valid - 31 May to 30 June", - "data": "20230531T120000/20230630T120000", - "valid": true - }, - { - "description": "Valid - 31 August to 30 September", - "data": "20230831T120000/20230930T120000", - "valid": true - }, - { - "description": "Valid - 31 October to 30 November", - "data": "20231031T120000/20231130T120000", - "valid": true - }, - { - "description": "Invalid - missing separator slash", - "data": "19850412T23205019850625T103000", - "valid": false - }, - { - "description": "Invalid - extended format (contains hyphens)", - "data": "1985-04-12T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - mixed formats (basic start, extended end)", - "data": "19850412T232050/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - mixed formats (extended start, basic end)", - "data": "1985-04-12T23:20:50/19850625T103000", - "valid": false - }, - { - "description": "Invalid - missing end datetime", - "data": "19850412T232050/", - "valid": false - }, - { - "description": "Invalid - missing start datetime", - "data": "/19850625T103000", - "valid": false - }, - { - "description": "Invalid - only separator", - "data": "/", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - spaces around separator", - "data": "19850412T232050 / 19850625T103000", - "valid": false - }, - { - "description": "Invalid - start month 00", - "data": "19850012T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - start month 13", - "data": "19851312T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - end month 00", - "data": "19850412T232050/19850025T103000", - "valid": false - }, - { - "description": "Invalid - end month 13", - "data": "19850412T232050/19851325T103000", - "valid": false - }, - { - "description": "Invalid - start day 00", - "data": "19850400T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - start day 32", - "data": "19850432T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - end day 00", - "data": "19850412T232050/19850600T103000", - "valid": false - }, - { - "description": "Invalid - end day 32", - "data": "19850412T232050/19850632T103000", - "valid": false - }, - { - "description": "Invalid - start 31 April", - "data": "19850431T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - start 31 June", - "data": "19850631T232050/19850731T103000", - "valid": false - }, - { - "description": "Invalid - start 31 September", - "data": "19850931T232050/19851031T103000", - "valid": false - }, - { - "description": "Invalid - start 31 November", - "data": "19851131T232050/19851231T103000", - "valid": false - }, - { - "description": "Invalid - end 31 April", - "data": "19850401T232050/19850431T103000", - "valid": false - }, - { - "description": "Invalid - end 31 June", - "data": "19850601T232050/19850631T103000", - "valid": false - }, - { - "description": "Invalid - end 31 September", - "data": "19850901T232050/19850931T103000", - "valid": false - }, - { - "description": "Invalid - end 31 November", - "data": "19851101T232050/19851131T103000", - "valid": false - }, - { - "description": "Invalid - start 30 February", - "data": "20230230T120000/20230331T120000", - "valid": false - }, - { - "description": "Invalid - end 30 February", - "data": "20230131T120000/20230230T120000", - "valid": false - }, - { - "description": "Invalid - start hour 24", - "data": "19850412T242050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - start hour 25", - "data": "19850412T252050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - end hour 24", - "data": "19850412T232050/19850625T243000", - "valid": false - }, - { - "description": "Invalid - start minute 60", - "data": "19850412T236050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - end minute 60", - "data": "19850412T232050/19850625T106000", - "valid": false - }, - { - "description": "Invalid - start second 61", - "data": "19850412T232061/19850625T103000", - "valid": false - }, - { - "description": "Invalid - end second 61", - "data": "19850412T232050/19850625T103061", - "valid": false - }, - { - "description": "Invalid - missing T separator in start", - "data": "19850412232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - missing T separator in end", - "data": "19850412T232050/19850625103000", - "valid": false - }, - { - "description": "Invalid - lowercase t in start", - "data": "19850412t232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - lowercase t in end", - "data": "19850412T232050/19850625t103000", - "valid": false - }, - { - "description": "Invalid - duration instead of end datetime", - "data": "19850412T232050/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - duration instead of start datetime", - "data": "P1Y2M15DT12H30M0S/19850625T103000", - "valid": false - }, - { - "description": "Invalid - too few digits in start year", - "data": "985412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - too many digits in start year", - "data": "198504412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - letters in start date", - "data": "ABCD0412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - letters in end date", - "data": "19850412T232050/ABCD0625T103000", - "valid": false - }, - { - "description": "Invalid - letters in start time", - "data": "19850412TABC050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - letters in end time", - "data": "19850412T232050/19850625TABC000", - "valid": false - }, - { - "description": "Valid - 29 February (leap year validation is consumer responsibility)", - "data": "20230229T120000/20230331T120000", - "valid": true - }, - { - "description": "Valid - both start and end with 29 February", - "data": "20230229T000000/20240229T235959", - "valid": true - }, - { - "description": "Invalid - double slash separator", - "data": "19850412T232050//19850625T103000", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "19850412T232050\\19850625T103000", - "valid": false - }, - { - "description": "Valid - reversed order (end before start is syntactically valid per ISO 8601)", - "data": "19850625T103000/19850412T232050", - "valid": true - }, - { - "description": "Invalid - start hour 99", - "data": "19850412T992050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - end hour 99", - "data": "19850412T232050/19850625T993000", - "valid": false - }, - { - "description": "Invalid - start minute 99", - "data": "19850412T239950/19850625T103000", - "valid": false - }, - { - "description": "Invalid - end minute 99", - "data": "19850412T232050/19850625T109900", - "valid": false - }, - { - "description": "Invalid - start second 99", - "data": "19850412T232099/19850625T103000", - "valid": false - }, - { - "description": "Invalid - end second 99", - "data": "19850412T232050/19850625T103099", - "valid": false - }, - { - "description": "Invalid - letter in start year", - "data": "I9850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - letter in end year", - "data": "19850412T232050/I9850625T103000", - "valid": false - }, - { - "description": "Invalid - letter in start month", - "data": "1985O412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - letter in end month", - "data": "19850412T232050/1985O625T103000", - "valid": false - }, - { - "description": "Invalid - letter in start day", - "data": "198504I2T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - letter in end day", - "data": "19850412T232050/198506I5T103000", - "valid": false - }, - { - "description": "Invalid - letter in start hour", - "data": "19850412TI32050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - letter in end hour", - "data": "19850412T232050/19850625TI03000", - "valid": false - }, - { - "description": "Invalid - letter in start minute", - "data": "19850412T23I050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - letter in end minute", - "data": "19850412T232050/19850625T10I000", - "valid": false - }, - { - "description": "Invalid - letter in start second", - "data": "19850412T2320I0/19850625T103000", - "valid": false - }, - { - "description": "Invalid - letter in end second", - "data": "19850412T232050/19850625T1030I0", - "valid": false - }, - { - "description": "Invalid - too short start", - "data": "19850412T23205/19850625T103000", - "valid": false - }, - { - "description": "Invalid - too long start", - "data": "19850412T2320500/19850625T103000", - "valid": false - }, - { - "description": "Invalid - too short end", - "data": "19850412T232050/19850625T10300", - "valid": false - }, - { - "description": "Invalid - too long end", - "data": "19850412T232050/19850625T1030000", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning", - "data": "X19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "19850412T232050/19850625T103000X", - "valid": false - }, - { - "description": "Invalid - spaces in start datetime", - "data": "1985 04 12T23 20 50/19850625T103000", - "valid": false - }, - { - "description": "Invalid - spaces in end datetime", - "data": "19850412T232050/1985 06 25T10 30 00", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/interval/start-end-calendar-extended/v1.test.json b/test/iso/datetime/2019/interval/start-end-calendar-extended/v1.test.json deleted file mode 100644 index cd8d7dd8..00000000 --- a/test/iso/datetime/2019/interval/start-end-calendar-extended/v1.test.json +++ /dev/null @@ -1,495 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/interval/start-end-calendar-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 19850412232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 12 April 1985 to 25 June 1985", - "data": "1985-04-12T23:20:50/1985-06-25T10:30:00", - "valid": true - }, - { - "description": "Valid - 1 January 2000 to 31 December 2000", - "data": "2000-01-01T00:00:00/2000-12-31T23:59:59", - "valid": true - }, - { - "description": "Valid - same day interval", - "data": "2023-01-01T12:00:00/2023-01-01T18:00:00", - "valid": true - }, - { - "description": "Valid - cross year boundary", - "data": "2022-12-31T23:00:00/2023-01-01T01:00:00", - "valid": true - }, - { - "description": "Valid - 31 January to 28 February", - "data": "2023-01-31T00:00:00/2023-02-28T23:59:59", - "valid": true - }, - { - "description": "Valid - leap year February 29", - "data": "2020-02-28T12:00:00/2020-02-29T12:00:00", - "valid": true - }, - { - "description": "Valid - with leap second (60 seconds)", - "data": "1985-04-12T23:59:60/1985-04-13T00:00:00", - "valid": true - }, - { - "description": "Valid - midnight to midnight", - "data": "2023-01-01T00:00:00/2023-01-02T00:00:00", - "valid": true - }, - { - "description": "Valid - 31 May to 30 June", - "data": "2023-05-31T12:00:00/2023-06-30T12:00:00", - "valid": true - }, - { - "description": "Valid - 31 August to 30 September", - "data": "2023-08-31T12:00:00/2023-09-30T12:00:00", - "valid": true - }, - { - "description": "Valid - 31 October to 30 November", - "data": "2023-10-31T12:00:00/2023-11-30T12:00:00", - "valid": true - }, - { - "description": "Invalid - missing separator slash", - "data": "1985-04-12T23:20:501985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - basic format (no hyphens or colons)", - "data": "19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - mixed formats (basic start, extended end)", - "data": "19850412T232050/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - mixed formats (extended start, basic end)", - "data": "1985-04-12T23:20:50/19850625T103000", - "valid": false - }, - { - "description": "Invalid - missing end datetime", - "data": "1985-04-12T23:20:50/", - "valid": false - }, - { - "description": "Invalid - missing start datetime", - "data": "/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - only separator", - "data": "/", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - spaces around separator", - "data": "1985-04-12T23:20:50 / 1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - start month 00", - "data": "1985-00-12T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - start month 13", - "data": "1985-13-12T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - end month 00", - "data": "1985-04-12T23:20:50/1985-00-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - end month 13", - "data": "1985-04-12T23:20:50/1985-13-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - start day 00", - "data": "1985-04-00T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - start day 32", - "data": "1985-04-32T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - end day 00", - "data": "1985-04-12T23:20:50/1985-06-00T10:30:00", - "valid": false - }, - { - "description": "Invalid - end day 32", - "data": "1985-04-12T23:20:50/1985-06-32T10:30:00", - "valid": false - }, - { - "description": "Invalid - start 31 April", - "data": "1985-04-31T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - start 31 June", - "data": "1985-06-31T23:20:50/1985-07-31T10:30:00", - "valid": false - }, - { - "description": "Invalid - start 31 September", - "data": "1985-09-31T23:20:50/1985-10-31T10:30:00", - "valid": false - }, - { - "description": "Invalid - start 31 November", - "data": "1985-11-31T23:20:50/1985-12-31T10:30:00", - "valid": false - }, - { - "description": "Invalid - end 31 April", - "data": "1985-04-01T23:20:50/1985-04-31T10:30:00", - "valid": false - }, - { - "description": "Invalid - end 31 June", - "data": "1985-06-01T23:20:50/1985-06-31T10:30:00", - "valid": false - }, - { - "description": "Invalid - end 31 September", - "data": "1985-09-01T23:20:50/1985-09-31T10:30:00", - "valid": false - }, - { - "description": "Invalid - end 31 November", - "data": "1985-11-01T23:20:50/1985-11-31T10:30:00", - "valid": false - }, - { - "description": "Invalid - start 30 February", - "data": "2023-02-30T12:00:00/2023-03-31T12:00:00", - "valid": false - }, - { - "description": "Invalid - end 30 February", - "data": "2023-01-31T12:00:00/2023-02-30T12:00:00", - "valid": false - }, - { - "description": "Invalid - start hour 24", - "data": "1985-04-12T24:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - start hour 25", - "data": "1985-04-12T25:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - end hour 24", - "data": "1985-04-12T23:20:50/1985-06-25T24:30:00", - "valid": false - }, - { - "description": "Invalid - start minute 60", - "data": "1985-04-12T23:60:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - end minute 60", - "data": "1985-04-12T23:20:50/1985-06-25T10:60:00", - "valid": false - }, - { - "description": "Invalid - start second 61", - "data": "1985-04-12T23:20:61/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - end second 61", - "data": "1985-04-12T23:20:50/1985-06-25T10:30:61", - "valid": false - }, - { - "description": "Invalid - missing T separator in start", - "data": "1985-04-1223:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - missing T separator in end", - "data": "1985-04-12T23:20:50/1985-06-2510:30:00", - "valid": false - }, - { - "description": "Invalid - lowercase t in start", - "data": "1985-04-12t23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - lowercase t in end", - "data": "1985-04-12T23:20:50/1985-06-25t10:30:00", - "valid": false - }, - { - "description": "Invalid - duration instead of end datetime", - "data": "1985-04-12T23:20:50/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - duration instead of start datetime", - "data": "P1Y2M15DT12H30M0S/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - missing hyphen in start date", - "data": "19850412T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - missing hyphen in end date", - "data": "1985-04-12T23:20:50/19850625T10:30:00", - "valid": false - }, - { - "description": "Invalid - missing colon in start time", - "data": "1985-04-12T232050/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - missing colon in end time", - "data": "1985-04-12T23:20:50/1985-06-25T103000", - "valid": false - }, - { - "description": "Invalid - letters in start date", - "data": "ABCD-04-12T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - letters in end date", - "data": "1985-04-12T23:20:50/ABCD-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - letters in start time", - "data": "1985-04-12TAB:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - letters in end time", - "data": "1985-04-12T23:20:50/1985-06-25TAB:30:00", - "valid": false - }, - { - "description": "Valid - 29 February (leap year validation is consumer responsibility)", - "data": "2023-02-29T12:00:00/2023-03-31T12:00:00", - "valid": true - }, - { - "description": "Valid - both start and end with 29 February", - "data": "2023-02-29T00:00:00/2024-02-29T23:59:59", - "valid": true - }, - { - "description": "Invalid - double slash separator", - "data": "1985-04-12T23:20:50//1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "1985-04-12T23:20:50\\1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Valid - reversed order (end before start is syntactically valid per ISO 8601)", - "data": "1985-06-25T10:30:00/1985-04-12T23:20:50", - "valid": true - }, - { - "description": "Invalid - start hour 99", - "data": "1985-04-12T99:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - end hour 99", - "data": "1985-04-12T23:20:50/1985-06-25T99:30:00", - "valid": false - }, - { - "description": "Invalid - start minute 99", - "data": "1985-04-12T23:99:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - end minute 99", - "data": "1985-04-12T23:20:50/1985-06-25T10:99:00", - "valid": false - }, - { - "description": "Invalid - start second 99", - "data": "1985-04-12T23:20:99/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - end second 99", - "data": "1985-04-12T23:20:50/1985-06-25T10:30:99", - "valid": false - }, - { - "description": "Invalid - letter in start year", - "data": "I985-04-12T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in end year", - "data": "1985-04-12T23:20:50/I985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in start month", - "data": "1985-0I-12T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in end month", - "data": "1985-04-12T23:20:50/1985-0I-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in start day", - "data": "1985-04-I2T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in end day", - "data": "1985-04-12T23:20:50/1985-06-I5T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in start hour", - "data": "1985-04-12TI3:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in end hour", - "data": "1985-04-12T23:20:50/1985-06-25TI0:30:00", - "valid": false - }, - { - "description": "Invalid - letter in start minute", - "data": "1985-04-12T23:I0:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in end minute", - "data": "1985-04-12T23:20:50/1985-06-25T10:I0:00", - "valid": false - }, - { - "description": "Invalid - letter in start second", - "data": "1985-04-12T23:20:I0/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in end second", - "data": "1985-04-12T23:20:50/1985-06-25T10:30:I0", - "valid": false - }, - { - "description": "Invalid - too short start datetime", - "data": "1985-04-12T23:20:5/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - too short end datetime", - "data": "1985-04-12T23:20:50/1985-06-25T10:30:0", - "valid": false - }, - { - "description": "Invalid - too long start datetime", - "data": "1985-04-12T23:20:500/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - too long end datetime", - "data": "1985-04-12T23:20:50/1985-06-25T10:30:000", - "valid": false - }, - { - "description": "Invalid - extra character at start", - "data": "X1985-04-12T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - extra character at end", - "data": "1985-04-12T23:20:50/1985-06-25T10:30:00X", - "valid": false - }, - { - "description": "Invalid - extra character in middle", - "data": "1985-04-12T23:20:50X/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - space in start date", - "data": "1985-04- 12T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - space in end date", - "data": "1985-04-12T23:20:50/1985-06- 25T10:30:00", - "valid": false - }, - { - "description": "Invalid - space in start time", - "data": "1985-04-12T23: 20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - space in end time", - "data": "1985-04-12T23:20:50/1985-06-25T10: 30:00", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/interval/start-end-ordinal-basic/v1.test.json b/test/iso/datetime/2019/interval/start-end-ordinal-basic/v1.test.json deleted file mode 100644 index 4972a208..00000000 --- a/test/iso/datetime/2019/interval/start-end-ordinal-basic/v1.test.json +++ /dev/null @@ -1,415 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/interval/start-end-ordinal-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985102232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - day 102 to day 176 of 1985", - "data": "1985102T232050/1985176T103000", - "valid": true - }, - { - "description": "Valid - day 1 to day 366 of 2000 (leap year)", - "data": "2000001T000000/2000366T235959", - "valid": true - }, - { - "description": "Valid - day 1 to day 365 of 2023", - "data": "2023001T120000/2023365T180000", - "valid": true - }, - { - "description": "Valid - same day interval", - "data": "2023100T120000/2023100T180000", - "valid": true - }, - { - "description": "Valid - cross year boundary", - "data": "2022365T230000/2023001T010000", - "valid": true - }, - { - "description": "Valid - first to last day of year", - "data": "2020001T000000/2020366T235959", - "valid": true - }, - { - "description": "Valid - with leap second (60 seconds)", - "data": "1985102T235960/1985103T000000", - "valid": true - }, - { - "description": "Valid - midnight to midnight", - "data": "2023001T000000/2023002T000000", - "valid": true - }, - { - "description": "Valid - day 59 to day 60 (February 28-29 in leap year)", - "data": "2020059T120000/2020060T120000", - "valid": true - }, - { - "description": "Invalid - missing separator slash", - "data": "1985102T2320501985176T103000", - "valid": false - }, - { - "description": "Invalid - extended format (contains hyphens)", - "data": "1985-102T23:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - mixed formats (basic start, extended end)", - "data": "1985102T232050/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - mixed formats (extended start, basic end)", - "data": "1985-102T23:20:50/1985176T103000", - "valid": false - }, - { - "description": "Invalid - missing end datetime", - "data": "1985102T232050/", - "valid": false - }, - { - "description": "Invalid - missing start datetime", - "data": "/1985176T103000", - "valid": false - }, - { - "description": "Invalid - only separator", - "data": "/", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - spaces around separator", - "data": "1985102T232050 / 1985176T103000", - "valid": false - }, - { - "description": "Invalid - start day 000", - "data": "1985000T232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - start day 367", - "data": "1985367T232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - end day 000", - "data": "1985102T232050/1985000T103000", - "valid": false - }, - { - "description": "Invalid - end day 367", - "data": "1985102T232050/1985367T103000", - "valid": false - }, - { - "description": "Invalid - start hour 24", - "data": "1985102T242050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - start hour 25", - "data": "1985102T252050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - end hour 24", - "data": "1985102T232050/1985176T243000", - "valid": false - }, - { - "description": "Invalid - start minute 60", - "data": "1985102T236050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - end minute 60", - "data": "1985102T232050/1985176T106000", - "valid": false - }, - { - "description": "Invalid - start second 61", - "data": "1985102T232061/1985176T103000", - "valid": false - }, - { - "description": "Invalid - end second 61", - "data": "1985102T232050/1985176T103061", - "valid": false - }, - { - "description": "Invalid - missing T separator in start", - "data": "1985102232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - missing T separator in end", - "data": "1985102T232050/1985176103000", - "valid": false - }, - { - "description": "Invalid - lowercase t in start", - "data": "1985102t232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - lowercase t in end", - "data": "1985102T232050/1985176t103000", - "valid": false - }, - { - "description": "Invalid - duration instead of end datetime", - "data": "1985102T232050/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - duration instead of start datetime", - "data": "P1Y2M15DT12H30M0S/1985176T103000", - "valid": false - }, - { - "description": "Invalid - calendar date instead of ordinal in start", - "data": "19850412T232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - calendar date instead of ordinal in end", - "data": "1985102T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - too few digits in start day", - "data": "198502T232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - too many digits in start day", - "data": "19851022T232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - letters in start date", - "data": "ABCD102T232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - letters in end date", - "data": "1985102T232050/ABCD176T103000", - "valid": false - }, - { - "description": "Invalid - letters in start time", - "data": "1985102TABC050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - letters in end time", - "data": "1985102T232050/1985176TABC000", - "valid": false - }, - { - "description": "Valid - day 366 in leap year", - "data": "2020366T000000/2021001T000000", - "valid": true - }, - { - "description": "Valid - day 366 in non-leap year (validation is consumer responsibility)", - "data": "2023366T120000/2024001T120000", - "valid": true - }, - { - "description": "Invalid - double slash separator", - "data": "1985102T232050//1985176T103000", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "1985102T232050\\1985176T103000", - "valid": false - }, - { - "description": "Valid - reversed order (end before start is syntactically valid per ISO 8601)", - "data": "1985176T103000/1985102T232050", - "valid": true - }, - { - "description": "Invalid - week date format instead of ordinal in start", - "data": "1985W155T232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - week date format instead of ordinal in end", - "data": "1985102T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - start hour 99", - "data": "1985102T992050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - end hour 99", - "data": "1985102T232050/1985176T993000", - "valid": false - }, - { - "description": "Invalid - start minute 99", - "data": "1985102T239950/1985176T103000", - "valid": false - }, - { - "description": "Invalid - end minute 99", - "data": "1985102T232050/1985176T109900", - "valid": false - }, - { - "description": "Invalid - start second 99", - "data": "1985102T232099/1985176T103000", - "valid": false - }, - { - "description": "Invalid - end second 99", - "data": "1985102T232050/1985176T103099", - "valid": false - }, - { - "description": "Invalid - letter in start year", - "data": "I985102T232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - letter in end year", - "data": "1985102T232050/I985176T103000", - "valid": false - }, - { - "description": "Invalid - letter in start day", - "data": "1985I02T232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - letter in end day", - "data": "1985102T232050/1985I76T103000", - "valid": false - }, - { - "description": "Invalid - letter in start hour", - "data": "1985102TI32050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - letter in end hour", - "data": "1985102T232050/1985176TI03000", - "valid": false - }, - { - "description": "Invalid - letter in start minute", - "data": "1985102T23I050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - letter in end minute", - "data": "1985102T232050/1985176T10I000", - "valid": false - }, - { - "description": "Invalid - letter in start second", - "data": "1985102T2320I0/1985176T103000", - "valid": false - }, - { - "description": "Invalid - letter in end second", - "data": "1985102T232050/1985176T1030I0", - "valid": false - }, - { - "description": "Invalid - too short start datetime", - "data": "1985102T23205/1985176T103000", - "valid": false - }, - { - "description": "Invalid - too short end datetime", - "data": "1985102T232050/1985176T10300", - "valid": false - }, - { - "description": "Invalid - too long start datetime", - "data": "1985102T2320500/1985176T103000", - "valid": false - }, - { - "description": "Invalid - too long end datetime", - "data": "1985102T232050/1985176T1030000", - "valid": false - }, - { - "description": "Invalid - extra character at start", - "data": "X1985102T232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - extra character at end", - "data": "1985102T232050/1985176T103000X", - "valid": false - }, - { - "description": "Invalid - extra character in middle", - "data": "1985102T232050X/1985176T103000", - "valid": false - }, - { - "description": "Invalid - space in start date", - "data": "1985 102T232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - space in end date", - "data": "1985102T232050/1985 176T103000", - "valid": false - }, - { - "description": "Invalid - space in start time", - "data": "1985102T23 2050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - space in end time", - "data": "1985102T232050/1985176T10 3000", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/interval/start-end-ordinal-extended/v1.test.json b/test/iso/datetime/2019/interval/start-end-ordinal-extended/v1.test.json deleted file mode 100644 index 4dc538e8..00000000 --- a/test/iso/datetime/2019/interval/start-end-ordinal-extended/v1.test.json +++ /dev/null @@ -1,400 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/interval/start-end-ordinal-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985102232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - day 102 to day 176 of 1985", - "data": "1985-102T23:20:50/1985-176T10:30:00", - "valid": true - }, - { - "description": "Valid - day 1 to day 366 of 2000 (leap year)", - "data": "2000-001T00:00:00/2000-366T23:59:59", - "valid": true - }, - { - "description": "Valid - day 1 to day 365 of 2023", - "data": "2023-001T12:00:00/2023-365T18:00:00", - "valid": true - }, - { - "description": "Valid - same day interval", - "data": "2023-100T12:00:00/2023-100T18:00:00", - "valid": true - }, - { - "description": "Valid - cross year boundary", - "data": "2022-365T23:00:00/2023-001T01:00:00", - "valid": true - }, - { - "description": "Valid - with leap second (60 seconds)", - "data": "1985-102T23:59:60/1985-103T00:00:00", - "valid": true - }, - { - "description": "Valid - midnight to midnight", - "data": "2023-001T00:00:00/2023-002T00:00:00", - "valid": true - }, - { - "description": "Invalid - missing separator slash", - "data": "1985-102T23:20:501985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - basic format (no hyphens or colons)", - "data": "1985102T232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - mixed formats (basic start, extended end)", - "data": "1985102T232050/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - mixed formats (extended start, basic end)", - "data": "1985-102T23:20:50/1985176T103000", - "valid": false - }, - { - "description": "Invalid - missing end datetime", - "data": "1985-102T23:20:50/", - "valid": false - }, - { - "description": "Invalid - missing start datetime", - "data": "/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - only separator", - "data": "/", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - spaces around separator", - "data": "1985-102T23:20:50 / 1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - start day 000", - "data": "1985-000T23:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - start day 367", - "data": "1985-367T23:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - end day 000", - "data": "1985-102T23:20:50/1985-000T10:30:00", - "valid": false - }, - { - "description": "Invalid - end day 367", - "data": "1985-102T23:20:50/1985-367T10:30:00", - "valid": false - }, - { - "description": "Invalid - start hour 24", - "data": "1985-102T24:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - end hour 24", - "data": "1985-102T23:20:50/1985-176T24:30:00", - "valid": false - }, - { - "description": "Invalid - start minute 60", - "data": "1985-102T23:60:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - end minute 60", - "data": "1985-102T23:20:50/1985-176T10:60:00", - "valid": false - }, - { - "description": "Invalid - start second 61", - "data": "1985-102T23:20:61/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - end second 61", - "data": "1985-102T23:20:50/1985-176T10:30:61", - "valid": false - }, - { - "description": "Invalid - missing T separator in start", - "data": "1985-10223:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - missing T separator in end", - "data": "1985-102T23:20:50/1985-17610:30:00", - "valid": false - }, - { - "description": "Invalid - lowercase t in start", - "data": "1985-102t23:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - lowercase t in end", - "data": "1985-102T23:20:50/1985-176t10:30:00", - "valid": false - }, - { - "description": "Invalid - duration instead of end datetime", - "data": "1985-102T23:20:50/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - duration instead of start datetime", - "data": "P1Y2M15DT12H30M0S/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - calendar date instead of ordinal in start", - "data": "1985-04-12T23:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - calendar date instead of ordinal in end", - "data": "1985-102T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - missing hyphen in start date", - "data": "1985102T23:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - missing hyphen in end date", - "data": "1985-102T23:20:50/1985176T10:30:00", - "valid": false - }, - { - "description": "Invalid - missing colon in start time", - "data": "1985-102T232050/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - missing colon in end time", - "data": "1985-102T23:20:50/1985-176T103000", - "valid": false - }, - { - "description": "Invalid - letters in start date", - "data": "ABCD-102T23:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - letters in end date", - "data": "1985-102T23:20:50/ABCD-176T10:30:00", - "valid": false - }, - { - "description": "Valid - day 366 in leap year", - "data": "2020-366T00:00:00/2021-001T00:00:00", - "valid": true - }, - { - "description": "Valid - day 366 in non-leap year (validation is consumer responsibility)", - "data": "2023-366T12:00:00/2024-001T12:00:00", - "valid": true - }, - { - "description": "Invalid - double slash separator", - "data": "1985-102T23:20:50//1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "1985-102T23:20:50\\1985-176T10:30:00", - "valid": false - }, - { - "description": "Valid - reversed order (end before start is syntactically valid per ISO 8601)", - "data": "1985-176T10:30:00/1985-102T23:20:50", - "valid": true - }, - { - "description": "Invalid - week date format instead of ordinal in start", - "data": "1985-W15-5T23:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - week date format instead of ordinal in end", - "data": "1985-102T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - start hour 99", - "data": "1985-102T99:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - end hour 99", - "data": "1985-102T23:20:50/1985-176T99:30:00", - "valid": false - }, - { - "description": "Invalid - start minute 99", - "data": "1985-102T23:99:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - end minute 99", - "data": "1985-102T23:20:50/1985-176T10:99:00", - "valid": false - }, - { - "description": "Invalid - start second 99", - "data": "1985-102T23:20:99/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - end second 99", - "data": "1985-102T23:20:50/1985-176T10:30:99", - "valid": false - }, - { - "description": "Invalid - letter in start year", - "data": "I985-102T23:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in end year", - "data": "1985-102T23:20:50/I985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in start day", - "data": "1985-I02T23:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in end day", - "data": "1985-102T23:20:50/1985-I76T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in start hour", - "data": "1985-102TI3:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in end hour", - "data": "1985-102T23:20:50/1985-176TI0:30:00", - "valid": false - }, - { - "description": "Invalid - letter in start minute", - "data": "1985-102T23:I0:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in end minute", - "data": "1985-102T23:20:50/1985-176T10:I0:00", - "valid": false - }, - { - "description": "Invalid - letter in start second", - "data": "1985-102T23:20:I0/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in end second", - "data": "1985-102T23:20:50/1985-176T10:30:I0", - "valid": false - }, - { - "description": "Invalid - too short start datetime", - "data": "1985-102T23:20:5/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - too short end datetime", - "data": "1985-102T23:20:50/1985-176T10:30:0", - "valid": false - }, - { - "description": "Invalid - too long start datetime", - "data": "1985-102T23:20:500/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - too long end datetime", - "data": "1985-102T23:20:50/1985-176T10:30:000", - "valid": false - }, - { - "description": "Invalid - extra character at start", - "data": "X1985-102T23:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - extra character at end", - "data": "1985-102T23:20:50/1985-176T10:30:00X", - "valid": false - }, - { - "description": "Invalid - extra character in middle", - "data": "1985-102T23:20:50X/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - space in start date", - "data": "1985- 102T23:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - space in end date", - "data": "1985-102T23:20:50/1985- 176T10:30:00", - "valid": false - }, - { - "description": "Invalid - space in start time", - "data": "1985-102T23: 20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - space in end time", - "data": "1985-102T23:20:50/1985-176T10: 30:00", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/interval/start-end-week-basic/v1.test.json b/test/iso/datetime/2019/interval/start-end-week-basic/v1.test.json deleted file mode 100644 index 4499a255..00000000 --- a/test/iso/datetime/2019/interval/start-end-week-basic/v1.test.json +++ /dev/null @@ -1,425 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/interval/start-end-week-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985155232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - week 15 day 5 to week 26 day 1 of 1985", - "data": "1985W155T232050/1985W261T103000", - "valid": true - }, - { - "description": "Valid - week 01 day 1 to week 52 day 7 of 2000", - "data": "2000W011T000000/2000W527T235959", - "valid": true - }, - { - "description": "Valid - week 01 day 1 to week 52 day 7 of 2023", - "data": "2023W011T120000/2023W527T180000", - "valid": true - }, - { - "description": "Valid - same week interval", - "data": "2023W151T120000/2023W155T180000", - "valid": true - }, - { - "description": "Valid - cross year boundary", - "data": "2022W527T230000/2023W011T010000", - "valid": true - }, - { - "description": "Valid - with leap second (60 seconds)", - "data": "1985W155T235960/1985W156T000000", - "valid": true - }, - { - "description": "Valid - midnight to midnight", - "data": "2023W011T000000/2023W012T000000", - "valid": true - }, - { - "description": "Valid - week 53 (some years have 53 weeks)", - "data": "2020W531T000000/2021W011T000000", - "valid": true - }, - { - "description": "Invalid - missing separator slash", - "data": "1985W155T2320501985W261T103000", - "valid": false - }, - { - "description": "Invalid - extended format (contains hyphens)", - "data": "1985-W15-5T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - mixed formats (basic start, extended end)", - "data": "1985W155T232050/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - mixed formats (extended start, basic end)", - "data": "1985-W15-5T23:20:50/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - missing end datetime", - "data": "1985W155T232050/", - "valid": false - }, - { - "description": "Invalid - missing start datetime", - "data": "/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - only separator", - "data": "/", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - spaces around separator", - "data": "1985W155T232050 / 1985W261T103000", - "valid": false - }, - { - "description": "Invalid - start week 00", - "data": "1985W005T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - start week 54", - "data": "1985W545T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - end week 00", - "data": "1985W155T232050/1985W001T103000", - "valid": false - }, - { - "description": "Invalid - end week 54", - "data": "1985W155T232050/1985W541T103000", - "valid": false - }, - { - "description": "Invalid - start day 0", - "data": "1985W150T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - start day 8", - "data": "1985W158T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - end day 0", - "data": "1985W155T232050/1985W260T103000", - "valid": false - }, - { - "description": "Invalid - end day 8", - "data": "1985W155T232050/1985W268T103000", - "valid": false - }, - { - "description": "Invalid - start hour 24", - "data": "1985W155T242050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - end hour 24", - "data": "1985W155T232050/1985W261T243000", - "valid": false - }, - { - "description": "Invalid - start minute 60", - "data": "1985W155T236050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - end minute 60", - "data": "1985W155T232050/1985W261T106000", - "valid": false - }, - { - "description": "Invalid - start second 61", - "data": "1985W155T232061/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - end second 61", - "data": "1985W155T232050/1985W261T103061", - "valid": false - }, - { - "description": "Invalid - missing T separator in start", - "data": "1985W155232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - missing T separator in end", - "data": "1985W155T232050/1985W261103000", - "valid": false - }, - { - "description": "Invalid - lowercase t in start", - "data": "1985W155t232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - lowercase t in end", - "data": "1985W155T232050/1985W261t103000", - "valid": false - }, - { - "description": "Invalid - lowercase w in start", - "data": "1985w155T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - lowercase w in end", - "data": "1985W155T232050/1985w261T103000", - "valid": false - }, - { - "description": "Invalid - missing W designator in start", - "data": "1985155T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - missing W designator in end", - "data": "1985W155T232050/1985261T103000", - "valid": false - }, - { - "description": "Invalid - duration instead of end datetime", - "data": "1985W155T232050/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - duration instead of start datetime", - "data": "P1Y2M15DT12H30M0S/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - calendar date instead of week in start", - "data": "19850412T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - calendar date instead of week in end", - "data": "1985W155T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - ordinal date instead of week in start", - "data": "1985102T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - ordinal date instead of week in end", - "data": "1985W155T232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - letters in start date", - "data": "ABCDW155T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - letters in end date", - "data": "1985W155T232050/ABCDW261T103000", - "valid": false - }, - { - "description": "Invalid - double slash separator", - "data": "1985W155T232050//1985W261T103000", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "1985W155T232050\\1985W261T103000", - "valid": false - }, - { - "description": "Valid - reversed order (end before start is syntactically valid per ISO 8601)", - "data": "1985W261T103000/1985W155T232050", - "valid": true - }, - { - "description": "Invalid - start hour 99", - "data": "1985W155T992050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - end hour 99", - "data": "1985W155T232050/1985W261T993000", - "valid": false - }, - { - "description": "Invalid - start minute 99", - "data": "1985W155T239950/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - end minute 99", - "data": "1985W155T232050/1985W261T109900", - "valid": false - }, - { - "description": "Invalid - start second 99", - "data": "1985W155T232099/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - end second 99", - "data": "1985W155T232050/1985W261T103099", - "valid": false - }, - { - "description": "Invalid - letter in start year", - "data": "I985W155T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - letter in end year", - "data": "1985W155T232050/I985W261T103000", - "valid": false - }, - { - "description": "Invalid - letter in start week", - "data": "1985WI55T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - letter in end week", - "data": "1985W155T232050/1985WI61T103000", - "valid": false - }, - { - "description": "Invalid - letter in start day", - "data": "1985W15IT232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - letter in end day", - "data": "1985W155T232050/1985W26IT103000", - "valid": false - }, - { - "description": "Invalid - letter in start hour", - "data": "1985W155TI32050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - letter in end hour", - "data": "1985W155T232050/1985W261TI03000", - "valid": false - }, - { - "description": "Invalid - letter in start minute", - "data": "1985W155T23I050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - letter in end minute", - "data": "1985W155T232050/1985W261T10I000", - "valid": false - }, - { - "description": "Invalid - letter in start second", - "data": "1985W155T2320I0/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - letter in end second", - "data": "1985W155T232050/1985W261T1030I0", - "valid": false - }, - { - "description": "Invalid - too short start datetime", - "data": "1985W155T23205/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - too short end datetime", - "data": "1985W155T232050/1985W261T10300", - "valid": false - }, - { - "description": "Invalid - too long start datetime", - "data": "1985W155T2320500/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - too long end datetime", - "data": "1985W155T232050/1985W261T1030000", - "valid": false - }, - { - "description": "Invalid - extra character at start", - "data": "X1985W155T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - extra character at end", - "data": "1985W155T232050/1985W261T103000X", - "valid": false - }, - { - "description": "Invalid - extra character in middle", - "data": "1985W155T232050X/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - space in start date", - "data": "1985W15 5T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - space in end date", - "data": "1985W155T232050/1985W26 1T103000", - "valid": false - }, - { - "description": "Invalid - space in start time", - "data": "1985W155T23 2050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - space in end time", - "data": "1985W155T232050/1985W261T10 3000", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/interval/start-end-week-extended/v1.test.json b/test/iso/datetime/2019/interval/start-end-week-extended/v1.test.json deleted file mode 100644 index 9f56ab62..00000000 --- a/test/iso/datetime/2019/interval/start-end-week-extended/v1.test.json +++ /dev/null @@ -1,445 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/interval/start-end-week-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985155232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - week 15 day 5 to week 26 day 1 of 1985", - "data": "1985-W15-5T23:20:50/1985-W26-1T10:30:00", - "valid": true - }, - { - "description": "Valid - week 01 day 1 to week 52 day 7 of 2000", - "data": "2000-W01-1T00:00:00/2000-W52-7T23:59:59", - "valid": true - }, - { - "description": "Valid - week 01 day 1 to week 52 day 7 of 2023", - "data": "2023-W01-1T12:00:00/2023-W52-7T18:00:00", - "valid": true - }, - { - "description": "Valid - same week interval", - "data": "2023-W15-1T12:00:00/2023-W15-5T18:00:00", - "valid": true - }, - { - "description": "Valid - cross year boundary", - "data": "2022-W52-7T23:00:00/2023-W01-1T01:00:00", - "valid": true - }, - { - "description": "Valid - with leap second (60 seconds)", - "data": "1985-W15-5T23:59:60/1985-W15-6T00:00:00", - "valid": true - }, - { - "description": "Valid - midnight to midnight", - "data": "2023-W01-1T00:00:00/2023-W01-2T00:00:00", - "valid": true - }, - { - "description": "Valid - week 53 (some years have 53 weeks)", - "data": "2020-W53-1T00:00:00/2021-W01-1T00:00:00", - "valid": true - }, - { - "description": "Invalid - missing separator slash", - "data": "1985-W15-5T23:20:501985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - basic format (no hyphens or colons)", - "data": "1985W155T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - mixed formats (basic start, extended end)", - "data": "1985W155T232050/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - mixed formats (extended start, basic end)", - "data": "1985-W15-5T23:20:50/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - missing end datetime", - "data": "1985-W15-5T23:20:50/", - "valid": false - }, - { - "description": "Invalid - missing start datetime", - "data": "/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - only separator", - "data": "/", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - spaces around separator", - "data": "1985-W15-5T23:20:50 / 1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - start week 00", - "data": "1985-W00-5T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - start week 54", - "data": "1985-W54-5T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - end week 00", - "data": "1985-W15-5T23:20:50/1985-W00-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - end week 54", - "data": "1985-W15-5T23:20:50/1985-W54-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - start day 0", - "data": "1985-W15-0T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - start day 8", - "data": "1985-W15-8T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - end day 0", - "data": "1985-W15-5T23:20:50/1985-W26-0T10:30:00", - "valid": false - }, - { - "description": "Invalid - end day 8", - "data": "1985-W15-5T23:20:50/1985-W26-8T10:30:00", - "valid": false - }, - { - "description": "Invalid - start hour 24", - "data": "1985-W15-5T24:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - end hour 24", - "data": "1985-W15-5T23:20:50/1985-W26-1T24:30:00", - "valid": false - }, - { - "description": "Invalid - start minute 60", - "data": "1985-W15-5T23:60:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - end minute 60", - "data": "1985-W15-5T23:20:50/1985-W26-1T10:60:00", - "valid": false - }, - { - "description": "Invalid - start second 61", - "data": "1985-W15-5T23:20:61/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - end second 61", - "data": "1985-W15-5T23:20:50/1985-W26-1T10:30:61", - "valid": false - }, - { - "description": "Invalid - missing T separator in start", - "data": "1985-W15-523:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - missing T separator in end", - "data": "1985-W15-5T23:20:50/1985-W26-110:30:00", - "valid": false - }, - { - "description": "Invalid - lowercase t in start", - "data": "1985-W15-5t23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - lowercase t in end", - "data": "1985-W15-5T23:20:50/1985-W26-1t10:30:00", - "valid": false - }, - { - "description": "Invalid - lowercase w in start", - "data": "1985-w15-5T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - lowercase w in end", - "data": "1985-W15-5T23:20:50/1985-w26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - missing W designator in start", - "data": "1985-15-5T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - missing W designator in end", - "data": "1985-W15-5T23:20:50/1985-26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - duration instead of end datetime", - "data": "1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - duration instead of start datetime", - "data": "P1Y2M15DT12H30M0S/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - calendar date instead of week in start", - "data": "1985-04-12T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - calendar date instead of week in end", - "data": "1985-W15-5T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - ordinal date instead of week in start", - "data": "1985-102T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - ordinal date instead of week in end", - "data": "1985-W15-5T23:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - missing hyphen in start date", - "data": "1985W155T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - missing hyphen in end date", - "data": "1985-W15-5T23:20:50/1985W261T10:30:00", - "valid": false - }, - { - "description": "Invalid - missing colon in start time", - "data": "1985-W15-5T232050/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - missing colon in end time", - "data": "1985-W15-5T23:20:50/1985-W26-1T103000", - "valid": false - }, - { - "description": "Invalid - letters in start date", - "data": "ABCD-W15-5T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - letters in end date", - "data": "1985-W15-5T23:20:50/ABCD-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - double slash separator", - "data": "1985-W15-5T23:20:50//1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "1985-W15-5T23:20:50\\1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Valid - reversed order (end before start is syntactically valid per ISO 8601)", - "data": "1985-W26-1T10:30:00/1985-W15-5T23:20:50", - "valid": true - }, - { - "description": "Invalid - start hour 99", - "data": "1985-W15-5T99:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - end hour 99", - "data": "1985-W15-5T23:20:50/1985-W26-1T99:30:00", - "valid": false - }, - { - "description": "Invalid - start minute 99", - "data": "1985-W15-5T23:99:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - end minute 99", - "data": "1985-W15-5T23:20:50/1985-W26-1T10:99:00", - "valid": false - }, - { - "description": "Invalid - start second 99", - "data": "1985-W15-5T23:20:99/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - end second 99", - "data": "1985-W15-5T23:20:50/1985-W26-1T10:30:99", - "valid": false - }, - { - "description": "Invalid - letter in start year", - "data": "I985-W15-5T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in end year", - "data": "1985-W15-5T23:20:50/I985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in start week", - "data": "1985-WI5-5T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in end week", - "data": "1985-W15-5T23:20:50/1985-WI6-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in start day", - "data": "1985-W15-IT23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in end day", - "data": "1985-W15-5T23:20:50/1985-W26-IT10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in start hour", - "data": "1985-W15-5TI3:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in end hour", - "data": "1985-W15-5T23:20:50/1985-W26-1TI0:30:00", - "valid": false - }, - { - "description": "Invalid - letter in start minute", - "data": "1985-W15-5T23:I0:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in end minute", - "data": "1985-W15-5T23:20:50/1985-W26-1T10:I0:00", - "valid": false - }, - { - "description": "Invalid - letter in start second", - "data": "1985-W15-5T23:20:I0/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in end second", - "data": "1985-W15-5T23:20:50/1985-W26-1T10:30:I0", - "valid": false - }, - { - "description": "Invalid - too short start datetime", - "data": "1985-W15-5T23:20:5/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - too short end datetime", - "data": "1985-W15-5T23:20:50/1985-W26-1T10:30:0", - "valid": false - }, - { - "description": "Invalid - too long start datetime", - "data": "1985-W15-5T23:20:500/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - too long end datetime", - "data": "1985-W15-5T23:20:50/1985-W26-1T10:30:000", - "valid": false - }, - { - "description": "Invalid - extra character at start", - "data": "X1985-W15-5T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - extra character at end", - "data": "1985-W15-5T23:20:50/1985-W26-1T10:30:00X", - "valid": false - }, - { - "description": "Invalid - extra character in middle", - "data": "1985-W15-5T23:20:50X/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - space in start date", - "data": "1985-W15- 5T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - space in end date", - "data": "1985-W15-5T23:20:50/1985-W26- 1T10:30:00", - "valid": false - }, - { - "description": "Invalid - space in start time", - "data": "1985-W15-5T23: 20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - space in end time", - "data": "1985-W15-5T23:20:50/1985-W26-1T10: 30:00", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/recurring/duration-end-calendar-basic/v1.test.json b/test/iso/datetime/2019/recurring/duration-end-calendar-basic/v1.test.json deleted file mode 100644 index 643c8b76..00000000 --- a/test/iso/datetime/2019/recurring/duration-end-calendar-basic/v1.test.json +++ /dev/null @@ -1,480 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/recurring/duration-end-calendar-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 19850412232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - R12 with interval", - "data": "R12/P1Y2M15DT12H30M0S/19850412T232050", - "valid": true - }, - { - "description": "Valid - R without number (unbounded)", - "data": "R/P1Y2M15DT12H30M0S/19850412T232050", - "valid": true - }, - { - "description": "Valid - R0 (zero recurrences)", - "data": "R0/P1Y2M15DT12H30M0S/19850412T232050", - "valid": true - }, - { - "description": "Valid - R9999 (large number)", - "data": "R9999/P1Y2M15DT12H30M0S/19850412T232050", - "valid": true - }, - { - "description": "Valid - R1 (single recurrence)", - "data": "R1/P1Y2M15DT12H30M0S/19850412T232050", - "valid": true - }, - { - "description": "Valid - R52 weekly for a year", - "data": "R52/P1Y2M15DT12H30M0S/19850412T232050", - "valid": true - }, - { - "description": "Valid - R24 every hour for a day", - "data": "R24/P1Y2M15DT12H30M0S/19850412T232050", - "valid": true - }, - { - "description": "Valid - R7 daily for a week", - "data": "R7/P1Y2M15DT12H30M0S/19850412T232050", - "valid": true - }, - { - "description": "Invalid - missing R prefix", - "data": "12/P1Y2M15DT12H30M0S/19850412T232050", - "valid": false - }, - { - "description": "Invalid - lowercase r prefix", - "data": "r12/P1Y2M15DT12H30M0S/19850412T232050", - "valid": false - }, - { - "description": "Invalid - space after R", - "data": "R 12/P1Y2M15DT12H30M0S/19850412T232050", - "valid": false - }, - { - "description": "Invalid - negative recurrence number", - "data": "R-5/P1Y2M15DT12H30M0S/19850412T232050", - "valid": false - }, - { - "description": "Invalid - decimal recurrence number", - "data": "R12.5/P1Y2M15DT12H30M0S/19850412T232050", - "valid": false - }, - { - "description": "Invalid - double R", - "data": "RR12/P1Y2M15DT12H30M0S/19850412T232050", - "valid": false - }, - { - "description": "Invalid - R with plus sign", - "data": "R+12/P1Y2M15DT12H30M0S/19850412T232050", - "valid": false - }, - { - "description": "Valid - full duration", - "data": "R12/P1Y2M15DT12H30M0S/19850412T232050", - "valid": true - }, - { - "description": "Valid - only years duration", - "data": "R12/P1Y/20001231T235959", - "valid": true - }, - { - "description": "Valid - time duration", - "data": "R12/PT5H30M/20230615T180000", - "valid": true - }, - { - "description": "Valid - weeks duration", - "data": "R12/P2W/19850101T000000", - "valid": true - }, - { - "description": "Invalid - extended format datetime", - "data": "R12/P1Y/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - missing slash", - "data": "R12/P1Y19850412T232050", - "valid": false - }, - { - "description": "Invalid - start datetime instead of duration", - "data": "R12/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - empty duration", - "data": "R12/P/19850412T232050", - "valid": false - }, - { - "description": "Invalid - ordinal date end", - "data": "R12/P1Y/1985102T232050", - "valid": false - }, - { - "description": "Invalid - week date end", - "data": "R12/P1Y/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - end month 13", - "data": "R12/P1Y/19851312T232050", - "valid": false - }, - { - "description": "Invalid - end day 32", - "data": "R12/P1Y/19850432T232050", - "valid": false - }, - { - "description": "Invalid - end 31 April", - "data": "R12/P1Y/19850431T232050", - "valid": false - }, - { - "description": "Valid - leap second in end", - "data": "R12/P1D/19850412T235960", - "valid": true - }, - { - "description": "Valid - 29 February end", - "data": "R12/P1Y/20230229T120000", - "valid": true - }, - { - "description": "Invalid - end month 00", - "data": "R12/P1Y/19850012T232050", - "valid": false - }, - { - "description": "Invalid - end day 00", - "data": "R12/P1Y/19850400T232050", - "valid": false - }, - { - "description": "Invalid - end 30 February", - "data": "R12/P1Y/20230230T120000", - "valid": false - }, - { - "description": "Invalid - end 31 June", - "data": "R12/P1Y/19850631T120000", - "valid": false - }, - { - "description": "Invalid - end 31 September", - "data": "R12/P1Y/19850931T120000", - "valid": false - }, - { - "description": "Invalid - end 31 November", - "data": "R12/P1Y/19851131T120000", - "valid": false - }, - { - "description": "Invalid - end hour 24", - "data": "R12/P1Y/19850412T242050", - "valid": false - }, - { - "description": "Invalid - end hour 25", - "data": "R12/P1Y/19850412T252050", - "valid": false - }, - { - "description": "Invalid - end hour 99", - "data": "R12/P1Y/19850412T992050", - "valid": false - }, - { - "description": "Invalid - end minute 60", - "data": "R12/P1Y/19850412T236050", - "valid": false - }, - { - "description": "Invalid - end minute 99", - "data": "R12/P1Y/19850412T239950", - "valid": false - }, - { - "description": "Invalid - end second 61", - "data": "R12/P1Y/19850412T232061", - "valid": false - }, - { - "description": "Invalid - end second 99", - "data": "R12/P1Y/19850412T232099", - "valid": false - }, - { - "description": "Invalid - missing T separator in end", - "data": "R12/P1Y/19850412232050", - "valid": false - }, - { - "description": "Invalid - lowercase t in end", - "data": "R12/P1Y/19850412t232050", - "valid": false - }, - { - "description": "Invalid - duration without P prefix", - "data": "R12/1Y2M15DT12H30M0S/19850412T232050", - "valid": false - }, - { - "description": "Invalid - lowercase p in duration", - "data": "R12/p1Y/19850412T232050", - "valid": false - }, - { - "description": "Invalid - lowercase t in duration", - "data": "R12/P1Dt1H/19850412T232050", - "valid": false - }, - { - "description": "Invalid - empty time duration (only PT)", - "data": "R12/PT/19850412T232050", - "valid": false - }, - { - "description": "Invalid - double slash separator", - "data": "R12/P1Y//19850412T232050", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "R12/P1Y\\19850412T232050", - "valid": false - }, - { - "description": "Valid - zero duration components", - "data": "R12/P0Y0M0DT0H0M0S/20230101T000000", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in years", - "data": "R12/P1.5Y/20230101T120000", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in months", - "data": "R12/P3M15DT2.5H/20230101T120000", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in days", - "data": "R12/P10.5D/20230101T120000", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in hours", - "data": "R12/PT2.5H/20230101T120000", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in minutes", - "data": "R12/PT45.5M/20230101T120000", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in seconds", - "data": "R12/PT10.123S/20230101T120000", - "valid": true - }, - { - "description": "Valid - decimal weeks", - "data": "R12/P1.5W/20230101T120000", - "valid": true - }, - { - "description": "Invalid - duration wrong component order (M before Y)", - "data": "R12/P6M3Y/19850412T232050", - "valid": false - }, - { - "description": "Invalid - duration wrong component order (D before M)", - "data": "R12/P15D6M/19850412T232050", - "valid": false - }, - { - "description": "Invalid - duration time without T designator", - "data": "R12/P1D1H/19850412T232050", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with other units", - "data": "R12/P1W2D/19850412T232050", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with years", - "data": "R12/P1Y2W/19850412T232050", - "valid": false - }, - { - "description": "Invalid - duration weeks with time", - "data": "R12/P1WT1H/19850412T232050", - "valid": false - }, - { - "description": "Valid - large year value", - "data": "R12/P500Y/20230101T000000", - "valid": true - }, - { - "description": "Valid - large day value", - "data": "R12/P500D/20230101T000000", - "valid": true - }, - { - "description": "Valid - large hour value", - "data": "R12/PT100H/20230101T000000", - "valid": true - }, - { - "description": "Valid - 13 months", - "data": "R12/P13M/20230101T000000", - "valid": true - }, - { - "description": "Invalid - too short", - "data": "R12/P1Y/19850412T23205", - "valid": false - }, - { - "description": "Invalid - too long", - "data": "R12/P1Y/19850412T2320500", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "R12/P1Y/19850412T232050X", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning of duration", - "data": "R12/XP1Y/19850412T232050", - "valid": false - }, - { - "description": "Invalid - spaces in datetime", - "data": "R12/P1Y/1985 04 12T23 20 50", - "valid": false - }, - { - "description": "Invalid - letter in year", - "data": "R12/P1Y/I9850412T232050", - "valid": false - }, - { - "description": "Invalid - letter in month", - "data": "R12/P1Y/1985O412T232050", - "valid": false - }, - { - "description": "Invalid - letter in day", - "data": "R12/P1Y/198504I2T232050", - "valid": false - }, - { - "description": "Invalid - letter in hour", - "data": "R12/P1Y/19850412TI32050", - "valid": false - }, - { - "description": "Invalid - letter in minute", - "data": "R12/P1Y/19850412T23I050", - "valid": false - }, - { - "description": "Invalid - letter in second", - "data": "R12/P1Y/19850412T2320I0", - "valid": false - }, - { - "description": "Invalid - duration with spaces", - "data": "R12/P1Y 2M/19850412T232050", - "valid": false - }, - { - "description": "Invalid - duration with extra slash", - "data": "R12/P1Y/2M/19850412T232050", - "valid": false - }, - { - "description": "Valid - PT60M (durations can exceed calendar limits)", - "data": "R12/PT60M/19850412T232050", - "valid": true - }, - { - "description": "Valid - PT60S (durations can exceed calendar limits)", - "data": "R12/PT60S/19850412T232050", - "valid": true - }, - { - "description": "Valid - PT25H (durations can exceed calendar limits)", - "data": "R12/PT25H/19850412T232050", - "valid": true - }, - { - "description": "Valid - P32D (durations can exceed calendar limits)", - "data": "R12/P32D/19850412T232050", - "valid": true - }, - { - "description": "Invalid - missing end datetime", - "data": "R12/P1Y2M15DT12H30M0S/", - "valid": false - }, - { - "description": "Invalid - only separator", - "data": "R12//", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "R12/", - "valid": false - }, - { - "description": "Invalid - spaces around separator", - "data": "R12/P1Y / 19850412T232050", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/recurring/duration-end-calendar-extended/v1.test.json b/test/iso/datetime/2019/recurring/duration-end-calendar-extended/v1.test.json deleted file mode 100644 index 391d1ab5..00000000 --- a/test/iso/datetime/2019/recurring/duration-end-calendar-extended/v1.test.json +++ /dev/null @@ -1,455 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/recurring/duration-end-calendar-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 19850412232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - R12 with interval", - "data": "R12/P1Y2M15DT12H30M0S/1985-04-12T23:20:50", - "valid": true - }, - { - "description": "Valid - R without number (unbounded)", - "data": "R/P1Y2M15DT12H30M0S/1985-04-12T23:20:50", - "valid": true - }, - { - "description": "Valid - R0 (zero recurrences)", - "data": "R0/P1Y2M15DT12H30M0S/1985-04-12T23:20:50", - "valid": true - }, - { - "description": "Valid - R9999 (large number)", - "data": "R9999/P1Y2M15DT12H30M0S/1985-04-12T23:20:50", - "valid": true - }, - { - "description": "Valid - R1 (single recurrence)", - "data": "R1/P1Y2M15DT12H30M0S/1985-04-12T23:20:50", - "valid": true - }, - { - "description": "Valid - R52 weekly for a year", - "data": "R52/P1Y2M15DT12H30M0S/1985-04-12T23:20:50", - "valid": true - }, - { - "description": "Valid - R24 every hour for a day", - "data": "R24/P1Y2M15DT12H30M0S/1985-04-12T23:20:50", - "valid": true - }, - { - "description": "Valid - R7 daily for a week", - "data": "R7/P1Y2M15DT12H30M0S/1985-04-12T23:20:50", - "valid": true - }, - { - "description": "Invalid - missing R prefix", - "data": "12/P1Y2M15DT12H30M0S/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - lowercase r prefix", - "data": "r12/P1Y2M15DT12H30M0S/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - space after R", - "data": "R 12/P1Y2M15DT12H30M0S/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - negative recurrence number", - "data": "R-5/P1Y2M15DT12H30M0S/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - decimal recurrence number", - "data": "R12.5/P1Y2M15DT12H30M0S/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - double R", - "data": "RR12/P1Y2M15DT12H30M0S/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - R with plus sign", - "data": "R+12/P1Y2M15DT12H30M0S/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Valid - full duration", - "data": "R12/P1Y2M15DT12H30M0S/1985-04-12T23:20:50", - "valid": true - }, - { - "description": "Valid - only years duration", - "data": "R12/P1Y/2000-12-31T23:59:59", - "valid": true - }, - { - "description": "Valid - time duration", - "data": "R12/PT5H30M/2023-06-15T18:00:00", - "valid": true - }, - { - "description": "Valid - weeks duration", - "data": "R12/P2W/1985-01-01T00:00:00", - "valid": true - }, - { - "description": "Invalid - basic format datetime", - "data": "R12/P1Y/19850412T232050", - "valid": false - }, - { - "description": "Invalid - missing slash", - "data": "R12/P1Y1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - start datetime instead of duration", - "data": "R12/1985-04-12T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - empty duration", - "data": "R12/P/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - ordinal date end", - "data": "R12/P1Y/1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - week date end", - "data": "R12/P1Y/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - end month 13", - "data": "R12/P1Y/1985-13-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - end day 32", - "data": "R12/P1Y/1985-04-32T23:20:50", - "valid": false - }, - { - "description": "Invalid - end 31 April", - "data": "R12/P1Y/1985-04-31T23:20:50", - "valid": false - }, - { - "description": "Valid - leap second in end", - "data": "R12/P1D/1985-04-12T23:59:60", - "valid": true - }, - { - "description": "Valid - 29 February end", - "data": "R12/P1Y/2023-02-29T12:00:00", - "valid": true - }, - { - "description": "Invalid - end month 00", - "data": "R12/P1Y/1985-00-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - end day 00", - "data": "R12/P1Y/1985-04-00T23:20:50", - "valid": false - }, - { - "description": "Invalid - end 30 February", - "data": "R12/P1Y/2023-02-30T12:00:00", - "valid": false - }, - { - "description": "Invalid - end 31 June", - "data": "R12/P1Y/1985-06-31T12:00:00", - "valid": false - }, - { - "description": "Invalid - end 31 September", - "data": "R12/P1Y/1985-09-31T12:00:00", - "valid": false - }, - { - "description": "Invalid - end 31 November", - "data": "R12/P1Y/1985-11-31T12:00:00", - "valid": false - }, - { - "description": "Invalid - end hour 24", - "data": "R12/P1Y/1985-04-12T24:20:50", - "valid": false - }, - { - "description": "Invalid - end hour 25", - "data": "R12/P1Y/1985-04-12T25:20:50", - "valid": false - }, - { - "description": "Invalid - end hour 99", - "data": "R12/P1Y/1985-04-12T99:20:50", - "valid": false - }, - { - "description": "Invalid - end minute 60", - "data": "R12/P1Y/1985-04-12T23:60:50", - "valid": false - }, - { - "description": "Invalid - end minute 99", - "data": "R12/P1Y/1985-04-12T23:99:50", - "valid": false - }, - { - "description": "Invalid - end second 61", - "data": "R12/P1Y/1985-04-12T23:20:61", - "valid": false - }, - { - "description": "Invalid - end second 99", - "data": "R12/P1Y/1985-04-12T23:20:99", - "valid": false - }, - { - "description": "Invalid - missing T separator in end", - "data": "R12/P1Y/1985-04-12 23:20:50", - "valid": false - }, - { - "description": "Invalid - lowercase t in end", - "data": "R12/P1Y/1985-04-12t23:20:50", - "valid": false - }, - { - "description": "Invalid - duration without P prefix", - "data": "R12/1Y2M15DT12H30M0S/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - lowercase p in duration", - "data": "R12/p1Y/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - lowercase t in duration", - "data": "R12/P1Dt1H/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - empty time duration (only PT)", - "data": "R12/PT/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - double slash separator", - "data": "R12/P1Y//1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "R12/P1Y\\1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Valid - zero duration components", - "data": "R12/P0Y0M0DT0H0M0S/2023-01-01T00:00:00", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in years", - "data": "R12/P1.5Y/2023-01-01T12:00:00", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in months", - "data": "R12/P3M15DT2.5H/2023-01-01T12:00:00", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in days", - "data": "R12/P10.5D/2023-01-01T12:00:00", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in hours", - "data": "R12/PT2.5H/2023-01-01T12:00:00", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in minutes", - "data": "R12/PT45.5M/2023-01-01T12:00:00", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in seconds", - "data": "R12/PT10.123S/2023-01-01T12:00:00", - "valid": true - }, - { - "description": "Valid - decimal weeks", - "data": "R12/P1.5W/2023-01-01T12:00:00", - "valid": true - }, - { - "description": "Invalid - duration wrong component order (M before Y)", - "data": "R12/P6M3Y/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration wrong component order (D before M)", - "data": "R12/P15D6M/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration time without T designator", - "data": "R12/P1D1H/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with other units", - "data": "R12/P1W2D/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with years", - "data": "R12/P1Y2W/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration weeks with time", - "data": "R12/P1WT1H/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Valid - large year value", - "data": "R12/P500Y/2023-01-01T00:00:00", - "valid": true - }, - { - "description": "Valid - large day value", - "data": "R12/P500D/2023-01-01T00:00:00", - "valid": true - }, - { - "description": "Valid - large hour value", - "data": "R12/PT100H/2023-01-01T00:00:00", - "valid": true - }, - { - "description": "Valid - 13 months", - "data": "R12/P13M/2023-01-01T00:00:00", - "valid": true - }, - { - "description": "Invalid - letter in year", - "data": "R12/P1Y/I985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - letter in month", - "data": "R12/P1Y/1985-O4-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - letter in day", - "data": "R12/P1Y/1985-04-I2T23:20:50", - "valid": false - }, - { - "description": "Invalid - letter in hour", - "data": "R12/P1Y/1985-04-12TI3:20:50", - "valid": false - }, - { - "description": "Invalid - letter in minute", - "data": "R12/P1Y/1985-04-12T23:I0:50", - "valid": false - }, - { - "description": "Invalid - letter in second", - "data": "R12/P1Y/1985-04-12T23:20:I0", - "valid": false - }, - { - "description": "Invalid - duration with spaces", - "data": "R12/P1Y 2M/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration with extra slash", - "data": "R12/P1Y/2M/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Valid - PT60M (durations can exceed calendar limits)", - "data": "R12/PT60M/1985-04-12T23:20:50", - "valid": true - }, - { - "description": "Valid - PT60S (durations can exceed calendar limits)", - "data": "R12/PT60S/1985-04-12T23:20:50", - "valid": true - }, - { - "description": "Valid - PT25H (durations can exceed calendar limits)", - "data": "R12/PT25H/1985-04-12T23:20:50", - "valid": true - }, - { - "description": "Valid - P32D (durations can exceed calendar limits)", - "data": "R12/P32D/1985-04-12T23:20:50", - "valid": true - }, - { - "description": "Invalid - missing end datetime", - "data": "R12/P1Y2M15DT12H30M0S/", - "valid": false - }, - { - "description": "Invalid - only separator", - "data": "R12//", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "R12/", - "valid": false - }, - { - "description": "Invalid - spaces around separator", - "data": "R12/P1Y / 1985-04-12T23:20:50", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/recurring/duration-end-ordinal-basic/v1.test.json b/test/iso/datetime/2019/recurring/duration-end-ordinal-basic/v1.test.json deleted file mode 100644 index 365266c6..00000000 --- a/test/iso/datetime/2019/recurring/duration-end-ordinal-basic/v1.test.json +++ /dev/null @@ -1,435 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/recurring/duration-end-ordinal-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985102232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - R12 with interval", - "data": "R12/P1Y2M15DT12H30M0S/1985102T232050", - "valid": true - }, - { - "description": "Valid - R without number (unbounded)", - "data": "R/P1Y2M15DT12H30M0S/1985102T232050", - "valid": true - }, - { - "description": "Valid - R0 (zero recurrences)", - "data": "R0/P1Y2M15DT12H30M0S/1985102T232050", - "valid": true - }, - { - "description": "Valid - R9999 (large number)", - "data": "R9999/P1Y2M15DT12H30M0S/1985102T232050", - "valid": true - }, - { - "description": "Valid - R1 (single recurrence)", - "data": "R1/P1Y2M15DT12H30M0S/1985102T232050", - "valid": true - }, - { - "description": "Valid - R52 weekly for a year", - "data": "R52/P1Y2M15DT12H30M0S/1985102T232050", - "valid": true - }, - { - "description": "Valid - R24 every hour for a day", - "data": "R24/P1Y2M15DT12H30M0S/1985102T232050", - "valid": true - }, - { - "description": "Valid - R7 daily for a week", - "data": "R7/P1Y2M15DT12H30M0S/1985102T232050", - "valid": true - }, - { - "description": "Invalid - missing R prefix", - "data": "12/P1Y2M15DT12H30M0S/1985102T232050", - "valid": false - }, - { - "description": "Invalid - lowercase r prefix", - "data": "r12/P1Y2M15DT12H30M0S/1985102T232050", - "valid": false - }, - { - "description": "Invalid - space after R", - "data": "R 12/P1Y2M15DT12H30M0S/1985102T232050", - "valid": false - }, - { - "description": "Invalid - negative recurrence number", - "data": "R-5/P1Y2M15DT12H30M0S/1985102T232050", - "valid": false - }, - { - "description": "Invalid - decimal recurrence number", - "data": "R12.5/P1Y2M15DT12H30M0S/1985102T232050", - "valid": false - }, - { - "description": "Invalid - double R", - "data": "RR12/P1Y2M15DT12H30M0S/1985102T232050", - "valid": false - }, - { - "description": "Invalid - R with plus sign", - "data": "R+12/P1Y2M15DT12H30M0S/1985102T232050", - "valid": false - }, - { - "description": "Valid - full duration", - "data": "R12/P1Y2M15DT12H30M0S/1985102T232050", - "valid": true - }, - { - "description": "Valid - only years duration", - "data": "R12/P1Y/2000366T235959", - "valid": true - }, - { - "description": "Valid - time duration", - "data": "R12/PT5H30M/2023166T180000", - "valid": true - }, - { - "description": "Valid - weeks duration", - "data": "R12/P2W/1985001T000000", - "valid": true - }, - { - "description": "Invalid - extended format", - "data": "R12/P1Y/1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - missing slash", - "data": "R12/P1Y1985102T232050", - "valid": false - }, - { - "description": "Invalid - empty duration", - "data": "R12/P/1985102T232050", - "valid": false - }, - { - "description": "Invalid - calendar date end", - "data": "R12/P1Y/19850412T232050", - "valid": false - }, - { - "description": "Invalid - week date end", - "data": "R12/P1Y/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - day 000", - "data": "R12/P1Y/1985000T232050", - "valid": false - }, - { - "description": "Invalid - day 367", - "data": "R12/P1Y/1985367T232050", - "valid": false - }, - { - "description": "Valid - day 366", - "data": "R12/P1Y/2020366T000000", - "valid": true - }, - { - "description": "Invalid - end hour 24", - "data": "R12/P1Y/1985102T242050", - "valid": false - }, - { - "description": "Invalid - end hour 25", - "data": "R12/P1Y/1985102T252050", - "valid": false - }, - { - "description": "Invalid - end hour 99", - "data": "R12/P1Y/1985102T992050", - "valid": false - }, - { - "description": "Invalid - end minute 60", - "data": "R12/P1Y/1985102T236050", - "valid": false - }, - { - "description": "Invalid - end minute 99", - "data": "R12/P1Y/1985102T239950", - "valid": false - }, - { - "description": "Invalid - end second 61", - "data": "R12/P1Y/1985102T232061", - "valid": false - }, - { - "description": "Invalid - end second 99", - "data": "R12/P1Y/1985102T232099", - "valid": false - }, - { - "description": "Invalid - missing T separator in end", - "data": "R12/P1Y/1985102232050", - "valid": false - }, - { - "description": "Invalid - lowercase t in end", - "data": "R12/P1Y/1985102t232050", - "valid": false - }, - { - "description": "Invalid - duration without P prefix", - "data": "R12/1Y2M15DT12H30M0S/1985102T232050", - "valid": false - }, - { - "description": "Invalid - lowercase p in duration", - "data": "R12/p1Y/1985102T232050", - "valid": false - }, - { - "description": "Invalid - lowercase t in duration", - "data": "R12/P1Dt1H/1985102T232050", - "valid": false - }, - { - "description": "Invalid - empty time duration (only PT)", - "data": "R12/PT/1985102T232050", - "valid": false - }, - { - "description": "Invalid - double slash separator", - "data": "R12/P1Y//1985102T232050", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "R12/P1Y\\1985102T232050", - "valid": false - }, - { - "description": "Valid - leap second in end", - "data": "R12/P1D/1985102T235960", - "valid": true - }, - { - "description": "Valid - zero duration components", - "data": "R12/P0Y0M0DT0H0M0S/2023001T000000", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in years", - "data": "R12/P1.5Y/2023001T120000", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in months", - "data": "R12/P3M15DT2.5H/2023001T120000", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in days", - "data": "R12/P10.5D/2023001T120000", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in hours", - "data": "R12/PT2.5H/2023001T120000", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in minutes", - "data": "R12/PT45.5M/2023001T120000", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in seconds", - "data": "R12/PT10.123S/2023001T120000", - "valid": true - }, - { - "description": "Valid - decimal weeks", - "data": "R12/P1.5W/2023001T120000", - "valid": true - }, - { - "description": "Invalid - duration wrong component order (M before Y)", - "data": "R12/P6M3Y/1985102T232050", - "valid": false - }, - { - "description": "Invalid - duration wrong component order (D before M)", - "data": "R12/P15D6M/1985102T232050", - "valid": false - }, - { - "description": "Invalid - duration time without T designator", - "data": "R12/P1D1H/1985102T232050", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with other units", - "data": "R12/P1W2D/1985102T232050", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with years", - "data": "R12/P1Y2W/1985102T232050", - "valid": false - }, - { - "description": "Invalid - duration weeks with time", - "data": "R12/P1WT1H/1985102T232050", - "valid": false - }, - { - "description": "Valid - large year value", - "data": "R12/P500Y/2023001T000000", - "valid": true - }, - { - "description": "Valid - large day value", - "data": "R12/P500D/2023001T000000", - "valid": true - }, - { - "description": "Valid - large hour value", - "data": "R12/PT100H/2023001T000000", - "valid": true - }, - { - "description": "Valid - 13 months", - "data": "R12/P13M/2023001T000000", - "valid": true - }, - { - "description": "Invalid - too short", - "data": "R12/P1Y/1985102T23205", - "valid": false - }, - { - "description": "Invalid - too long", - "data": "R12/P1Y/1985102T2320500", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "R12/P1Y/1985102T232050X", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning of duration", - "data": "R12/XP1Y/1985102T232050", - "valid": false - }, - { - "description": "Invalid - spaces in datetime", - "data": "R12/P1Y/1985 102T23 20 50", - "valid": false - }, - { - "description": "Invalid - letter in year", - "data": "R12/P1Y/I985102T232050", - "valid": false - }, - { - "description": "Invalid - letter in day", - "data": "R12/P1Y/1985I02T232050", - "valid": false - }, - { - "description": "Invalid - letter in hour", - "data": "R12/P1Y/1985102TI32050", - "valid": false - }, - { - "description": "Invalid - letter in minute", - "data": "R12/P1Y/1985102T23I050", - "valid": false - }, - { - "description": "Invalid - letter in second", - "data": "R12/P1Y/1985102T2320I0", - "valid": false - }, - { - "description": "Invalid - duration with spaces", - "data": "R12/P1Y 2M/1985102T232050", - "valid": false - }, - { - "description": "Invalid - duration with extra slash", - "data": "R12/P1Y/2M/1985102T232050", - "valid": false - }, - { - "description": "Valid - PT60M (durations can exceed calendar limits)", - "data": "R12/PT60M/1985102T232050", - "valid": true - }, - { - "description": "Valid - PT60S (durations can exceed calendar limits)", - "data": "R12/PT60S/1985102T232050", - "valid": true - }, - { - "description": "Valid - PT25H (durations can exceed calendar limits)", - "data": "R12/PT25H/1985102T232050", - "valid": true - }, - { - "description": "Valid - P32D (durations can exceed calendar limits)", - "data": "R12/P32D/1985102T232050", - "valid": true - }, - { - "description": "Invalid - missing end datetime", - "data": "R12/P1Y2M15DT12H30M0S/", - "valid": false - }, - { - "description": "Invalid - only separator", - "data": "R12//", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "R12/", - "valid": false - }, - { - "description": "Invalid - spaces around separator", - "data": "R12/P1Y / 1985102T232050", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/recurring/duration-end-ordinal-extended/v1.test.json b/test/iso/datetime/2019/recurring/duration-end-ordinal-extended/v1.test.json deleted file mode 100644 index 50246117..00000000 --- a/test/iso/datetime/2019/recurring/duration-end-ordinal-extended/v1.test.json +++ /dev/null @@ -1,410 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/recurring/duration-end-ordinal-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985102232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - R12 with interval", - "data": "R12/P1Y2M15DT12H30M0S/1985-102T23:20:50", - "valid": true - }, - { - "description": "Valid - R without number (unbounded)", - "data": "R/P1Y2M15DT12H30M0S/1985-102T23:20:50", - "valid": true - }, - { - "description": "Valid - R0 (zero recurrences)", - "data": "R0/P1Y2M15DT12H30M0S/1985-102T23:20:50", - "valid": true - }, - { - "description": "Valid - R9999 (large number)", - "data": "R9999/P1Y2M15DT12H30M0S/1985-102T23:20:50", - "valid": true - }, - { - "description": "Valid - R1 (single recurrence)", - "data": "R1/P1Y2M15DT12H30M0S/1985-102T23:20:50", - "valid": true - }, - { - "description": "Valid - R52 weekly for a year", - "data": "R52/P1Y2M15DT12H30M0S/1985-102T23:20:50", - "valid": true - }, - { - "description": "Valid - R24 every hour for a day", - "data": "R24/P1Y2M15DT12H30M0S/1985-102T23:20:50", - "valid": true - }, - { - "description": "Valid - R7 daily for a week", - "data": "R7/P1Y2M15DT12H30M0S/1985-102T23:20:50", - "valid": true - }, - { - "description": "Invalid - missing R prefix", - "data": "12/P1Y2M15DT12H30M0S/1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - lowercase r prefix", - "data": "r12/P1Y2M15DT12H30M0S/1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - space after R", - "data": "R 12/P1Y2M15DT12H30M0S/1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - negative recurrence number", - "data": "R-5/P1Y2M15DT12H30M0S/1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - decimal recurrence number", - "data": "R12.5/P1Y2M15DT12H30M0S/1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - double R", - "data": "RR12/P1Y2M15DT12H30M0S/1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - R with plus sign", - "data": "R+12/P1Y2M15DT12H30M0S/1985-102T23:20:50", - "valid": false - }, - { - "description": "Valid - full duration", - "data": "R12/P1Y2M15DT12H30M0S/1985-102T23:20:50", - "valid": true - }, - { - "description": "Valid - only years duration", - "data": "R12/P1Y/2000-366T23:59:59", - "valid": true - }, - { - "description": "Valid - time duration", - "data": "R12/PT5H30M/2023-166T18:00:00", - "valid": true - }, - { - "description": "Valid - weeks duration", - "data": "R12/P2W/1985-001T00:00:00", - "valid": true - }, - { - "description": "Invalid - basic format", - "data": "R12/P1Y/1985102T232050", - "valid": false - }, - { - "description": "Invalid - missing slash", - "data": "R12/P1Y1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - empty duration", - "data": "R12/P/1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - calendar date end", - "data": "R12/P1Y/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - week date end", - "data": "R12/P1Y/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - day 000", - "data": "R12/P1Y/1985-000T23:20:50", - "valid": false - }, - { - "description": "Invalid - day 367", - "data": "R12/P1Y/1985-367T23:20:50", - "valid": false - }, - { - "description": "Valid - day 366", - "data": "R12/P1Y/2020-366T00:00:00", - "valid": true - }, - { - "description": "Invalid - end hour 24", - "data": "R12/P1Y/1985-102T24:20:50", - "valid": false - }, - { - "description": "Invalid - end hour 25", - "data": "R12/P1Y/1985-102T25:20:50", - "valid": false - }, - { - "description": "Invalid - end hour 99", - "data": "R12/P1Y/1985-102T99:20:50", - "valid": false - }, - { - "description": "Invalid - end minute 60", - "data": "R12/P1Y/1985-102T23:60:50", - "valid": false - }, - { - "description": "Invalid - end minute 99", - "data": "R12/P1Y/1985-102T23:99:50", - "valid": false - }, - { - "description": "Invalid - end second 61", - "data": "R12/P1Y/1985-102T23:20:61", - "valid": false - }, - { - "description": "Invalid - end second 99", - "data": "R12/P1Y/1985-102T23:20:99", - "valid": false - }, - { - "description": "Invalid - missing T separator in end", - "data": "R12/P1Y/1985-102 23:20:50", - "valid": false - }, - { - "description": "Invalid - lowercase t in end", - "data": "R12/P1Y/1985-102t23:20:50", - "valid": false - }, - { - "description": "Invalid - duration without P prefix", - "data": "R12/1Y2M15DT12H30M0S/1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - lowercase p in duration", - "data": "R12/p1Y/1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - lowercase t in duration", - "data": "R12/P1Dt1H/1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - empty time duration (only PT)", - "data": "R12/PT/1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - double slash separator", - "data": "R12/P1Y//1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "R12/P1Y\\1985-102T23:20:50", - "valid": false - }, - { - "description": "Valid - leap second in end", - "data": "R12/P1D/1985-102T23:59:60", - "valid": true - }, - { - "description": "Valid - zero duration components", - "data": "R12/P0Y0M0DT0H0M0S/2023-001T00:00:00", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in years", - "data": "R12/P1.5Y/2023-001T12:00:00", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in months", - "data": "R12/P3M15DT2.5H/2023-001T12:00:00", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in days", - "data": "R12/P10.5D/2023-001T12:00:00", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in hours", - "data": "R12/PT2.5H/2023-001T12:00:00", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in minutes", - "data": "R12/PT45.5M/2023-001T12:00:00", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in seconds", - "data": "R12/PT10.123S/2023-001T12:00:00", - "valid": true - }, - { - "description": "Valid - decimal weeks", - "data": "R12/P1.5W/2023-001T12:00:00", - "valid": true - }, - { - "description": "Invalid - duration wrong component order (M before Y)", - "data": "R12/P6M3Y/1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration wrong component order (D before M)", - "data": "R12/P15D6M/1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration time without T designator", - "data": "R12/P1D1H/1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with other units", - "data": "R12/P1W2D/1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with years", - "data": "R12/P1Y2W/1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration weeks with time", - "data": "R12/P1WT1H/1985-102T23:20:50", - "valid": false - }, - { - "description": "Valid - large year value", - "data": "R12/P500Y/2023-001T00:00:00", - "valid": true - }, - { - "description": "Valid - large day value", - "data": "R12/P500D/2023-001T00:00:00", - "valid": true - }, - { - "description": "Valid - large hour value", - "data": "R12/PT100H/2023-001T00:00:00", - "valid": true - }, - { - "description": "Valid - 13 months", - "data": "R12/P13M/2023-001T00:00:00", - "valid": true - }, - { - "description": "Invalid - letter in year", - "data": "R12/P1Y/I985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - letter in day", - "data": "R12/P1Y/1985-I02T23:20:50", - "valid": false - }, - { - "description": "Invalid - letter in hour", - "data": "R12/P1Y/1985-102TI3:20:50", - "valid": false - }, - { - "description": "Invalid - letter in minute", - "data": "R12/P1Y/1985-102T23:I0:50", - "valid": false - }, - { - "description": "Invalid - letter in second", - "data": "R12/P1Y/1985-102T23:20:I0", - "valid": false - }, - { - "description": "Invalid - duration with spaces", - "data": "R12/P1Y 2M/1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration with extra slash", - "data": "R12/P1Y/2M/1985-102T23:20:50", - "valid": false - }, - { - "description": "Valid - PT60M (durations can exceed calendar limits)", - "data": "R12/PT60M/1985-102T23:20:50", - "valid": true - }, - { - "description": "Valid - PT60S (durations can exceed calendar limits)", - "data": "R12/PT60S/1985-102T23:20:50", - "valid": true - }, - { - "description": "Valid - PT25H (durations can exceed calendar limits)", - "data": "R12/PT25H/1985-102T23:20:50", - "valid": true - }, - { - "description": "Valid - P32D (durations can exceed calendar limits)", - "data": "R12/P32D/1985-102T23:20:50", - "valid": true - }, - { - "description": "Invalid - missing end datetime", - "data": "R12/P1Y2M15DT12H30M0S/", - "valid": false - }, - { - "description": "Invalid - only separator", - "data": "R12//", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "R12/", - "valid": false - }, - { - "description": "Invalid - spaces around separator", - "data": "R12/P1Y / 1985-102T23:20:50", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/recurring/duration-end-week-basic/v1.test.json b/test/iso/datetime/2019/recurring/duration-end-week-basic/v1.test.json deleted file mode 100644 index 99daa6e4..00000000 --- a/test/iso/datetime/2019/recurring/duration-end-week-basic/v1.test.json +++ /dev/null @@ -1,465 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/recurring/duration-end-week-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985155232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - R12 with interval", - "data": "R12/P1Y2M15DT12H30M0S/1985W155T232050", - "valid": true - }, - { - "description": "Valid - R without number (unbounded)", - "data": "R/P1Y2M15DT12H30M0S/1985W155T232050", - "valid": true - }, - { - "description": "Valid - R0 (zero recurrences)", - "data": "R0/P1Y2M15DT12H30M0S/1985W155T232050", - "valid": true - }, - { - "description": "Valid - R9999 (large number)", - "data": "R9999/P1Y2M15DT12H30M0S/1985W155T232050", - "valid": true - }, - { - "description": "Valid - R1 (single recurrence)", - "data": "R1/P1Y2M15DT12H30M0S/1985W155T232050", - "valid": true - }, - { - "description": "Valid - R52 weekly for a year", - "data": "R52/P1Y2M15DT12H30M0S/1985W155T232050", - "valid": true - }, - { - "description": "Valid - R24 every hour for a day", - "data": "R24/P1Y2M15DT12H30M0S/1985W155T232050", - "valid": true - }, - { - "description": "Valid - R7 daily for a week", - "data": "R7/P1Y2M15DT12H30M0S/1985W155T232050", - "valid": true - }, - { - "description": "Invalid - missing R prefix", - "data": "12/P1Y2M15DT12H30M0S/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - lowercase r prefix", - "data": "r12/P1Y2M15DT12H30M0S/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - space after R", - "data": "R 12/P1Y2M15DT12H30M0S/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - negative recurrence number", - "data": "R-5/P1Y2M15DT12H30M0S/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - decimal recurrence number", - "data": "R12.5/P1Y2M15DT12H30M0S/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - double R", - "data": "RR12/P1Y2M15DT12H30M0S/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - R with plus sign", - "data": "R+12/P1Y2M15DT12H30M0S/1985W155T232050", - "valid": false - }, - { - "description": "Valid - full duration", - "data": "R12/P1Y2M15DT12H30M0S/1985W155T232050", - "valid": true - }, - { - "description": "Valid - only years duration", - "data": "R12/P1Y/2000W527T235959", - "valid": true - }, - { - "description": "Valid - time duration", - "data": "R12/PT5H30M/2023W241T180000", - "valid": true - }, - { - "description": "Valid - weeks duration", - "data": "R12/P2W/1985W011T000000", - "valid": true - }, - { - "description": "Invalid - extended format", - "data": "R12/P1Y/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - missing slash", - "data": "R12/P1Y1985W155T232050", - "valid": false - }, - { - "description": "Invalid - empty duration", - "data": "R12/P/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - calendar date end", - "data": "R12/P1Y/19850412T232050", - "valid": false - }, - { - "description": "Invalid - ordinal date end", - "data": "R12/P1Y/1985102T232050", - "valid": false - }, - { - "description": "Invalid - week 00", - "data": "R12/P1Y/1985W005T232050", - "valid": false - }, - { - "description": "Invalid - week 54", - "data": "R12/P1Y/1985W545T232050", - "valid": false - }, - { - "description": "Invalid - day 0", - "data": "R12/P1Y/1985W150T232050", - "valid": false - }, - { - "description": "Invalid - day 8", - "data": "R12/P1Y/1985W158T232050", - "valid": false - }, - { - "description": "Valid - week 53", - "data": "R12/P1Y/2020W531T000000", - "valid": true - }, - { - "description": "Invalid - end hour 24", - "data": "R12/P1Y/1985W155T242050", - "valid": false - }, - { - "description": "Invalid - end hour 25", - "data": "R12/P1Y/1985W155T252050", - "valid": false - }, - { - "description": "Invalid - end hour 99", - "data": "R12/P1Y/1985W155T992050", - "valid": false - }, - { - "description": "Invalid - end minute 60", - "data": "R12/P1Y/1985W155T236050", - "valid": false - }, - { - "description": "Invalid - end minute 99", - "data": "R12/P1Y/1985W155T239950", - "valid": false - }, - { - "description": "Invalid - end second 61", - "data": "R12/P1Y/1985W155T232061", - "valid": false - }, - { - "description": "Invalid - end second 99", - "data": "R12/P1Y/1985W155T232099", - "valid": false - }, - { - "description": "Invalid - missing T separator in end", - "data": "R12/P1Y/1985W155232050", - "valid": false - }, - { - "description": "Invalid - lowercase t in end", - "data": "R12/P1Y/1985W155t232050", - "valid": false - }, - { - "description": "Invalid - lowercase w in end", - "data": "R12/P1Y/1985w155T232050", - "valid": false - }, - { - "description": "Invalid - duration without P prefix", - "data": "R12/1Y2M15DT12H30M0S/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - lowercase p in duration", - "data": "R12/p1Y/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - lowercase t in duration", - "data": "R12/P1Dt1H/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - empty time duration (only PT)", - "data": "R12/PT/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - double slash separator", - "data": "R12/P1Y//1985W155T232050", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "R12/P1Y\\1985W155T232050", - "valid": false - }, - { - "description": "Valid - leap second in end", - "data": "R12/P1D/1985W155T235960", - "valid": true - }, - { - "description": "Valid - zero duration components", - "data": "R12/P0Y0M0DT0H0M0S/2023W011T000000", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in years", - "data": "R12/P1.5Y/2023W011T120000", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in months", - "data": "R12/P3M15DT2.5H/2023W011T120000", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in days", - "data": "R12/P10.5D/2023W011T120000", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in hours", - "data": "R12/PT2.5H/2023W011T120000", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in minutes", - "data": "R12/PT45.5M/2023W011T120000", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in seconds", - "data": "R12/PT10.123S/2023W011T120000", - "valid": true - }, - { - "description": "Valid - decimal weeks", - "data": "R12/P1.5W/2023W011T120000", - "valid": true - }, - { - "description": "Invalid - duration wrong component order (M before Y)", - "data": "R12/P6M3Y/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - duration wrong component order (D before M)", - "data": "R12/P15D6M/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - duration time without T designator", - "data": "R12/P1D1H/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with other units", - "data": "R12/P1W2D/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with years", - "data": "R12/P1Y2W/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - duration weeks with time", - "data": "R12/P1WT1H/1985W155T232050", - "valid": false - }, - { - "description": "Valid - large year value", - "data": "R12/P500Y/2023W011T000000", - "valid": true - }, - { - "description": "Valid - large day value", - "data": "R12/P500D/2023W011T000000", - "valid": true - }, - { - "description": "Valid - large hour value", - "data": "R12/PT100H/2023W011T000000", - "valid": true - }, - { - "description": "Valid - 13 months", - "data": "R12/P13M/2023W011T000000", - "valid": true - }, - { - "description": "Invalid - too short", - "data": "R12/P1Y/1985W155T23205", - "valid": false - }, - { - "description": "Invalid - too long", - "data": "R12/P1Y/1985W155T2320500", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "R12/P1Y/1985W155T232050X", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning of duration", - "data": "R12/XP1Y/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - spaces in datetime", - "data": "R12/P1Y/1985 W15 5T23 20 50", - "valid": false - }, - { - "description": "Invalid - letter in year", - "data": "R12/P1Y/I985W155T232050", - "valid": false - }, - { - "description": "Invalid - letter in week", - "data": "R12/P1Y/1985WI55T232050", - "valid": false - }, - { - "description": "Invalid - letter in day", - "data": "R12/P1Y/1985W15IT232050", - "valid": false - }, - { - "description": "Invalid - letter in hour", - "data": "R12/P1Y/1985W155TI32050", - "valid": false - }, - { - "description": "Invalid - letter in minute", - "data": "R12/P1Y/1985W155T23I050", - "valid": false - }, - { - "description": "Invalid - letter in second", - "data": "R12/P1Y/1985W155T2320I0", - "valid": false - }, - { - "description": "Invalid - duration with spaces", - "data": "R12/P1Y 2M/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - duration with extra slash", - "data": "R12/P1Y/2M/1985W155T232050", - "valid": false - }, - { - "description": "Valid - PT60M (durations can exceed calendar limits)", - "data": "R12/PT60M/1985W155T232050", - "valid": true - }, - { - "description": "Valid - PT60S (durations can exceed calendar limits)", - "data": "R12/PT60S/1985W155T232050", - "valid": true - }, - { - "description": "Valid - PT25H (durations can exceed calendar limits)", - "data": "R12/PT25H/1985W155T232050", - "valid": true - }, - { - "description": "Valid - P32D (durations can exceed calendar limits)", - "data": "R12/P32D/1985W155T232050", - "valid": true - }, - { - "description": "Invalid - missing end datetime", - "data": "R12/P1Y2M15DT12H30M0S/", - "valid": false - }, - { - "description": "Invalid - only separator", - "data": "R12//", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "R12/", - "valid": false - }, - { - "description": "Invalid - spaces around separator", - "data": "R12/P1Y / 1985W155T232050", - "valid": false - }, - { - "description": "Valid - week 01 day 1", - "data": "R12/P1Y/2023W011T120000", - "valid": true - }, - { - "description": "Valid - week 52 day 7", - "data": "R12/P1Y/2023W527T120000", - "valid": true - } - ] -} diff --git a/test/iso/datetime/2019/recurring/duration-end-week-extended/v1.test.json b/test/iso/datetime/2019/recurring/duration-end-week-extended/v1.test.json deleted file mode 100644 index 1631ea49..00000000 --- a/test/iso/datetime/2019/recurring/duration-end-week-extended/v1.test.json +++ /dev/null @@ -1,435 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/recurring/duration-end-week-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985155232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - R12 with interval", - "data": "R12/P1Y2M15DT12H30M0S/1985-W15-5T23:20:50", - "valid": true - }, - { - "description": "Valid - R without number (unbounded)", - "data": "R/P1Y2M15DT12H30M0S/1985-W15-5T23:20:50", - "valid": true - }, - { - "description": "Valid - R0 (zero recurrences)", - "data": "R0/P1Y2M15DT12H30M0S/1985-W15-5T23:20:50", - "valid": true - }, - { - "description": "Valid - R9999 (large number)", - "data": "R9999/P1Y2M15DT12H30M0S/1985-W15-5T23:20:50", - "valid": true - }, - { - "description": "Valid - R1 (single recurrence)", - "data": "R1/P1Y2M15DT12H30M0S/1985-W15-5T23:20:50", - "valid": true - }, - { - "description": "Valid - R52 weekly for a year", - "data": "R52/P1Y2M15DT12H30M0S/1985-W15-5T23:20:50", - "valid": true - }, - { - "description": "Valid - R24 every hour for a day", - "data": "R24/P1Y2M15DT12H30M0S/1985-W15-5T23:20:50", - "valid": true - }, - { - "description": "Valid - R7 daily for a week", - "data": "R7/P1Y2M15DT12H30M0S/1985-W15-5T23:20:50", - "valid": true - }, - { - "description": "Invalid - missing R prefix", - "data": "12/P1Y2M15DT12H30M0S/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - lowercase r prefix", - "data": "r12/P1Y2M15DT12H30M0S/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - space after R", - "data": "R 12/P1Y2M15DT12H30M0S/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - negative recurrence number", - "data": "R-5/P1Y2M15DT12H30M0S/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - decimal recurrence number", - "data": "R12.5/P1Y2M15DT12H30M0S/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - double R", - "data": "RR12/P1Y2M15DT12H30M0S/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - R with plus sign", - "data": "R+12/P1Y2M15DT12H30M0S/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Valid - full duration", - "data": "R12/P1Y2M15DT12H30M0S/1985-W15-5T23:20:50", - "valid": true - }, - { - "description": "Valid - only years duration", - "data": "R12/P1Y/2000-W52-7T23:59:59", - "valid": true - }, - { - "description": "Valid - time duration", - "data": "R12/PT5H30M/2023-W24-1T18:00:00", - "valid": true - }, - { - "description": "Valid - weeks duration", - "data": "R12/P2W/1985-W01-1T00:00:00", - "valid": true - }, - { - "description": "Invalid - basic format", - "data": "R12/P1Y/1985W155T232050", - "valid": false - }, - { - "description": "Invalid - missing slash", - "data": "R12/P1Y1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - empty duration", - "data": "R12/P/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - calendar date end", - "data": "R12/P1Y/1985-04-12T23:20:50", - "valid": false - }, - { - "description": "Invalid - ordinal date end", - "data": "R12/P1Y/1985-102T23:20:50", - "valid": false - }, - { - "description": "Invalid - week 00", - "data": "R12/P1Y/1985-W00-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - week 54", - "data": "R12/P1Y/1985-W54-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - day 0", - "data": "R12/P1Y/1985-W15-0T23:20:50", - "valid": false - }, - { - "description": "Invalid - day 8", - "data": "R12/P1Y/1985-W15-8T23:20:50", - "valid": false - }, - { - "description": "Valid - week 53", - "data": "R12/P1Y/2020-W53-1T00:00:00", - "valid": true - }, - { - "description": "Invalid - end hour 24", - "data": "R12/P1Y/1985-W15-5T24:20:50", - "valid": false - }, - { - "description": "Invalid - end hour 25", - "data": "R12/P1Y/1985-W15-5T25:20:50", - "valid": false - }, - { - "description": "Invalid - end hour 99", - "data": "R12/P1Y/1985-W15-5T99:20:50", - "valid": false - }, - { - "description": "Invalid - end minute 60", - "data": "R12/P1Y/1985-W15-5T23:60:50", - "valid": false - }, - { - "description": "Invalid - end minute 99", - "data": "R12/P1Y/1985-W15-5T23:99:50", - "valid": false - }, - { - "description": "Invalid - end second 61", - "data": "R12/P1Y/1985-W15-5T23:20:61", - "valid": false - }, - { - "description": "Invalid - end second 99", - "data": "R12/P1Y/1985-W15-5T23:20:99", - "valid": false - }, - { - "description": "Invalid - missing T separator in end", - "data": "R12/P1Y/1985-W15-5 23:20:50", - "valid": false - }, - { - "description": "Invalid - lowercase t in end", - "data": "R12/P1Y/1985-W15-5t23:20:50", - "valid": false - }, - { - "description": "Invalid - duration without P prefix", - "data": "R12/1Y2M15DT12H30M0S/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - lowercase p in duration", - "data": "R12/p1Y/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - lowercase t in duration", - "data": "R12/P1Dt1H/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - empty time duration (only PT)", - "data": "R12/PT/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - double slash separator", - "data": "R12/P1Y//1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "R12/P1Y\\1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Valid - leap second in end", - "data": "R12/P1D/1985-W15-5T23:59:60", - "valid": true - }, - { - "description": "Valid - zero duration components", - "data": "R12/P0Y0M0DT0H0M0S/2023-W01-1T00:00:00", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in years", - "data": "R12/P1.5Y/2023-W01-1T12:00:00", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in months", - "data": "R12/P3M15DT2.5H/2023-W01-1T12:00:00", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in days", - "data": "R12/P10.5D/2023-W01-1T12:00:00", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in hours", - "data": "R12/PT2.5H/2023-W01-1T12:00:00", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in minutes", - "data": "R12/PT45.5M/2023-W01-1T12:00:00", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in seconds", - "data": "R12/PT10.123S/2023-W01-1T12:00:00", - "valid": true - }, - { - "description": "Valid - decimal weeks", - "data": "R12/P1.5W/2023-W01-1T12:00:00", - "valid": true - }, - { - "description": "Invalid - duration wrong component order (M before Y)", - "data": "R12/P6M3Y/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration wrong component order (D before M)", - "data": "R12/P15D6M/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration time without T designator", - "data": "R12/P1D1H/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with other units", - "data": "R12/P1W2D/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with years", - "data": "R12/P1Y2W/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration weeks with time", - "data": "R12/P1WT1H/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Valid - large year value", - "data": "R12/P500Y/2023-W01-1T00:00:00", - "valid": true - }, - { - "description": "Valid - large day value", - "data": "R12/P500D/2023-W01-1T00:00:00", - "valid": true - }, - { - "description": "Valid - large hour value", - "data": "R12/PT100H/2023-W01-1T00:00:00", - "valid": true - }, - { - "description": "Valid - 13 months", - "data": "R12/P13M/2023-W01-1T00:00:00", - "valid": true - }, - { - "description": "Invalid - letter in year", - "data": "R12/P1Y/I985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - letter in week", - "data": "R12/P1Y/1985-WI5-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - letter in day", - "data": "R12/P1Y/1985-W15-IT23:20:50", - "valid": false - }, - { - "description": "Invalid - letter in hour", - "data": "R12/P1Y/1985-W15-5TI3:20:50", - "valid": false - }, - { - "description": "Invalid - letter in minute", - "data": "R12/P1Y/1985-W15-5T23:I0:50", - "valid": false - }, - { - "description": "Invalid - letter in second", - "data": "R12/P1Y/1985-W15-5T23:20:I0", - "valid": false - }, - { - "description": "Invalid - duration with spaces", - "data": "R12/P1Y 2M/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Invalid - duration with extra slash", - "data": "R12/P1Y/2M/1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Valid - PT60M (durations can exceed calendar limits)", - "data": "R12/PT60M/1985-W15-5T23:20:50", - "valid": true - }, - { - "description": "Valid - PT60S (durations can exceed calendar limits)", - "data": "R12/PT60S/1985-W15-5T23:20:50", - "valid": true - }, - { - "description": "Valid - PT25H (durations can exceed calendar limits)", - "data": "R12/PT25H/1985-W15-5T23:20:50", - "valid": true - }, - { - "description": "Valid - P32D (durations can exceed calendar limits)", - "data": "R12/P32D/1985-W15-5T23:20:50", - "valid": true - }, - { - "description": "Invalid - missing end datetime", - "data": "R12/P1Y2M15DT12H30M0S/", - "valid": false - }, - { - "description": "Invalid - only separator", - "data": "R12//", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "R12/", - "valid": false - }, - { - "description": "Invalid - spaces around separator", - "data": "R12/P1Y / 1985-W15-5T23:20:50", - "valid": false - }, - { - "description": "Valid - week 01 day 1", - "data": "R12/P1Y/2023-W01-1T12:00:00", - "valid": true - }, - { - "description": "Valid - week 52 day 7", - "data": "R12/P1Y/2023-W52-7T12:00:00", - "valid": true - } - ] -} diff --git a/test/iso/datetime/2019/recurring/start-duration-calendar-basic/v1.test.json b/test/iso/datetime/2019/recurring/start-duration-calendar-basic/v1.test.json deleted file mode 100644 index 5fe400df..00000000 --- a/test/iso/datetime/2019/recurring/start-duration-calendar-basic/v1.test.json +++ /dev/null @@ -1,500 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/recurring/start-duration-calendar-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 19850412232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - R12 with interval", - "data": "R12/19850412T232050/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R without number (unbounded)", - "data": "R/19850412T232050/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R0 (zero recurrences)", - "data": "R0/19850412T232050/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R9999 (large number)", - "data": "R9999/19850412T232050/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R1 (single recurrence)", - "data": "R1/19850412T232050/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R52 weekly for a year", - "data": "R52/19850412T232050/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R24 every hour for a day", - "data": "R24/19850412T232050/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R7 daily for a week", - "data": "R7/19850412T232050/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Invalid - missing R prefix", - "data": "12/19850412T232050/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - lowercase r prefix", - "data": "r12/19850412T232050/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - space after R", - "data": "R 12/19850412T232050/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - negative recurrence number", - "data": "R-5/19850412T232050/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - decimal recurrence number", - "data": "R12.5/19850412T232050/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - double R", - "data": "RR12/19850412T232050/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - R with plus sign", - "data": "R+12/19850412T232050/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Valid - full duration with all components", - "data": "R12/19850412T232050/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - only years duration", - "data": "R12/20000101T000000/P1Y", - "valid": true - }, - { - "description": "Valid - only time component duration", - "data": "R12/20230615T120000/PT5H30M", - "valid": true - }, - { - "description": "Valid - weeks duration", - "data": "R12/19851231T235959/P2W", - "valid": true - }, - { - "description": "Valid - days and seconds duration", - "data": "R12/20230101T000000/P5DT30S", - "valid": true - }, - { - "description": "Valid - months duration", - "data": "R12/20231231T120000/P6M", - "valid": true - }, - { - "description": "Valid - hours duration", - "data": "R12/20000630T180000/PT12H", - "valid": true - }, - { - "description": "Invalid - missing separator slash", - "data": "R12/19850412T232050P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - extended format datetime", - "data": "R12/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - missing duration", - "data": "R12/19850412T232050/", - "valid": false - }, - { - "description": "Invalid - missing start datetime", - "data": "R12//P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - only separator", - "data": "R12//", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "R12/", - "valid": false - }, - { - "description": "Invalid - spaces around separator", - "data": "R12/19850412T232050 / P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - start month 00", - "data": "R12/19850012T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - start month 13", - "data": "R12/19851312T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - start day 00", - "data": "R12/19850400T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - start day 32", - "data": "R12/19850432T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - start 31 April", - "data": "R12/19850431T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - start 30 February", - "data": "R12/20230230T120000/P1Y", - "valid": false - }, - { - "description": "Invalid - start hour 24", - "data": "R12/19850412T242050/P1Y", - "valid": false - }, - { - "description": "Invalid - start minute 60", - "data": "R12/19850412T236050/P1Y", - "valid": false - }, - { - "description": "Invalid - start second 61", - "data": "R12/19850412T232061/P1Y", - "valid": false - }, - { - "description": "Invalid - missing T separator in start", - "data": "R12/19850412232050/P1Y", - "valid": false - }, - { - "description": "Invalid - lowercase t in start", - "data": "R12/19850412t232050/P1Y", - "valid": false - }, - { - "description": "Invalid - end datetime instead of duration", - "data": "R12/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - duration without P prefix", - "data": "R12/19850412T232050/1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - lowercase p in duration", - "data": "R12/19850412T232050/p1Y", - "valid": false - }, - { - "description": "Invalid - lowercase t in duration", - "data": "R12/19850412T232050/P1Dt1H", - "valid": false - }, - { - "description": "Invalid - empty duration (only P)", - "data": "R12/19850412T232050/P", - "valid": false - }, - { - "description": "Invalid - empty time duration (only PT)", - "data": "R12/19850412T232050/PT", - "valid": false - }, - { - "description": "Invalid - ordinal date instead of calendar", - "data": "R12/1985102T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - week date instead of calendar", - "data": "R12/1985W155T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - double slash separator", - "data": "R12/19850412T232050//P1Y", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "R12/19850412T232050\\P1Y", - "valid": false - }, - { - "description": "Valid - 29 February (leap year validation is consumer responsibility)", - "data": "R12/20230229T120000/P1Y", - "valid": true - }, - { - "description": "Valid - leap second in start", - "data": "R12/19850412T235960/P1D", - "valid": true - }, - { - "description": "Valid - zero duration components", - "data": "R12/20230101T000000/P0Y0M0DT0H0M0S", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction", - "data": "R12/20230101T120000/P1.5Y", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction", - "data": "R12/20230101T120000/PT2.5H", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in months", - "data": "R12/20230101T120000/P3M15DT2.5H", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in days", - "data": "R12/20230101T120000/P10.5D", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in minutes", - "data": "R12/20230101T120000/PT45.5M", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in seconds", - "data": "R12/20230101T120000/PT10.123S", - "valid": true - }, - { - "description": "Valid - decimal weeks", - "data": "R12/20230101T120000/P1.5W", - "valid": true - }, - { - "description": "Invalid - duration wrong component order (M before Y)", - "data": "R12/19850412T232050/P6M3Y", - "valid": false - }, - { - "description": "Invalid - duration wrong component order (D before M)", - "data": "R12/19850412T232050/P15D6M", - "valid": false - }, - { - "description": "Invalid - duration time without T designator", - "data": "R12/19850412T232050/P1D1H", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with other units", - "data": "R12/19850412T232050/P1W2D", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with years", - "data": "R12/19850412T232050/P1Y2W", - "valid": false - }, - { - "description": "Invalid - duration weeks with time", - "data": "R12/19850412T232050/P1WT1H", - "valid": false - }, - { - "description": "Valid - large year value", - "data": "R12/20230101T000000/P500Y", - "valid": true - }, - { - "description": "Valid - large day value", - "data": "R12/20230101T000000/P500D", - "valid": true - }, - { - "description": "Valid - large hour value", - "data": "R12/20230101T000000/PT100H", - "valid": true - }, - { - "description": "Valid - 13 months", - "data": "R12/20230101T000000/P13M", - "valid": true - }, - { - "description": "Invalid - start hour 25", - "data": "R12/19850412T252050/P1Y", - "valid": false - }, - { - "description": "Invalid - start hour 99", - "data": "R12/19850412T992050/P1Y", - "valid": false - }, - { - "description": "Invalid - start minute 99", - "data": "R12/19850412T239950/P1Y", - "valid": false - }, - { - "description": "Invalid - start second 99", - "data": "R12/19850412T232099/P1Y", - "valid": false - }, - { - "description": "Invalid - too short", - "data": "R12/19850412T23205/P1Y", - "valid": false - }, - { - "description": "Invalid - too long", - "data": "R12/19850412T2320500/P1Y", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "R12/19850412T232050X/P1Y", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning", - "data": "R12/X19850412T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - spaces in datetime", - "data": "R12/1985 04 12T23 20 50/P1Y", - "valid": false - }, - { - "description": "Invalid - letter in year", - "data": "R12/I9850412T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - letter in month", - "data": "R12/1985O412T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - letter in day", - "data": "R12/198504I2T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - letter in hour", - "data": "R12/19850412TI32050/P1Y", - "valid": false - }, - { - "description": "Invalid - letter in minute", - "data": "R12/19850412T23I050/P1Y", - "valid": false - }, - { - "description": "Invalid - letter in second", - "data": "R12/19850412T2320I0/P1Y", - "valid": false - }, - { - "description": "Invalid - 31 June", - "data": "R12/19850631T120000/P1Y", - "valid": false - }, - { - "description": "Invalid - 31 September", - "data": "R12/19850931T120000/P1Y", - "valid": false - }, - { - "description": "Invalid - 31 November", - "data": "R12/19851131T120000/P1Y", - "valid": false - }, - { - "description": "Invalid - duration with spaces", - "data": "R12/19850412T232050/P1Y 2M", - "valid": false - }, - { - "description": "Invalid - duration with extra slash", - "data": "R12/19850412T232050/P1Y/2M", - "valid": false - }, - { - "description": "Valid - PT60M (durations can exceed calendar limits)", - "data": "R12/19850412T232050/PT60M", - "valid": true - }, - { - "description": "Valid - PT60S (durations can exceed calendar limits)", - "data": "R12/19850412T232050/PT60S", - "valid": true - }, - { - "description": "Valid - PT25H (durations can exceed calendar limits)", - "data": "R12/19850412T232050/PT25H", - "valid": true - }, - { - "description": "Valid - P32D (durations can exceed calendar limits)", - "data": "R12/19850412T232050/P32D", - "valid": true - } - ] -} diff --git a/test/iso/datetime/2019/recurring/start-duration-calendar-extended/v1.test.json b/test/iso/datetime/2019/recurring/start-duration-calendar-extended/v1.test.json deleted file mode 100644 index 3a193d33..00000000 --- a/test/iso/datetime/2019/recurring/start-duration-calendar-extended/v1.test.json +++ /dev/null @@ -1,380 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/recurring/start-duration-calendar-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 19850412232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - R12 with interval", - "data": "R12/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R without number (unbounded)", - "data": "R/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R0 (zero recurrences)", - "data": "R0/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R9999 (large number)", - "data": "R9999/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R1 (single recurrence)", - "data": "R1/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R52 weekly for a year", - "data": "R52/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R24 every hour for a day", - "data": "R24/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R7 daily for a week", - "data": "R7/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Invalid - missing R prefix", - "data": "12/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - lowercase r prefix", - "data": "r12/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - space after R", - "data": "R 12/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - negative recurrence number", - "data": "R-5/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - decimal recurrence number", - "data": "R12.5/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - double R", - "data": "RR12/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - R with plus sign", - "data": "R+12/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Valid - full duration with all components", - "data": "R12/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - only years duration", - "data": "R12/2000-01-01T00:00:00/P1Y", - "valid": true - }, - { - "description": "Valid - only time component duration", - "data": "R12/2023-06-15T12:00:00/PT5H30M", - "valid": true - }, - { - "description": "Valid - weeks duration", - "data": "R12/1985-12-31T23:59:59/P2W", - "valid": true - }, - { - "description": "Valid - days and seconds duration", - "data": "R12/2023-01-01T00:00:00/P5DT30S", - "valid": true - }, - { - "description": "Valid - months duration", - "data": "R12/2023-12-31T12:00:00/P6M", - "valid": true - }, - { - "description": "Valid - hours duration", - "data": "R12/2000-06-30T18:00:00/PT12H", - "valid": true - }, - { - "description": "Invalid - missing separator slash", - "data": "R12/1985-04-12T23:20:50P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - basic format datetime", - "data": "R12/19850412T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - missing duration", - "data": "R12/1985-04-12T23:20:50/", - "valid": false - }, - { - "description": "Invalid - missing start datetime", - "data": "R12//P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - only separator", - "data": "R12//", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "R12/", - "valid": false - }, - { - "description": "Invalid - spaces around separator", - "data": "R12/1985-04-12T23:20:50 / P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - start month 00", - "data": "R12/1985-00-12T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - start month 13", - "data": "R12/1985-13-12T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - start day 00", - "data": "R12/1985-04-00T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - start day 32", - "data": "R12/1985-04-32T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - start 31 April", - "data": "R12/1985-04-31T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - start 30 February", - "data": "R12/2023-02-30T12:00:00/P1Y", - "valid": false - }, - { - "description": "Invalid - start hour 24", - "data": "R12/1985-04-12T24:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - start minute 60", - "data": "R12/1985-04-12T23:60:50/P1Y", - "valid": false - }, - { - "description": "Invalid - start second 61", - "data": "R12/1985-04-12T23:20:61/P1Y", - "valid": false - }, - { - "description": "Invalid - missing T separator in start", - "data": "R12/1985-04-12 23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - lowercase t in start", - "data": "R12/1985-04-12t23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - end datetime instead of duration", - "data": "R12/1985-04-12T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - duration without P prefix", - "data": "R12/1985-04-12T23:20:50/1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - lowercase p in duration", - "data": "R12/1985-04-12T23:20:50/p1Y", - "valid": false - }, - { - "description": "Invalid - lowercase t in duration", - "data": "R12/1985-04-12T23:20:50/P1Dt1H", - "valid": false - }, - { - "description": "Invalid - empty duration (only P)", - "data": "R12/1985-04-12T23:20:50/P", - "valid": false - }, - { - "description": "Invalid - empty time duration (only PT)", - "data": "R12/1985-04-12T23:20:50/PT", - "valid": false - }, - { - "description": "Invalid - ordinal date instead of calendar", - "data": "R12/1985-102T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - week date instead of calendar", - "data": "R12/1985-W15-5T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - double slash separator", - "data": "R12/1985-04-12T23:20:50//P1Y", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "R12/1985-04-12T23:20:50\\P1Y", - "valid": false - }, - { - "description": "Valid - 29 February (leap year validation is consumer responsibility)", - "data": "R12/2023-02-29T12:00:00/P1Y", - "valid": true - }, - { - "description": "Valid - leap second in start", - "data": "R12/1985-04-12T23:59:60/P1D", - "valid": true - }, - { - "description": "Valid - zero duration components", - "data": "R12/2023-01-01T00:00:00/P0Y0M0DT0H0M0S", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in years", - "data": "R12/2023-01-01T12:00:00/P1.5Y", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in months", - "data": "R12/2023-01-01T12:00:00/P3M15DT2.5H", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in days", - "data": "R12/2023-01-01T12:00:00/P10.5D", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in hours", - "data": "R12/2023-01-01T12:00:00/PT2.5H", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in minutes", - "data": "R12/2023-01-01T12:00:00/PT45.5M", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in seconds", - "data": "R12/2023-01-01T12:00:00/PT10.123S", - "valid": true - }, - { - "description": "Valid - decimal weeks", - "data": "R12/2023-01-01T12:00:00/P1.5W", - "valid": true - }, - { - "description": "Invalid - duration wrong component order (M before Y)", - "data": "R12/1985-04-12T23:20:50/P6M3Y", - "valid": false - }, - { - "description": "Invalid - duration wrong component order (D before M)", - "data": "R12/1985-04-12T23:20:50/P15D6M", - "valid": false - }, - { - "description": "Invalid - duration time without T designator", - "data": "R12/1985-04-12T23:20:50/P1D1H", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with other units", - "data": "R12/1985-04-12T23:20:50/P1W2D", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with years", - "data": "R12/1985-04-12T23:20:50/P1Y2W", - "valid": false - }, - { - "description": "Invalid - duration weeks with time", - "data": "R12/1985-04-12T23:20:50/P1WT1H", - "valid": false - }, - { - "description": "Valid - large year value", - "data": "R12/2023-01-01T00:00:00/P500Y", - "valid": true - }, - { - "description": "Valid - large day value", - "data": "R12/2023-01-01T00:00:00/P500D", - "valid": true - }, - { - "description": "Valid - large hour value", - "data": "R12/2023-01-01T00:00:00/PT100H", - "valid": true - }, - { - "description": "Valid - 13 months", - "data": "R12/2023-01-01T00:00:00/P13M", - "valid": true - } - ] -} diff --git a/test/iso/datetime/2019/recurring/start-duration-ordinal-basic/v1.test.json b/test/iso/datetime/2019/recurring/start-duration-ordinal-basic/v1.test.json deleted file mode 100644 index 4d3b7672..00000000 --- a/test/iso/datetime/2019/recurring/start-duration-ordinal-basic/v1.test.json +++ /dev/null @@ -1,360 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/recurring/start-duration-ordinal-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985102232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - R12 with interval", - "data": "R12/1985102T232050/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R without number (unbounded)", - "data": "R/1985102T232050/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R0 (zero recurrences)", - "data": "R0/1985102T232050/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R9999 (large number)", - "data": "R9999/1985102T232050/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R1 (single recurrence)", - "data": "R1/1985102T232050/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R52 weekly for a year", - "data": "R52/1985102T232050/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R24 every hour for a day", - "data": "R24/1985102T232050/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R7 daily for a week", - "data": "R7/1985102T232050/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Invalid - missing R prefix", - "data": "12/1985102T232050/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - lowercase r prefix", - "data": "r12/1985102T232050/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - space after R", - "data": "R 12/1985102T232050/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - negative recurrence number", - "data": "R-5/1985102T232050/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - decimal recurrence number", - "data": "R12.5/1985102T232050/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - double R", - "data": "RR12/1985102T232050/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - R with plus sign", - "data": "R+12/1985102T232050/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Valid - full duration with all components", - "data": "R12/1985102T232050/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - only years duration", - "data": "R12/2000001T000000/P1Y", - "valid": true - }, - { - "description": "Valid - only time component duration", - "data": "R12/2023166T120000/PT5H30M", - "valid": true - }, - { - "description": "Valid - weeks duration", - "data": "R12/1985365T235959/P2W", - "valid": true - }, - { - "description": "Valid - days and seconds duration", - "data": "R12/2023001T000000/P5DT30S", - "valid": true - }, - { - "description": "Valid - months duration", - "data": "R12/2023365T120000/P6M", - "valid": true - }, - { - "description": "Valid - hours duration", - "data": "R12/2000182T180000/PT12H", - "valid": true - }, - { - "description": "Invalid - missing separator slash", - "data": "R12/1985102T232050P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - extended format datetime", - "data": "R12/1985-102T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - missing duration", - "data": "R12/1985102T232050/", - "valid": false - }, - { - "description": "Invalid - missing start datetime", - "data": "R12//P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - only separator", - "data": "R12//", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "R12/", - "valid": false - }, - { - "description": "Invalid - spaces around separator", - "data": "R12/1985102T232050 / P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - start day 000", - "data": "R12/1985000T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - start day 367", - "data": "R12/1985367T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - start hour 24", - "data": "R12/1985102T242050/P1Y", - "valid": false - }, - { - "description": "Invalid - start minute 60", - "data": "R12/1985102T236050/P1Y", - "valid": false - }, - { - "description": "Invalid - start second 61", - "data": "R12/1985102T232061/P1Y", - "valid": false - }, - { - "description": "Invalid - missing T separator in start", - "data": "R12/1985102232050/P1Y", - "valid": false - }, - { - "description": "Invalid - lowercase t in start", - "data": "R12/1985102t232050/P1Y", - "valid": false - }, - { - "description": "Invalid - end datetime instead of duration", - "data": "R12/1985102T232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - duration without P prefix", - "data": "R12/1985102T232050/1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - lowercase p in duration", - "data": "R12/1985102T232050/p1Y", - "valid": false - }, - { - "description": "Invalid - lowercase t in duration", - "data": "R12/1985102T232050/P1Dt1H", - "valid": false - }, - { - "description": "Invalid - empty duration (only P)", - "data": "R12/1985102T232050/P", - "valid": false - }, - { - "description": "Invalid - empty time duration (only PT)", - "data": "R12/1985102T232050/PT", - "valid": false - }, - { - "description": "Invalid - calendar date instead of ordinal", - "data": "R12/19850412T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - week date instead of ordinal", - "data": "R12/1985W155T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - double slash separator", - "data": "R12/1985102T232050//P1Y", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "R12/1985102T232050\\P1Y", - "valid": false - }, - { - "description": "Valid - day 366 (leap year validation is consumer responsibility)", - "data": "R12/2020366T000000/P1Y", - "valid": true - }, - { - "description": "Valid - leap second in start", - "data": "R12/1985102T235960/P1D", - "valid": true - }, - { - "description": "Valid - zero duration components", - "data": "R12/2023001T000000/P0Y0M0DT0H0M0S", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in years", - "data": "R12/2023001T120000/P1.5Y", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in months", - "data": "R12/2023001T120000/P3M15DT2.5H", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in days", - "data": "R12/2023001T120000/P10.5D", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in hours", - "data": "R12/2023001T120000/PT2.5H", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in minutes", - "data": "R12/2023001T120000/PT45.5M", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in seconds", - "data": "R12/2023001T120000/PT10.123S", - "valid": true - }, - { - "description": "Valid - decimal weeks", - "data": "R12/2023001T120000/P1.5W", - "valid": true - }, - { - "description": "Invalid - duration wrong component order (M before Y)", - "data": "R12/1985102T232050/P6M3Y", - "valid": false - }, - { - "description": "Invalid - duration wrong component order (D before M)", - "data": "R12/1985102T232050/P15D6M", - "valid": false - }, - { - "description": "Invalid - duration time without T designator", - "data": "R12/1985102T232050/P1D1H", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with other units", - "data": "R12/1985102T232050/P1W2D", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with years", - "data": "R12/1985102T232050/P1Y2W", - "valid": false - }, - { - "description": "Invalid - duration weeks with time", - "data": "R12/1985102T232050/P1WT1H", - "valid": false - }, - { - "description": "Valid - large year value", - "data": "R12/2023001T000000/P500Y", - "valid": true - }, - { - "description": "Valid - large day value", - "data": "R12/2023001T000000/P500D", - "valid": true - }, - { - "description": "Valid - large hour value", - "data": "R12/2023001T000000/PT100H", - "valid": true - }, - { - "description": "Valid - 13 months", - "data": "R12/2023001T000000/P13M", - "valid": true - } - ] -} diff --git a/test/iso/datetime/2019/recurring/start-duration-ordinal-extended/v1.test.json b/test/iso/datetime/2019/recurring/start-duration-ordinal-extended/v1.test.json deleted file mode 100644 index 236e71b8..00000000 --- a/test/iso/datetime/2019/recurring/start-duration-ordinal-extended/v1.test.json +++ /dev/null @@ -1,360 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/recurring/start-duration-ordinal-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985102232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - R12 with interval", - "data": "R12/1985-102T23:20:50/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R without number (unbounded)", - "data": "R/1985-102T23:20:50/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R0 (zero recurrences)", - "data": "R0/1985-102T23:20:50/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R9999 (large number)", - "data": "R9999/1985-102T23:20:50/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R1 (single recurrence)", - "data": "R1/1985-102T23:20:50/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R52 weekly for a year", - "data": "R52/1985-102T23:20:50/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R24 every hour for a day", - "data": "R24/1985-102T23:20:50/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R7 daily for a week", - "data": "R7/1985-102T23:20:50/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Invalid - missing R prefix", - "data": "12/1985-102T23:20:50/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - lowercase r prefix", - "data": "r12/1985-102T23:20:50/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - space after R", - "data": "R 12/1985-102T23:20:50/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - negative recurrence number", - "data": "R-5/1985-102T23:20:50/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - decimal recurrence number", - "data": "R12.5/1985-102T23:20:50/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - double R", - "data": "RR12/1985-102T23:20:50/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - R with plus sign", - "data": "R+12/1985-102T23:20:50/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Valid - full duration with all components", - "data": "R12/1985-102T23:20:50/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - only years duration", - "data": "R12/2000-001T00:00:00/P1Y", - "valid": true - }, - { - "description": "Valid - only time component duration", - "data": "R12/2023-166T12:00:00/PT5H30M", - "valid": true - }, - { - "description": "Valid - weeks duration", - "data": "R12/1985-365T23:59:59/P2W", - "valid": true - }, - { - "description": "Valid - days and seconds duration", - "data": "R12/2023-001T00:00:00/P5DT30S", - "valid": true - }, - { - "description": "Valid - months duration", - "data": "R12/2023-365T12:00:00/P6M", - "valid": true - }, - { - "description": "Valid - hours duration", - "data": "R12/2000-182T18:00:00/PT12H", - "valid": true - }, - { - "description": "Invalid - missing separator slash", - "data": "R12/1985-102T23:20:50P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - basic format datetime", - "data": "R12/1985102T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - missing duration", - "data": "R12/1985-102T23:20:50/", - "valid": false - }, - { - "description": "Invalid - missing start datetime", - "data": "R12//P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - only separator", - "data": "R12//", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "R12/", - "valid": false - }, - { - "description": "Invalid - spaces around separator", - "data": "R12/1985-102T23:20:50 / P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - start day 000", - "data": "R12/1985-000T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - start day 367", - "data": "R12/1985-367T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - start hour 24", - "data": "R12/1985-102T24:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - start minute 60", - "data": "R12/1985-102T23:60:50/P1Y", - "valid": false - }, - { - "description": "Invalid - start second 61", - "data": "R12/1985-102T23:20:61/P1Y", - "valid": false - }, - { - "description": "Invalid - missing T separator in start", - "data": "R12/1985-102 23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - lowercase t in start", - "data": "R12/1985-102t23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - end datetime instead of duration", - "data": "R12/1985-102T23:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - duration without P prefix", - "data": "R12/1985-102T23:20:50/1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - lowercase p in duration", - "data": "R12/1985-102T23:20:50/p1Y", - "valid": false - }, - { - "description": "Invalid - lowercase t in duration", - "data": "R12/1985-102T23:20:50/P1Dt1H", - "valid": false - }, - { - "description": "Invalid - empty duration (only P)", - "data": "R12/1985-102T23:20:50/P", - "valid": false - }, - { - "description": "Invalid - empty time duration (only PT)", - "data": "R12/1985-102T23:20:50/PT", - "valid": false - }, - { - "description": "Invalid - calendar date instead of ordinal", - "data": "R12/1985-04-12T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - week date instead of ordinal", - "data": "R12/1985-W15-5T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - double slash separator", - "data": "R12/1985-102T23:20:50//P1Y", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "R12/1985-102T23:20:50\\P1Y", - "valid": false - }, - { - "description": "Valid - day 366 (leap year validation is consumer responsibility)", - "data": "R12/2020-366T00:00:00/P1Y", - "valid": true - }, - { - "description": "Valid - leap second in start", - "data": "R12/1985-102T23:59:60/P1D", - "valid": true - }, - { - "description": "Valid - zero duration components", - "data": "R12/2023-001T00:00:00/P0Y0M0DT0H0M0S", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in years", - "data": "R12/2023-001T12:00:00/P1.5Y", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in months", - "data": "R12/2023-001T12:00:00/P3M15DT2.5H", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in days", - "data": "R12/2023-001T12:00:00/P10.5D", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in hours", - "data": "R12/2023-001T12:00:00/PT2.5H", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in minutes", - "data": "R12/2023-001T12:00:00/PT45.5M", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in seconds", - "data": "R12/2023-001T12:00:00/PT10.123S", - "valid": true - }, - { - "description": "Valid - decimal weeks", - "data": "R12/2023-001T12:00:00/P1.5W", - "valid": true - }, - { - "description": "Invalid - duration wrong component order (M before Y)", - "data": "R12/1985-102T23:20:50/P6M3Y", - "valid": false - }, - { - "description": "Invalid - duration wrong component order (D before M)", - "data": "R12/1985-102T23:20:50/P15D6M", - "valid": false - }, - { - "description": "Invalid - duration time without T designator", - "data": "R12/1985-102T23:20:50/P1D1H", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with other units", - "data": "R12/1985-102T23:20:50/P1W2D", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with years", - "data": "R12/1985-102T23:20:50/P1Y2W", - "valid": false - }, - { - "description": "Invalid - duration weeks with time", - "data": "R12/1985-102T23:20:50/P1WT1H", - "valid": false - }, - { - "description": "Valid - large year value", - "data": "R12/2023-001T00:00:00/P500Y", - "valid": true - }, - { - "description": "Valid - large day value", - "data": "R12/2023-001T00:00:00/P500D", - "valid": true - }, - { - "description": "Valid - large hour value", - "data": "R12/2023-001T00:00:00/PT100H", - "valid": true - }, - { - "description": "Valid - 13 months", - "data": "R12/2023-001T00:00:00/P13M", - "valid": true - } - ] -} diff --git a/test/iso/datetime/2019/recurring/start-duration-week-basic/v1.test.json b/test/iso/datetime/2019/recurring/start-duration-week-basic/v1.test.json deleted file mode 100644 index c056b433..00000000 --- a/test/iso/datetime/2019/recurring/start-duration-week-basic/v1.test.json +++ /dev/null @@ -1,500 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/recurring/start-duration-week-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985155232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - R12 with interval", - "data": "R12/1985W155T232050/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R without number (unbounded)", - "data": "R/1985W155T232050/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R0 (zero recurrences)", - "data": "R0/1985W155T232050/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R9999 (large number)", - "data": "R9999/1985W155T232050/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R1 (single recurrence)", - "data": "R1/1985W155T232050/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R52 weekly for a year", - "data": "R52/1985W155T232050/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R24 every hour for a day", - "data": "R24/1985W155T232050/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R7 daily for a week", - "data": "R7/1985W155T232050/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Invalid - missing R prefix", - "data": "12/1985W155T232050/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - lowercase r prefix", - "data": "r12/1985W155T232050/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - space after R", - "data": "R 12/1985W155T232050/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - negative recurrence number", - "data": "R-5/1985W155T232050/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - decimal recurrence number", - "data": "R12.5/1985W155T232050/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - double R", - "data": "RR12/1985W155T232050/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - R with plus sign", - "data": "R+12/1985W155T232050/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Valid - full duration with all components", - "data": "R12/1985W155T232050/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - only years duration", - "data": "R12/2000W011T000000/P1Y", - "valid": true - }, - { - "description": "Valid - only time component duration", - "data": "R12/2023W241T120000/PT5H30M", - "valid": true - }, - { - "description": "Valid - weeks duration", - "data": "R12/1985W527T235959/P2W", - "valid": true - }, - { - "description": "Valid - days and seconds duration", - "data": "R12/2023W011T000000/P5DT30S", - "valid": true - }, - { - "description": "Valid - months duration", - "data": "R12/2023W527T120000/P6M", - "valid": true - }, - { - "description": "Valid - hours duration", - "data": "R12/2000W265T180000/PT12H", - "valid": true - }, - { - "description": "Invalid - missing separator slash", - "data": "R12/1985W155T232050P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - extended format datetime", - "data": "R12/1985-W15-5T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - missing duration", - "data": "R12/1985W155T232050/", - "valid": false - }, - { - "description": "Invalid - missing start datetime", - "data": "R12//P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - only separator", - "data": "R12//", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "R12/", - "valid": false - }, - { - "description": "Invalid - spaces around separator", - "data": "R12/1985W155T232050 / P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - start week 00", - "data": "R12/1985W005T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - start week 54", - "data": "R12/1985W545T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - start day 0", - "data": "R12/1985W150T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - start day 8", - "data": "R12/1985W158T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - start hour 24", - "data": "R12/1985W155T242050/P1Y", - "valid": false - }, - { - "description": "Invalid - start hour 25", - "data": "R12/1985W155T252050/P1Y", - "valid": false - }, - { - "description": "Invalid - start hour 99", - "data": "R12/1985W155T992050/P1Y", - "valid": false - }, - { - "description": "Invalid - start minute 60", - "data": "R12/1985W155T236050/P1Y", - "valid": false - }, - { - "description": "Invalid - start minute 99", - "data": "R12/1985W155T239950/P1Y", - "valid": false - }, - { - "description": "Invalid - start second 61", - "data": "R12/1985W155T232061/P1Y", - "valid": false - }, - { - "description": "Invalid - start second 99", - "data": "R12/1985W155T232099/P1Y", - "valid": false - }, - { - "description": "Invalid - missing T separator in start", - "data": "R12/1985W155232050/P1Y", - "valid": false - }, - { - "description": "Invalid - lowercase t in start", - "data": "R12/1985W155t232050/P1Y", - "valid": false - }, - { - "description": "Invalid - lowercase w", - "data": "R12/1985w155T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - end datetime instead of duration", - "data": "R12/1985W155T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - duration without P prefix", - "data": "R12/1985W155T232050/1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - lowercase p in duration", - "data": "R12/1985W155T232050/p1Y", - "valid": false - }, - { - "description": "Invalid - lowercase t in duration", - "data": "R12/1985W155T232050/P1Dt1H", - "valid": false - }, - { - "description": "Invalid - empty duration (only P)", - "data": "R12/1985W155T232050/P", - "valid": false - }, - { - "description": "Invalid - empty time duration (only PT)", - "data": "R12/1985W155T232050/PT", - "valid": false - }, - { - "description": "Invalid - calendar date instead of week", - "data": "R12/19850412T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - ordinal date instead of week", - "data": "R12/1985102T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - double slash separator", - "data": "R12/1985W155T232050//P1Y", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "R12/1985W155T232050\\P1Y", - "valid": false - }, - { - "description": "Valid - week 53 (long year validation is consumer responsibility)", - "data": "R12/2020W531T000000/P1Y", - "valid": true - }, - { - "description": "Valid - leap second in start", - "data": "R12/1985W155T235960/P1D", - "valid": true - }, - { - "description": "Valid - zero duration components", - "data": "R12/2023W011T000000/P0Y0M0DT0H0M0S", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in years", - "data": "R12/2023W011T120000/P1.5Y", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in months", - "data": "R12/2023W011T120000/P3M15DT2.5H", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in days", - "data": "R12/2023W011T120000/P10.5D", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in hours", - "data": "R12/2023W011T120000/PT2.5H", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in minutes", - "data": "R12/2023W011T120000/PT45.5M", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in seconds", - "data": "R12/2023W011T120000/PT10.123S", - "valid": true - }, - { - "description": "Valid - decimal weeks", - "data": "R12/2023W011T120000/P1.5W", - "valid": true - }, - { - "description": "Invalid - duration wrong component order (M before Y)", - "data": "R12/1985W155T232050/P6M3Y", - "valid": false - }, - { - "description": "Invalid - duration wrong component order (D before M)", - "data": "R12/1985W155T232050/P15D6M", - "valid": false - }, - { - "description": "Invalid - duration time without T designator", - "data": "R12/1985W155T232050/P1D1H", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with other units", - "data": "R12/1985W155T232050/P1W2D", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with years", - "data": "R12/1985W155T232050/P1Y2W", - "valid": false - }, - { - "description": "Invalid - duration weeks with time", - "data": "R12/1985W155T232050/P1WT1H", - "valid": false - }, - { - "description": "Valid - large year value", - "data": "R12/2023W011T000000/P500Y", - "valid": true - }, - { - "description": "Valid - large day value", - "data": "R12/2023W011T000000/P500D", - "valid": true - }, - { - "description": "Valid - large hour value", - "data": "R12/2023W011T000000/PT100H", - "valid": true - }, - { - "description": "Valid - 13 months", - "data": "R12/2023W011T000000/P13M", - "valid": true - }, - { - "description": "Invalid - too short", - "data": "R12/1985W155T23205/P1Y", - "valid": false - }, - { - "description": "Invalid - too long", - "data": "R12/1985W155T2320500/P1Y", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "R12/1985W155T232050X/P1Y", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning", - "data": "R12/X1985W155T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - spaces in datetime", - "data": "R12/1985 W15 5T23 20 50/P1Y", - "valid": false - }, - { - "description": "Invalid - letter in year", - "data": "R12/I985W155T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - letter in week", - "data": "R12/1985WI55T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - letter in day", - "data": "R12/1985W15IT232050/P1Y", - "valid": false - }, - { - "description": "Invalid - letter in hour", - "data": "R12/1985W155TI32050/P1Y", - "valid": false - }, - { - "description": "Invalid - letter in minute", - "data": "R12/1985W155T23I050/P1Y", - "valid": false - }, - { - "description": "Invalid - letter in second", - "data": "R12/1985W155T2320I0/P1Y", - "valid": false - }, - { - "description": "Valid - week 01 day 1", - "data": "R12/2023W011T120000/P1Y", - "valid": true - }, - { - "description": "Valid - week 52 day 7", - "data": "R12/2023W527T120000/P1Y", - "valid": true - }, - { - "description": "Valid - year 0000", - "data": "R12/0000W011T120000/P1Y", - "valid": true - }, - { - "description": "Valid - year 9999", - "data": "R12/9999W527T235959/P1Y", - "valid": true - }, - { - "description": "Invalid - duration with spaces", - "data": "R12/1985W155T232050/P1Y 2M", - "valid": false - }, - { - "description": "Invalid - duration with extra slash", - "data": "R12/1985W155T232050/P1Y/2M", - "valid": false - }, - { - "description": "Valid - PT60M (durations can exceed calendar limits)", - "data": "R12/1985W155T232050/PT60M", - "valid": true - }, - { - "description": "Valid - PT60S (durations can exceed calendar limits)", - "data": "R12/1985W155T232050/PT60S", - "valid": true - }, - { - "description": "Valid - PT25H (durations can exceed calendar limits)", - "data": "R12/1985W155T232050/PT25H", - "valid": true - }, - { - "description": "Valid - P32D (durations can exceed calendar limits)", - "data": "R12/1985W155T232050/P32D", - "valid": true - } - ] -} diff --git a/test/iso/datetime/2019/recurring/start-duration-week-extended/v1.test.json b/test/iso/datetime/2019/recurring/start-duration-week-extended/v1.test.json deleted file mode 100644 index 581ceb72..00000000 --- a/test/iso/datetime/2019/recurring/start-duration-week-extended/v1.test.json +++ /dev/null @@ -1,370 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/recurring/start-duration-week-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985155232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - R12 with interval", - "data": "R12/1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R without number (unbounded)", - "data": "R/1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R0 (zero recurrences)", - "data": "R0/1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R9999 (large number)", - "data": "R9999/1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R1 (single recurrence)", - "data": "R1/1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R52 weekly for a year", - "data": "R52/1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R24 every hour for a day", - "data": "R24/1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - R7 daily for a week", - "data": "R7/1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Invalid - missing R prefix", - "data": "12/1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - lowercase r prefix", - "data": "r12/1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - space after R", - "data": "R 12/1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - negative recurrence number", - "data": "R-5/1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - decimal recurrence number", - "data": "R12.5/1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - double R", - "data": "RR12/1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - R with plus sign", - "data": "R+12/1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Valid - full duration with all components", - "data": "R12/1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", - "valid": true - }, - { - "description": "Valid - only years duration", - "data": "R12/2000-W01-1T00:00:00/P1Y", - "valid": true - }, - { - "description": "Valid - only time component duration", - "data": "R12/2023-W24-1T12:00:00/PT5H30M", - "valid": true - }, - { - "description": "Valid - weeks duration", - "data": "R12/1985-W52-7T23:59:59/P2W", - "valid": true - }, - { - "description": "Valid - days and seconds duration", - "data": "R12/2023-W01-1T00:00:00/P5DT30S", - "valid": true - }, - { - "description": "Valid - months duration", - "data": "R12/2023-W52-7T12:00:00/P6M", - "valid": true - }, - { - "description": "Valid - hours duration", - "data": "R12/2000-W26-5T18:00:00/PT12H", - "valid": true - }, - { - "description": "Invalid - missing separator slash", - "data": "R12/1985-W15-5T23:20:50P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - basic format datetime", - "data": "R12/1985W155T232050/P1Y", - "valid": false - }, - { - "description": "Invalid - missing duration", - "data": "R12/1985-W15-5T23:20:50/", - "valid": false - }, - { - "description": "Invalid - missing start datetime", - "data": "R12//P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - only separator", - "data": "R12//", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "R12/", - "valid": false - }, - { - "description": "Invalid - spaces around separator", - "data": "R12/1985-W15-5T23:20:50 / P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - start week 00", - "data": "R12/1985-W00-5T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - start week 54", - "data": "R12/1985-W54-5T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - start day 0", - "data": "R12/1985-W15-0T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - start day 8", - "data": "R12/1985-W15-8T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - start hour 24", - "data": "R12/1985-W15-5T24:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - start minute 60", - "data": "R12/1985-W15-5T23:60:50/P1Y", - "valid": false - }, - { - "description": "Invalid - start second 61", - "data": "R12/1985-W15-5T23:20:61/P1Y", - "valid": false - }, - { - "description": "Invalid - missing T separator in start", - "data": "R12/1985-W15-5 23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - lowercase t in start", - "data": "R12/1985-W15-5t23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - end datetime instead of duration", - "data": "R12/1985-W15-5T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - duration without P prefix", - "data": "R12/1985-W15-5T23:20:50/1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - lowercase p in duration", - "data": "R12/1985-W15-5T23:20:50/p1Y", - "valid": false - }, - { - "description": "Invalid - lowercase t in duration", - "data": "R12/1985-W15-5T23:20:50/P1Dt1H", - "valid": false - }, - { - "description": "Invalid - empty duration (only P)", - "data": "R12/1985-W15-5T23:20:50/P", - "valid": false - }, - { - "description": "Invalid - empty time duration (only PT)", - "data": "R12/1985-W15-5T23:20:50/PT", - "valid": false - }, - { - "description": "Invalid - calendar date instead of week", - "data": "R12/1985-04-12T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - ordinal date instead of week", - "data": "R12/1985-102T23:20:50/P1Y", - "valid": false - }, - { - "description": "Invalid - double slash separator", - "data": "R12/1985-W15-5T23:20:50//P1Y", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "R12/1985-W15-5T23:20:50\\P1Y", - "valid": false - }, - { - "description": "Valid - week 53 (long year validation is consumer responsibility)", - "data": "R12/2020-W53-1T00:00:00/P1Y", - "valid": true - }, - { - "description": "Valid - leap second in start", - "data": "R12/1985-W15-5T23:59:60/P1D", - "valid": true - }, - { - "description": "Valid - zero duration components", - "data": "R12/2023-W01-1T00:00:00/P0Y0M0DT0H0M0S", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in years", - "data": "R12/2023-W01-1T12:00:00/P1.5Y", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in months", - "data": "R12/2023-W01-1T12:00:00/P3M15DT2.5H", - "valid": true - }, - { - "description": "Valid - duration with decimal fraction in days", - "data": "R12/2023-W01-1T12:00:00/P10.5D", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in hours", - "data": "R12/2023-W01-1T12:00:00/PT2.5H", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in minutes", - "data": "R12/2023-W01-1T12:00:00/PT45.5M", - "valid": true - }, - { - "description": "Valid - time duration with decimal fraction in seconds", - "data": "R12/2023-W01-1T12:00:00/PT10.123S", - "valid": true - }, - { - "description": "Valid - decimal weeks", - "data": "R12/2023-W01-1T12:00:00/P1.5W", - "valid": true - }, - { - "description": "Invalid - duration wrong component order (M before Y)", - "data": "R12/1985-W15-5T23:20:50/P6M3Y", - "valid": false - }, - { - "description": "Invalid - duration wrong component order (D before M)", - "data": "R12/1985-W15-5T23:20:50/P15D6M", - "valid": false - }, - { - "description": "Invalid - duration time without T designator", - "data": "R12/1985-W15-5T23:20:50/P1D1H", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with other units", - "data": "R12/1985-W15-5T23:20:50/P1W2D", - "valid": false - }, - { - "description": "Invalid - duration weeks mixed with years", - "data": "R12/1985-W15-5T23:20:50/P1Y2W", - "valid": false - }, - { - "description": "Invalid - duration weeks with time", - "data": "R12/1985-W15-5T23:20:50/P1WT1H", - "valid": false - }, - { - "description": "Valid - large year value", - "data": "R12/2023-W01-1T00:00:00/P500Y", - "valid": true - }, - { - "description": "Valid - large day value", - "data": "R12/2023-W01-1T00:00:00/P500D", - "valid": true - }, - { - "description": "Valid - large hour value", - "data": "R12/2023-W01-1T00:00:00/PT100H", - "valid": true - }, - { - "description": "Valid - 13 months", - "data": "R12/2023-W01-1T00:00:00/P13M", - "valid": true - } - ] -} diff --git a/test/iso/datetime/2019/recurring/start-end-calendar-basic/v1.test.json b/test/iso/datetime/2019/recurring/start-end-calendar-basic/v1.test.json deleted file mode 100644 index f45c0d52..00000000 --- a/test/iso/datetime/2019/recurring/start-end-calendar-basic/v1.test.json +++ /dev/null @@ -1,815 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/recurring/start-end-calendar-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 19850412232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - R12 with interval", - "data": "R12/19850412T232050/19850625T103000", - "valid": true - }, - { - "description": "Valid - R without number (unbounded)", - "data": "R/20000101T000000/20001231T235959", - "valid": true - }, - { - "description": "Valid - R0 (zero recurrences)", - "data": "R0/20230101T120000/20230101T180000", - "valid": true - }, - { - "description": "Valid - R9999 (large number)", - "data": "R9999/19850412T232050/19850625T103000", - "valid": true - }, - { - "description": "Valid - R1 (single recurrence)", - "data": "R1/20230101T120000/20230102T120000", - "valid": true - }, - { - "description": "Valid - cross year boundary", - "data": "R5/20221231T230000/20230101T010000", - "valid": true - }, - { - "description": "Valid - 31 January to 28 February", - "data": "R3/20230131T000000/20230228T235959", - "valid": true - }, - { - "description": "Valid - leap year February 29", - "data": "R2/20200228T120000/20200229T120000", - "valid": true - }, - { - "description": "Valid - with leap second (60 seconds) in start", - "data": "R10/19850412T235960/19850413T000000", - "valid": true - }, - { - "description": "Valid - with leap second (60 seconds) in end", - "data": "R10/19850412T235959/19850413T000060", - "valid": true - }, - { - "description": "Valid - midnight to midnight", - "data": "R7/20230101T000000/20230102T000000", - "valid": true - }, - { - "description": "Valid - 31 May to 30 June", - "data": "R4/20230531T120000/20230630T120000", - "valid": true - }, - { - "description": "Valid - 31 August to 30 September", - "data": "R4/20230831T120000/20230930T120000", - "valid": true - }, - { - "description": "Valid - 31 October to 30 November", - "data": "R4/20231031T120000/20231130T120000", - "valid": true - }, - { - "description": "Valid - 29 February (leap year validation is consumer responsibility)", - "data": "R12/20230229T120000/20230331T120000", - "valid": true - }, - { - "description": "Valid - both start and end with 29 February", - "data": "R5/20230229T000000/20240229T235959", - "valid": true - }, - { - "description": "Valid - reversed order (end before start is syntactically valid per ISO 8601)", - "data": "R3/19850625T103000/19850412T232050", - "valid": true - }, - { - "description": "Invalid - missing R prefix", - "data": "12/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - lowercase r prefix", - "data": "r12/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - space after R", - "data": "R 12/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - space before first slash", - "data": "R12 /19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - negative recurrence number", - "data": "R-5/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - decimal recurrence number", - "data": "R12.5/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - letter in recurrence number", - "data": "R1A/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - missing separator slash between R and interval", - "data": "R1219850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - missing separator slash between start and end", - "data": "R12/19850412T23205019850625T103000", - "valid": false - }, - { - "description": "Invalid - extended format (contains hyphens)", - "data": "R12/1985-04-12T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - mixed formats (basic start, extended end)", - "data": "R12/19850412T232050/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - mixed formats (extended start, basic end)", - "data": "R12/1985-04-12T23:20:50/19850625T103000", - "valid": false - }, - { - "description": "Invalid - missing end datetime", - "data": "R12/19850412T232050/", - "valid": false - }, - { - "description": "Invalid - missing start datetime", - "data": "R12//19850625T103000", - "valid": false - }, - { - "description": "Invalid - only R and separator", - "data": "R12//", - "valid": false - }, - { - "description": "Invalid - only R", - "data": "R", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - spaces around interval separator", - "data": "R12/19850412T232050 / 19850625T103000", - "valid": false - }, - { - "description": "Invalid - start month 00", - "data": "R12/19850012T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - start month 13", - "data": "R12/19851312T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - end month 00", - "data": "R12/19850412T232050/19850025T103000", - "valid": false - }, - { - "description": "Invalid - end month 13", - "data": "R12/19850412T232050/19851325T103000", - "valid": false - }, - { - "description": "Invalid - start day 00", - "data": "R12/19850400T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - start day 32", - "data": "R12/19850432T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - end day 00", - "data": "R12/19850412T232050/19850600T103000", - "valid": false - }, - { - "description": "Invalid - end day 32", - "data": "R12/19850412T232050/19850632T103000", - "valid": false - }, - { - "description": "Invalid - start 31 April", - "data": "R12/19850431T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - start 31 June", - "data": "R12/19850631T232050/19850731T103000", - "valid": false - }, - { - "description": "Invalid - start 31 September", - "data": "R12/19850931T232050/19851031T103000", - "valid": false - }, - { - "description": "Invalid - start 31 November", - "data": "R12/19851131T232050/19851231T103000", - "valid": false - }, - { - "description": "Invalid - end 31 April", - "data": "R12/19850401T232050/19850431T103000", - "valid": false - }, - { - "description": "Invalid - end 31 June", - "data": "R12/19850601T232050/19850631T103000", - "valid": false - }, - { - "description": "Invalid - end 31 September", - "data": "R12/19850901T232050/19850931T103000", - "valid": false - }, - { - "description": "Invalid - end 31 November", - "data": "R12/19851101T232050/19851131T103000", - "valid": false - }, - { - "description": "Invalid - start 30 February", - "data": "R12/20230230T120000/20230331T120000", - "valid": false - }, - { - "description": "Invalid - end 30 February", - "data": "R12/20230131T120000/20230230T120000", - "valid": false - }, - { - "description": "Invalid - start hour 24", - "data": "R12/19850412T242050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - start hour 25", - "data": "R12/19850412T252050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - end hour 24", - "data": "R12/19850412T232050/19850625T243000", - "valid": false - }, - { - "description": "Invalid - start minute 60", - "data": "R12/19850412T236050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - end minute 60", - "data": "R12/19850412T232050/19850625T106000", - "valid": false - }, - { - "description": "Invalid - start second 61", - "data": "R12/19850412T232061/19850625T103000", - "valid": false - }, - { - "description": "Invalid - end second 61", - "data": "R12/19850412T232050/19850625T103061", - "valid": false - }, - { - "description": "Invalid - missing T separator in start", - "data": "R12/19850412232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - missing T separator in end", - "data": "R12/19850412T232050/19850625103000", - "valid": false - }, - { - "description": "Invalid - lowercase t in start", - "data": "R12/19850412t232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - lowercase t in end", - "data": "R12/19850412T232050/19850625t103000", - "valid": false - }, - { - "description": "Invalid - duration instead of end datetime", - "data": "R12/19850412T232050/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - duration instead of start datetime", - "data": "R12/P1Y2M15DT12H30M0S/19850625T103000", - "valid": false - }, - { - "description": "Invalid - letters in start date", - "data": "R12/ABCD0412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - letters in end date", - "data": "R12/19850412T232050/ABCD0625T103000", - "valid": false - }, - { - "description": "Invalid - letters in start time", - "data": "R12/19850412TABC050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - letters in end time", - "data": "R12/19850412T232050/19850625TABC000", - "valid": false - }, - { - "description": "Invalid - double slash separator", - "data": "R12/19850412T232050//19850625T103000", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "R12/19850412T232050\\19850625T103000", - "valid": false - }, - { - "description": "Invalid - start hour 99", - "data": "R12/19850412T992050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - end hour 99", - "data": "R12/19850412T232050/19850625T993000", - "valid": false - }, - { - "description": "Invalid - start minute 99", - "data": "R12/19850412T239950/19850625T103000", - "valid": false - }, - { - "description": "Invalid - end minute 99", - "data": "R12/19850412T232050/19850625T109900", - "valid": false - }, - { - "description": "Invalid - start second 99", - "data": "R12/19850412T232099/19850625T103000", - "valid": false - }, - { - "description": "Invalid - end second 99", - "data": "R12/19850412T232050/19850625T103099", - "valid": false - }, - { - "description": "Invalid - letter in start year", - "data": "R12/I9850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - letter in end year", - "data": "R12/19850412T232050/I9850625T103000", - "valid": false - }, - { - "description": "Invalid - letter in start month", - "data": "R12/1985O412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - letter in end month", - "data": "R12/19850412T232050/1985O625T103000", - "valid": false - }, - { - "description": "Invalid - letter in start day", - "data": "R12/198504I2T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - letter in end day", - "data": "R12/19850412T232050/198506I5T103000", - "valid": false - }, - { - "description": "Invalid - letter in start hour", - "data": "R12/19850412TI32050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - letter in end hour", - "data": "R12/19850412T232050/19850625TI03000", - "valid": false - }, - { - "description": "Invalid - letter in start minute", - "data": "R12/19850412T23I050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - letter in end minute", - "data": "R12/19850412T232050/19850625T10I000", - "valid": false - }, - { - "description": "Invalid - letter in start second", - "data": "R12/19850412T2320I0/19850625T103000", - "valid": false - }, - { - "description": "Invalid - letter in end second", - "data": "R12/19850412T232050/19850625T1030I0", - "valid": false - }, - { - "description": "Invalid - too short start", - "data": "R12/19850412T23205/19850625T103000", - "valid": false - }, - { - "description": "Invalid - too long start", - "data": "R12/19850412T2320500/19850625T103000", - "valid": false - }, - { - "description": "Invalid - too short end", - "data": "R12/19850412T232050/19850625T10300", - "valid": false - }, - { - "description": "Invalid - too long end", - "data": "R12/19850412T232050/19850625T1030000", - "valid": false - }, - { - "description": "Invalid - extra characters at beginning", - "data": "XR12/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - extra characters at end", - "data": "R12/19850412T232050/19850625T103000X", - "valid": false - }, - { - "description": "Invalid - spaces in start datetime", - "data": "R12/1985 04 12T23 20 50/19850625T103000", - "valid": false - }, - { - "description": "Invalid - spaces in end datetime", - "data": "R12/19850412T232050/1985 06 25T10 30 00", - "valid": false - }, - { - "description": "Invalid - double R", - "data": "RR12/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - R without slash", - "data": "R12", - "valid": false - }, - { - "description": "Valid - R52 weekly for a year", - "data": "R52/19850412T232050/19850625T103000", - "valid": true - }, - { - "description": "Valid - R24 every hour for a day", - "data": "R24/19850412T232050/19850625T103000", - "valid": true - }, - { - "description": "Valid - R7 daily for a week", - "data": "R7/19850412T232050/19850625T103000", - "valid": true - }, - { - "description": "Valid - R30 monthly pattern", - "data": "R30/19850412T232050/19850625T103000", - "valid": true - }, - { - "description": "Valid - R4 quarterly", - "data": "R4/19850412T232050/19850625T103000", - "valid": true - }, - { - "description": "Valid - R2 semi-annual", - "data": "R2/19850412T232050/19850625T103000", - "valid": true - }, - { - "description": "Valid - R365 daily for year", - "data": "R365/19850412T232050/19850625T103000", - "valid": true - }, - { - "description": "Valid - R1000 large recurrence", - "data": "R1000/19850412T232050/19850625T103000", - "valid": true - }, - { - "description": "Valid - R10000 very large recurrence", - "data": "R10000/19850412T232050/19850625T103000", - "valid": true - }, - { - "description": "Valid - R999999 maximum practical recurrence", - "data": "R999999/19850412T232050/19850625T103000", - "valid": true - }, - { - "description": "Invalid - R with plus sign", - "data": "R+12/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - R with trailing space", - "data": "R12 /19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - space in recurrence number", - "data": "R 1 2/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - R with comma separator", - "data": "R1,200/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - R with underscore", - "data": "R1_2/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - multiple R prefixes", - "data": "R12/R5/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - R in middle", - "data": "12/R/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - R at end", - "data": "12/19850412T232050/19850625T103000/R", - "valid": false - }, - { - "description": "Invalid - lowercase r with number", - "data": "r5/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - mixed case R", - "data": "r12/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - R with decimal point", - "data": "R12.0/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - R with fraction", - "data": "R1/2/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - R with scientific notation", - "data": "R1e2/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - R with hexadecimal", - "data": "R0x12/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - R followed by tab", - "data": "R\t12/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - R followed by newline", - "data": "R\n12/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - double slash after R", - "data": "R12//19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - backslash after R", - "data": "R12\\19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - missing both slashes", - "data": "R1219850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - R with parentheses", - "data": "R(12)/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - R with brackets", - "data": "R[12]/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - R with braces", - "data": "R{12}/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - extra character before R", - "data": "XR12/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - extra character after recurrence", - "data": "R12X/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - unicode R character", - "data": "ℜ12/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - R with asterisk", - "data": "R*/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - R with question mark", - "data": "R?/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - R with hash", - "data": "R#12/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - R with dollar sign", - "data": "R$12/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - R with percent", - "data": "R%12/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - R with ampersand", - "data": "R&12/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - R with at symbol", - "data": "R@12/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - R with caret", - "data": "R^12/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - R with tilde", - "data": "R~12/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - R with backtick", - "data": "R`12/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - R with pipe", - "data": "R|12/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - R with equals", - "data": "R=12/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - R with semicolon", - "data": "R;12/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - R with colon", - "data": "R:12/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - R with single quote", - "data": "R'12/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - R with double quote", - "data": "R\"12/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - R with less than", - "data": "R<12/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - R with greater than", - "data": "R>12/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - only R/", - "data": "R/", - "valid": false - }, - { - "description": "Invalid - R//interval", - "data": "R//19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - trailing slash", - "data": "R12/19850412T232050/19850625T103000/", - "valid": false - }, - { - "description": "Invalid - leading slash", - "data": "/R12/19850412T232050/19850625T103000", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/recurring/start-end-calendar-extended/v1.test.json b/test/iso/datetime/2019/recurring/start-end-calendar-extended/v1.test.json deleted file mode 100644 index 078430ef..00000000 --- a/test/iso/datetime/2019/recurring/start-end-calendar-extended/v1.test.json +++ /dev/null @@ -1,570 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/recurring/start-end-calendar-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 19850412232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - R12 with interval", - "data": "R12/1985-04-12T23:20:50/1985-06-25T10:30:00", - "valid": true - }, - { - "description": "Valid - R without number (unbounded)", - "data": "R/1985-04-12T23:20:50/1985-06-25T10:30:00", - "valid": true - }, - { - "description": "Valid - R0 (zero recurrences)", - "data": "R0/1985-04-12T23:20:50/1985-06-25T10:30:00", - "valid": true - }, - { - "description": "Valid - R9999 (large number)", - "data": "R9999/1985-04-12T23:20:50/1985-06-25T10:30:00", - "valid": true - }, - { - "description": "Valid - R1 (single recurrence)", - "data": "R1/1985-04-12T23:20:50/1985-06-25T10:30:00", - "valid": true - }, - { - "description": "Valid - R52 weekly for a year", - "data": "R52/1985-04-12T23:20:50/1985-06-25T10:30:00", - "valid": true - }, - { - "description": "Valid - R24 every hour for a day", - "data": "R24/1985-04-12T23:20:50/1985-06-25T10:30:00", - "valid": true - }, - { - "description": "Valid - R7 daily for a week", - "data": "R7/1985-04-12T23:20:50/1985-06-25T10:30:00", - "valid": true - }, - { - "description": "Invalid - missing R prefix", - "data": "12/1985-04-12T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - lowercase r prefix", - "data": "r12/1985-04-12T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - space after R", - "data": "R 12/1985-04-12T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - negative recurrence number", - "data": "R-5/1985-04-12T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - decimal recurrence number", - "data": "R12.5/1985-04-12T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - double R", - "data": "RR12/1985-04-12T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - R with plus sign", - "data": "R+12/1985-04-12T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Valid - 12 April 1985 to 25 June 1985", - "data": "R12/1985-04-12T23:20:50/1985-06-25T10:30:00", - "valid": true - }, - { - "description": "Valid - 1 January 2000 to 31 December 2000", - "data": "R12/2000-01-01T00:00:00/2000-12-31T23:59:59", - "valid": true - }, - { - "description": "Valid - same day interval", - "data": "R12/2023-01-01T12:00:00/2023-01-01T18:00:00", - "valid": true - }, - { - "description": "Valid - cross year boundary", - "data": "R12/2022-12-31T23:00:00/2023-01-01T01:00:00", - "valid": true - }, - { - "description": "Valid - 31 January to 28 February", - "data": "R12/2023-01-31T00:00:00/2023-02-28T23:59:59", - "valid": true - }, - { - "description": "Valid - leap year February 29", - "data": "R12/2020-02-28T12:00:00/2020-02-29T12:00:00", - "valid": true - }, - { - "description": "Valid - with leap second (60 seconds)", - "data": "R12/1985-04-12T23:59:60/1985-04-13T00:00:00", - "valid": true - }, - { - "description": "Valid - midnight to midnight", - "data": "R12/2023-01-01T00:00:00/2023-01-02T00:00:00", - "valid": true - }, - { - "description": "Valid - 31 May to 30 June", - "data": "R12/2023-05-31T12:00:00/2023-06-30T12:00:00", - "valid": true - }, - { - "description": "Valid - 31 August to 30 September", - "data": "R12/2023-08-31T12:00:00/2023-09-30T12:00:00", - "valid": true - }, - { - "description": "Valid - 31 October to 30 November", - "data": "R12/2023-10-31T12:00:00/2023-11-30T12:00:00", - "valid": true - }, - { - "description": "Invalid - missing separator slash", - "data": "R12/1985-04-12T23:20:501985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - basic format (no hyphens or colons)", - "data": "R12/19850412T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - mixed formats (basic start, extended end)", - "data": "R12/19850412T232050/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - mixed formats (extended start, basic end)", - "data": "R12/1985-04-12T23:20:50/19850625T103000", - "valid": false - }, - { - "description": "Invalid - missing end datetime", - "data": "R12/1985-04-12T23:20:50/", - "valid": false - }, - { - "description": "Invalid - missing start datetime", - "data": "R12//1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - only separator", - "data": "R12//", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "R12/", - "valid": false - }, - { - "description": "Invalid - spaces around separator", - "data": "R12/1985-04-12T23:20:50 / 1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - start month 00", - "data": "R12/1985-00-12T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - start month 13", - "data": "R12/1985-13-12T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - end month 00", - "data": "R12/1985-04-12T23:20:50/1985-00-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - end month 13", - "data": "R12/1985-04-12T23:20:50/1985-13-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - start day 00", - "data": "R12/1985-04-00T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - start day 32", - "data": "R12/1985-04-32T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - end day 00", - "data": "R12/1985-04-12T23:20:50/1985-06-00T10:30:00", - "valid": false - }, - { - "description": "Invalid - end day 32", - "data": "R12/1985-04-12T23:20:50/1985-06-32T10:30:00", - "valid": false - }, - { - "description": "Invalid - start 31 April", - "data": "R12/1985-04-31T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - start 31 June", - "data": "R12/1985-06-31T23:20:50/1985-07-31T10:30:00", - "valid": false - }, - { - "description": "Invalid - start 31 September", - "data": "R12/1985-09-31T23:20:50/1985-10-31T10:30:00", - "valid": false - }, - { - "description": "Invalid - start 31 November", - "data": "R12/1985-11-31T23:20:50/1985-12-31T10:30:00", - "valid": false - }, - { - "description": "Invalid - end 31 April", - "data": "R12/1985-04-01T23:20:50/1985-04-31T10:30:00", - "valid": false - }, - { - "description": "Invalid - end 31 June", - "data": "R12/1985-06-01T23:20:50/1985-06-31T10:30:00", - "valid": false - }, - { - "description": "Invalid - end 31 September", - "data": "R12/1985-09-01T23:20:50/1985-09-31T10:30:00", - "valid": false - }, - { - "description": "Invalid - end 31 November", - "data": "R12/1985-11-01T23:20:50/1985-11-31T10:30:00", - "valid": false - }, - { - "description": "Invalid - start 30 February", - "data": "R12/2023-02-30T12:00:00/2023-03-31T12:00:00", - "valid": false - }, - { - "description": "Invalid - end 30 February", - "data": "R12/2023-01-31T12:00:00/2023-02-30T12:00:00", - "valid": false - }, - { - "description": "Invalid - start hour 24", - "data": "R12/1985-04-12T24:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - start hour 25", - "data": "R12/1985-04-12T25:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - end hour 24", - "data": "R12/1985-04-12T23:20:50/1985-06-25T24:30:00", - "valid": false - }, - { - "description": "Invalid - start minute 60", - "data": "R12/1985-04-12T23:60:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - end minute 60", - "data": "R12/1985-04-12T23:20:50/1985-06-25T10:60:00", - "valid": false - }, - { - "description": "Invalid - start second 61", - "data": "R12/1985-04-12T23:20:61/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - end second 61", - "data": "R12/1985-04-12T23:20:50/1985-06-25T10:30:61", - "valid": false - }, - { - "description": "Invalid - missing T separator in start", - "data": "R12/1985-04-1223:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - missing T separator in end", - "data": "R12/1985-04-12T23:20:50/1985-06-2510:30:00", - "valid": false - }, - { - "description": "Invalid - lowercase t in start", - "data": "R12/1985-04-12t23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - lowercase t in end", - "data": "R12/1985-04-12T23:20:50/1985-06-25t10:30:00", - "valid": false - }, - { - "description": "Invalid - duration instead of end datetime", - "data": "R12/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - duration instead of start datetime", - "data": "R12/P1Y2M15DT12H30M0S/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - missing hyphen in start date", - "data": "R12/19850412T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - missing hyphen in end date", - "data": "R12/1985-04-12T23:20:50/19850625T10:30:00", - "valid": false - }, - { - "description": "Invalid - missing colon in start time", - "data": "R12/1985-04-12T232050/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - missing colon in end time", - "data": "R12/1985-04-12T23:20:50/1985-06-25T103000", - "valid": false - }, - { - "description": "Invalid - letters in start date", - "data": "R12/ABCD-04-12T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - letters in end date", - "data": "R12/1985-04-12T23:20:50/ABCD-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - letters in start time", - "data": "R12/1985-04-12TAB:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - letters in end time", - "data": "R12/1985-04-12T23:20:50/1985-06-25TAB:30:00", - "valid": false - }, - { - "description": "Valid - 29 February (leap year validation is consumer responsibility)", - "data": "R12/2023-02-29T12:00:00/2023-03-31T12:00:00", - "valid": true - }, - { - "description": "Valid - both start and end with 29 February", - "data": "R12/2023-02-29T00:00:00/2024-02-29T23:59:59", - "valid": true - }, - { - "description": "Invalid - double slash separator", - "data": "R12/1985-04-12T23:20:50//1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "R12/1985-04-12T23:20:50\\1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Valid - reversed order (end before start is syntactically valid per ISO 8601)", - "data": "R12/1985-06-25T10:30:00/1985-04-12T23:20:50", - "valid": true - }, - { - "description": "Invalid - start hour 99", - "data": "R12/1985-04-12T99:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - end hour 99", - "data": "R12/1985-04-12T23:20:50/1985-06-25T99:30:00", - "valid": false - }, - { - "description": "Invalid - start minute 99", - "data": "R12/1985-04-12T23:99:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - end minute 99", - "data": "R12/1985-04-12T23:20:50/1985-06-25T10:99:00", - "valid": false - }, - { - "description": "Invalid - start second 99", - "data": "R12/1985-04-12T23:20:99/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - end second 99", - "data": "R12/1985-04-12T23:20:50/1985-06-25T10:30:99", - "valid": false - }, - { - "description": "Invalid - letter in start year", - "data": "R12/I985-04-12T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in end year", - "data": "R12/1985-04-12T23:20:50/I985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in start month", - "data": "R12/1985-0I-12T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in end month", - "data": "R12/1985-04-12T23:20:50/1985-0I-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in start day", - "data": "R12/1985-04-I2T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in end day", - "data": "R12/1985-04-12T23:20:50/1985-06-I5T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in start hour", - "data": "R12/1985-04-12TI3:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in end hour", - "data": "R12/1985-04-12T23:20:50/1985-06-25TI0:30:00", - "valid": false - }, - { - "description": "Invalid - letter in start minute", - "data": "R12/1985-04-12T23:I0:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in end minute", - "data": "R12/1985-04-12T23:20:50/1985-06-25T10:I0:00", - "valid": false - }, - { - "description": "Invalid - letter in start second", - "data": "R12/1985-04-12T23:20:I0/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in end second", - "data": "R12/1985-04-12T23:20:50/1985-06-25T10:30:I0", - "valid": false - }, - { - "description": "Invalid - too short start datetime", - "data": "R12/1985-04-12T23:20:5/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - too short end datetime", - "data": "R12/1985-04-12T23:20:50/1985-06-25T10:30:0", - "valid": false - }, - { - "description": "Invalid - too long start datetime", - "data": "R12/1985-04-12T23:20:500/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - too long end datetime", - "data": "R12/1985-04-12T23:20:50/1985-06-25T10:30:000", - "valid": false - }, - { - "description": "Invalid - extra character at start", - "data": "R12/X1985-04-12T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - extra character at end", - "data": "R12/1985-04-12T23:20:50/1985-06-25T10:30:00X", - "valid": false - }, - { - "description": "Invalid - extra character in middle", - "data": "R12/1985-04-12T23:20:50X/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - space in start date", - "data": "R12/1985-04- 12T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - space in end date", - "data": "R12/1985-04-12T23:20:50/1985-06- 25T10:30:00", - "valid": false - }, - { - "description": "Invalid - space in start time", - "data": "R12/1985-04-12T23: 20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - space in end time", - "data": "R12/1985-04-12T23:20:50/1985-06-25T10: 30:00", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/recurring/start-end-ordinal-basic/v1.test.json b/test/iso/datetime/2019/recurring/start-end-ordinal-basic/v1.test.json deleted file mode 100644 index 166c8350..00000000 --- a/test/iso/datetime/2019/recurring/start-end-ordinal-basic/v1.test.json +++ /dev/null @@ -1,490 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/recurring/start-end-ordinal-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985102232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - R12 with interval", - "data": "R12/1985102T232050/1985176T103000", - "valid": true - }, - { - "description": "Valid - R without number (unbounded)", - "data": "R/1985102T232050/1985176T103000", - "valid": true - }, - { - "description": "Valid - R0 (zero recurrences)", - "data": "R0/1985102T232050/1985176T103000", - "valid": true - }, - { - "description": "Valid - R9999 (large number)", - "data": "R9999/1985102T232050/1985176T103000", - "valid": true - }, - { - "description": "Valid - R1 (single recurrence)", - "data": "R1/1985102T232050/1985176T103000", - "valid": true - }, - { - "description": "Valid - R52 weekly for a year", - "data": "R52/1985102T232050/1985176T103000", - "valid": true - }, - { - "description": "Valid - R24 every hour for a day", - "data": "R24/1985102T232050/1985176T103000", - "valid": true - }, - { - "description": "Valid - R7 daily for a week", - "data": "R7/1985102T232050/1985176T103000", - "valid": true - }, - { - "description": "Invalid - missing R prefix", - "data": "12/1985102T232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - lowercase r prefix", - "data": "r12/1985102T232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - space after R", - "data": "R 12/1985102T232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - negative recurrence number", - "data": "R-5/1985102T232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - decimal recurrence number", - "data": "R12.5/1985102T232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - double R", - "data": "RR12/1985102T232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - R with plus sign", - "data": "R+12/1985102T232050/1985176T103000", - "valid": false - }, - { - "description": "Valid - day 102 to day 176 of 1985", - "data": "R12/1985102T232050/1985176T103000", - "valid": true - }, - { - "description": "Valid - day 1 to day 366 of 2000 (leap year)", - "data": "R12/2000001T000000/2000366T235959", - "valid": true - }, - { - "description": "Valid - day 1 to day 365 of 2023", - "data": "R12/2023001T120000/2023365T180000", - "valid": true - }, - { - "description": "Valid - same day interval", - "data": "R12/2023100T120000/2023100T180000", - "valid": true - }, - { - "description": "Valid - cross year boundary", - "data": "R12/2022365T230000/2023001T010000", - "valid": true - }, - { - "description": "Valid - first to last day of year", - "data": "R12/2020001T000000/2020366T235959", - "valid": true - }, - { - "description": "Valid - with leap second (60 seconds)", - "data": "R12/1985102T235960/1985103T000000", - "valid": true - }, - { - "description": "Valid - midnight to midnight", - "data": "R12/2023001T000000/2023002T000000", - "valid": true - }, - { - "description": "Valid - day 59 to day 60 (February 28-29 in leap year)", - "data": "R12/2020059T120000/2020060T120000", - "valid": true - }, - { - "description": "Invalid - missing separator slash", - "data": "R12/1985102T2320501985176T103000", - "valid": false - }, - { - "description": "Invalid - extended format (contains hyphens)", - "data": "R12/1985-102T23:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - mixed formats (basic start, extended end)", - "data": "R12/1985102T232050/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - mixed formats (extended start, basic end)", - "data": "R12/1985-102T23:20:50/1985176T103000", - "valid": false - }, - { - "description": "Invalid - missing end datetime", - "data": "R12/1985102T232050/", - "valid": false - }, - { - "description": "Invalid - missing start datetime", - "data": "R12//1985176T103000", - "valid": false - }, - { - "description": "Invalid - only separator", - "data": "R12//", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "R12/", - "valid": false - }, - { - "description": "Invalid - spaces around separator", - "data": "R12/1985102T232050 / 1985176T103000", - "valid": false - }, - { - "description": "Invalid - start day 000", - "data": "R12/1985000T232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - start day 367", - "data": "R12/1985367T232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - end day 000", - "data": "R12/1985102T232050/1985000T103000", - "valid": false - }, - { - "description": "Invalid - end day 367", - "data": "R12/1985102T232050/1985367T103000", - "valid": false - }, - { - "description": "Invalid - start hour 24", - "data": "R12/1985102T242050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - start hour 25", - "data": "R12/1985102T252050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - end hour 24", - "data": "R12/1985102T232050/1985176T243000", - "valid": false - }, - { - "description": "Invalid - start minute 60", - "data": "R12/1985102T236050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - end minute 60", - "data": "R12/1985102T232050/1985176T106000", - "valid": false - }, - { - "description": "Invalid - start second 61", - "data": "R12/1985102T232061/1985176T103000", - "valid": false - }, - { - "description": "Invalid - end second 61", - "data": "R12/1985102T232050/1985176T103061", - "valid": false - }, - { - "description": "Invalid - missing T separator in start", - "data": "R12/1985102232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - missing T separator in end", - "data": "R12/1985102T232050/1985176103000", - "valid": false - }, - { - "description": "Invalid - lowercase t in start", - "data": "R12/1985102t232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - lowercase t in end", - "data": "R12/1985102T232050/1985176t103000", - "valid": false - }, - { - "description": "Invalid - duration instead of end datetime", - "data": "R12/1985102T232050/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - duration instead of start datetime", - "data": "R12/P1Y2M15DT12H30M0S/1985176T103000", - "valid": false - }, - { - "description": "Invalid - calendar date instead of ordinal in start", - "data": "R12/19850412T232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - calendar date instead of ordinal in end", - "data": "R12/1985102T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - too few digits in start day", - "data": "R12/198502T232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - too many digits in start day", - "data": "R12/19851022T232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - letters in start date", - "data": "R12/ABCD102T232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - letters in end date", - "data": "R12/1985102T232050/ABCD176T103000", - "valid": false - }, - { - "description": "Invalid - letters in start time", - "data": "R12/1985102TABC050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - letters in end time", - "data": "R12/1985102T232050/1985176TABC000", - "valid": false - }, - { - "description": "Valid - day 366 in leap year", - "data": "R12/2020366T000000/2021001T000000", - "valid": true - }, - { - "description": "Valid - day 366 in non-leap year (validation is consumer responsibility)", - "data": "R12/2023366T120000/2024001T120000", - "valid": true - }, - { - "description": "Invalid - double slash separator", - "data": "R12/1985102T232050//1985176T103000", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "R12/1985102T232050\\1985176T103000", - "valid": false - }, - { - "description": "Valid - reversed order (end before start is syntactically valid per ISO 8601)", - "data": "R12/1985176T103000/1985102T232050", - "valid": true - }, - { - "description": "Invalid - week date format instead of ordinal in start", - "data": "R12/1985W155T232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - week date format instead of ordinal in end", - "data": "R12/1985102T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - start hour 99", - "data": "R12/1985102T992050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - end hour 99", - "data": "R12/1985102T232050/1985176T993000", - "valid": false - }, - { - "description": "Invalid - start minute 99", - "data": "R12/1985102T239950/1985176T103000", - "valid": false - }, - { - "description": "Invalid - end minute 99", - "data": "R12/1985102T232050/1985176T109900", - "valid": false - }, - { - "description": "Invalid - start second 99", - "data": "R12/1985102T232099/1985176T103000", - "valid": false - }, - { - "description": "Invalid - end second 99", - "data": "R12/1985102T232050/1985176T103099", - "valid": false - }, - { - "description": "Invalid - letter in start year", - "data": "R12/I985102T232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - letter in end year", - "data": "R12/1985102T232050/I985176T103000", - "valid": false - }, - { - "description": "Invalid - letter in start day", - "data": "R12/1985I02T232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - letter in end day", - "data": "R12/1985102T232050/1985I76T103000", - "valid": false - }, - { - "description": "Invalid - letter in start hour", - "data": "R12/1985102TI32050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - letter in end hour", - "data": "R12/1985102T232050/1985176TI03000", - "valid": false - }, - { - "description": "Invalid - letter in start minute", - "data": "R12/1985102T23I050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - letter in end minute", - "data": "R12/1985102T232050/1985176T10I000", - "valid": false - }, - { - "description": "Invalid - letter in start second", - "data": "R12/1985102T2320I0/1985176T103000", - "valid": false - }, - { - "description": "Invalid - letter in end second", - "data": "R12/1985102T232050/1985176T1030I0", - "valid": false - }, - { - "description": "Invalid - too short start datetime", - "data": "R12/1985102T23205/1985176T103000", - "valid": false - }, - { - "description": "Invalid - too short end datetime", - "data": "R12/1985102T232050/1985176T10300", - "valid": false - }, - { - "description": "Invalid - too long start datetime", - "data": "R12/1985102T2320500/1985176T103000", - "valid": false - }, - { - "description": "Invalid - too long end datetime", - "data": "R12/1985102T232050/1985176T1030000", - "valid": false - }, - { - "description": "Invalid - extra character at start", - "data": "R12/X1985102T232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - extra character at end", - "data": "R12/1985102T232050/1985176T103000X", - "valid": false - }, - { - "description": "Invalid - extra character in middle", - "data": "R12/1985102T232050X/1985176T103000", - "valid": false - }, - { - "description": "Invalid - space in start date", - "data": "R12/1985 102T232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - space in end date", - "data": "R12/1985102T232050/1985 176T103000", - "valid": false - }, - { - "description": "Invalid - space in start time", - "data": "R12/1985102T23 2050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - space in end time", - "data": "R12/1985102T232050/1985176T10 3000", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/recurring/start-end-ordinal-extended/v1.test.json b/test/iso/datetime/2019/recurring/start-end-ordinal-extended/v1.test.json deleted file mode 100644 index 7c97291b..00000000 --- a/test/iso/datetime/2019/recurring/start-end-ordinal-extended/v1.test.json +++ /dev/null @@ -1,475 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/recurring/start-end-ordinal-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985102232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - R12 with interval", - "data": "R12/1985-102T23:20:50/1985-176T10:30:00", - "valid": true - }, - { - "description": "Valid - R without number (unbounded)", - "data": "R/1985-102T23:20:50/1985-176T10:30:00", - "valid": true - }, - { - "description": "Valid - R0 (zero recurrences)", - "data": "R0/1985-102T23:20:50/1985-176T10:30:00", - "valid": true - }, - { - "description": "Valid - R9999 (large number)", - "data": "R9999/1985-102T23:20:50/1985-176T10:30:00", - "valid": true - }, - { - "description": "Valid - R1 (single recurrence)", - "data": "R1/1985-102T23:20:50/1985-176T10:30:00", - "valid": true - }, - { - "description": "Valid - R52 weekly for a year", - "data": "R52/1985-102T23:20:50/1985-176T10:30:00", - "valid": true - }, - { - "description": "Valid - R24 every hour for a day", - "data": "R24/1985-102T23:20:50/1985-176T10:30:00", - "valid": true - }, - { - "description": "Valid - R7 daily for a week", - "data": "R7/1985-102T23:20:50/1985-176T10:30:00", - "valid": true - }, - { - "description": "Invalid - missing R prefix", - "data": "12/1985-102T23:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - lowercase r prefix", - "data": "r12/1985-102T23:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - space after R", - "data": "R 12/1985-102T23:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - negative recurrence number", - "data": "R-5/1985-102T23:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - decimal recurrence number", - "data": "R12.5/1985-102T23:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - double R", - "data": "RR12/1985-102T23:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - R with plus sign", - "data": "R+12/1985-102T23:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Valid - day 102 to day 176 of 1985", - "data": "R12/1985-102T23:20:50/1985-176T10:30:00", - "valid": true - }, - { - "description": "Valid - day 1 to day 366 of 2000 (leap year)", - "data": "R12/2000-001T00:00:00/2000-366T23:59:59", - "valid": true - }, - { - "description": "Valid - day 1 to day 365 of 2023", - "data": "R12/2023-001T12:00:00/2023-365T18:00:00", - "valid": true - }, - { - "description": "Valid - same day interval", - "data": "R12/2023-100T12:00:00/2023-100T18:00:00", - "valid": true - }, - { - "description": "Valid - cross year boundary", - "data": "R12/2022-365T23:00:00/2023-001T01:00:00", - "valid": true - }, - { - "description": "Valid - with leap second (60 seconds)", - "data": "R12/1985-102T23:59:60/1985-103T00:00:00", - "valid": true - }, - { - "description": "Valid - midnight to midnight", - "data": "R12/2023-001T00:00:00/2023-002T00:00:00", - "valid": true - }, - { - "description": "Invalid - missing separator slash", - "data": "R12/1985-102T23:20:501985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - basic format (no hyphens or colons)", - "data": "R12/1985102T232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - mixed formats (basic start, extended end)", - "data": "R12/1985102T232050/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - mixed formats (extended start, basic end)", - "data": "R12/1985-102T23:20:50/1985176T103000", - "valid": false - }, - { - "description": "Invalid - missing end datetime", - "data": "R12/1985-102T23:20:50/", - "valid": false - }, - { - "description": "Invalid - missing start datetime", - "data": "R12//1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - only separator", - "data": "R12//", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "R12/", - "valid": false - }, - { - "description": "Invalid - spaces around separator", - "data": "R12/1985-102T23:20:50 / 1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - start day 000", - "data": "R12/1985-000T23:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - start day 367", - "data": "R12/1985-367T23:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - end day 000", - "data": "R12/1985-102T23:20:50/1985-000T10:30:00", - "valid": false - }, - { - "description": "Invalid - end day 367", - "data": "R12/1985-102T23:20:50/1985-367T10:30:00", - "valid": false - }, - { - "description": "Invalid - start hour 24", - "data": "R12/1985-102T24:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - end hour 24", - "data": "R12/1985-102T23:20:50/1985-176T24:30:00", - "valid": false - }, - { - "description": "Invalid - start minute 60", - "data": "R12/1985-102T23:60:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - end minute 60", - "data": "R12/1985-102T23:20:50/1985-176T10:60:00", - "valid": false - }, - { - "description": "Invalid - start second 61", - "data": "R12/1985-102T23:20:61/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - end second 61", - "data": "R12/1985-102T23:20:50/1985-176T10:30:61", - "valid": false - }, - { - "description": "Invalid - missing T separator in start", - "data": "R12/1985-10223:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - missing T separator in end", - "data": "R12/1985-102T23:20:50/1985-17610:30:00", - "valid": false - }, - { - "description": "Invalid - lowercase t in start", - "data": "R12/1985-102t23:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - lowercase t in end", - "data": "R12/1985-102T23:20:50/1985-176t10:30:00", - "valid": false - }, - { - "description": "Invalid - duration instead of end datetime", - "data": "R12/1985-102T23:20:50/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - duration instead of start datetime", - "data": "R12/P1Y2M15DT12H30M0S/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - calendar date instead of ordinal in start", - "data": "R12/1985-04-12T23:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - calendar date instead of ordinal in end", - "data": "R12/1985-102T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - missing hyphen in start date", - "data": "R12/1985102T23:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - missing hyphen in end date", - "data": "R12/1985-102T23:20:50/1985176T10:30:00", - "valid": false - }, - { - "description": "Invalid - missing colon in start time", - "data": "R12/1985-102T232050/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - missing colon in end time", - "data": "R12/1985-102T23:20:50/1985-176T103000", - "valid": false - }, - { - "description": "Invalid - letters in start date", - "data": "R12/ABCD-102T23:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - letters in end date", - "data": "R12/1985-102T23:20:50/ABCD-176T10:30:00", - "valid": false - }, - { - "description": "Valid - day 366 in leap year", - "data": "R12/2020-366T00:00:00/2021-001T00:00:00", - "valid": true - }, - { - "description": "Valid - day 366 in non-leap year (validation is consumer responsibility)", - "data": "R12/2023-366T12:00:00/2024-001T12:00:00", - "valid": true - }, - { - "description": "Invalid - double slash separator", - "data": "R12/1985-102T23:20:50//1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "R12/1985-102T23:20:50\\1985-176T10:30:00", - "valid": false - }, - { - "description": "Valid - reversed order (end before start is syntactically valid per ISO 8601)", - "data": "R12/1985-176T10:30:00/1985-102T23:20:50", - "valid": true - }, - { - "description": "Invalid - week date format instead of ordinal in start", - "data": "R12/1985-W15-5T23:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - week date format instead of ordinal in end", - "data": "R12/1985-102T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - start hour 99", - "data": "R12/1985-102T99:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - end hour 99", - "data": "R12/1985-102T23:20:50/1985-176T99:30:00", - "valid": false - }, - { - "description": "Invalid - start minute 99", - "data": "R12/1985-102T23:99:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - end minute 99", - "data": "R12/1985-102T23:20:50/1985-176T10:99:00", - "valid": false - }, - { - "description": "Invalid - start second 99", - "data": "R12/1985-102T23:20:99/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - end second 99", - "data": "R12/1985-102T23:20:50/1985-176T10:30:99", - "valid": false - }, - { - "description": "Invalid - letter in start year", - "data": "R12/I985-102T23:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in end year", - "data": "R12/1985-102T23:20:50/I985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in start day", - "data": "R12/1985-I02T23:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in end day", - "data": "R12/1985-102T23:20:50/1985-I76T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in start hour", - "data": "R12/1985-102TI3:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in end hour", - "data": "R12/1985-102T23:20:50/1985-176TI0:30:00", - "valid": false - }, - { - "description": "Invalid - letter in start minute", - "data": "R12/1985-102T23:I0:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in end minute", - "data": "R12/1985-102T23:20:50/1985-176T10:I0:00", - "valid": false - }, - { - "description": "Invalid - letter in start second", - "data": "R12/1985-102T23:20:I0/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in end second", - "data": "R12/1985-102T23:20:50/1985-176T10:30:I0", - "valid": false - }, - { - "description": "Invalid - too short start datetime", - "data": "R12/1985-102T23:20:5/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - too short end datetime", - "data": "R12/1985-102T23:20:50/1985-176T10:30:0", - "valid": false - }, - { - "description": "Invalid - too long start datetime", - "data": "R12/1985-102T23:20:500/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - too long end datetime", - "data": "R12/1985-102T23:20:50/1985-176T10:30:000", - "valid": false - }, - { - "description": "Invalid - extra character at start", - "data": "R12/X1985-102T23:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - extra character at end", - "data": "R12/1985-102T23:20:50/1985-176T10:30:00X", - "valid": false - }, - { - "description": "Invalid - extra character in middle", - "data": "R12/1985-102T23:20:50X/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - space in start date", - "data": "R12/1985- 102T23:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - space in end date", - "data": "R12/1985-102T23:20:50/1985- 176T10:30:00", - "valid": false - }, - { - "description": "Invalid - space in start time", - "data": "R12/1985-102T23: 20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - space in end time", - "data": "R12/1985-102T23:20:50/1985-176T10: 30:00", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/recurring/start-end-week-basic/v1.test.json b/test/iso/datetime/2019/recurring/start-end-week-basic/v1.test.json deleted file mode 100644 index 8f8bab0b..00000000 --- a/test/iso/datetime/2019/recurring/start-end-week-basic/v1.test.json +++ /dev/null @@ -1,500 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/recurring/start-end-week-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985155232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - R12 with interval", - "data": "R12/1985W155T232050/1985W261T103000", - "valid": true - }, - { - "description": "Valid - R without number (unbounded)", - "data": "R/1985W155T232050/1985W261T103000", - "valid": true - }, - { - "description": "Valid - R0 (zero recurrences)", - "data": "R0/1985W155T232050/1985W261T103000", - "valid": true - }, - { - "description": "Valid - R9999 (large number)", - "data": "R9999/1985W155T232050/1985W261T103000", - "valid": true - }, - { - "description": "Valid - R1 (single recurrence)", - "data": "R1/1985W155T232050/1985W261T103000", - "valid": true - }, - { - "description": "Valid - R52 weekly for a year", - "data": "R52/1985W155T232050/1985W261T103000", - "valid": true - }, - { - "description": "Valid - R24 every hour for a day", - "data": "R24/1985W155T232050/1985W261T103000", - "valid": true - }, - { - "description": "Valid - R7 daily for a week", - "data": "R7/1985W155T232050/1985W261T103000", - "valid": true - }, - { - "description": "Invalid - missing R prefix", - "data": "12/1985W155T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - lowercase r prefix", - "data": "r12/1985W155T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - space after R", - "data": "R 12/1985W155T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - negative recurrence number", - "data": "R-5/1985W155T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - decimal recurrence number", - "data": "R12.5/1985W155T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - double R", - "data": "RR12/1985W155T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - R with plus sign", - "data": "R+12/1985W155T232050/1985W261T103000", - "valid": false - }, - { - "description": "Valid - week 15 day 5 to week 26 day 1 of 1985", - "data": "R12/1985W155T232050/1985W261T103000", - "valid": true - }, - { - "description": "Valid - week 01 day 1 to week 52 day 7 of 2000", - "data": "R12/2000W011T000000/2000W527T235959", - "valid": true - }, - { - "description": "Valid - week 01 day 1 to week 52 day 7 of 2023", - "data": "R12/2023W011T120000/2023W527T180000", - "valid": true - }, - { - "description": "Valid - same week interval", - "data": "R12/2023W151T120000/2023W155T180000", - "valid": true - }, - { - "description": "Valid - cross year boundary", - "data": "R12/2022W527T230000/2023W011T010000", - "valid": true - }, - { - "description": "Valid - with leap second (60 seconds)", - "data": "R12/1985W155T235960/1985W156T000000", - "valid": true - }, - { - "description": "Valid - midnight to midnight", - "data": "R12/2023W011T000000/2023W012T000000", - "valid": true - }, - { - "description": "Valid - week 53 (some years have 53 weeks)", - "data": "R12/2020W531T000000/2021W011T000000", - "valid": true - }, - { - "description": "Invalid - missing separator slash", - "data": "R12/1985W155T2320501985W261T103000", - "valid": false - }, - { - "description": "Invalid - extended format (contains hyphens)", - "data": "R12/1985-W15-5T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - mixed formats (basic start, extended end)", - "data": "R12/1985W155T232050/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - mixed formats (extended start, basic end)", - "data": "R12/1985-W15-5T23:20:50/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - missing end datetime", - "data": "R12/1985W155T232050/", - "valid": false - }, - { - "description": "Invalid - missing start datetime", - "data": "R12//1985W261T103000", - "valid": false - }, - { - "description": "Invalid - only separator", - "data": "R12//", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "R12/", - "valid": false - }, - { - "description": "Invalid - spaces around separator", - "data": "R12/1985W155T232050 / 1985W261T103000", - "valid": false - }, - { - "description": "Invalid - start week 00", - "data": "R12/1985W005T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - start week 54", - "data": "R12/1985W545T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - end week 00", - "data": "R12/1985W155T232050/1985W001T103000", - "valid": false - }, - { - "description": "Invalid - end week 54", - "data": "R12/1985W155T232050/1985W541T103000", - "valid": false - }, - { - "description": "Invalid - start day 0", - "data": "R12/1985W150T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - start day 8", - "data": "R12/1985W158T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - end day 0", - "data": "R12/1985W155T232050/1985W260T103000", - "valid": false - }, - { - "description": "Invalid - end day 8", - "data": "R12/1985W155T232050/1985W268T103000", - "valid": false - }, - { - "description": "Invalid - start hour 24", - "data": "R12/1985W155T242050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - end hour 24", - "data": "R12/1985W155T232050/1985W261T243000", - "valid": false - }, - { - "description": "Invalid - start minute 60", - "data": "R12/1985W155T236050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - end minute 60", - "data": "R12/1985W155T232050/1985W261T106000", - "valid": false - }, - { - "description": "Invalid - start second 61", - "data": "R12/1985W155T232061/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - end second 61", - "data": "R12/1985W155T232050/1985W261T103061", - "valid": false - }, - { - "description": "Invalid - missing T separator in start", - "data": "R12/1985W155232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - missing T separator in end", - "data": "R12/1985W155T232050/1985W261103000", - "valid": false - }, - { - "description": "Invalid - lowercase t in start", - "data": "R12/1985W155t232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - lowercase t in end", - "data": "R12/1985W155T232050/1985W261t103000", - "valid": false - }, - { - "description": "Invalid - lowercase w in start", - "data": "R12/1985w155T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - lowercase w in end", - "data": "R12/1985W155T232050/1985w261T103000", - "valid": false - }, - { - "description": "Invalid - missing W designator in start", - "data": "R12/1985155T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - missing W designator in end", - "data": "R12/1985W155T232050/1985261T103000", - "valid": false - }, - { - "description": "Invalid - duration instead of end datetime", - "data": "R12/1985W155T232050/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - duration instead of start datetime", - "data": "R12/P1Y2M15DT12H30M0S/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - calendar date instead of week in start", - "data": "R12/19850412T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - calendar date instead of week in end", - "data": "R12/1985W155T232050/19850625T103000", - "valid": false - }, - { - "description": "Invalid - ordinal date instead of week in start", - "data": "R12/1985102T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - ordinal date instead of week in end", - "data": "R12/1985W155T232050/1985176T103000", - "valid": false - }, - { - "description": "Invalid - letters in start date", - "data": "R12/ABCDW155T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - letters in end date", - "data": "R12/1985W155T232050/ABCDW261T103000", - "valid": false - }, - { - "description": "Invalid - double slash separator", - "data": "R12/1985W155T232050//1985W261T103000", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "R12/1985W155T232050\\1985W261T103000", - "valid": false - }, - { - "description": "Valid - reversed order (end before start is syntactically valid per ISO 8601)", - "data": "R12/1985W261T103000/1985W155T232050", - "valid": true - }, - { - "description": "Invalid - start hour 99", - "data": "R12/1985W155T992050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - end hour 99", - "data": "R12/1985W155T232050/1985W261T993000", - "valid": false - }, - { - "description": "Invalid - start minute 99", - "data": "R12/1985W155T239950/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - end minute 99", - "data": "R12/1985W155T232050/1985W261T109900", - "valid": false - }, - { - "description": "Invalid - start second 99", - "data": "R12/1985W155T232099/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - end second 99", - "data": "R12/1985W155T232050/1985W261T103099", - "valid": false - }, - { - "description": "Invalid - letter in start year", - "data": "R12/I985W155T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - letter in end year", - "data": "R12/1985W155T232050/I985W261T103000", - "valid": false - }, - { - "description": "Invalid - letter in start week", - "data": "R12/1985WI55T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - letter in end week", - "data": "R12/1985W155T232050/1985WI61T103000", - "valid": false - }, - { - "description": "Invalid - letter in start day", - "data": "R12/1985W15IT232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - letter in end day", - "data": "R12/1985W155T232050/1985W26IT103000", - "valid": false - }, - { - "description": "Invalid - letter in start hour", - "data": "R12/1985W155TI32050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - letter in end hour", - "data": "R12/1985W155T232050/1985W261TI03000", - "valid": false - }, - { - "description": "Invalid - letter in start minute", - "data": "R12/1985W155T23I050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - letter in end minute", - "data": "R12/1985W155T232050/1985W261T10I000", - "valid": false - }, - { - "description": "Invalid - letter in start second", - "data": "R12/1985W155T2320I0/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - letter in end second", - "data": "R12/1985W155T232050/1985W261T1030I0", - "valid": false - }, - { - "description": "Invalid - too short start datetime", - "data": "R12/1985W155T23205/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - too short end datetime", - "data": "R12/1985W155T232050/1985W261T10300", - "valid": false - }, - { - "description": "Invalid - too long start datetime", - "data": "R12/1985W155T2320500/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - too long end datetime", - "data": "R12/1985W155T232050/1985W261T1030000", - "valid": false - }, - { - "description": "Invalid - extra character at start", - "data": "R12/X1985W155T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - extra character at end", - "data": "R12/1985W155T232050/1985W261T103000X", - "valid": false - }, - { - "description": "Invalid - extra character in middle", - "data": "R12/1985W155T232050X/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - space in start date", - "data": "R12/1985W15 5T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - space in end date", - "data": "R12/1985W155T232050/1985W26 1T103000", - "valid": false - }, - { - "description": "Invalid - space in start time", - "data": "R12/1985W155T23 2050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - space in end time", - "data": "R12/1985W155T232050/1985W261T10 3000", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/recurring/start-end-week-extended/v1.test.json b/test/iso/datetime/2019/recurring/start-end-week-extended/v1.test.json deleted file mode 100644 index c779a049..00000000 --- a/test/iso/datetime/2019/recurring/start-end-week-extended/v1.test.json +++ /dev/null @@ -1,520 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/recurring/start-end-week-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 1985155232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - R12 with interval", - "data": "R12/1985-W15-5T23:20:50/1985-W26-1T10:30:00", - "valid": true - }, - { - "description": "Valid - R without number (unbounded)", - "data": "R/1985-W15-5T23:20:50/1985-W26-1T10:30:00", - "valid": true - }, - { - "description": "Valid - R0 (zero recurrences)", - "data": "R0/1985-W15-5T23:20:50/1985-W26-1T10:30:00", - "valid": true - }, - { - "description": "Valid - R9999 (large number)", - "data": "R9999/1985-W15-5T23:20:50/1985-W26-1T10:30:00", - "valid": true - }, - { - "description": "Valid - R1 (single recurrence)", - "data": "R1/1985-W15-5T23:20:50/1985-W26-1T10:30:00", - "valid": true - }, - { - "description": "Valid - R52 weekly for a year", - "data": "R52/1985-W15-5T23:20:50/1985-W26-1T10:30:00", - "valid": true - }, - { - "description": "Valid - R24 every hour for a day", - "data": "R24/1985-W15-5T23:20:50/1985-W26-1T10:30:00", - "valid": true - }, - { - "description": "Valid - R7 daily for a week", - "data": "R7/1985-W15-5T23:20:50/1985-W26-1T10:30:00", - "valid": true - }, - { - "description": "Invalid - missing R prefix", - "data": "12/1985-W15-5T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - lowercase r prefix", - "data": "r12/1985-W15-5T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - space after R", - "data": "R 12/1985-W15-5T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - negative recurrence number", - "data": "R-5/1985-W15-5T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - decimal recurrence number", - "data": "R12.5/1985-W15-5T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - double R", - "data": "RR12/1985-W15-5T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - R with plus sign", - "data": "R+12/1985-W15-5T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Valid - week 15 day 5 to week 26 day 1 of 1985", - "data": "R12/1985-W15-5T23:20:50/1985-W26-1T10:30:00", - "valid": true - }, - { - "description": "Valid - week 01 day 1 to week 52 day 7 of 2000", - "data": "R12/2000-W01-1T00:00:00/2000-W52-7T23:59:59", - "valid": true - }, - { - "description": "Valid - week 01 day 1 to week 52 day 7 of 2023", - "data": "R12/2023-W01-1T12:00:00/2023-W52-7T18:00:00", - "valid": true - }, - { - "description": "Valid - same week interval", - "data": "R12/2023-W15-1T12:00:00/2023-W15-5T18:00:00", - "valid": true - }, - { - "description": "Valid - cross year boundary", - "data": "R12/2022-W52-7T23:00:00/2023-W01-1T01:00:00", - "valid": true - }, - { - "description": "Valid - with leap second (60 seconds)", - "data": "R12/1985-W15-5T23:59:60/1985-W15-6T00:00:00", - "valid": true - }, - { - "description": "Valid - midnight to midnight", - "data": "R12/2023-W01-1T00:00:00/2023-W01-2T00:00:00", - "valid": true - }, - { - "description": "Valid - week 53 (some years have 53 weeks)", - "data": "R12/2020-W53-1T00:00:00/2021-W01-1T00:00:00", - "valid": true - }, - { - "description": "Invalid - missing separator slash", - "data": "R12/1985-W15-5T23:20:501985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - basic format (no hyphens or colons)", - "data": "R12/1985W155T232050/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - mixed formats (basic start, extended end)", - "data": "R12/1985W155T232050/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - mixed formats (extended start, basic end)", - "data": "R12/1985-W15-5T23:20:50/1985W261T103000", - "valid": false - }, - { - "description": "Invalid - missing end datetime", - "data": "R12/1985-W15-5T23:20:50/", - "valid": false - }, - { - "description": "Invalid - missing start datetime", - "data": "R12//1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - only separator", - "data": "R12//", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "R12/", - "valid": false - }, - { - "description": "Invalid - spaces around separator", - "data": "R12/1985-W15-5T23:20:50 / 1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - start week 00", - "data": "R12/1985-W00-5T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - start week 54", - "data": "R12/1985-W54-5T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - end week 00", - "data": "R12/1985-W15-5T23:20:50/1985-W00-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - end week 54", - "data": "R12/1985-W15-5T23:20:50/1985-W54-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - start day 0", - "data": "R12/1985-W15-0T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - start day 8", - "data": "R12/1985-W15-8T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - end day 0", - "data": "R12/1985-W15-5T23:20:50/1985-W26-0T10:30:00", - "valid": false - }, - { - "description": "Invalid - end day 8", - "data": "R12/1985-W15-5T23:20:50/1985-W26-8T10:30:00", - "valid": false - }, - { - "description": "Invalid - start hour 24", - "data": "R12/1985-W15-5T24:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - end hour 24", - "data": "R12/1985-W15-5T23:20:50/1985-W26-1T24:30:00", - "valid": false - }, - { - "description": "Invalid - start minute 60", - "data": "R12/1985-W15-5T23:60:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - end minute 60", - "data": "R12/1985-W15-5T23:20:50/1985-W26-1T10:60:00", - "valid": false - }, - { - "description": "Invalid - start second 61", - "data": "R12/1985-W15-5T23:20:61/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - end second 61", - "data": "R12/1985-W15-5T23:20:50/1985-W26-1T10:30:61", - "valid": false - }, - { - "description": "Invalid - missing T separator in start", - "data": "R12/1985-W15-523:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - missing T separator in end", - "data": "R12/1985-W15-5T23:20:50/1985-W26-110:30:00", - "valid": false - }, - { - "description": "Invalid - lowercase t in start", - "data": "R12/1985-W15-5t23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - lowercase t in end", - "data": "R12/1985-W15-5T23:20:50/1985-W26-1t10:30:00", - "valid": false - }, - { - "description": "Invalid - lowercase w in start", - "data": "R12/1985-w15-5T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - lowercase w in end", - "data": "R12/1985-W15-5T23:20:50/1985-w26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - missing W designator in start", - "data": "R12/1985-15-5T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - missing W designator in end", - "data": "R12/1985-W15-5T23:20:50/1985-26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - duration instead of end datetime", - "data": "R12/1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", - "valid": false - }, - { - "description": "Invalid - duration instead of start datetime", - "data": "R12/P1Y2M15DT12H30M0S/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - calendar date instead of week in start", - "data": "R12/1985-04-12T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - calendar date instead of week in end", - "data": "R12/1985-W15-5T23:20:50/1985-06-25T10:30:00", - "valid": false - }, - { - "description": "Invalid - ordinal date instead of week in start", - "data": "R12/1985-102T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - ordinal date instead of week in end", - "data": "R12/1985-W15-5T23:20:50/1985-176T10:30:00", - "valid": false - }, - { - "description": "Invalid - missing hyphen in start date", - "data": "R12/1985W155T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - missing hyphen in end date", - "data": "R12/1985-W15-5T23:20:50/1985W261T10:30:00", - "valid": false - }, - { - "description": "Invalid - missing colon in start time", - "data": "R12/1985-W15-5T232050/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - missing colon in end time", - "data": "R12/1985-W15-5T23:20:50/1985-W26-1T103000", - "valid": false - }, - { - "description": "Invalid - letters in start date", - "data": "R12/ABCD-W15-5T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - letters in end date", - "data": "R12/1985-W15-5T23:20:50/ABCD-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - double slash separator", - "data": "R12/1985-W15-5T23:20:50//1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - backslash separator", - "data": "R12/1985-W15-5T23:20:50\\1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Valid - reversed order (end before start is syntactically valid per ISO 8601)", - "data": "R12/1985-W26-1T10:30:00/1985-W15-5T23:20:50", - "valid": true - }, - { - "description": "Invalid - start hour 99", - "data": "R12/1985-W15-5T99:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - end hour 99", - "data": "R12/1985-W15-5T23:20:50/1985-W26-1T99:30:00", - "valid": false - }, - { - "description": "Invalid - start minute 99", - "data": "R12/1985-W15-5T23:99:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - end minute 99", - "data": "R12/1985-W15-5T23:20:50/1985-W26-1T10:99:00", - "valid": false - }, - { - "description": "Invalid - start second 99", - "data": "R12/1985-W15-5T23:20:99/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - end second 99", - "data": "R12/1985-W15-5T23:20:50/1985-W26-1T10:30:99", - "valid": false - }, - { - "description": "Invalid - letter in start year", - "data": "R12/I985-W15-5T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in end year", - "data": "R12/1985-W15-5T23:20:50/I985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in start week", - "data": "R12/1985-WI5-5T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in end week", - "data": "R12/1985-W15-5T23:20:50/1985-WI6-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in start day", - "data": "R12/1985-W15-IT23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in end day", - "data": "R12/1985-W15-5T23:20:50/1985-W26-IT10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in start hour", - "data": "R12/1985-W15-5TI3:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in end hour", - "data": "R12/1985-W15-5T23:20:50/1985-W26-1TI0:30:00", - "valid": false - }, - { - "description": "Invalid - letter in start minute", - "data": "R12/1985-W15-5T23:I0:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in end minute", - "data": "R12/1985-W15-5T23:20:50/1985-W26-1T10:I0:00", - "valid": false - }, - { - "description": "Invalid - letter in start second", - "data": "R12/1985-W15-5T23:20:I0/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - letter in end second", - "data": "R12/1985-W15-5T23:20:50/1985-W26-1T10:30:I0", - "valid": false - }, - { - "description": "Invalid - too short start datetime", - "data": "R12/1985-W15-5T23:20:5/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - too short end datetime", - "data": "R12/1985-W15-5T23:20:50/1985-W26-1T10:30:0", - "valid": false - }, - { - "description": "Invalid - too long start datetime", - "data": "R12/1985-W15-5T23:20:500/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - too long end datetime", - "data": "R12/1985-W15-5T23:20:50/1985-W26-1T10:30:000", - "valid": false - }, - { - "description": "Invalid - extra character at start", - "data": "R12/X1985-W15-5T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - extra character at end", - "data": "R12/1985-W15-5T23:20:50/1985-W26-1T10:30:00X", - "valid": false - }, - { - "description": "Invalid - extra character in middle", - "data": "R12/1985-W15-5T23:20:50X/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - space in start date", - "data": "R12/1985-W15- 5T23:20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - space in end date", - "data": "R12/1985-W15-5T23:20:50/1985-W26- 1T10:30:00", - "valid": false - }, - { - "description": "Invalid - space in start time", - "data": "R12/1985-W15-5T23: 20:50/1985-W26-1T10:30:00", - "valid": false - }, - { - "description": "Invalid - space in end time", - "data": "R12/1985-W15-5T23:20:50/1985-W26-1T10: 30:00", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/time/beginning-day-basic/v1.test.json b/test/iso/datetime/2019/time/beginning-day-basic/v1.test.json deleted file mode 100644 index 2db4d21d..00000000 --- a/test/iso/datetime/2019/time/beginning-day-basic/v1.test.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/time/beginning-day-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 0, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - T000000", - "data": "T000000", - "valid": true - }, - { - "description": "Valid - 000000 without T", - "data": "000000", - "valid": true - }, - { - "description": "Invalid - lowercase t", - "data": "t000000", - "valid": false - }, - { - "description": "Invalid - any non-zero hour", - "data": "T010000", - "valid": false - }, - { - "description": "Invalid - any non-zero minute", - "data": "T000100", - "valid": false - }, - { - "description": "Invalid - any non-zero second", - "data": "T000001", - "valid": false - }, - { - "description": "Invalid - colons (extended format)", - "data": "T00:00:00", - "valid": false - }, - { - "description": "Invalid - 000000 with colons", - "data": "00:00:00", - "valid": false - }, - { - "description": "Invalid - too few digits", - "data": "T00000", - "valid": false - }, - { - "description": "Invalid - too many digits", - "data": "T0000000", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/time/beginning-day-extended/v1.test.json b/test/iso/datetime/2019/time/beginning-day-extended/v1.test.json deleted file mode 100644 index 67af316e..00000000 --- a/test/iso/datetime/2019/time/beginning-day-extended/v1.test.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/time/beginning-day-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 0, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - 00:00:00 without T", - "data": "00:00:00", - "valid": true - }, - { - "description": "Valid - T00:00:00 with T", - "data": "T00:00:00", - "valid": true - }, - { - "description": "Invalid - lowercase t", - "data": "t00:00:00", - "valid": false - }, - { - "description": "Invalid - any non-zero hour", - "data": "01:00:00", - "valid": false - }, - { - "description": "Invalid - any non-zero minute", - "data": "00:01:00", - "valid": false - }, - { - "description": "Invalid - any non-zero second", - "data": "00:00:01", - "valid": false - }, - { - "description": "Invalid - basic format (no colons)", - "data": "T000000", - "valid": false - }, - { - "description": "Invalid - 000000 without colons", - "data": "000000", - "valid": false - }, - { - "description": "Invalid - too few digits", - "data": "00:00:0", - "valid": false - }, - { - "description": "Invalid - too many digits", - "data": "00:00:000", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/time/decimal-hour-basic/v1.test.json b/test/iso/datetime/2019/time/decimal-hour-basic/v1.test.json deleted file mode 100644 index c356859d..00000000 --- a/test/iso/datetime/2019/time/decimal-hour-basic/v1.test.json +++ /dev/null @@ -1,110 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/time/decimal-hour-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 23, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - decimal hour with comma", - "data": "T23,3", - "valid": true - }, - { - "description": "Valid - decimal hour with period", - "data": "T23.3", - "valid": true - }, - { - "description": "Valid - midnight with decimal", - "data": "T00,0", - "valid": true - }, - { - "description": "Valid - T12.5", - "data": "T12.5", - "valid": true - }, - { - "description": "Valid - multiple decimal digits", - "data": "T15,75", - "valid": true - }, - { - "description": "Invalid - no decimal part", - "data": "T23", - "valid": false - }, - { - "description": "Invalid - decimal sign without digits", - "data": "T23,", - "valid": false - }, - { - "description": "Invalid - decimal sign without digits (period)", - "data": "T23.", - "valid": false - }, - { - "description": "Invalid - missing T designator", - "data": "23,3", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "t23,3", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "T24,0", - "valid": false - }, - { - "description": "Invalid - hour 99", - "data": "T99,0", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "T00,0", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "T23,0", - "valid": true - }, - { - "description": "Invalid - includes minutes", - "data": "T2320,5", - "valid": false - }, - { - "description": "Invalid - with colon", - "data": "T23:30,5", - "valid": false - }, - { - "description": "Invalid - with Z designator", - "data": "T23,3Z", - "valid": false - }, - { - "description": "Invalid - with time shift", - "data": "T23,3+01", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/time/decimal-minute-basic/v1.test.json b/test/iso/datetime/2019/time/decimal-minute-basic/v1.test.json deleted file mode 100644 index 9e2f9593..00000000 --- a/test/iso/datetime/2019/time/decimal-minute-basic/v1.test.json +++ /dev/null @@ -1,130 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/time/decimal-minute-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 2320, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - decimal minute with comma", - "data": "T2320,8", - "valid": true - }, - { - "description": "Valid - decimal minute with period", - "data": "T2320.8", - "valid": true - }, - { - "description": "Valid - midnight with decimal", - "data": "T0000,0", - "valid": true - }, - { - "description": "Valid - multiple decimal digits", - "data": "T2359,999", - "valid": true - }, - { - "description": "Valid - T1200.5", - "data": "T1200.5", - "valid": true - }, - { - "description": "Invalid - no decimal part", - "data": "T2320", - "valid": false - }, - { - "description": "Invalid - decimal sign without digits", - "data": "T2320,", - "valid": false - }, - { - "description": "Invalid - decimal sign without digits (period)", - "data": "T2320.", - "valid": false - }, - { - "description": "Invalid - missing T designator", - "data": "2320,8", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "t2320,8", - "valid": false - }, - { - "description": "Invalid - colons (extended format)", - "data": "T23:20,8", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "T2400,0", - "valid": false - }, - { - "description": "Invalid - hour 99", - "data": "T9900,0", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "T0060,0", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "T0099,0", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "T0000,0", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "T2300,0", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "T0000,0", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "T0059,0", - "valid": true - }, - { - "description": "Invalid - includes seconds", - "data": "T232030,5", - "valid": false - }, - { - "description": "Invalid - with Z designator", - "data": "T2320,8Z", - "valid": false - }, - { - "description": "Invalid - with time shift", - "data": "T2320,8+0100", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/time/decimal-minute-extended/v1.test.json b/test/iso/datetime/2019/time/decimal-minute-extended/v1.test.json deleted file mode 100644 index 48b99f32..00000000 --- a/test/iso/datetime/2019/time/decimal-minute-extended/v1.test.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/time/decimal-minute-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 2320, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - decimal minute with comma, no T", - "data": "23:20,8", - "valid": true - }, - { - "description": "Valid - decimal minute with period and T", - "data": "T23:20.8", - "valid": true - }, - { - "description": "Valid - midnight with decimal", - "data": "00:00,0", - "valid": true - }, - { - "description": "Valid - multiple decimal digits", - "data": "T23:59,999", - "valid": true - }, - { - "description": "Valid - 12:00.5", - "data": "12:00.5", - "valid": true - }, - { - "description": "Invalid - no decimal part", - "data": "23:20", - "valid": false - }, - { - "description": "Invalid - decimal sign without digits", - "data": "23:20,", - "valid": false - }, - { - "description": "Invalid - decimal sign without digits (period)", - "data": "23:20.", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "t23:20,8", - "valid": false - }, - { - "description": "Invalid - basic format (no colons)", - "data": "T2320,8", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "24:00,0", - "valid": false - }, - { - "description": "Invalid - hour 99", - "data": "99:00,0", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "00:60,0", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "00:99,0", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "00:00,0", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "23:00,0", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "00:00,0", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "00:59,0", - "valid": true - }, - { - "description": "Invalid - includes seconds", - "data": "23:20:30,5", - "valid": false - }, - { - "description": "Invalid - with Z designator", - "data": "23:20,8Z", - "valid": false - }, - { - "description": "Invalid - with time shift", - "data": "23:20,8+01:00", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/time/decimal-second-basic/v1.test.json b/test/iso/datetime/2019/time/decimal-second-basic/v1.test.json deleted file mode 100644 index 880a0022..00000000 --- a/test/iso/datetime/2019/time/decimal-second-basic/v1.test.json +++ /dev/null @@ -1,170 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/time/decimal-second-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 232030, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - decimal second with comma", - "data": "T232030,5", - "valid": true - }, - { - "description": "Valid - decimal second with period", - "data": "T232030.5", - "valid": true - }, - { - "description": "Valid - midnight with decimal", - "data": "T000000,0", - "valid": true - }, - { - "description": "Valid - multiple decimal digits with comma", - "data": "T235959,999", - "valid": true - }, - { - "description": "Valid - multiple decimal digits with period", - "data": "T120000.123456", - "valid": true - }, - { - "description": "Valid - single decimal digit", - "data": "T120000,1", - "valid": true - }, - { - "description": "Valid - many decimal digits", - "data": "T120000.123456789", - "valid": true - }, - { - "description": "Invalid - no decimal part", - "data": "T232030", - "valid": false - }, - { - "description": "Invalid - decimal sign without digits", - "data": "T232030,", - "valid": false - }, - { - "description": "Invalid - decimal sign without digits (period)", - "data": "T232030.", - "valid": false - }, - { - "description": "Invalid - missing T designator", - "data": "232030,5", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "t232030,5", - "valid": false - }, - { - "description": "Invalid - colons (extended format)", - "data": "T23:20:30,5", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "T240000,0", - "valid": false - }, - { - "description": "Invalid - hour 99", - "data": "T990000,0", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "T006000,0", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "T009900,0", - "valid": false - }, - { - "description": "Invalid - second 61", - "data": "T000061,0", - "valid": false - }, - { - "description": "Invalid - second 99", - "data": "T000099,0", - "valid": false - }, - { - "description": "Valid - leap second with decimal", - "data": "T235960,5", - "valid": true - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "T000000,0", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "T230000,0", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "T000000,0", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "T005900,0", - "valid": true - }, - { - "description": "Valid - second 00 (minimum)", - "data": "T000000,0", - "valid": true - }, - { - "description": "Valid - second 59", - "data": "T000059,0", - "valid": true - }, - { - "description": "Valid - second 60 (leap second)", - "data": "T000060,0", - "valid": true - }, - { - "description": "Invalid - both comma and period", - "data": "T232030,5.5", - "valid": false - }, - { - "description": "Invalid - with Z designator", - "data": "T232030,5Z", - "valid": false - }, - { - "description": "Invalid - with time shift", - "data": "T232030,5+0100", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/time/decimal-second-extended/v1.test.json b/test/iso/datetime/2019/time/decimal-second-extended/v1.test.json deleted file mode 100644 index 187bc07e..00000000 --- a/test/iso/datetime/2019/time/decimal-second-extended/v1.test.json +++ /dev/null @@ -1,165 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/time/decimal-second-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 232030, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - decimal second with comma, no T", - "data": "23:20:30,5", - "valid": true - }, - { - "description": "Valid - decimal second with period and T", - "data": "T23:20:30.5", - "valid": true - }, - { - "description": "Valid - midnight with decimal", - "data": "00:00:00,0", - "valid": true - }, - { - "description": "Valid - multiple decimal digits with comma", - "data": "T23:59:59,999", - "valid": true - }, - { - "description": "Valid - multiple decimal digits with period", - "data": "12:00:00.123456", - "valid": true - }, - { - "description": "Valid - single decimal digit", - "data": "12:00:00,1", - "valid": true - }, - { - "description": "Valid - many decimal digits", - "data": "T12:00:00.123456789", - "valid": true - }, - { - "description": "Invalid - no decimal part", - "data": "23:20:30", - "valid": false - }, - { - "description": "Invalid - decimal sign without digits", - "data": "23:20:30,", - "valid": false - }, - { - "description": "Invalid - decimal sign without digits (period)", - "data": "23:20:30.", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "t23:20:30,5", - "valid": false - }, - { - "description": "Invalid - basic format (no colons)", - "data": "T232030,5", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "24:00:00,0", - "valid": false - }, - { - "description": "Invalid - hour 99", - "data": "99:00:00,0", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "00:60:00,0", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "00:99:00,0", - "valid": false - }, - { - "description": "Invalid - second 61", - "data": "00:00:61,0", - "valid": false - }, - { - "description": "Invalid - second 99", - "data": "00:00:99,0", - "valid": false - }, - { - "description": "Valid - leap second with decimal", - "data": "23:59:60,5", - "valid": true - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "00:00:00,0", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "23:00:00,0", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "00:00:00,0", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "00:59:00,0", - "valid": true - }, - { - "description": "Valid - second 00 (minimum)", - "data": "00:00:00,0", - "valid": true - }, - { - "description": "Valid - second 59", - "data": "00:00:59,0", - "valid": true - }, - { - "description": "Valid - second 60 (leap second)", - "data": "00:00:60,0", - "valid": true - }, - { - "description": "Invalid - both comma and period", - "data": "23:20:30,5.5", - "valid": false - }, - { - "description": "Invalid - with Z designator", - "data": "23:20:30,5Z", - "valid": false - }, - { - "description": "Invalid - with time shift", - "data": "23:20:30,5+01:00", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/time/hour-basic/v1.test.json b/test/iso/datetime/2019/time/hour-basic/v1.test.json deleted file mode 100644 index ccf79c5b..00000000 --- a/test/iso/datetime/2019/time/hour-basic/v1.test.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/time/hour-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 23, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - T23", - "data": "T23", - "valid": true - }, - { - "description": "Valid - midnight T00", - "data": "T00", - "valid": true - }, - { - "description": "Valid - noon T12", - "data": "T12", - "valid": true - }, - { - "description": "Valid - T01", - "data": "T01", - "valid": true - }, - { - "description": "Valid - T15", - "data": "T15", - "valid": true - }, - { - "description": "Invalid - missing T designator", - "data": "23", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "t23", - "valid": false - }, - { - "description": "Invalid - too few digits", - "data": "T2", - "valid": false - }, - { - "description": "Invalid - too many digits (includes minutes)", - "data": "T2320", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "T24", - "valid": false - }, - { - "description": "Invalid - hour 99", - "data": "T99", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "T00", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "T23", - "valid": true - }, - { - "description": "Invalid - with Z designator", - "data": "T23Z", - "valid": false - }, - { - "description": "Invalid - with time shift", - "data": "T23+01", - "valid": false - }, - { - "description": "Invalid - decimal hour", - "data": "T23.5", - "valid": false - }, - { - "description": "Invalid - with colon", - "data": "T2:3", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/time/hour-minute-basic/v1.test.json b/test/iso/datetime/2019/time/hour-minute-basic/v1.test.json deleted file mode 100644 index 85ef6b2b..00000000 --- a/test/iso/datetime/2019/time/hour-minute-basic/v1.test.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/time/hour-minute-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 2320, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - T23:20", - "data": "T2320", - "valid": true - }, - { - "description": "Valid - midnight T00:00", - "data": "T0000", - "valid": true - }, - { - "description": "Valid - T23:59", - "data": "T2359", - "valid": true - }, - { - "description": "Valid - noon T12:00", - "data": "T1200", - "valid": true - }, - { - "description": "Valid - T01:01", - "data": "T0101", - "valid": true - }, - { - "description": "Invalid - missing T designator", - "data": "2320", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "t2320", - "valid": false - }, - { - "description": "Invalid - colons (extended format)", - "data": "T23:20", - "valid": false - }, - { - "description": "Invalid - too few digits", - "data": "T232", - "valid": false - }, - { - "description": "Invalid - too many digits (includes seconds)", - "data": "T232050", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "T2400", - "valid": false - }, - { - "description": "Invalid - hour 99", - "data": "T9900", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "T0060", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "T0099", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "T0000", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "T2300", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "T0000", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "T0059", - "valid": true - }, - { - "description": "Invalid - with Z designator", - "data": "T2320Z", - "valid": false - }, - { - "description": "Invalid - with time shift", - "data": "T2320+0100", - "valid": false - }, - { - "description": "Invalid - decimal minutes", - "data": "T2320.5", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/time/hour-minute-extended/v1.test.json b/test/iso/datetime/2019/time/hour-minute-extended/v1.test.json deleted file mode 100644 index 2f63f569..00000000 --- a/test/iso/datetime/2019/time/hour-minute-extended/v1.test.json +++ /dev/null @@ -1,130 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/time/hour-minute-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 2320, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - 23:20 without T", - "data": "23:20", - "valid": true - }, - { - "description": "Valid - T23:20 with T", - "data": "T23:20", - "valid": true - }, - { - "description": "Valid - midnight 00:00", - "data": "00:00", - "valid": true - }, - { - "description": "Valid - T23:59", - "data": "T23:59", - "valid": true - }, - { - "description": "Valid - noon 12:00", - "data": "12:00", - "valid": true - }, - { - "description": "Valid - T01:01", - "data": "T01:01", - "valid": true - }, - { - "description": "Invalid - lowercase t", - "data": "t23:20", - "valid": false - }, - { - "description": "Invalid - basic format (no colons)", - "data": "T2320", - "valid": false - }, - { - "description": "Invalid - too few digits", - "data": "23:2", - "valid": false - }, - { - "description": "Invalid - too many digits (includes seconds)", - "data": "23:20:50", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "24:00", - "valid": false - }, - { - "description": "Invalid - hour 99", - "data": "99:00", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "00:60", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "00:99", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "00:00", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "23:00", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "00:00", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "00:59", - "valid": true - }, - { - "description": "Invalid - with Z designator", - "data": "23:20Z", - "valid": false - }, - { - "description": "Invalid - with time shift", - "data": "23:20+01:00", - "valid": false - }, - { - "description": "Invalid - decimal minutes", - "data": "23:20.5", - "valid": false - }, - { - "description": "Invalid - missing colon", - "data": "2320", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/time/local-day-basic/v1.test.json b/test/iso/datetime/2019/time/local-day-basic/v1.test.json deleted file mode 100644 index 06953079..00000000 --- a/test/iso/datetime/2019/time/local-day-basic/v1.test.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/time/local-day-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 23:20:50", - "data": "T232050", - "valid": true - }, - { - "description": "Valid - midnight 00:00:00", - "data": "T000000", - "valid": true - }, - { - "description": "Valid - leap second 23:59:60", - "data": "T235960", - "valid": true - }, - { - "description": "Valid - noon 12:00:00", - "data": "T120000", - "valid": true - }, - { - "description": "Valid - 01:01:01", - "data": "T010101", - "valid": true - }, - { - "description": "Valid - end of day 23:59:59", - "data": "T235959", - "valid": true - }, - { - "description": "Invalid - missing T designator", - "data": "232050", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "t232050", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - colons (extended format)", - "data": "T23:20:50", - "valid": false - }, - { - "description": "Invalid - spaces in time", - "data": "T23 20 50", - "valid": false - }, - { - "description": "Invalid - too few digits", - "data": "T23205", - "valid": false - }, - { - "description": "Invalid - too many digits", - "data": "T2320500", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "T240000", - "valid": false - }, - { - "description": "Invalid - hour 25", - "data": "T250000", - "valid": false - }, - { - "description": "Invalid - hour 99", - "data": "T990000", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "T006000", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "T009900", - "valid": false - }, - { - "description": "Invalid - second 61", - "data": "T000061", - "valid": false - }, - { - "description": "Invalid - second 99", - "data": "T000099", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "T000000", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "T230000", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "T000000", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "T005900", - "valid": true - }, - { - "description": "Valid - second 00 (minimum)", - "data": "T000000", - "valid": true - }, - { - "description": "Valid - second 59", - "data": "T000059", - "valid": true - }, - { - "description": "Valid - second 60 (leap second)", - "data": "T000060", - "valid": true - }, - { - "description": "Invalid - hour without leading zero", - "data": "T10000", - "valid": false - }, - { - "description": "Invalid - minute without leading zero", - "data": "T00100", - "valid": false - }, - { - "description": "Invalid - second without leading zero", - "data": "T00001", - "valid": false - }, - { - "description": "Invalid - with Z designator", - "data": "T232050Z", - "valid": false - }, - { - "description": "Invalid - with time shift", - "data": "T232050+0100", - "valid": false - }, - { - "description": "Invalid - decimal seconds", - "data": "T232050.5", - "valid": false - }, - { - "description": "Invalid - partial time (hour and minute only)", - "data": "T2320", - "valid": false - }, - { - "description": "Invalid - partial time (hour only)", - "data": "T23", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/time/local-day-extended/v1.test.json b/test/iso/datetime/2019/time/local-day-extended/v1.test.json deleted file mode 100644 index 624533c5..00000000 --- a/test/iso/datetime/2019/time/local-day-extended/v1.test.json +++ /dev/null @@ -1,215 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/time/local-day-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 232050, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - 23:20:50 without T", - "data": "23:20:50", - "valid": true - }, - { - "description": "Valid - T23:20:50 with T", - "data": "T23:20:50", - "valid": true - }, - { - "description": "Valid - midnight 00:00:00", - "data": "00:00:00", - "valid": true - }, - { - "description": "Valid - leap second T23:59:60", - "data": "T23:59:60", - "valid": true - }, - { - "description": "Valid - noon 12:00:00", - "data": "12:00:00", - "valid": true - }, - { - "description": "Valid - T01:01:01", - "data": "T01:01:01", - "valid": true - }, - { - "description": "Valid - end of day 23:59:59", - "data": "23:59:59", - "valid": true - }, - { - "description": "Invalid - lowercase t", - "data": "t23:20:50", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - basic format (no colons)", - "data": "T232050", - "valid": false - }, - { - "description": "Invalid - spaces in time", - "data": "23 20 50", - "valid": false - }, - { - "description": "Invalid - too few digits", - "data": "23:20:5", - "valid": false - }, - { - "description": "Invalid - too many digits", - "data": "23:20:500", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "24:00:00", - "valid": false - }, - { - "description": "Invalid - hour 25", - "data": "25:00:00", - "valid": false - }, - { - "description": "Invalid - hour 99", - "data": "99:00:00", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "00:60:00", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "00:99:00", - "valid": false - }, - { - "description": "Invalid - second 61", - "data": "00:00:61", - "valid": false - }, - { - "description": "Invalid - second 99", - "data": "00:00:99", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "00:00:00", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "23:00:00", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "00:00:00", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "00:59:00", - "valid": true - }, - { - "description": "Valid - second 00 (minimum)", - "data": "00:00:00", - "valid": true - }, - { - "description": "Valid - second 59", - "data": "00:00:59", - "valid": true - }, - { - "description": "Valid - second 60 (leap second)", - "data": "00:00:60", - "valid": true - }, - { - "description": "Invalid - hour without leading zero", - "data": "1:00:00", - "valid": false - }, - { - "description": "Invalid - minute without leading zero", - "data": "00:1:00", - "valid": false - }, - { - "description": "Invalid - second without leading zero", - "data": "00:00:1", - "valid": false - }, - { - "description": "Invalid - with Z designator", - "data": "23:20:50Z", - "valid": false - }, - { - "description": "Invalid - with time shift", - "data": "23:20:50+01:00", - "valid": false - }, - { - "description": "Invalid - decimal seconds", - "data": "23:20:50.5", - "valid": false - }, - { - "description": "Invalid - partial time (hour and minute only)", - "data": "23:20", - "valid": false - }, - { - "description": "Invalid - partial time (hour only)", - "data": "T23", - "valid": false - }, - { - "description": "Invalid - missing colons", - "data": "232050", - "valid": false - }, - { - "description": "Invalid - only one colon", - "data": "23:2050", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/time/local-day-shift-basic/v1.test.json b/test/iso/datetime/2019/time/local-day-shift-basic/v1.test.json deleted file mode 100644 index 351c7e63..00000000 --- a/test/iso/datetime/2019/time/local-day-shift-basic/v1.test.json +++ /dev/null @@ -1,180 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/time/local-day-shift-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 152746, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - time with hour-minute shift and T", - "data": "T152746+0100", - "valid": true - }, - { - "description": "Valid - time with hour-minute shift, no T", - "data": "152746-0530", - "valid": true - }, - { - "description": "Valid - time with Z and T", - "data": "T152746Z", - "valid": true - }, - { - "description": "Valid - time with hour-only shift, no T", - "data": "152746+01", - "valid": true - }, - { - "description": "Valid - midnight with zero shift", - "data": "T000000+0000", - "valid": true - }, - { - "description": "Valid - leap second with negative shift", - "data": "235960-1200", - "valid": true - }, - { - "description": "Valid - time with Z, no T", - "data": "152746Z", - "valid": true - }, - { - "description": "Valid - time with hour-only shift and T", - "data": "T120000+05", - "valid": true - }, - { - "description": "Invalid - lowercase t", - "data": "t152746+0100", - "valid": false - }, - { - "description": "Invalid - lowercase z", - "data": "T152746z", - "valid": false - }, - { - "description": "Invalid - missing shift", - "data": "T152746", - "valid": false - }, - { - "description": "Invalid - colons in time (extended format)", - "data": "T15:27:46+0100", - "valid": false - }, - { - "description": "Invalid - colons in shift (extended format)", - "data": "T152746+01:00", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "T240000+0100", - "valid": false - }, - { - "description": "Invalid - hour 99", - "data": "T990000+0100", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "T006000+0100", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "T009900+0100", - "valid": false - }, - { - "description": "Invalid - second 61", - "data": "T000061+0100", - "valid": false - }, - { - "description": "Invalid - second 99", - "data": "T000099+0100", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "T000000Z", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "T230000Z", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "T000000Z", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "T005900Z", - "valid": true - }, - { - "description": "Valid - second 00 (minimum)", - "data": "T000000Z", - "valid": true - }, - { - "description": "Valid - second 59", - "data": "T000059Z", - "valid": true - }, - { - "description": "Valid - second 60 (leap second)", - "data": "T000060Z", - "valid": true - }, - { - "description": "Invalid - shift hour 24", - "data": "T120000+2400", - "valid": false - }, - { - "description": "Invalid - shift minute 60", - "data": "T120000+0060", - "valid": false - }, - { - "description": "Valid - maximum positive shift", - "data": "T120000+1400", - "valid": true - }, - { - "description": "Valid - negative shift", - "data": "T120000-0500", - "valid": true - }, - { - "description": "Invalid - partial time (hour-minute only)", - "data": "T1527+0100", - "valid": false - }, - { - "description": "Invalid - decimal seconds", - "data": "T152746.5+0100", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/time/local-day-shift-extended/v1.test.json b/test/iso/datetime/2019/time/local-day-shift-extended/v1.test.json deleted file mode 100644 index 6ed7e5df..00000000 --- a/test/iso/datetime/2019/time/local-day-shift-extended/v1.test.json +++ /dev/null @@ -1,180 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/time/local-day-shift-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 152746, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - time with hour-minute shift, no T", - "data": "15:27:46+01:00", - "valid": true - }, - { - "description": "Valid - time with hour-minute shift and T", - "data": "T15:27:46-05:30", - "valid": true - }, - { - "description": "Valid - time with Z, no T", - "data": "15:27:46Z", - "valid": true - }, - { - "description": "Valid - time with hour-only shift and T", - "data": "T15:27:46+01", - "valid": true - }, - { - "description": "Valid - midnight with zero shift", - "data": "00:00:00+00:00", - "valid": true - }, - { - "description": "Valid - leap second with negative shift", - "data": "T23:59:60-12:00", - "valid": true - }, - { - "description": "Valid - time with Z and T", - "data": "T15:27:46Z", - "valid": true - }, - { - "description": "Valid - time with hour-only shift, no T", - "data": "12:00:00+05", - "valid": true - }, - { - "description": "Invalid - lowercase t", - "data": "t15:27:46+01:00", - "valid": false - }, - { - "description": "Invalid - lowercase z", - "data": "15:27:46z", - "valid": false - }, - { - "description": "Invalid - missing shift", - "data": "15:27:46", - "valid": false - }, - { - "description": "Invalid - basic format time (no colons in time)", - "data": "T152746+01:00", - "valid": false - }, - { - "description": "Invalid - basic format shift (no colons in shift)", - "data": "15:27:46+0100", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "24:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - hour 99", - "data": "99:00:00+01:00", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "00:60:00+01:00", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "00:99:00+01:00", - "valid": false - }, - { - "description": "Invalid - second 61", - "data": "00:00:61+01:00", - "valid": false - }, - { - "description": "Invalid - second 99", - "data": "00:00:99+01:00", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "00:00:00Z", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "23:00:00Z", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "00:00:00Z", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "00:59:00Z", - "valid": true - }, - { - "description": "Valid - second 00 (minimum)", - "data": "00:00:00Z", - "valid": true - }, - { - "description": "Valid - second 59", - "data": "00:00:59Z", - "valid": true - }, - { - "description": "Valid - second 60 (leap second)", - "data": "00:00:60Z", - "valid": true - }, - { - "description": "Invalid - shift hour 24", - "data": "12:00:00+24:00", - "valid": false - }, - { - "description": "Invalid - shift minute 60", - "data": "12:00:00+00:60", - "valid": false - }, - { - "description": "Valid - maximum positive shift", - "data": "12:00:00+14:00", - "valid": true - }, - { - "description": "Valid - negative shift", - "data": "12:00:00-05:00", - "valid": true - }, - { - "description": "Invalid - partial time (hour-minute only)", - "data": "15:27+01:00", - "valid": false - }, - { - "description": "Invalid - decimal seconds", - "data": "15:27:46.5+01:00", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/time/shift-basic/v1.test.json b/test/iso/datetime/2019/time/shift-basic/v1.test.json deleted file mode 100644 index bba96bdb..00000000 --- a/test/iso/datetime/2019/time/shift-basic/v1.test.json +++ /dev/null @@ -1,155 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/time/shift-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 100, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - positive shift hour and minute", - "data": "+0100", - "valid": true - }, - { - "description": "Valid - negative shift hour and minute", - "data": "-0530", - "valid": true - }, - { - "description": "Valid - positive shift hour only", - "data": "+00", - "valid": true - }, - { - "description": "Valid - negative shift hour only", - "data": "-12", - "valid": true - }, - { - "description": "Valid - Z (UTC)", - "data": "Z", - "valid": true - }, - { - "description": "Valid - maximum positive shift", - "data": "+1400", - "valid": true - }, - { - "description": "Invalid - negative zero shift -0000", - "data": "-0000", - "valid": false - }, - { - "description": "Invalid - negative zero shift -00", - "data": "-00", - "valid": false - }, - { - "description": "Valid - positive zero +0000", - "data": "+0000", - "valid": true - }, - { - "description": "Valid - positive zero +00", - "data": "+00", - "valid": true - }, - { - "description": "Invalid - lowercase z", - "data": "z", - "valid": false - }, - { - "description": "Invalid - missing sign", - "data": "0100", - "valid": false - }, - { - "description": "Invalid - colons (extended format)", - "data": "+01:00", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "+2400", - "valid": false - }, - { - "description": "Invalid - hour 99", - "data": "+9900", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "+0060", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "+0099", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "+0000", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "+2300", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "+0000", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "+0059", - "valid": true - }, - { - "description": "Invalid - three digits", - "data": "+010", - "valid": false - }, - { - "description": "Invalid - too many digits", - "data": "+01000", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - sign only", - "data": "+", - "valid": false - }, - { - "description": "Valid - negative hour only", - "data": "-05", - "valid": true - }, - { - "description": "Valid - positive hour only", - "data": "+01", - "valid": true - } - ] -} diff --git a/test/iso/datetime/2019/time/shift-extended/v1.test.json b/test/iso/datetime/2019/time/shift-extended/v1.test.json deleted file mode 100644 index f2ebc839..00000000 --- a/test/iso/datetime/2019/time/shift-extended/v1.test.json +++ /dev/null @@ -1,130 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/time/shift-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 100, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - positive shift hour and minute", - "data": "+01:00", - "valid": true - }, - { - "description": "Valid - negative shift hour and minute", - "data": "-05:30", - "valid": true - }, - { - "description": "Valid - Z (UTC)", - "data": "Z", - "valid": true - }, - { - "description": "Valid - maximum positive shift", - "data": "+14:00", - "valid": true - }, - { - "description": "Invalid - negative zero shift", - "data": "-00:00", - "valid": false - }, - { - "description": "Valid - positive zero", - "data": "+00:00", - "valid": true - }, - { - "description": "Valid - +12:45", - "data": "+12:45", - "valid": true - }, - { - "description": "Invalid - lowercase z", - "data": "z", - "valid": false - }, - { - "description": "Invalid - missing sign", - "data": "01:00", - "valid": false - }, - { - "description": "Invalid - basic format (no colons)", - "data": "+0100", - "valid": false - }, - { - "description": "Invalid - hour only (extended format not applicable)", - "data": "+01", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "+24:00", - "valid": false - }, - { - "description": "Invalid - hour 99", - "data": "+99:00", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "+00:60", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "+00:99", - "valid": false - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "+00:00", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "+23:00", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "+00:00", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "+00:59", - "valid": true - }, - { - "description": "Invalid - missing colon", - "data": "+0100", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - sign only", - "data": "+", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/time/utc-day-basic/v1.test.json b/test/iso/datetime/2019/time/utc-day-basic/v1.test.json deleted file mode 100644 index edf636d5..00000000 --- a/test/iso/datetime/2019/time/utc-day-basic/v1.test.json +++ /dev/null @@ -1,165 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/time/utc-day-basic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 232030, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - complete time with Z and T", - "data": "T232030Z", - "valid": true - }, - { - "description": "Valid - hour and minute with Z and T", - "data": "T2320Z", - "valid": true - }, - { - "description": "Valid - hour only with Z and T", - "data": "T23Z", - "valid": true - }, - { - "description": "Valid - complete time with Z, no T", - "data": "232030Z", - "valid": true - }, - { - "description": "Valid - midnight", - "data": "T000000Z", - "valid": true - }, - { - "description": "Valid - noon", - "data": "T120000Z", - "valid": true - }, - { - "description": "Valid - hour-minute no T", - "data": "1200Z", - "valid": true - }, - { - "description": "Valid - hour only no T", - "data": "12Z", - "valid": true - }, - { - "description": "Invalid - lowercase z", - "data": "T232030z", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "t232030Z", - "valid": false - }, - { - "description": "Invalid - missing Z", - "data": "T232030", - "valid": false - }, - { - "description": "Invalid - colons (extended format)", - "data": "T23:20:30Z", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "T240000Z", - "valid": false - }, - { - "description": "Invalid - hour 99", - "data": "T990000Z", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "T006000Z", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "T009900Z", - "valid": false - }, - { - "description": "Invalid - second 61", - "data": "T000061Z", - "valid": false - }, - { - "description": "Invalid - second 99", - "data": "T000099Z", - "valid": false - }, - { - "description": "Valid - leap second", - "data": "T235960Z", - "valid": true - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "T000000Z", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "T230000Z", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "T000000Z", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "T005900Z", - "valid": true - }, - { - "description": "Valid - second 00 (minimum)", - "data": "T000000Z", - "valid": true - }, - { - "description": "Valid - second 59", - "data": "T000059Z", - "valid": true - }, - { - "description": "Valid - second 60 (leap second)", - "data": "T000060Z", - "valid": true - }, - { - "description": "Invalid - with time shift instead of Z", - "data": "T232030+0100", - "valid": false - }, - { - "description": "Invalid - decimal seconds", - "data": "T232030.5Z", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - } - ] -} diff --git a/test/iso/datetime/2019/time/utc-day-extended/v1.test.json b/test/iso/datetime/2019/time/utc-day-extended/v1.test.json deleted file mode 100644 index 0ce7fae8..00000000 --- a/test/iso/datetime/2019/time/utc-day-extended/v1.test.json +++ /dev/null @@ -1,165 +0,0 @@ -{ - "target": "../../../../../../schemas/iso/datetime/2019/time/utc-day-extended/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 232030, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Valid - complete time with Z, no T", - "data": "23:20:30Z", - "valid": true - }, - { - "description": "Valid - complete time with Z and T", - "data": "T23:20:30Z", - "valid": true - }, - { - "description": "Valid - hour and minute with Z, no T", - "data": "23:20Z", - "valid": true - }, - { - "description": "Valid - hour and minute with Z and T", - "data": "T23:20Z", - "valid": true - }, - { - "description": "Valid - midnight", - "data": "00:00:00Z", - "valid": true - }, - { - "description": "Valid - noon with T", - "data": "T12:00:00Z", - "valid": true - }, - { - "description": "Valid - hour-minute", - "data": "12:00Z", - "valid": true - }, - { - "description": "Invalid - lowercase z", - "data": "23:20:30z", - "valid": false - }, - { - "description": "Invalid - lowercase t", - "data": "t23:20:30Z", - "valid": false - }, - { - "description": "Invalid - missing Z", - "data": "23:20:30", - "valid": false - }, - { - "description": "Invalid - basic format (no colons)", - "data": "T232030Z", - "valid": false - }, - { - "description": "Invalid - hour only (extended format not applicable)", - "data": "T23Z", - "valid": false - }, - { - "description": "Invalid - hour only without T", - "data": "23Z", - "valid": false - }, - { - "description": "Invalid - hour 24", - "data": "24:00:00Z", - "valid": false - }, - { - "description": "Invalid - hour 99", - "data": "99:00:00Z", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "00:60:00Z", - "valid": false - }, - { - "description": "Invalid - minute 99", - "data": "00:99:00Z", - "valid": false - }, - { - "description": "Invalid - second 61", - "data": "00:00:61Z", - "valid": false - }, - { - "description": "Invalid - second 99", - "data": "00:00:99Z", - "valid": false - }, - { - "description": "Valid - leap second", - "data": "23:59:60Z", - "valid": true - }, - { - "description": "Valid - hour 00 (minimum)", - "data": "00:00:00Z", - "valid": true - }, - { - "description": "Valid - hour 23 (maximum)", - "data": "23:00:00Z", - "valid": true - }, - { - "description": "Valid - minute 00 (minimum)", - "data": "00:00:00Z", - "valid": true - }, - { - "description": "Valid - minute 59 (maximum)", - "data": "00:59:00Z", - "valid": true - }, - { - "description": "Valid - second 00 (minimum)", - "data": "00:00:00Z", - "valid": true - }, - { - "description": "Valid - second 59", - "data": "00:00:59Z", - "valid": true - }, - { - "description": "Valid - second 60 (leap second)", - "data": "00:00:60Z", - "valid": true - }, - { - "description": "Invalid - with time shift instead of Z", - "data": "23:20:30+01:00", - "valid": false - }, - { - "description": "Invalid - decimal seconds", - "data": "23:20:30.5Z", - "valid": false - } - ] -} diff --git a/test/iso/it/2015/byte/v1.test.json b/test/iso/it/2015/byte/v1.test.json deleted file mode 100644 index 3b08dad1..00000000 --- a/test/iso/it/2015/byte/v1.test.json +++ /dev/null @@ -1,130 +0,0 @@ -{ - "target": "../../../../../schemas/iso/it/2015/byte/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "1024", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Invalid type - float", - "data": 1024.5, - "valid": false - }, - { - "description": "Valid - zero bytes", - "data": 0, - "valid": true - }, - { - "description": "Valid - one byte", - "data": 1, - "valid": true - }, - { - "description": "Valid - small number", - "data": 42, - "valid": true - }, - { - "description": "Valid - 1 KB (1024 bytes)", - "data": 1024, - "valid": true - }, - { - "description": "Valid - 1 MB (1048576 bytes)", - "data": 1048576, - "valid": true - }, - { - "description": "Valid - 1 GB (1073741824 bytes)", - "data": 1073741824, - "valid": true - }, - { - "description": "Valid - 1 TB (1099511627776 bytes)", - "data": 1099511627776, - "valid": true - }, - { - "description": "Valid - very large number", - "data": 9007199254740991, - "valid": true - }, - { - "description": "Valid - 512 bytes", - "data": 512, - "valid": true - }, - { - "description": "Valid - 4096 bytes (4 KB)", - "data": 4096, - "valid": true - }, - { - "description": "Valid - 8192 bytes (8 KB)", - "data": 8192, - "valid": true - }, - { - "description": "Valid - 65536 bytes (64 KB)", - "data": 65536, - "valid": true - }, - { - "description": "Invalid - negative one", - "data": -1, - "valid": false - }, - { - "description": "Invalid - negative small number", - "data": -100, - "valid": false - }, - { - "description": "Invalid - negative large number", - "data": -1048576, - "valid": false - }, - { - "description": "Invalid - decimal 0.5", - "data": 0.5, - "valid": false - }, - { - "description": "Invalid - decimal 1.1", - "data": 1.1, - "valid": false - }, - { - "description": "Invalid - decimal 999.99", - "data": 999.99, - "valid": false - }, - { - "description": "Invalid - negative decimal", - "data": -0.5, - "valid": false - } - ] -} diff --git a/test/iso/language/2023/set-1/v1.test.json b/test/iso/language/2023/set-1/v1.test.json deleted file mode 100644 index a1847312..00000000 --- a/test/iso/language/2023/set-1/v1.test.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "target": "../../../../../schemas/iso/language/2023/set-1/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - English", - "data": "en", - "valid": true - }, - { - "description": "Valid - Spanish", - "data": "es", - "valid": true - }, - { - "description": "Valid - French", - "data": "fr", - "valid": true - }, - { - "description": "Valid - German", - "data": "de", - "valid": true - }, - { - "description": "Valid - Japanese", - "data": "ja", - "valid": true - }, - { - "description": "Valid - Chinese", - "data": "zh", - "valid": true - }, - { - "description": "Valid - Arabic", - "data": "ar", - "valid": true - }, - { - "description": "Valid - Russian", - "data": "ru", - "valid": true - }, - { - "description": "Valid - Portuguese", - "data": "pt", - "valid": true - }, - { - "description": "Valid - Italian", - "data": "it", - "valid": true - }, - { - "description": "Invalid - uppercase", - "data": "EN", - "valid": false - }, - { - "description": "Invalid - mixed case", - "data": "En", - "valid": false - }, - { - "description": "Invalid - too short", - "data": "e", - "valid": false - }, - { - "description": "Invalid - too long (3 letters)", - "data": "eng", - "valid": false - }, - { - "description": "Invalid - non-existent code", - "data": "zz", - "valid": false - }, - { - "description": "Invalid - contains numbers", - "data": "e1", - "valid": false - }, - { - "description": "Invalid - contains special characters", - "data": "e-", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - spaces", - "data": "e n", - "valid": false - } - ] -} diff --git a/test/iso/language/2023/set-2-bibliographic/v1.test.json b/test/iso/language/2023/set-2-bibliographic/v1.test.json deleted file mode 100644 index 3ca4ef29..00000000 --- a/test/iso/language/2023/set-2-bibliographic/v1.test.json +++ /dev/null @@ -1,165 +0,0 @@ -{ - "target": "../../../../../schemas/iso/language/2023/set-2-bibliographic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - English (bibliographic)", - "data": "eng", - "valid": true - }, - { - "description": "Valid - Spanish", - "data": "spa", - "valid": true - }, - { - "description": "Valid - French (bibliographic)", - "data": "fre", - "valid": true - }, - { - "description": "Valid - German (bibliographic)", - "data": "ger", - "valid": true - }, - { - "description": "Valid - Japanese", - "data": "jpn", - "valid": true - }, - { - "description": "Valid - Chinese", - "data": "chi", - "valid": true - }, - { - "description": "Valid - Arabic", - "data": "ara", - "valid": true - }, - { - "description": "Valid - Albanian (bibliographic)", - "data": "alb", - "valid": true - }, - { - "description": "Valid - Basque (bibliographic)", - "data": "baq", - "valid": true - }, - { - "description": "Invalid - uppercase", - "data": "ENG", - "valid": false - }, - { - "description": "Invalid - mixed case", - "data": "Eng", - "valid": false - }, - { - "description": "Invalid - too short (2 letters)", - "data": "en", - "valid": false - }, - { - "description": "Invalid - too long", - "data": "engl", - "valid": false - }, - { - "description": "Invalid - non-existent code", - "data": "xyz", - "valid": false - }, - { - "description": "Invalid - contains numbers", - "data": "en1", - "valid": false - }, - { - "description": "Invalid - contains special characters", - "data": "en-", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - spaces", - "data": "e n", - "valid": false - }, - { - "description": "Invalid - terminologic code (should use bibliographic)", - "data": "sqi", - "valid": false - }, - { - "description": "Valid - special code for uncoded languages", - "valid": true, - "data": "mis" - }, - { - "description": "Valid - special code for multiple languages", - "valid": true, - "data": "mul" - }, - { - "description": "Valid - collective code", - "valid": true, - "data": "ber" - }, - { - "description": "Valid - collective code for Himachali languages", - "valid": true, - "data": "him" - }, - { - "description": "Valid - reserved local-use code", - "valid": true, - "data": "qaa" - }, - { - "description": "Valid - reserved local-use code at the range end", - "valid": true, - "data": "qtz" - }, - { - "description": "Invalid - the reserved range marker is not a code", - "valid": false, - "data": "qaa-qtz" - }, - { - "description": "Invalid - outside the reserved range", - "valid": false, - "data": "qua" - } - ] -} diff --git a/test/iso/language/2023/set-2-terminologic/v1.test.json b/test/iso/language/2023/set-2-terminologic/v1.test.json deleted file mode 100644 index 398aace2..00000000 --- a/test/iso/language/2023/set-2-terminologic/v1.test.json +++ /dev/null @@ -1,140 +0,0 @@ -{ - "target": "../../../../../schemas/iso/language/2023/set-2-terminologic/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - Albanian (terminologic - native name)", - "data": "sqi", - "valid": true - }, - { - "description": "Valid - Basque (terminologic - native name)", - "data": "eus", - "valid": true - }, - { - "description": "Valid - Czech (terminologic)", - "data": "ces", - "valid": true - }, - { - "description": "Valid - Welsh (terminologic)", - "data": "cym", - "valid": true - }, - { - "description": "Valid - German (terminologic)", - "data": "deu", - "valid": true - }, - { - "description": "Valid - Greek (terminologic)", - "data": "ell", - "valid": true - }, - { - "description": "Valid - French (terminologic)", - "data": "fra", - "valid": true - }, - { - "description": "Invalid - uppercase", - "data": "SQI", - "valid": false - }, - { - "description": "Invalid - mixed case", - "data": "Sqi", - "valid": false - }, - { - "description": "Invalid - too short (2 letters)", - "data": "sq", - "valid": false - }, - { - "description": "Invalid - too long", - "data": "sqii", - "valid": false - }, - { - "description": "Invalid - non-existent code", - "data": "xyz", - "valid": false - }, - { - "description": "Invalid - contains numbers", - "data": "sq1", - "valid": false - }, - { - "description": "Invalid - contains special characters", - "data": "sq-", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - spaces", - "data": "s q", - "valid": false - }, - { - "description": "Invalid - bibliographic code (should use terminologic)", - "data": "alb", - "valid": false - }, - { - "description": "Valid - terminologic code equals bibliographic for most languages", - "valid": true, - "data": "eng" - }, - { - "description": "Valid - divergent terminologic code", - "valid": true, - "data": "deu" - }, - { - "description": "Invalid - divergent bibliographic code is not terminologic", - "valid": false, - "data": "ger" - }, - { - "description": "Valid - special code for uncoded languages", - "valid": true, - "data": "mis" - }, - { - "description": "Valid - reserved local-use code", - "valid": true, - "data": "qaa" - } - ] -} diff --git a/test/iso/language/2023/set-3/v1.test.json b/test/iso/language/2023/set-3/v1.test.json deleted file mode 100644 index 68721d95..00000000 --- a/test/iso/language/2023/set-3/v1.test.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "target": "../../../../../schemas/iso/language/2023/set-3/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - English", - "data": "eng", - "valid": true - }, - { - "description": "Valid - Spanish", - "data": "spa", - "valid": true - }, - { - "description": "Valid - Afar", - "data": "aar", - "valid": true - }, - { - "description": "Valid - Ghotuo (no Set 1 or Set 2 code)", - "data": "aaa", - "valid": true - }, - { - "description": "Valid - Alumu-Tesu (no Set 1 or Set 2 code)", - "data": "aab", - "valid": true - }, - { - "description": "Valid - Arabic (macrolanguage)", - "data": "ara", - "valid": true - }, - { - "description": "Valid - Zulu", - "data": "zul", - "valid": true - }, - { - "description": "Valid - Multiple languages (special code)", - "data": "mul", - "valid": true - }, - { - "description": "Valid - Undetermined (special code)", - "data": "und", - "valid": true - }, - { - "description": "Valid - No linguistic content (special code)", - "data": "zxx", - "valid": true - }, - { - "description": "Invalid - uppercase", - "data": "ENG", - "valid": false - }, - { - "description": "Invalid - mixed case", - "data": "Eng", - "valid": false - }, - { - "description": "Invalid - too short (2 letters)", - "data": "en", - "valid": false - }, - { - "description": "Invalid - too long", - "data": "engl", - "valid": false - }, - { - "description": "Invalid - non-existent code", - "data": "zzz", - "valid": false - }, - { - "description": "Invalid - contains numbers", - "data": "en1", - "valid": false - }, - { - "description": "Invalid - contains special characters", - "data": "en-", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - spaces", - "data": "e n", - "valid": false - } - ] -} diff --git a/test/iso/language/2023/set-5/v1.test.json b/test/iso/language/2023/set-5/v1.test.json deleted file mode 100644 index f668e711..00000000 --- a/test/iso/language/2023/set-5/v1.test.json +++ /dev/null @@ -1,160 +0,0 @@ -{ - "target": "../../../../../schemas/iso/language/2023/set-5/v1.json", - "tests": [ - { - "description": "Invalid type - integer", - "data": 123, - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - Afro-Asiatic languages", - "data": "afa", - "valid": true - }, - { - "description": "Valid - Algonquian languages", - "data": "alg", - "valid": true - }, - { - "description": "Valid - Apache languages", - "data": "apa", - "valid": true - }, - { - "description": "Valid - Artificial languages", - "data": "art", - "valid": true - }, - { - "description": "Valid - Athapascan languages", - "data": "ath", - "valid": true - }, - { - "description": "Valid - Baltic languages", - "data": "bat", - "valid": true - }, - { - "description": "Valid - Berber languages", - "data": "ber", - "valid": true - }, - { - "description": "Valid - Celtic languages", - "data": "cel", - "valid": true - }, - { - "description": "Valid - Germanic languages", - "data": "gem", - "valid": true - }, - { - "description": "Valid - Slavic languages", - "data": "sla", - "valid": true - }, - { - "description": "Invalid - uppercase", - "data": "AFA", - "valid": false - }, - { - "description": "Invalid - mixed case", - "data": "Afa", - "valid": false - }, - { - "description": "Invalid - too short (2 letters)", - "data": "af", - "valid": false - }, - { - "description": "Invalid - too long", - "data": "afaa", - "valid": false - }, - { - "description": "Invalid - non-existent code", - "data": "xyz", - "valid": false - }, - { - "description": "Invalid - contains numbers", - "data": "af1", - "valid": false - }, - { - "description": "Invalid - contains special characters", - "data": "af-", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - spaces", - "data": "a f", - "valid": false - }, - { - "description": "Invalid - individual language code (not language family)", - "data": "eng", - "valid": false - }, - { - "description": "Valid - Austro-Asiatic languages", - "valid": true, - "data": "aav" - }, - { - "description": "Valid - Creoles and pidgins", - "valid": true, - "data": "crp" - }, - { - "description": "Valid - West Germanic languages", - "valid": true, - "data": "gmw" - }, - { - "description": "Invalid - Himachali is a collective code but not a language family", - "valid": false, - "data": "him" - }, - { - "description": "Invalid - uncoded languages is a special code, not a family", - "valid": false, - "data": "mis" - }, - { - "description": "Invalid - multiple languages is a special code, not a family", - "valid": false, - "data": "mul" - } - ] -} diff --git a/test/iso/units/2022/percentage/v1.test.json b/test/iso/units/2022/percentage/v1.test.json deleted file mode 100644 index 76616d5e..00000000 --- a/test/iso/units/2022/percentage/v1.test.json +++ /dev/null @@ -1,170 +0,0 @@ -{ - "target": "../../../../../schemas/iso/units/2022/percentage/v1.json", - "tests": [ - { - "description": "Invalid type - string", - "data": "50", - "valid": false - }, - { - "description": "Invalid type - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid type - null", - "data": null, - "valid": false - }, - { - "description": "Invalid type - array", - "data": [], - "valid": false - }, - { - "description": "Invalid type - object", - "data": {}, - "valid": false - }, - { - "description": "Valid - zero percent", - "data": 0, - "valid": true - }, - { - "description": "Valid - one percent", - "data": 1, - "valid": true - }, - { - "description": "Valid - fifty percent", - "data": 50, - "valid": true - }, - { - "description": "Valid - ninety-nine percent", - "data": 99, - "valid": true - }, - { - "description": "Valid - one hundred percent", - "data": 100, - "valid": true - }, - { - "description": "Valid - decimal 0.5 percent", - "data": 0.5, - "valid": true - }, - { - "description": "Valid - decimal 1.5 percent", - "data": 1.5, - "valid": true - }, - { - "description": "Valid - decimal 25.5 percent", - "data": 25.5, - "valid": true - }, - { - "description": "Valid - decimal 50.5 percent", - "data": 50.5, - "valid": true - }, - { - "description": "Valid - decimal 75.75 percent", - "data": 75.75, - "valid": true - }, - { - "description": "Valid - decimal 99.9 percent", - "data": 99.9, - "valid": true - }, - { - "description": "Valid - decimal 99.99 percent", - "data": 99.99, - "valid": true - }, - { - "description": "Valid - decimal 99.999 percent", - "data": 99.999, - "valid": true - }, - { - "description": "Valid - decimal 0.01 percent", - "data": 0.01, - "valid": true - }, - { - "description": "Valid - decimal 0.001 percent", - "data": 0.001, - "valid": true - }, - { - "description": "Valid - integer zero (boundary)", - "data": 0, - "valid": true - }, - { - "description": "Valid - integer one hundred (boundary)", - "data": 100, - "valid": true - }, - { - "description": "Valid - float zero (boundary)", - "data": 0.0, - "valid": true - }, - { - "description": "Valid - float one hundred (boundary)", - "data": 100.0, - "valid": true - }, - { - "description": "Invalid - negative one", - "data": -1, - "valid": false - }, - { - "description": "Invalid - negative small number", - "data": -0.1, - "valid": false - }, - { - "description": "Invalid - negative large number", - "data": -50, - "valid": false - }, - { - "description": "Invalid - one hundred and one", - "data": 101, - "valid": false - }, - { - "description": "Invalid - over one hundred small", - "data": 100.1, - "valid": false - }, - { - "description": "Invalid - over one hundred large", - "data": 150, - "valid": false - }, - { - "description": "Invalid - two hundred", - "data": 200, - "valid": false - }, - { - "description": "Invalid - very large number", - "data": 1000, - "valid": false - }, - { - "description": "Invalid - negative decimal", - "data": -0.01, - "valid": false - } - ] -} diff --git a/test/other/jsonrpc/v2.0/batch-request/v1.test.json b/test/other/jsonrpc/v2.0/batch-request/v1.test.json deleted file mode 100644 index 73387e07..00000000 --- a/test/other/jsonrpc/v2.0/batch-request/v1.test.json +++ /dev/null @@ -1,289 +0,0 @@ -{ - "target": "../../../../../schemas/other/jsonrpc/v2.0/batch-request/v1.json", - "tests": [ - { - "data": [ - { - "id": "1", - "jsonrpc": "2.0", - "method": "sum", - "params": [ 1, 2, 4 ] - } - ], - "valid": true - }, - { - "data": [ - { - "id": "1", - "jsonrpc": "2.0", - "method": "sum", - "params": [ 1, 2, 4 ] - }, - { - "jsonrpc": "2.0", - "method": "notify_hello", - "params": [ 7 ] - } - ], - "valid": true - }, - { - "data": [ - { - "id": "1", - "jsonrpc": "2.0", - "method": "sum", - "params": [ 1, 2, 4 ] - }, - { - "jsonrpc": "2.0", - "method": "notify_hello", - "params": [ 7 ] - }, - { - "id": "2", - "jsonrpc": "2.0", - "method": "subtract", - "params": [ 42, 23 ] - } - ], - "valid": true - }, - { - "data": [ - { - "id": 1, - "jsonrpc": "2.0", - "method": "get_data" - } - ], - "valid": true - }, - { - "data": [ - { - "jsonrpc": "2.0", - "method": "notify_update" - } - ], - "valid": true - }, - { - "data": [ - { - "jsonrpc": "2.0", - "method": "notify_update" - }, - { - "id": "req-1", - "jsonrpc": "2.0", - "method": "fetch", - "params": { - "key": "value" - } - } - ], - "valid": true - }, - { - "data": [ - { - "jsonrpc": "2.0", - "method": "notify1" - }, - { - "jsonrpc": "2.0", - "method": "notify2" - }, - { - "jsonrpc": "2.0", - "method": "notify3" - } - ], - "valid": true - }, - { - "data": [ - { - "id": 1, - "jsonrpc": "2.0", - "method": "request1" - }, - { - "id": 2, - "jsonrpc": "2.0", - "method": "request2" - }, - { - "id": 3, - "jsonrpc": "2.0", - "method": "request3" - } - ], - "valid": true - }, - { - "data": [ - { - "id": "calc-1", - "jsonrpc": "2.0", - "method": "calculate", - "params": { - "x": 10, - "y": 20 - } - }, - { - "jsonrpc": "2.0", - "method": "log", - "params": [ "info", "test" ] - }, - { - "id": 100, - "jsonrpc": "2.0", - "method": "process", - "params": [] - }, - { - "jsonrpc": "2.0", - "method": "notify" - }, - { - "id": "q-1", - "jsonrpc": "2.0", - "method": "query" - } - ], - "valid": true - }, - { - "data": [ - { - "id": 1, - "jsonrpc": "2.0", - "method": "test1" - }, - { - "id": 2, - "jsonrpc": "2.0", - "method": "test2" - }, - { - "id": 3, - "jsonrpc": "2.0", - "method": "test3" - }, - { - "id": 4, - "jsonrpc": "2.0", - "method": "test4" - }, - { - "id": 5, - "jsonrpc": "2.0", - "method": "test5" - }, - { - "id": 6, - "jsonrpc": "2.0", - "method": "test6" - }, - { - "id": 7, - "jsonrpc": "2.0", - "method": "test7" - }, - { - "id": 8, - "jsonrpc": "2.0", - "method": "test8" - }, - { - "id": 9, - "jsonrpc": "2.0", - "method": "test9" - }, - { - "id": 10, - "jsonrpc": "2.0", - "method": "test10" - } - ], - "valid": true - }, - { - "data": [], - "valid": false - }, - { - "data": [ - { - "jsonrpc": "2.0", - "method": "test" - } - ], - "valid": true - }, - { - "data": [ - { - "id": 1, - "jsonrpc": "2.0" - } - ], - "valid": false - }, - { - "data": [ - { - "id": 1, - "method": "test" - } - ], - "valid": false - }, - { - "data": [ "not an object" ], - "valid": false - }, - { - "data": [ 42 ], - "valid": false - }, - { - "data": [ null ], - "valid": false - }, - { - "data": [ - { - "id": 1, - "jsonrpc": "2.0", - "method": "valid" - }, - { - "jsonrpc": "2.0", - "method": "notify" - } - ], - "valid": true - }, - { - "data": {}, - "valid": false - }, - { - "data": "batch", - "valid": false - }, - { - "data": 42, - "valid": false - }, - { - "data": null, - "valid": false - } - ] -} diff --git a/test/other/jsonrpc/v2.0/batch-response/v1.test.json b/test/other/jsonrpc/v2.0/batch-response/v1.test.json deleted file mode 100644 index 574f91ea..00000000 --- a/test/other/jsonrpc/v2.0/batch-response/v1.test.json +++ /dev/null @@ -1,352 +0,0 @@ -{ - "target": "../../../../../schemas/other/jsonrpc/v2.0/batch-response/v1.json", - "tests": [ - { - "data": [ - { - "id": "1", - "jsonrpc": "2.0", - "result": 7 - } - ], - "valid": true - }, - { - "data": [ - { - "id": "1", - "jsonrpc": "2.0", - "result": 7 - }, - { - "id": "2", - "jsonrpc": "2.0", - "result": 19 - } - ], - "valid": true - }, - { - "data": [ - { - "id": "1", - "jsonrpc": "2.0", - "result": 7 - }, - { - "id": "2", - "jsonrpc": "2.0", - "result": 19 - }, - { - "id": null, - "error": { - "code": -32600, - "message": "Invalid Request" - }, - "jsonrpc": "2.0" - } - ], - "valid": true - }, - { - "data": [ - { - "id": 1, - "jsonrpc": "2.0", - "result": { - "status": "ok" - } - } - ], - "valid": true - }, - { - "data": [ - { - "id": "req-1", - "error": { - "code": -32601, - "message": "Method not found" - }, - "jsonrpc": "2.0" - } - ], - "valid": true - }, - { - "data": [ - { - "id": null, - "error": { - "code": -32700, - "message": "Parse error" - }, - "jsonrpc": "2.0" - }, - { - "id": null, - "error": { - "code": -32600, - "message": "Invalid Request" - }, - "jsonrpc": "2.0" - } - ], - "valid": true - }, - { - "data": [ - { - "id": 1, - "jsonrpc": "2.0", - "result": null - }, - { - "id": 2, - "jsonrpc": "2.0", - "result": true - }, - { - "id": 3, - "jsonrpc": "2.0", - "result": false - } - ], - "valid": true - }, - { - "data": [ - { - "id": 1, - "jsonrpc": "2.0", - "result": 100 - }, - { - "id": 2, - "jsonrpc": "2.0", - "result": 200 - }, - { - "id": 3, - "jsonrpc": "2.0", - "result": 300 - }, - { - "id": 4, - "error": { - "code": -32600, - "message": "Invalid Request" - }, - "jsonrpc": "2.0" - } - ], - "valid": true - }, - { - "data": [ - { - "id": "arr-1", - "jsonrpc": "2.0", - "result": [ 1, 2, 3 ] - }, - { - "id": "obj-1", - "jsonrpc": "2.0", - "result": { - "key": "value" - } - }, - { - "id": "str-1", - "jsonrpc": "2.0", - "result": "string result" - } - ], - "valid": true - }, - { - "data": [ - { - "id": 1, - "jsonrpc": "2.0", - "result": 1 - }, - { - "id": 2, - "jsonrpc": "2.0", - "result": 2 - }, - { - "id": 3, - "jsonrpc": "2.0", - "result": 3 - }, - { - "id": 4, - "jsonrpc": "2.0", - "result": 4 - }, - { - "id": 5, - "jsonrpc": "2.0", - "result": 5 - }, - { - "id": 6, - "jsonrpc": "2.0", - "result": 6 - }, - { - "id": 7, - "jsonrpc": "2.0", - "result": 7 - }, - { - "id": 8, - "jsonrpc": "2.0", - "result": 8 - }, - { - "id": 9, - "jsonrpc": "2.0", - "result": 9 - }, - { - "id": 10, - "jsonrpc": "2.0", - "result": 10 - } - ], - "valid": true - }, - { - "data": [ - { - "id": "err-1", - "error": { - "code": -32000, - "data": { - "details": "Internal failure" - }, - "message": "Server error" - }, - "jsonrpc": "2.0" - } - ], - "valid": true - }, - { - "data": [ - { - "id": 0, - "jsonrpc": "2.0", - "result": 0 - }, - { - "id": "empty", - "jsonrpc": "2.0", - "result": "" - }, - { - "id": "arr", - "jsonrpc": "2.0", - "result": [] - }, - { - "id": "obj", - "jsonrpc": "2.0", - "result": {} - } - ], - "valid": true - }, - { - "data": [], - "valid": false - }, - { - "data": [ - { - "id": 1, - "jsonrpc": "2.0" - } - ], - "valid": false - }, - { - "data": [ - { - "id": 1, - "error": { - "code": -32600, - "message": "Error" - }, - "jsonrpc": "2.0", - "result": 1 - } - ], - "valid": false - }, - { - "data": [ - { - "id": 1, - "result": 1 - } - ], - "valid": false - }, - { - "data": [ - { - "jsonrpc": "2.0", - "result": 1 - } - ], - "valid": false - }, - { - "data": [ "not an object" ], - "valid": false - }, - { - "data": [ 42 ], - "valid": false - }, - { - "data": [ null ], - "valid": false - }, - { - "data": [ - { - "id": 1, - "jsonrpc": "2.0", - "result": 1 - }, - { - "id": 2, - "jsonrpc": "2.0" - } - ], - "valid": false - }, - { - "data": {}, - "valid": false - }, - { - "data": "batch", - "valid": false - }, - { - "data": 42, - "valid": false - }, - { - "data": null, - "valid": false - } - ] -} diff --git a/test/other/jsonrpc/v2.0/code-predefined/v1.test.json b/test/other/jsonrpc/v2.0/code-predefined/v1.test.json deleted file mode 100644 index 229cac8b..00000000 --- a/test/other/jsonrpc/v2.0/code-predefined/v1.test.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "target": "../../../../../schemas/other/jsonrpc/v2.0/code-predefined/v1.json", - "tests": [ - { - "data": -32700, - "valid": true - }, - { - "data": -32600, - "valid": true - }, - { - "data": -32601, - "valid": true - }, - { - "data": -32602, - "valid": true - }, - { - "data": -32603, - "valid": true - }, - { - "data": -32000, - "valid": true - }, - { - "data": -32001, - "valid": true - }, - { - "data": -32050, - "valid": true - }, - { - "data": -32098, - "valid": true - }, - { - "data": -32099, - "valid": true - }, - { - "data": -32701, - "valid": false - }, - { - "data": -32699, - "valid": false - }, - { - "data": -32604, - "valid": false - }, - { - "data": -32599, - "valid": false - }, - { - "data": -31999, - "valid": false - }, - { - "data": -32100, - "valid": false - }, - { - "data": 0, - "valid": false - }, - { - "data": 1, - "valid": false - }, - { - "data": 100, - "valid": false - }, - { - "data": -1, - "valid": false - }, - { - "data": -100, - "valid": false - }, - { - "data": 32000, - "valid": false - }, - { - "data": 32700, - "valid": false - }, - { - "data": -32700.5, - "valid": false - }, - { - "data": "error", - "valid": false - }, - { - "data": "-32600", - "valid": false - }, - { - "data": null, - "valid": false - }, - { - "data": true, - "valid": false - }, - { - "data": [], - "valid": false - }, - { - "data": {}, - "valid": false - } - ] -} diff --git a/test/other/jsonrpc/v2.0/code/v1.test.json b/test/other/jsonrpc/v2.0/code/v1.test.json deleted file mode 100644 index 8c4a80b8..00000000 --- a/test/other/jsonrpc/v2.0/code/v1.test.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "target": "../../../../../schemas/other/jsonrpc/v2.0/code/v1.json", - "tests": [ - { - "data": -32700, - "valid": true - }, - { - "data": -32600, - "valid": true - }, - { - "data": -32601, - "valid": true - }, - { - "data": -32602, - "valid": true - }, - { - "data": -32603, - "valid": true - }, - { - "data": -32000, - "valid": true - }, - { - "data": -32099, - "valid": true - }, - { - "data": 0, - "valid": true - }, - { - "data": 1, - "valid": true - }, - { - "data": -1, - "valid": true - }, - { - "data": 100, - "valid": true - }, - { - "data": -100, - "valid": true - }, - { - "data": 999, - "valid": true - }, - { - "data": -999, - "valid": true - }, - { - "data": 40000, - "valid": true - }, - { - "data": -40000, - "valid": true - }, - { - "data": 2147483647, - "valid": true - }, - { - "data": -2147483648, - "valid": true - }, - { - "data": -31999, - "valid": true - }, - { - "data": -32100, - "valid": true - }, - { - "data": -32701, - "valid": true - }, - { - "data": 1.5, - "valid": false - }, - { - "data": -32700.5, - "valid": false - }, - { - "data": 0.1, - "valid": false - }, - { - "data": "error", - "valid": false - }, - { - "data": "-32600", - "valid": false - }, - { - "data": null, - "valid": false - }, - { - "data": true, - "valid": false - }, - { - "data": false, - "valid": false - }, - { - "data": [], - "valid": false - }, - { - "data": {}, - "valid": false - } - ] -} diff --git a/test/other/jsonrpc/v2.0/error/v1.test.json b/test/other/jsonrpc/v2.0/error/v1.test.json deleted file mode 100644 index 144a17cf..00000000 --- a/test/other/jsonrpc/v2.0/error/v1.test.json +++ /dev/null @@ -1,262 +0,0 @@ -{ - "target": "../../../../../schemas/other/jsonrpc/v2.0/error/v1.json", - "tests": [ - { - "data": { - "code": -32600, - "message": "Invalid Request" - }, - "valid": true - }, - { - "data": { - "code": -32601, - "message": "Method not found" - }, - "valid": true - }, - { - "data": { - "code": -32700, - "message": "Parse error" - }, - "valid": true - }, - { - "data": { - "code": -32602, - "message": "Invalid params" - }, - "valid": true - }, - { - "data": { - "code": -32603, - "message": "Internal error" - }, - "valid": true - }, - { - "data": { - "code": -32000, - "message": "Server error" - }, - "valid": true - }, - { - "data": { - "code": 100, - "message": "Application error" - }, - "valid": true - }, - { - "data": { - "code": -1, - "message": "Custom error" - }, - "valid": true - }, - { - "data": { - "code": 0, - "message": "" - }, - "valid": true - }, - { - "data": { - "code": -32600, - "data": "Additional info", - "message": "Invalid Request" - }, - "valid": true - }, - { - "data": { - "code": -32601, - "data": { - "method": "foo" - }, - "message": "Method not found" - }, - "valid": true - }, - { - "data": { - "code": -32000, - "data": { - "details": "Database connection failed" - }, - "message": "Server error" - }, - "valid": true - }, - { - "data": { - "code": 100, - "data": [ 1, 2, 3 ], - "message": "Error" - }, - "valid": true - }, - { - "data": { - "code": -32700, - "data": null, - "message": "Parse error" - }, - "valid": true - }, - { - "data": { - "code": 42, - "data": true, - "message": "Error" - }, - "valid": true - }, - { - "data": { - "code": -32602, - "data": 123, - "message": "Invalid params" - }, - "valid": true - }, - { - "data": { - "code": 1, - "message": "A very long error message with many characters describing the issue in detail" - }, - "valid": true - }, - { - "data": { - "code": -32600, - "message": "Error with unicode café" - }, - "valid": true - }, - { - "data": { - "code": 100, - "message": "Error with\nnewline" - }, - "valid": true - }, - { - "data": { - "code": -32600, - "data": { - "nested": { - "deep": { - "value": 42 - } - } - }, - "message": "Error" - }, - "valid": true - }, - { - "data": { - "message": "Missing code" - }, - "valid": false - }, - { - "data": { - "code": -32600 - }, - "valid": false - }, - { - "data": {}, - "valid": false - }, - { - "data": { - "code": "not-a-number", - "message": "Invalid code type" - }, - "valid": false - }, - { - "data": { - "code": -32600, - "message": 123 - }, - "valid": false - }, - { - "data": { - "code": null, - "message": "Null code" - }, - "valid": false - }, - { - "data": { - "code": -32600, - "message": null - }, - "valid": false - }, - { - "data": { - "code": -32600.5, - "message": "Fractional code" - }, - "valid": false - }, - { - "data": { - "code": -32000, - "custom": "extension", - "message": "Server error" - }, - "valid": true - }, - { - "data": { - "code": -32601, - "message": "Method not found", - "request_id": "req-123", - "timestamp": 1234567890 - }, - "valid": true - }, - { - "data": { - "x-trace": { - "column": 10, - "line": 42 - }, - "code": -32700, - "message": "Parse error" - }, - "valid": true - }, - { - "data": [], - "valid": false - }, - { - "data": "error", - "valid": false - }, - { - "data": 42, - "valid": false - }, - { - "data": null, - "valid": false - }, - { - "data": true, - "valid": false - } - ] -} diff --git a/test/other/jsonrpc/v2.0/identifier/v1.test.json b/test/other/jsonrpc/v2.0/identifier/v1.test.json deleted file mode 100644 index 64ff9926..00000000 --- a/test/other/jsonrpc/v2.0/identifier/v1.test.json +++ /dev/null @@ -1,139 +0,0 @@ -{ - "target": "../../../../../schemas/other/jsonrpc/v2.0/identifier/v1.json", - "tests": [ - { - "data": "abc123", - "valid": true - }, - { - "data": "request-1", - "valid": true - }, - { - "data": "req_001", - "valid": true - }, - { - "data": "", - "valid": true - }, - { - "data": "a", - "valid": true - }, - { - "data": "very-long-identifier-with-many-characters-0123456789", - "valid": true - }, - { - "data": "UUID-like-f47ac10b-58cc-4372-a567-0e02b2c3d479", - "valid": true - }, - { - "data": "with spaces", - "valid": true - }, - { - "data": "with\nnewline", - "valid": true - }, - { - "data": "with\ttab", - "valid": true - }, - { - "data": "unicode-café", - "valid": true - }, - { - "data": "emoji-🎉", - "valid": true - }, - { - "data": 0, - "valid": true - }, - { - "data": 1, - "valid": true - }, - { - "data": -1, - "valid": true - }, - { - "data": 42, - "valid": true - }, - { - "data": -42, - "valid": true - }, - { - "data": 999999, - "valid": true - }, - { - "data": -999999, - "valid": true - }, - { - "data": 2147483647, - "valid": true - }, - { - "data": -2147483648, - "valid": true - }, - { - "data": null, - "valid": true - }, - { - "data": 1.5, - "valid": true, - "description": "Valid - fractional numbers are allowed (SHOULD NOT, not MUST NOT)" - }, - { - "data": 3.14, - "valid": true, - "description": "Valid - fractional numbers are allowed (SHOULD NOT, not MUST NOT)" - }, - { - "data": 0.1, - "valid": true, - "description": "Valid - fractional numbers are allowed (SHOULD NOT, not MUST NOT)" - }, - { - "data": -0.5, - "valid": true, - "description": "Valid - fractional numbers are allowed (SHOULD NOT, not MUST NOT)" - }, - { - "data": true, - "valid": false - }, - { - "data": false, - "valid": false - }, - { - "data": [], - "valid": false - }, - { - "data": [ 1 ], - "valid": false - }, - { - "data": {}, - "valid": false - }, - { - "data": { - "id": 1 - }, - "valid": false - } - ] -} diff --git a/test/other/jsonrpc/v2.0/method-internal/v1.test.json b/test/other/jsonrpc/v2.0/method-internal/v1.test.json deleted file mode 100644 index 7eeceb1e..00000000 --- a/test/other/jsonrpc/v2.0/method-internal/v1.test.json +++ /dev/null @@ -1,113 +0,0 @@ -{ - "target": "../../../../../schemas/other/jsonrpc/v2.0/method-internal/v1.json", - "tests": [ - { - "data": "rpc.", - "valid": true - }, - { - "data": "rpc.discover", - "valid": true - }, - { - "data": "rpc.introspect", - "valid": true - }, - { - "data": "rpc.system", - "valid": true - }, - { - "data": "rpc.system.info", - "valid": true - }, - { - "data": "rpc.system.listMethods", - "valid": true - }, - { - "data": "rpc.server.version", - "valid": true - }, - { - "data": "rpc.a", - "valid": true - }, - { - "data": "rpc.with-dash", - "valid": true - }, - { - "data": "rpc.with_underscore", - "valid": true - }, - { - "data": "rpc.123", - "valid": true - }, - { - "data": "rpc.deeply.nested.method.name", - "valid": true - }, - { - "data": "rpc", - "valid": false - }, - { - "data": "Rpc.", - "valid": false - }, - { - "data": "RPC.", - "valid": false - }, - { - "data": "rPc.", - "valid": false - }, - { - "data": "method", - "valid": false - }, - { - "data": "subtract", - "valid": false - }, - { - "data": "update", - "valid": false - }, - { - "data": ".rpc", - "valid": false - }, - { - "data": "prefix.rpc.", - "valid": false - }, - { - "data": "", - "valid": false - }, - { - "data": 42, - "valid": false - }, - { - "data": null, - "valid": false - }, - { - "data": true, - "valid": false - }, - { - "data": [], - "valid": false - }, - { - "data": {}, - "valid": false - } - ] -} diff --git a/test/other/jsonrpc/v2.0/method/v1.test.json b/test/other/jsonrpc/v2.0/method/v1.test.json deleted file mode 100644 index 5d4ec0f8..00000000 --- a/test/other/jsonrpc/v2.0/method/v1.test.json +++ /dev/null @@ -1,131 +0,0 @@ -{ - "target": "../../../../../schemas/other/jsonrpc/v2.0/method/v1.json", - "tests": [ - { - "data": "subtract", - "valid": true - }, - { - "data": "update", - "valid": true - }, - { - "data": "notify_hello", - "valid": true - }, - { - "data": "sum", - "valid": true - }, - { - "data": "get_data", - "valid": true - }, - { - "data": "foobar", - "valid": true - }, - { - "data": "method-with-dashes", - "valid": true - }, - { - "data": "method.with.dots", - "valid": true - }, - { - "data": "MethodWithCamelCase", - "valid": true - }, - { - "data": "method123", - "valid": true - }, - { - "data": "123method", - "valid": true - }, - { - "data": "a", - "valid": true - }, - { - "data": "", - "valid": true - }, - { - "data": "rpc.discover", - "valid": true - }, - { - "data": "rpc.introspect", - "valid": true - }, - { - "data": "rpc.system.info", - "valid": true - }, - { - "data": "rpc.", - "valid": true - }, - { - "data": "unicode-café", - "valid": true - }, - { - "data": "emoji-🎉", - "valid": true - }, - { - "data": "with spaces", - "valid": true - }, - { - "data": "with\ttab", - "valid": true - }, - { - "data": "with\nnewline", - "valid": true - }, - { - "data": 42, - "valid": false - }, - { - "data": 0, - "valid": false - }, - { - "data": null, - "valid": false - }, - { - "data": true, - "valid": false - }, - { - "data": false, - "valid": false - }, - { - "data": [], - "valid": false - }, - { - "data": [ "method" ], - "valid": false - }, - { - "data": {}, - "valid": false - }, - { - "data": { - "method": "test" - }, - "valid": false - } - ] -} diff --git a/test/other/jsonrpc/v2.0/notification/v1.test.json b/test/other/jsonrpc/v2.0/notification/v1.test.json deleted file mode 100644 index 6ceabbad..00000000 --- a/test/other/jsonrpc/v2.0/notification/v1.test.json +++ /dev/null @@ -1,263 +0,0 @@ -{ - "target": "../../../../../schemas/other/jsonrpc/v2.0/notification/v1.json", - "tests": [ - { - "data": { - "jsonrpc": "2.0", - "method": "update" - }, - "valid": true - }, - { - "data": { - "jsonrpc": "2.0", - "method": "notify_hello" - }, - "valid": true - }, - { - "data": { - "jsonrpc": "2.0", - "method": "notify" - }, - "valid": true - }, - { - "data": { - "jsonrpc": "2.0", - "method": "log" - }, - "valid": true - }, - { - "data": { - "jsonrpc": "2.0", - "method": "notify_hello", - "params": [ 7 ] - }, - "valid": true - }, - { - "data": { - "jsonrpc": "2.0", - "method": "notify_sum", - "params": { - "a": 1, - "b": 2 - } - }, - "valid": true - }, - { - "data": { - "jsonrpc": "2.0", - "method": "update", - "params": [] - }, - "valid": true - }, - { - "data": { - "jsonrpc": "2.0", - "method": "notify", - "params": {} - }, - "valid": true - }, - { - "data": { - "jsonrpc": "2.0", - "method": "event", - "params": [ 1, 2, 3, 4, 5 ] - }, - "valid": true - }, - { - "data": { - "jsonrpc": "2.0", - "method": "notify", - "params": { - "x": 10, - "y": 20 - } - }, - "valid": true - }, - { - "data": { - "jsonrpc": "2.0", - "method": "rpc.notify" - }, - "valid": true - }, - { - "data": { - "jsonrpc": "2.0", - "method": "rpc.system.event", - "params": { - "type": "shutdown" - } - }, - "valid": true - }, - { - "data": { - "jsonrpc": "2.0", - "method": "notify_with_complex_params", - "params": { - "nested": { - "data": [ 1, 2, 3 ] - } - } - }, - "valid": true - }, - { - "data": { - "id": 1, - "jsonrpc": "2.0", - "method": "update" - }, - "valid": false - }, - { - "data": { - "id": "req-1", - "jsonrpc": "2.0", - "method": "notify" - }, - "valid": false - }, - { - "data": { - "id": null, - "jsonrpc": "2.0", - "method": "event" - }, - "valid": false - }, - { - "data": { - "id": 0, - "jsonrpc": "2.0", - "method": "notify" - }, - "valid": false - }, - { - "data": { - "method": "update" - }, - "valid": false - }, - { - "data": { - "jsonrpc": "2.0" - }, - "valid": false - }, - { - "data": {}, - "valid": false - }, - { - "data": { - "jsonrpc": "1.0", - "method": "update" - }, - "valid": false - }, - { - "data": { - "jsonrpc": "3.0", - "method": "update" - }, - "valid": false - }, - { - "data": { - "jsonrpc": 2.0, - "method": "update" - }, - "valid": false - }, - { - "data": { - "jsonrpc": "2.0", - "method": 123 - }, - "valid": false - }, - { - "data": { - "jsonrpc": "2.0", - "method": null - }, - "valid": false - }, - { - "data": { - "jsonrpc": "2.0", - "method": "notify", - "params": "invalid" - }, - "valid": false - }, - { - "data": { - "jsonrpc": "2.0", - "method": "notify", - "params": 42 - }, - "valid": false - }, - { - "data": { - "jsonrpc": "2.0", - "method": "notify", - "params": null - }, - "valid": false - }, - { - "data": { - "custom": "extension", - "jsonrpc": "2.0", - "method": "update" - }, - "valid": true - }, - { - "data": { - "jsonrpc": "2.0", - "method": "log", - "params": [ "message" ], - "priority": "low", - "timestamp": 1234567890 - }, - "valid": true - }, - { - "data": { - "x-metadata": { - "source": "system" - }, - "jsonrpc": "2.0", - "method": "notify_event" - }, - "valid": true - }, - { - "data": [], - "valid": false - }, - { - "data": "notification", - "valid": false - }, - { - "data": null, - "valid": false - } - ] -} diff --git a/test/other/jsonrpc/v2.0/parameters/v1.test.json b/test/other/jsonrpc/v2.0/parameters/v1.test.json deleted file mode 100644 index f3855431..00000000 --- a/test/other/jsonrpc/v2.0/parameters/v1.test.json +++ /dev/null @@ -1,144 +0,0 @@ -{ - "target": "../../../../../schemas/other/jsonrpc/v2.0/parameters/v1.json", - "tests": [ - { - "data": [], - "valid": true - }, - { - "data": [ 1 ], - "valid": true - }, - { - "data": [ 1, 2, 3 ], - "valid": true - }, - { - "data": [ "foo" ], - "valid": true - }, - { - "data": [ "foo", "bar" ], - "valid": true - }, - { - "data": [ null ], - "valid": true - }, - { - "data": [ true, false ], - "valid": true - }, - { - "data": [ 42, "test", null, true ], - "valid": true - }, - { - "data": [ - [ 1, 2 ], - [ 3, 4 ] - ], - "valid": true - }, - { - "data": [ - { - "nested": "object" - } - ], - "valid": true - }, - { - "data": {}, - "valid": true - }, - { - "data": { - "name": "John" - }, - "valid": true - }, - { - "data": { - "age": 30, - "name": "John" - }, - "valid": true - }, - { - "data": { - "a": 1, - "b": 2, - "c": 3 - }, - "valid": true - }, - { - "data": { - "value": null - }, - "valid": true - }, - { - "data": { - "flag": true - }, - "valid": true - }, - { - "data": { - "nested": { - "deep": { - "value": 42 - } - } - }, - "valid": true - }, - { - "data": { - "array": [ 1, 2, 3 ] - }, - "valid": true - }, - { - "data": { - "minuend": 42, - "subtrahend": 23 - }, - "valid": true - }, - { - "data": { - "x": 10, - "label": "point", - "y": 20 - }, - "valid": true - }, - { - "data": "string", - "valid": false - }, - { - "data": 42, - "valid": false - }, - { - "data": 0, - "valid": false - }, - { - "data": true, - "valid": false - }, - { - "data": false, - "valid": false - }, - { - "data": null, - "valid": false - } - ] -} diff --git a/test/other/jsonrpc/v2.0/request/v1.test.json b/test/other/jsonrpc/v2.0/request/v1.test.json deleted file mode 100644 index 8002b265..00000000 --- a/test/other/jsonrpc/v2.0/request/v1.test.json +++ /dev/null @@ -1,330 +0,0 @@ -{ - "target": "../../../../../schemas/other/jsonrpc/v2.0/request/v1.json", - "tests": [ - { - "data": { - "id": 1, - "jsonrpc": "2.0", - "method": "subtract" - }, - "valid": true - }, - { - "data": { - "id": 1, - "jsonrpc": "2.0", - "method": "subtract", - "params": [ 42, 23 ] - }, - "valid": true - }, - { - "data": { - "id": 3, - "jsonrpc": "2.0", - "method": "subtract", - "params": { - "minuend": 42, - "subtrahend": 23 - } - }, - "valid": true - }, - { - "data": { - "id": "req-001", - "jsonrpc": "2.0", - "method": "update", - "params": [ 1, 2, 3, 4, 5 ] - }, - "valid": true - }, - { - "data": { - "id": "1", - "jsonrpc": "2.0", - "method": "sum", - "params": [ 1, 2, 4 ] - }, - "valid": true - }, - { - "data": { - "id": 0, - "jsonrpc": "2.0", - "method": "get_data" - }, - "valid": true - }, - { - "data": { - "id": -1, - "jsonrpc": "2.0", - "method": "fetch" - }, - "valid": true - }, - { - "data": { - "id": 999999, - "jsonrpc": "2.0", - "method": "query" - }, - "valid": true - }, - { - "data": { - "id": "", - "jsonrpc": "2.0", - "method": "test" - }, - "valid": true - }, - { - "data": { - "id": "uuid-f47ac10b-58cc-4372-a567-0e02b2c3d479", - "jsonrpc": "2.0", - "method": "execute" - }, - "valid": true - }, - { - "data": { - "id": null, - "jsonrpc": "2.0", - "method": "process" - }, - "valid": true - }, - { - "data": { - "id": 42, - "jsonrpc": "2.0", - "method": "run", - "params": [] - }, - "valid": true - }, - { - "data": { - "id": "test", - "jsonrpc": "2.0", - "method": "execute", - "params": {} - }, - "valid": true - }, - { - "data": { - "id": 1, - "jsonrpc": "2.0", - "method": "rpc.discover" - }, - "valid": true - }, - { - "data": { - "id": "sys-1", - "jsonrpc": "2.0", - "method": "rpc.system.info", - "params": { - "verbose": true - } - }, - "valid": true - }, - { - "data": { - "id": 100, - "jsonrpc": "2.0", - "method": "calculate", - "params": { - "x": 10, - "op": "add", - "y": 20 - } - }, - "valid": true - }, - { - "data": { - "id": "batch-1", - "jsonrpc": "2.0", - "method": "batch_process", - "params": [ - [ 1, 2 ], - [ 3, 4 ] - ] - }, - "valid": true - }, - { - "data": { - "jsonrpc": "2.0", - "method": "subtract" - }, - "valid": false - }, - { - "data": { - "id": 1, - "jsonrpc": "2.0" - }, - "valid": false - }, - { - "data": { - "id": 1, - "method": "subtract" - }, - "valid": false - }, - { - "data": {}, - "valid": false - }, - { - "data": { - "id": 1, - "jsonrpc": "1.0", - "method": "subtract" - }, - "valid": false - }, - { - "data": { - "id": 1, - "jsonrpc": "3.0", - "method": "subtract" - }, - "valid": false - }, - { - "data": { - "id": 1, - "jsonrpc": 2.0, - "method": "subtract" - }, - "valid": false - }, - { - "data": { - "id": 1, - "jsonrpc": "2.0", - "method": 123 - }, - "valid": false - }, - { - "data": { - "id": 1, - "jsonrpc": "2.0", - "method": null - }, - "valid": false - }, - { - "data": { - "id": true, - "jsonrpc": "2.0", - "method": "test" - }, - "valid": false - }, - { - "data": { - "id": [], - "jsonrpc": "2.0", - "method": "test" - }, - "valid": false - }, - { - "data": { - "id": {}, - "jsonrpc": "2.0", - "method": "test" - }, - "valid": false - }, - { - "data": { - "id": 1.5, - "jsonrpc": "2.0", - "method": "test" - }, - "valid": true, - "description": "Valid - fractional id is allowed (SHOULD NOT, not MUST NOT)" - }, - { - "data": { - "id": 1, - "jsonrpc": "2.0", - "method": "test", - "params": "invalid" - }, - "valid": false - }, - { - "data": { - "id": 1, - "jsonrpc": "2.0", - "method": "test", - "params": 42 - }, - "valid": false - }, - { - "data": { - "id": 1, - "jsonrpc": "2.0", - "method": "test", - "params": null - }, - "valid": false - }, - { - "data": { - "id": 1, - "custom": "extension", - "jsonrpc": "2.0", - "method": "test" - }, - "valid": true - }, - { - "data": { - "id": "req-1", - "jsonrpc": "2.0", - "method": "process", - "params": [ 1, 2, 3 ], - "priority": "high", - "timeout": 5000 - }, - "valid": true - }, - { - "data": { - "id": 42, - "x-custom-header": { - "trace-id": "abc123" - }, - "jsonrpc": "2.0", - "method": "query" - }, - "valid": true - }, - { - "data": [], - "valid": false - }, - { - "data": "request", - "valid": false - }, - { - "data": null, - "valid": false - } - ] -} diff --git a/test/other/jsonrpc/v2.0/response/v1.test.json b/test/other/jsonrpc/v2.0/response/v1.test.json deleted file mode 100644 index 7be344e6..00000000 --- a/test/other/jsonrpc/v2.0/response/v1.test.json +++ /dev/null @@ -1,357 +0,0 @@ -{ - "target": "../../../../../schemas/other/jsonrpc/v2.0/response/v1.json", - "tests": [ - { - "data": { - "id": 1, - "jsonrpc": "2.0", - "result": 19 - }, - "valid": true - }, - { - "data": { - "id": 2, - "jsonrpc": "2.0", - "result": 0 - }, - "valid": true - }, - { - "data": { - "id": 3, - "jsonrpc": "2.0", - "result": -1 - }, - "valid": true - }, - { - "data": { - "id": "req-1", - "jsonrpc": "2.0", - "result": "success" - }, - "valid": true - }, - { - "data": { - "id": 1, - "jsonrpc": "2.0", - "result": "" - }, - "valid": true - }, - { - "data": { - "id": 1, - "jsonrpc": "2.0", - "result": null - }, - "valid": true - }, - { - "data": { - "id": 2, - "jsonrpc": "2.0", - "result": true - }, - "valid": true - }, - { - "data": { - "id": 3, - "jsonrpc": "2.0", - "result": false - }, - "valid": true - }, - { - "data": { - "id": "req-002", - "jsonrpc": "2.0", - "result": [ 7, 8, 9 ] - }, - "valid": true - }, - { - "data": { - "id": 1, - "jsonrpc": "2.0", - "result": [] - }, - "valid": true - }, - { - "data": { - "id": 1, - "jsonrpc": "2.0", - "result": { - "status": "ok" - } - }, - "valid": true - }, - { - "data": { - "id": 2, - "jsonrpc": "2.0", - "result": {} - }, - "valid": true - }, - { - "data": { - "id": "test", - "jsonrpc": "2.0", - "result": { - "data": { - "nested": "value" - } - } - }, - "valid": true - }, - { - "data": { - "id": 3, - "error": { - "code": -32601, - "message": "Method not found" - }, - "jsonrpc": "2.0" - }, - "valid": true - }, - { - "data": { - "id": null, - "error": { - "code": -32600, - "message": "Invalid Request" - }, - "jsonrpc": "2.0" - }, - "valid": true - }, - { - "data": { - "id": "req-1", - "error": { - "code": -32700, - "message": "Parse error" - }, - "jsonrpc": "2.0" - }, - "valid": true - }, - { - "data": { - "id": 1, - "error": { - "code": -32000, - "data": { - "details": "failed" - }, - "message": "Server error" - }, - "jsonrpc": "2.0" - }, - "valid": true - }, - { - "data": { - "id": 42, - "error": { - "code": 100, - "message": "Application error" - }, - "jsonrpc": "2.0" - }, - "valid": true - }, - { - "data": { - "id": 0, - "jsonrpc": "2.0", - "result": 42 - }, - "valid": true - }, - { - "data": { - "id": -1, - "jsonrpc": "2.0", - "result": [ 1, 2, 3, 4, 5 ] - }, - "valid": true - }, - { - "data": { - "id": 1, - "jsonrpc": "2.0" - }, - "valid": false - }, - { - "data": { - "id": 1, - "error": { - "code": -32600, - "message": "Error" - }, - "jsonrpc": "2.0", - "result": 19 - }, - "valid": false - }, - { - "data": { - "jsonrpc": "2.0", - "result": 19 - }, - "valid": false - }, - { - "data": { - "error": { - "code": -32600, - "message": "Error" - }, - "jsonrpc": "2.0" - }, - "valid": false - }, - { - "data": { - "id": 1, - "result": 19 - }, - "valid": false - }, - { - "data": { - "id": 1, - "jsonrpc": "1.0", - "result": 19 - }, - "valid": false - }, - { - "data": { - "id": 1, - "jsonrpc": 2.0, - "result": 19 - }, - "valid": false - }, - { - "data": { - "id": true, - "jsonrpc": "2.0", - "result": 19 - }, - "valid": false - }, - { - "data": { - "id": [], - "jsonrpc": "2.0", - "result": 19 - }, - "valid": false - }, - { - "data": { - "id": {}, - "jsonrpc": "2.0", - "result": 19 - }, - "valid": false - }, - { - "data": { - "id": 1.5, - "jsonrpc": "2.0", - "result": 19 - }, - "valid": true, - "description": "Valid - fractional id is allowed (SHOULD NOT, not MUST NOT)" - }, - { - "data": { - "id": 1, - "error": "not an object", - "jsonrpc": "2.0" - }, - "valid": false - }, - { - "data": { - "id": 1, - "error": { - "code": "invalid" - }, - "jsonrpc": "2.0" - }, - "valid": false - }, - { - "data": { - "id": 1, - "error": { - "message": "Missing code" - }, - "jsonrpc": "2.0" - }, - "valid": false - }, - { - "data": { - "id": 1, - "custom": "extension", - "jsonrpc": "2.0", - "result": 42 - }, - "valid": true - }, - { - "data": { - "id": "req-1", - "jsonrpc": "2.0", - "result": "success", - "timing": { - "duration": 150 - } - }, - "valid": true - }, - { - "data": { - "id": 2, - "x-request-id": "abc123", - "error": { - "code": -32600, - "message": "Error" - }, - "jsonrpc": "2.0" - }, - "valid": true - }, - { - "data": {}, - "valid": false - }, - { - "data": [], - "valid": false - }, - { - "data": "response", - "valid": false - }, - { - "data": null, - "valid": false - } - ] -} diff --git a/test/schemas/bipm/si/2019/base/prefixed/attoampere/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/attoampere/v1.test.json new file mode 100644 index 00000000..d6cfd217 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/attoampere/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/attoampere/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/attocandela/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/attocandela/v1.test.json new file mode 100644 index 00000000..84545a72 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/attocandela/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/attocandela/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/attogram/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/attogram/v1.test.json new file mode 100644 index 00000000..06ec9e16 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/attogram/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/attogram/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/attokelvin/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/attokelvin/v1.test.json new file mode 100644 index 00000000..c2094445 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/attokelvin/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/attokelvin/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/attometre/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/attometre/v1.test.json new file mode 100644 index 00000000..1c61b6bc --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/attometre/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/attometre/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/attomole/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/attomole/v1.test.json new file mode 100644 index 00000000..668e19b0 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/attomole/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/attomole/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/attosecond/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/attosecond/v1.test.json new file mode 100644 index 00000000..96643197 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/attosecond/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/attosecond/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/centiampere/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/centiampere/v1.test.json new file mode 100644 index 00000000..9792fb4c --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/centiampere/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/centiampere/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/centicandela/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/centicandela/v1.test.json new file mode 100644 index 00000000..4d3f8cf4 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/centicandela/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/centicandela/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/centigram/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/centigram/v1.test.json new file mode 100644 index 00000000..0d577826 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/centigram/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/centigram/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/centikelvin/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/centikelvin/v1.test.json new file mode 100644 index 00000000..c7a42922 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/centikelvin/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/centikelvin/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/centimetre/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/centimetre/v1.test.json new file mode 100644 index 00000000..b3b66c4d --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/centimetre/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/centimetre/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/centimole/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/centimole/v1.test.json new file mode 100644 index 00000000..da7e4109 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/centimole/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/centimole/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/centisecond/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/centisecond/v1.test.json new file mode 100644 index 00000000..b7ad3a2a --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/centisecond/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/centisecond/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/decaampere/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/decaampere/v1.test.json new file mode 100644 index 00000000..476f3842 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/decaampere/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/decaampere/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/decacandela/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/decacandela/v1.test.json new file mode 100644 index 00000000..2343b6c3 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/decacandela/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/decacandela/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/decagram/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/decagram/v1.test.json new file mode 100644 index 00000000..960aa491 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/decagram/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/decagram/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/decakelvin/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/decakelvin/v1.test.json new file mode 100644 index 00000000..6d6adf1f --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/decakelvin/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/decakelvin/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/decametre/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/decametre/v1.test.json new file mode 100644 index 00000000..afe1933d --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/decametre/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/decametre/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/decamole/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/decamole/v1.test.json new file mode 100644 index 00000000..7baea09e --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/decamole/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/decamole/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/decasecond/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/decasecond/v1.test.json new file mode 100644 index 00000000..8255b612 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/decasecond/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/decasecond/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/deciampere/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/deciampere/v1.test.json new file mode 100644 index 00000000..a9cbf7da --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/deciampere/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/deciampere/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/decicandela/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/decicandela/v1.test.json new file mode 100644 index 00000000..7721f819 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/decicandela/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/decicandela/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/decigram/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/decigram/v1.test.json new file mode 100644 index 00000000..9aa81807 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/decigram/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/decigram/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/decikelvin/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/decikelvin/v1.test.json new file mode 100644 index 00000000..3a258b9f --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/decikelvin/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/decikelvin/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/decimetre/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/decimetre/v1.test.json new file mode 100644 index 00000000..b2004d38 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/decimetre/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/decimetre/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/decimole/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/decimole/v1.test.json new file mode 100644 index 00000000..e4ce7bdf --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/decimole/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/decimole/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/decisecond/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/decisecond/v1.test.json new file mode 100644 index 00000000..946d4826 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/decisecond/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/decisecond/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/exaampere/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/exaampere/v1.test.json new file mode 100644 index 00000000..3679759a --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/exaampere/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/exaampere/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/exacandela/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/exacandela/v1.test.json new file mode 100644 index 00000000..14581347 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/exacandela/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/exacandela/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/exagram/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/exagram/v1.test.json new file mode 100644 index 00000000..1382d1a1 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/exagram/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/exagram/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/exakelvin/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/exakelvin/v1.test.json new file mode 100644 index 00000000..8e624f21 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/exakelvin/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/exakelvin/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/exametre/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/exametre/v1.test.json new file mode 100644 index 00000000..3baffcba --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/exametre/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/exametre/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/examole/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/examole/v1.test.json new file mode 100644 index 00000000..a8ba8804 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/examole/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/examole/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/exasecond/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/exasecond/v1.test.json new file mode 100644 index 00000000..2451aab5 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/exasecond/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/exasecond/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/femtoampere/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/femtoampere/v1.test.json new file mode 100644 index 00000000..a1b07908 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/femtoampere/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/femtoampere/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/femtocandela/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/femtocandela/v1.test.json new file mode 100644 index 00000000..5e84ce0e --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/femtocandela/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/femtocandela/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/femtogram/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/femtogram/v1.test.json new file mode 100644 index 00000000..d1ae0104 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/femtogram/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/femtogram/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/femtokelvin/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/femtokelvin/v1.test.json new file mode 100644 index 00000000..f0c9c7ab --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/femtokelvin/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/femtokelvin/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/femtometre/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/femtometre/v1.test.json new file mode 100644 index 00000000..974325ad --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/femtometre/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/femtometre/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/femtomole/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/femtomole/v1.test.json new file mode 100644 index 00000000..d73e0c16 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/femtomole/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/femtomole/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/femtosecond/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/femtosecond/v1.test.json new file mode 100644 index 00000000..d9b9b70b --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/femtosecond/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/femtosecond/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/gigaampere/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/gigaampere/v1.test.json new file mode 100644 index 00000000..7069da12 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/gigaampere/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/gigaampere/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/gigacandela/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/gigacandela/v1.test.json new file mode 100644 index 00000000..317bae98 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/gigacandela/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/gigacandela/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/gigagram/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/gigagram/v1.test.json new file mode 100644 index 00000000..a5fdadeb --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/gigagram/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/gigagram/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/gigakelvin/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/gigakelvin/v1.test.json new file mode 100644 index 00000000..6fc61cfa --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/gigakelvin/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/gigakelvin/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/gigametre/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/gigametre/v1.test.json new file mode 100644 index 00000000..04263327 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/gigametre/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/gigametre/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/gigamole/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/gigamole/v1.test.json new file mode 100644 index 00000000..823f7e93 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/gigamole/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/gigamole/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/gigasecond/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/gigasecond/v1.test.json new file mode 100644 index 00000000..c9cc0d05 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/gigasecond/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/gigasecond/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/gram/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/gram/v1.test.json new file mode 100644 index 00000000..862f11d0 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/gram/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/gram/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/hectoampere/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/hectoampere/v1.test.json new file mode 100644 index 00000000..16039db9 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/hectoampere/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/hectoampere/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/hectocandela/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/hectocandela/v1.test.json new file mode 100644 index 00000000..967d24a0 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/hectocandela/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/hectocandela/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/hectogram/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/hectogram/v1.test.json new file mode 100644 index 00000000..18bbe4c4 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/hectogram/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/hectogram/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/hectokelvin/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/hectokelvin/v1.test.json new file mode 100644 index 00000000..d0ec8e8d --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/hectokelvin/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/hectokelvin/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/hectometre/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/hectometre/v1.test.json new file mode 100644 index 00000000..b8a0d02d --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/hectometre/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/hectometre/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/hectomole/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/hectomole/v1.test.json new file mode 100644 index 00000000..1cf675fb --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/hectomole/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/hectomole/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/hectosecond/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/hectosecond/v1.test.json new file mode 100644 index 00000000..d06ba707 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/hectosecond/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/hectosecond/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/kiloampere/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/kiloampere/v1.test.json new file mode 100644 index 00000000..60ca3a2f --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/kiloampere/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/kiloampere/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/kilocandela/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/kilocandela/v1.test.json new file mode 100644 index 00000000..535b95cb --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/kilocandela/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/kilocandela/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/kilokelvin/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/kilokelvin/v1.test.json new file mode 100644 index 00000000..3f71e7fe --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/kilokelvin/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/kilokelvin/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/kilometre/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/kilometre/v1.test.json new file mode 100644 index 00000000..23175ad6 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/kilometre/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/kilometre/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/kilomole/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/kilomole/v1.test.json new file mode 100644 index 00000000..b5d20349 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/kilomole/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/kilomole/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/kilosecond/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/kilosecond/v1.test.json new file mode 100644 index 00000000..a7979eea --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/kilosecond/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/kilosecond/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/megaampere/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/megaampere/v1.test.json new file mode 100644 index 00000000..68c58bdb --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/megaampere/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/megaampere/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/megacandela/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/megacandela/v1.test.json new file mode 100644 index 00000000..48655cf3 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/megacandela/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/megacandela/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/megagram/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/megagram/v1.test.json new file mode 100644 index 00000000..84d2bb3a --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/megagram/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/megagram/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/megakelvin/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/megakelvin/v1.test.json new file mode 100644 index 00000000..6e6d9dfb --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/megakelvin/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/megakelvin/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/megametre/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/megametre/v1.test.json new file mode 100644 index 00000000..4ca85287 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/megametre/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/megametre/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/megamole/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/megamole/v1.test.json new file mode 100644 index 00000000..fd6fa34b --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/megamole/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/megamole/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/megasecond/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/megasecond/v1.test.json new file mode 100644 index 00000000..b444da63 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/megasecond/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/megasecond/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/microampere/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/microampere/v1.test.json new file mode 100644 index 00000000..41fa0e68 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/microampere/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/microampere/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/microcandela/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/microcandela/v1.test.json new file mode 100644 index 00000000..1056fd05 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/microcandela/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/microcandela/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/microgram/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/microgram/v1.test.json new file mode 100644 index 00000000..a2ca995b --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/microgram/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/microgram/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/microkelvin/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/microkelvin/v1.test.json new file mode 100644 index 00000000..f5fc9c79 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/microkelvin/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/microkelvin/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/micrometre/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/micrometre/v1.test.json new file mode 100644 index 00000000..9975971c --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/micrometre/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/micrometre/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/micromole/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/micromole/v1.test.json new file mode 100644 index 00000000..12d419b9 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/micromole/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/micromole/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/microsecond/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/microsecond/v1.test.json new file mode 100644 index 00000000..97c08f0c --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/microsecond/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/microsecond/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/milliampere/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/milliampere/v1.test.json new file mode 100644 index 00000000..95a1a723 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/milliampere/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/milliampere/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/millicandela/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/millicandela/v1.test.json new file mode 100644 index 00000000..9d457e7b --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/millicandela/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/millicandela/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/milligram/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/milligram/v1.test.json new file mode 100644 index 00000000..c0a26b99 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/milligram/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/milligram/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/millikelvin/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/millikelvin/v1.test.json new file mode 100644 index 00000000..ef5bd390 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/millikelvin/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/millikelvin/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/millimetre/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/millimetre/v1.test.json new file mode 100644 index 00000000..96aa662e --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/millimetre/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/millimetre/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/millimole/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/millimole/v1.test.json new file mode 100644 index 00000000..05b32dfe --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/millimole/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/millimole/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/millisecond/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/millisecond/v1.test.json new file mode 100644 index 00000000..702b993d --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/millisecond/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/millisecond/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/nanoampere/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/nanoampere/v1.test.json new file mode 100644 index 00000000..9a01d860 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/nanoampere/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/nanoampere/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/nanocandela/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/nanocandela/v1.test.json new file mode 100644 index 00000000..13f1deae --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/nanocandela/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/nanocandela/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/nanogram/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/nanogram/v1.test.json new file mode 100644 index 00000000..93e27043 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/nanogram/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/nanogram/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/nanokelvin/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/nanokelvin/v1.test.json new file mode 100644 index 00000000..2c9cb95e --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/nanokelvin/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/nanokelvin/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/nanometre/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/nanometre/v1.test.json new file mode 100644 index 00000000..b25abe63 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/nanometre/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/nanometre/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/nanomole/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/nanomole/v1.test.json new file mode 100644 index 00000000..fb7ca990 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/nanomole/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/nanomole/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/nanosecond/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/nanosecond/v1.test.json new file mode 100644 index 00000000..2a594af0 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/nanosecond/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/nanosecond/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/petaampere/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/petaampere/v1.test.json new file mode 100644 index 00000000..a0a5858b --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/petaampere/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/petaampere/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/petacandela/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/petacandela/v1.test.json new file mode 100644 index 00000000..23d3a2b2 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/petacandela/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/petacandela/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/petagram/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/petagram/v1.test.json new file mode 100644 index 00000000..67205d45 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/petagram/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/petagram/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/petakelvin/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/petakelvin/v1.test.json new file mode 100644 index 00000000..abd63a66 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/petakelvin/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/petakelvin/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/petametre/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/petametre/v1.test.json new file mode 100644 index 00000000..23da9895 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/petametre/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/petametre/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/petamole/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/petamole/v1.test.json new file mode 100644 index 00000000..4b05ae2a --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/petamole/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/petamole/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/petasecond/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/petasecond/v1.test.json new file mode 100644 index 00000000..72c4afc9 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/petasecond/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/petasecond/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/picoampere/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/picoampere/v1.test.json new file mode 100644 index 00000000..77be1175 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/picoampere/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/picoampere/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/picocandela/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/picocandela/v1.test.json new file mode 100644 index 00000000..8d1ff15f --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/picocandela/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/picocandela/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/picogram/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/picogram/v1.test.json new file mode 100644 index 00000000..10f4b208 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/picogram/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/picogram/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/picokelvin/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/picokelvin/v1.test.json new file mode 100644 index 00000000..f7940796 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/picokelvin/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/picokelvin/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/picometre/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/picometre/v1.test.json new file mode 100644 index 00000000..6856cbb9 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/picometre/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/picometre/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/picomole/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/picomole/v1.test.json new file mode 100644 index 00000000..1ef282a4 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/picomole/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/picomole/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/picosecond/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/picosecond/v1.test.json new file mode 100644 index 00000000..557a516b --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/picosecond/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/picosecond/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/quectoampere/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/quectoampere/v1.test.json new file mode 100644 index 00000000..ec3f72c4 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/quectoampere/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/quectoampere/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/quectocandela/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/quectocandela/v1.test.json new file mode 100644 index 00000000..1afd8f10 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/quectocandela/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/quectocandela/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/quectogram/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/quectogram/v1.test.json new file mode 100644 index 00000000..33c6852b --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/quectogram/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/quectogram/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/quectokelvin/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/quectokelvin/v1.test.json new file mode 100644 index 00000000..d8bcfd16 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/quectokelvin/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/quectokelvin/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/quectometre/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/quectometre/v1.test.json new file mode 100644 index 00000000..c4e5068c --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/quectometre/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/quectometre/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/quectomole/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/quectomole/v1.test.json new file mode 100644 index 00000000..7e4e721b --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/quectomole/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/quectomole/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/quectosecond/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/quectosecond/v1.test.json new file mode 100644 index 00000000..76adff85 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/quectosecond/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/quectosecond/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/quettaampere/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/quettaampere/v1.test.json new file mode 100644 index 00000000..2a442513 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/quettaampere/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/quettaampere/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/quettacandela/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/quettacandela/v1.test.json new file mode 100644 index 00000000..5bd9d2be --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/quettacandela/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/quettacandela/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/quettagram/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/quettagram/v1.test.json new file mode 100644 index 00000000..855dd06c --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/quettagram/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/quettagram/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/quettakelvin/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/quettakelvin/v1.test.json new file mode 100644 index 00000000..3561013e --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/quettakelvin/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/quettakelvin/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/quettametre/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/quettametre/v1.test.json new file mode 100644 index 00000000..1942bd95 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/quettametre/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/quettametre/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/quettamole/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/quettamole/v1.test.json new file mode 100644 index 00000000..7046bbd9 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/quettamole/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/quettamole/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/quettasecond/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/quettasecond/v1.test.json new file mode 100644 index 00000000..d508d7cb --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/quettasecond/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/quettasecond/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/ronnaampere/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/ronnaampere/v1.test.json new file mode 100644 index 00000000..8deae3e7 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/ronnaampere/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/ronnaampere/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/ronnacandela/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/ronnacandela/v1.test.json new file mode 100644 index 00000000..1134d471 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/ronnacandela/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/ronnacandela/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/ronnagram/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/ronnagram/v1.test.json new file mode 100644 index 00000000..075f76bc --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/ronnagram/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/ronnagram/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/ronnakelvin/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/ronnakelvin/v1.test.json new file mode 100644 index 00000000..1ed5712c --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/ronnakelvin/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/ronnakelvin/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/ronnametre/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/ronnametre/v1.test.json new file mode 100644 index 00000000..81994d73 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/ronnametre/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/ronnametre/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/ronnamole/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/ronnamole/v1.test.json new file mode 100644 index 00000000..947d40c6 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/ronnamole/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/ronnamole/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/ronnasecond/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/ronnasecond/v1.test.json new file mode 100644 index 00000000..8a585182 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/ronnasecond/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/ronnasecond/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/rontoampere/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/rontoampere/v1.test.json new file mode 100644 index 00000000..10af25de --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/rontoampere/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/rontoampere/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/rontocandela/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/rontocandela/v1.test.json new file mode 100644 index 00000000..5dce1a40 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/rontocandela/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/rontocandela/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/rontogram/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/rontogram/v1.test.json new file mode 100644 index 00000000..04e228a2 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/rontogram/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/rontogram/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/rontokelvin/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/rontokelvin/v1.test.json new file mode 100644 index 00000000..0b1531e5 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/rontokelvin/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/rontokelvin/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/rontometre/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/rontometre/v1.test.json new file mode 100644 index 00000000..f46537b1 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/rontometre/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/rontometre/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/rontomole/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/rontomole/v1.test.json new file mode 100644 index 00000000..19c93c12 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/rontomole/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/rontomole/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/rontosecond/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/rontosecond/v1.test.json new file mode 100644 index 00000000..e7fa6eda --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/rontosecond/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/rontosecond/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/teraampere/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/teraampere/v1.test.json new file mode 100644 index 00000000..13b3d47b --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/teraampere/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/teraampere/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/teracandela/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/teracandela/v1.test.json new file mode 100644 index 00000000..cc4d4933 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/teracandela/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/teracandela/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/teragram/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/teragram/v1.test.json new file mode 100644 index 00000000..80147ad4 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/teragram/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/teragram/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/terakelvin/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/terakelvin/v1.test.json new file mode 100644 index 00000000..ed014e51 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/terakelvin/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/terakelvin/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/terametre/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/terametre/v1.test.json new file mode 100644 index 00000000..8bb1a8fb --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/terametre/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/terametre/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/teramole/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/teramole/v1.test.json new file mode 100644 index 00000000..f48074c9 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/teramole/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/teramole/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/terasecond/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/terasecond/v1.test.json new file mode 100644 index 00000000..c9d3e34c --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/terasecond/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/terasecond/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/yoctoampere/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/yoctoampere/v1.test.json new file mode 100644 index 00000000..85f7bee5 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/yoctoampere/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/yoctoampere/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/yoctocandela/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/yoctocandela/v1.test.json new file mode 100644 index 00000000..004563f9 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/yoctocandela/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/yoctocandela/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/yoctogram/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/yoctogram/v1.test.json new file mode 100644 index 00000000..14b445eb --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/yoctogram/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/yoctogram/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/yoctokelvin/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/yoctokelvin/v1.test.json new file mode 100644 index 00000000..5535872e --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/yoctokelvin/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/yoctokelvin/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/yoctometre/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/yoctometre/v1.test.json new file mode 100644 index 00000000..e984a5f7 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/yoctometre/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/yoctometre/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/yoctomole/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/yoctomole/v1.test.json new file mode 100644 index 00000000..af771176 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/yoctomole/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/yoctomole/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/yoctosecond/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/yoctosecond/v1.test.json new file mode 100644 index 00000000..806dacbe --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/yoctosecond/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/yoctosecond/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/yottaampere/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/yottaampere/v1.test.json new file mode 100644 index 00000000..b351d5ac --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/yottaampere/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/yottaampere/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/yottacandela/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/yottacandela/v1.test.json new file mode 100644 index 00000000..32dc3dba --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/yottacandela/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/yottacandela/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/yottagram/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/yottagram/v1.test.json new file mode 100644 index 00000000..bd59dc3b --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/yottagram/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/yottagram/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/yottakelvin/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/yottakelvin/v1.test.json new file mode 100644 index 00000000..0f7e6411 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/yottakelvin/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/yottakelvin/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/yottametre/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/yottametre/v1.test.json new file mode 100644 index 00000000..194e36d6 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/yottametre/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/yottametre/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/yottamole/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/yottamole/v1.test.json new file mode 100644 index 00000000..cfc92782 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/yottamole/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/yottamole/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/yottasecond/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/yottasecond/v1.test.json new file mode 100644 index 00000000..dd3cc880 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/yottasecond/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/yottasecond/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/zeptoampere/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/zeptoampere/v1.test.json new file mode 100644 index 00000000..a3e5c5f3 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/zeptoampere/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/zeptoampere/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/zeptocandela/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/zeptocandela/v1.test.json new file mode 100644 index 00000000..fb86fe63 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/zeptocandela/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/zeptocandela/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/zeptogram/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/zeptogram/v1.test.json new file mode 100644 index 00000000..439741c3 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/zeptogram/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/zeptogram/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/zeptokelvin/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/zeptokelvin/v1.test.json new file mode 100644 index 00000000..3f5b26ae --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/zeptokelvin/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/zeptokelvin/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/zeptometre/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/zeptometre/v1.test.json new file mode 100644 index 00000000..240de184 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/zeptometre/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/zeptometre/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/zeptomole/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/zeptomole/v1.test.json new file mode 100644 index 00000000..a1413a2d --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/zeptomole/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/zeptomole/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/zeptosecond/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/zeptosecond/v1.test.json new file mode 100644 index 00000000..7880a9a7 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/zeptosecond/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/zeptosecond/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/zettaampere/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/zettaampere/v1.test.json new file mode 100644 index 00000000..191e3028 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/zettaampere/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/zettaampere/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/zettacandela/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/zettacandela/v1.test.json new file mode 100644 index 00000000..86fe3711 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/zettacandela/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/zettacandela/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/zettagram/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/zettagram/v1.test.json new file mode 100644 index 00000000..8639f499 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/zettagram/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/zettagram/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/zettakelvin/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/zettakelvin/v1.test.json new file mode 100644 index 00000000..cb566ae1 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/zettakelvin/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/zettakelvin/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/zettametre/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/zettametre/v1.test.json new file mode 100644 index 00000000..521096b8 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/zettametre/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/zettametre/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/zettamole/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/zettamole/v1.test.json new file mode 100644 index 00000000..b6fb6251 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/zettamole/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/zettamole/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/prefixed/zettasecond/v1.test.json b/test/schemas/bipm/si/2019/base/prefixed/zettasecond/v1.test.json new file mode 100644 index 00000000..dc92eeee --- /dev/null +++ b/test/schemas/bipm/si/2019/base/prefixed/zettasecond/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/prefixed/zettasecond/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/quantity/amount-of-substance/v1.test.json b/test/schemas/bipm/si/2019/base/quantity/amount-of-substance/v1.test.json new file mode 100644 index 00000000..88552980 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/quantity/amount-of-substance/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/quantity/amount-of-substance/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/quantity/electric-current/v1.test.json b/test/schemas/bipm/si/2019/base/quantity/electric-current/v1.test.json new file mode 100644 index 00000000..495c50d0 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/quantity/electric-current/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/quantity/electric-current/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/quantity/length/v1.test.json b/test/schemas/bipm/si/2019/base/quantity/length/v1.test.json new file mode 100644 index 00000000..8948b477 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/quantity/length/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/quantity/length/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/quantity/luminous-intensity/v1.test.json b/test/schemas/bipm/si/2019/base/quantity/luminous-intensity/v1.test.json new file mode 100644 index 00000000..8db93de5 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/quantity/luminous-intensity/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/quantity/luminous-intensity/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/quantity/mass/v1.test.json b/test/schemas/bipm/si/2019/base/quantity/mass/v1.test.json new file mode 100644 index 00000000..7dbd2a02 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/quantity/mass/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/quantity/mass/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/quantity/thermodynamic-temperature/v1.test.json b/test/schemas/bipm/si/2019/base/quantity/thermodynamic-temperature/v1.test.json new file mode 100644 index 00000000..692b00a9 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/quantity/thermodynamic-temperature/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/quantity/thermodynamic-temperature/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/quantity/time/v1.test.json b/test/schemas/bipm/si/2019/base/quantity/time/v1.test.json new file mode 100644 index 00000000..bf047910 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/quantity/time/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/quantity/time/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/symbol/v1.test.json b/test/schemas/bipm/si/2019/base/symbol/v1.test.json new file mode 100644 index 00000000..60b1a583 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/symbol/v1.test.json @@ -0,0 +1,145 @@ +{ + "target": "../../../../../../../schemas/bipm/si/2019/base/symbol/v1.json", + "tests": [ + { + "description": "Valid - second", + "data": "s", + "valid": true + }, + { + "description": "Valid - metre", + "data": "m", + "valid": true + }, + { + "description": "Valid - kilogram", + "data": "kg", + "valid": true + }, + { + "description": "Valid - ampere", + "data": "A", + "valid": true + }, + { + "description": "Valid - kelvin", + "data": "K", + "valid": true + }, + { + "description": "Valid - mole", + "data": "mol", + "valid": true + }, + { + "description": "Valid - candela", + "data": "cd", + "valid": true + }, + { + "description": "Valid - millisecond", + "data": "ms", + "valid": true + }, + { + "description": "Valid - kilometre", + "data": "km", + "valid": true + }, + { + "description": "Valid - gram", + "data": "g", + "valid": true + }, + { + "description": "Valid - milligram", + "data": "mg", + "valid": true + }, + { + "description": "Valid - microampere", + "data": "µA", + "valid": true + }, + { + "description": "Valid - milliampere", + "data": "mA", + "valid": true + }, + { + "description": "Valid - millikelvin", + "data": "mK", + "valid": true + }, + { + "description": "Valid - micromole", + "data": "µmol", + "valid": true + }, + { + "description": "Valid - millicandela", + "data": "mcd", + "valid": true + }, + { + "description": "Valid - nanosecond", + "data": "ns", + "valid": true + }, + { + "description": "Valid - centimetre", + "data": "cm", + "valid": true + }, + { + "description": "Valid - megagram", + "data": "Mg", + "valid": true + }, + { + "description": "Valid - quettametre", + "data": "Qm", + "valid": true + }, + { + "description": "Valid - quectosecond", + "data": "qs", + "valid": true + }, + { + "description": "Invalid - derived unit symbol", + "data": "Hz", + "valid": false + }, + { + "description": "Invalid - unknown symbol", + "data": "xyz", + "valid": false + }, + { + "description": "Invalid type - number", + "data": 1, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/unit/ampere/v1.test.json b/test/schemas/bipm/si/2019/base/unit/ampere/v1.test.json new file mode 100644 index 00000000..ea8bd5f5 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/unit/ampere/v1.test.json @@ -0,0 +1,65 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/unit/ampere/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 5, + "valid": true + }, + { + "description": "Valid - negative", + "data": -1.5, + "valid": true + }, + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - small negative", + "data": -0.001, + "valid": true + }, + { + "description": "Valid - large positive", + "data": 100, + "valid": true + }, + { + "description": "Valid - large negative", + "data": -100, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "2", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/unit/candela/v1.test.json b/test/schemas/bipm/si/2019/base/unit/candela/v1.test.json new file mode 100644 index 00000000..31bbdade --- /dev/null +++ b/test/schemas/bipm/si/2019/base/unit/candela/v1.test.json @@ -0,0 +1,65 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/unit/candela/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - small positive", + "data": 0.1, + "valid": true + }, + { + "description": "Valid - one candela", + "data": 1, + "valid": true + }, + { + "description": "Valid - typical bulb", + "data": 100, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 12.5, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -5, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/unit/kelvin/v1.test.json b/test/schemas/bipm/si/2019/base/unit/kelvin/v1.test.json new file mode 100644 index 00000000..ffe0798c --- /dev/null +++ b/test/schemas/bipm/si/2019/base/unit/kelvin/v1.test.json @@ -0,0 +1,70 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/unit/kelvin/v1.json", + "tests": [ + { + "description": "Valid - absolute zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - room temperature", + "data": 293.15, + "valid": true + }, + { + "description": "Valid - water freezing point", + "data": 273.15, + "valid": true + }, + { + "description": "Valid - water boiling point", + "data": 373.15, + "valid": true + }, + { + "description": "Valid - small positive", + "data": 0.01, + "valid": true + }, + { + "description": "Valid - high temperature", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - negative (below absolute zero)", + "data": -1, + "valid": false + }, + { + "description": "Invalid - negative decimal", + "data": -0.01, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "273.15", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/unit/kilogram/v1.test.json b/test/schemas/bipm/si/2019/base/unit/kilogram/v1.test.json new file mode 100644 index 00000000..0522f446 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/unit/kilogram/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/unit/kilogram/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive integer", + "data": 70, + "valid": true + }, + { + "description": "Valid - positive decimal", + "data": 1.5, + "valid": true + }, + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - large value", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -10, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "50", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/unit/metre/v1.test.json b/test/schemas/bipm/si/2019/base/unit/metre/v1.test.json new file mode 100644 index 00000000..59f45d53 --- /dev/null +++ b/test/schemas/bipm/si/2019/base/unit/metre/v1.test.json @@ -0,0 +1,62 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/unit/metre/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive integer", + "data": 100, + "valid": true + }, + { + "description": "Valid - positive decimal", + "data": 1.75, + "valid": true + }, + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - large value", + "data": 1000000, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -5, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [ 1 ], + "valid": false + }, + { + "description": "Invalid type - object", + "data": { + "value": 1 + }, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/unit/mole/v1.test.json b/test/schemas/bipm/si/2019/base/unit/mole/v1.test.json new file mode 100644 index 00000000..dfcaa6ba --- /dev/null +++ b/test/schemas/bipm/si/2019/base/unit/mole/v1.test.json @@ -0,0 +1,65 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/unit/mole/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - one mole", + "data": 1, + "valid": true + }, + { + "description": "Valid - multiple moles", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 2.5, + "valid": true + }, + { + "description": "Valid - large value", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -1, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "1", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/base/unit/second/v1.test.json b/test/schemas/bipm/si/2019/base/unit/second/v1.test.json new file mode 100644 index 00000000..5e9e6d6e --- /dev/null +++ b/test/schemas/bipm/si/2019/base/unit/second/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/base/unit/second/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive integer", + "data": 60, + "valid": true + }, + { + "description": "Valid - positive decimal", + "data": 1.5, + "valid": true + }, + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - large value", + "data": 86400, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -1, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "1", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/compound/joule-per-kelvin/v1.test.json b/test/schemas/bipm/si/2019/compound/joule-per-kelvin/v1.test.json new file mode 100644 index 00000000..723bb965 --- /dev/null +++ b/test/schemas/bipm/si/2019/compound/joule-per-kelvin/v1.test.json @@ -0,0 +1,45 @@ +{ + "target": "../../../../../../../schemas/bipm/si/2019/compound/joule-per-kelvin/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/compound/joule-second/v1.test.json b/test/schemas/bipm/si/2019/compound/joule-second/v1.test.json new file mode 100644 index 00000000..b86029fa --- /dev/null +++ b/test/schemas/bipm/si/2019/compound/joule-second/v1.test.json @@ -0,0 +1,45 @@ +{ + "target": "../../../../../../../schemas/bipm/si/2019/compound/joule-second/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/compound/lumen-per-watt/v1.test.json b/test/schemas/bipm/si/2019/compound/lumen-per-watt/v1.test.json new file mode 100644 index 00000000..07d7478f --- /dev/null +++ b/test/schemas/bipm/si/2019/compound/lumen-per-watt/v1.test.json @@ -0,0 +1,45 @@ +{ + "target": "../../../../../../../schemas/bipm/si/2019/compound/lumen-per-watt/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/compound/metre-per-second/v1.test.json b/test/schemas/bipm/si/2019/compound/metre-per-second/v1.test.json new file mode 100644 index 00000000..69950f0c --- /dev/null +++ b/test/schemas/bipm/si/2019/compound/metre-per-second/v1.test.json @@ -0,0 +1,45 @@ +{ + "target": "../../../../../../../schemas/bipm/si/2019/compound/metre-per-second/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/constant/avogadro/v1.test.json b/test/schemas/bipm/si/2019/constant/avogadro/v1.test.json new file mode 100644 index 00000000..ea201ec9 --- /dev/null +++ b/test/schemas/bipm/si/2019/constant/avogadro/v1.test.json @@ -0,0 +1,45 @@ +{ + "target": "../../../../../../../schemas/bipm/si/2019/constant/avogadro/v1.json", + "tests": [ + { + "description": "Valid - exact value", + "data": 6.02214076000000000000000e+23, + "valid": true + }, + { + "description": "Invalid - different value", + "data": 6.02214077000000000000000e+23, + "valid": false + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "6.02214076e23", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/constant/boltzmann/v1.test.json b/test/schemas/bipm/si/2019/constant/boltzmann/v1.test.json new file mode 100644 index 00000000..0a920ef9 --- /dev/null +++ b/test/schemas/bipm/si/2019/constant/boltzmann/v1.test.json @@ -0,0 +1,45 @@ +{ + "target": "../../../../../../../schemas/bipm/si/2019/constant/boltzmann/v1.json", + "tests": [ + { + "description": "Valid - exact value", + "data": 1.380649e-23, + "valid": true + }, + { + "description": "Invalid - different value", + "data": 1.380650e-23, + "valid": false + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "1.380649e-23", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/constant/caesium-frequency/v1.test.json b/test/schemas/bipm/si/2019/constant/caesium-frequency/v1.test.json new file mode 100644 index 00000000..fd78f159 --- /dev/null +++ b/test/schemas/bipm/si/2019/constant/caesium-frequency/v1.test.json @@ -0,0 +1,45 @@ +{ + "target": "../../../../../../../schemas/bipm/si/2019/constant/caesium-frequency/v1.json", + "tests": [ + { + "description": "Valid - exact value", + "data": 9192631770, + "valid": true + }, + { + "description": "Invalid - different value", + "data": 9192631771, + "valid": false + }, + { + "description": "Invalid - decimal", + "data": 9192630000.0, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "9192631770", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/constant/elementary-charge/v1.test.json b/test/schemas/bipm/si/2019/constant/elementary-charge/v1.test.json new file mode 100644 index 00000000..c5c571a8 --- /dev/null +++ b/test/schemas/bipm/si/2019/constant/elementary-charge/v1.test.json @@ -0,0 +1,45 @@ +{ + "target": "../../../../../../../schemas/bipm/si/2019/constant/elementary-charge/v1.json", + "tests": [ + { + "description": "Valid - exact value", + "data": 1.602176634e-19, + "valid": true + }, + { + "description": "Invalid - different value", + "data": 1.602176635e-19, + "valid": false + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "1.602176634e-19", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/constant/light-speed/v1.test.json b/test/schemas/bipm/si/2019/constant/light-speed/v1.test.json new file mode 100644 index 00000000..c6b5baa8 --- /dev/null +++ b/test/schemas/bipm/si/2019/constant/light-speed/v1.test.json @@ -0,0 +1,45 @@ +{ + "target": "../../../../../../../schemas/bipm/si/2019/constant/light-speed/v1.json", + "tests": [ + { + "description": "Valid - exact value", + "data": 299792458, + "valid": true + }, + { + "description": "Invalid - different value", + "data": 299792459, + "valid": false + }, + { + "description": "Invalid - decimal", + "data": 299792000.0, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "299792458", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/constant/luminous-efficacy/v1.test.json b/test/schemas/bipm/si/2019/constant/luminous-efficacy/v1.test.json new file mode 100644 index 00000000..212d6906 --- /dev/null +++ b/test/schemas/bipm/si/2019/constant/luminous-efficacy/v1.test.json @@ -0,0 +1,50 @@ +{ + "target": "../../../../../../../schemas/bipm/si/2019/constant/luminous-efficacy/v1.json", + "tests": [ + { + "description": "Valid - exact value", + "data": 683, + "valid": true + }, + { + "description": "Invalid - different value", + "data": 684, + "valid": false + }, + { + "description": "Invalid - decimal", + "data": 683.5, + "valid": false + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "683", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/constant/planck/v1.test.json b/test/schemas/bipm/si/2019/constant/planck/v1.test.json new file mode 100644 index 00000000..5b3fee33 --- /dev/null +++ b/test/schemas/bipm/si/2019/constant/planck/v1.test.json @@ -0,0 +1,45 @@ +{ + "target": "../../../../../../../schemas/bipm/si/2019/constant/planck/v1.json", + "tests": [ + { + "description": "Valid - exact value", + "data": 6.62607015e-34, + "valid": true + }, + { + "description": "Invalid - different value", + "data": 6.62607016e-34, + "valid": false + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "6.62607015e-34", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/attobecquerel/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/attobecquerel/v1.test.json new file mode 100644 index 00000000..f7e40c15 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/attobecquerel/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/attobecquerel/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/attocoulomb/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/attocoulomb/v1.test.json new file mode 100644 index 00000000..89b749f2 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/attocoulomb/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/attocoulomb/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/attodegree-celsius/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/attodegree-celsius/v1.test.json new file mode 100644 index 00000000..76952c7e --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/attodegree-celsius/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/attodegree-celsius/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/attofarad/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/attofarad/v1.test.json new file mode 100644 index 00000000..1cfb5bd7 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/attofarad/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/attofarad/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/attogray/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/attogray/v1.test.json new file mode 100644 index 00000000..fc2c62db --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/attogray/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/attogray/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/attohenry/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/attohenry/v1.test.json new file mode 100644 index 00000000..1b0bddce --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/attohenry/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/attohenry/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/attohertz/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/attohertz/v1.test.json new file mode 100644 index 00000000..5b488238 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/attohertz/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/attohertz/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/attojoule/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/attojoule/v1.test.json new file mode 100644 index 00000000..b6d9ca8d --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/attojoule/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/attojoule/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/attokatal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/attokatal/v1.test.json new file mode 100644 index 00000000..a6683517 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/attokatal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/attokatal/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/attolumen/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/attolumen/v1.test.json new file mode 100644 index 00000000..23a70d8b --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/attolumen/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/attolumen/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/attolux/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/attolux/v1.test.json new file mode 100644 index 00000000..5c4bc796 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/attolux/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/attolux/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/attonewton/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/attonewton/v1.test.json new file mode 100644 index 00000000..4e80972c --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/attonewton/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/attonewton/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/attoohm/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/attoohm/v1.test.json new file mode 100644 index 00000000..9ead0146 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/attoohm/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/attoohm/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/attopascal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/attopascal/v1.test.json new file mode 100644 index 00000000..771ae502 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/attopascal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/attopascal/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/attoradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/attoradian/v1.test.json new file mode 100644 index 00000000..a1d9e599 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/attoradian/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/attoradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/attosiemens/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/attosiemens/v1.test.json new file mode 100644 index 00000000..d9abce98 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/attosiemens/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/attosiemens/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/attosievert/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/attosievert/v1.test.json new file mode 100644 index 00000000..73573fcd --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/attosievert/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/attosievert/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/attosteradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/attosteradian/v1.test.json new file mode 100644 index 00000000..992bd089 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/attosteradian/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/attosteradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/attotesla/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/attotesla/v1.test.json new file mode 100644 index 00000000..df0c12c9 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/attotesla/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/attotesla/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/attovolt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/attovolt/v1.test.json new file mode 100644 index 00000000..18687265 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/attovolt/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/attovolt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/attowatt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/attowatt/v1.test.json new file mode 100644 index 00000000..b0a440e2 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/attowatt/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/attowatt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/attoweber/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/attoweber/v1.test.json new file mode 100644 index 00000000..9ed50bb5 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/attoweber/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/attoweber/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/centibecquerel/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/centibecquerel/v1.test.json new file mode 100644 index 00000000..37ce2779 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/centibecquerel/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/centibecquerel/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/centicoulomb/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/centicoulomb/v1.test.json new file mode 100644 index 00000000..39371e53 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/centicoulomb/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/centicoulomb/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/centidegree-celsius/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/centidegree-celsius/v1.test.json new file mode 100644 index 00000000..27b0c787 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/centidegree-celsius/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/centidegree-celsius/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/centifarad/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/centifarad/v1.test.json new file mode 100644 index 00000000..5a82eea7 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/centifarad/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/centifarad/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/centigray/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/centigray/v1.test.json new file mode 100644 index 00000000..1f6adea7 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/centigray/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/centigray/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/centihenry/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/centihenry/v1.test.json new file mode 100644 index 00000000..2e2e2e4b --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/centihenry/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/centihenry/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/centihertz/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/centihertz/v1.test.json new file mode 100644 index 00000000..1d4c9ed9 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/centihertz/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/centihertz/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/centijoule/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/centijoule/v1.test.json new file mode 100644 index 00000000..02c05920 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/centijoule/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/centijoule/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/centikatal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/centikatal/v1.test.json new file mode 100644 index 00000000..32f35a6d --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/centikatal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/centikatal/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/centilumen/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/centilumen/v1.test.json new file mode 100644 index 00000000..b8932ce7 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/centilumen/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/centilumen/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/centilux/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/centilux/v1.test.json new file mode 100644 index 00000000..0cbe3d51 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/centilux/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/centilux/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/centinewton/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/centinewton/v1.test.json new file mode 100644 index 00000000..36dbebb4 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/centinewton/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/centinewton/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/centiohm/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/centiohm/v1.test.json new file mode 100644 index 00000000..f094941f --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/centiohm/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/centiohm/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/centipascal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/centipascal/v1.test.json new file mode 100644 index 00000000..08ceed90 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/centipascal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/centipascal/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/centiradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/centiradian/v1.test.json new file mode 100644 index 00000000..ec29cb66 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/centiradian/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/centiradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/centisiemens/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/centisiemens/v1.test.json new file mode 100644 index 00000000..b4352e87 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/centisiemens/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/centisiemens/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/centisievert/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/centisievert/v1.test.json new file mode 100644 index 00000000..d9618c0d --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/centisievert/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/centisievert/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/centisteradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/centisteradian/v1.test.json new file mode 100644 index 00000000..b31bed36 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/centisteradian/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/centisteradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/centitesla/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/centitesla/v1.test.json new file mode 100644 index 00000000..7a650119 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/centitesla/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/centitesla/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/centivolt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/centivolt/v1.test.json new file mode 100644 index 00000000..83760fd2 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/centivolt/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/centivolt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/centiwatt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/centiwatt/v1.test.json new file mode 100644 index 00000000..3fd2aadd --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/centiwatt/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/centiwatt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/centiweber/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/centiweber/v1.test.json new file mode 100644 index 00000000..7dd04741 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/centiweber/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/centiweber/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decabecquerel/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decabecquerel/v1.test.json new file mode 100644 index 00000000..1ab5b32e --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decabecquerel/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decabecquerel/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decacoulomb/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decacoulomb/v1.test.json new file mode 100644 index 00000000..78aa1376 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decacoulomb/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decacoulomb/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decadegree-celsius/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decadegree-celsius/v1.test.json new file mode 100644 index 00000000..ecca8a8a --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decadegree-celsius/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decadegree-celsius/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative within the scaled range", + "data": -13.6575, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decafarad/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decafarad/v1.test.json new file mode 100644 index 00000000..07a8e36d --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decafarad/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decafarad/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decagray/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decagray/v1.test.json new file mode 100644 index 00000000..2341904e --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decagray/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decagray/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decahenry/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decahenry/v1.test.json new file mode 100644 index 00000000..bdbc482a --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decahenry/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decahenry/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decahertz/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decahertz/v1.test.json new file mode 100644 index 00000000..bee3599a --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decahertz/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decahertz/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decajoule/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decajoule/v1.test.json new file mode 100644 index 00000000..be8eefe9 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decajoule/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decajoule/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decakatal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decakatal/v1.test.json new file mode 100644 index 00000000..c66bf05b --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decakatal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decakatal/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decalumen/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decalumen/v1.test.json new file mode 100644 index 00000000..3050a4e3 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decalumen/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decalumen/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decalux/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decalux/v1.test.json new file mode 100644 index 00000000..7af53fa5 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decalux/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decalux/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decanewton/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decanewton/v1.test.json new file mode 100644 index 00000000..cbc8453b --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decanewton/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decanewton/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decaohm/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decaohm/v1.test.json new file mode 100644 index 00000000..b1636546 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decaohm/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decaohm/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decapascal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decapascal/v1.test.json new file mode 100644 index 00000000..5b89cb68 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decapascal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decapascal/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decaradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decaradian/v1.test.json new file mode 100644 index 00000000..1259ea6d --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decaradian/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decaradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decasiemens/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decasiemens/v1.test.json new file mode 100644 index 00000000..d8eaa804 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decasiemens/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decasiemens/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decasievert/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decasievert/v1.test.json new file mode 100644 index 00000000..c81920a1 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decasievert/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decasievert/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decasteradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decasteradian/v1.test.json new file mode 100644 index 00000000..725bd670 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decasteradian/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decasteradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decatesla/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decatesla/v1.test.json new file mode 100644 index 00000000..9391723c --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decatesla/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decatesla/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decavolt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decavolt/v1.test.json new file mode 100644 index 00000000..1a71308a --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decavolt/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decavolt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decawatt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decawatt/v1.test.json new file mode 100644 index 00000000..b3db1802 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decawatt/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decawatt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decaweber/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decaweber/v1.test.json new file mode 100644 index 00000000..1af7cd28 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decaweber/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decaweber/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decibecquerel/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decibecquerel/v1.test.json new file mode 100644 index 00000000..f74624d3 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decibecquerel/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decibecquerel/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decicoulomb/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decicoulomb/v1.test.json new file mode 100644 index 00000000..89db9ab2 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decicoulomb/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decicoulomb/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decidegree-celsius/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decidegree-celsius/v1.test.json new file mode 100644 index 00000000..ddb848bb --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decidegree-celsius/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decidegree-celsius/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decifarad/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decifarad/v1.test.json new file mode 100644 index 00000000..cdc8a5d7 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decifarad/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decifarad/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decigray/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decigray/v1.test.json new file mode 100644 index 00000000..5eba1d1f --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decigray/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decigray/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decihenry/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decihenry/v1.test.json new file mode 100644 index 00000000..6adbf7da --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decihenry/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decihenry/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decihertz/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decihertz/v1.test.json new file mode 100644 index 00000000..2524048c --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decihertz/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decihertz/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decijoule/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decijoule/v1.test.json new file mode 100644 index 00000000..a295f2e1 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decijoule/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decijoule/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decikatal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decikatal/v1.test.json new file mode 100644 index 00000000..da8d3bb9 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decikatal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decikatal/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decilumen/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decilumen/v1.test.json new file mode 100644 index 00000000..b45fdb3a --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decilumen/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decilumen/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decilux/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decilux/v1.test.json new file mode 100644 index 00000000..c09c1119 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decilux/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decilux/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decinewton/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decinewton/v1.test.json new file mode 100644 index 00000000..f67fa425 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decinewton/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decinewton/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/deciohm/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/deciohm/v1.test.json new file mode 100644 index 00000000..918ebaf4 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/deciohm/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/deciohm/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decipascal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decipascal/v1.test.json new file mode 100644 index 00000000..e341363f --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decipascal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decipascal/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/deciradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/deciradian/v1.test.json new file mode 100644 index 00000000..d7e1675b --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/deciradian/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/deciradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decisiemens/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decisiemens/v1.test.json new file mode 100644 index 00000000..362c0e70 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decisiemens/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decisiemens/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decisievert/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decisievert/v1.test.json new file mode 100644 index 00000000..d1ccea22 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decisievert/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decisievert/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decisteradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decisteradian/v1.test.json new file mode 100644 index 00000000..dd11559b --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decisteradian/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decisteradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decitesla/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decitesla/v1.test.json new file mode 100644 index 00000000..4ddef7ab --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decitesla/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decitesla/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/decivolt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/decivolt/v1.test.json new file mode 100644 index 00000000..1780b2df --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/decivolt/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/decivolt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/deciwatt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/deciwatt/v1.test.json new file mode 100644 index 00000000..04b5780e --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/deciwatt/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/deciwatt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/deciweber/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/deciweber/v1.test.json new file mode 100644 index 00000000..83213b4c --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/deciweber/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/deciweber/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/exabecquerel/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/exabecquerel/v1.test.json new file mode 100644 index 00000000..04b8df3b --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/exabecquerel/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/exabecquerel/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/exacoulomb/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/exacoulomb/v1.test.json new file mode 100644 index 00000000..2f9ac451 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/exacoulomb/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/exacoulomb/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/exadegree-celsius/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/exadegree-celsius/v1.test.json new file mode 100644 index 00000000..ef647c0c --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/exadegree-celsius/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/exadegree-celsius/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative within the scaled range", + "data": -1.36575e-16, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/exafarad/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/exafarad/v1.test.json new file mode 100644 index 00000000..e0d4b39e --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/exafarad/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/exafarad/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/exagray/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/exagray/v1.test.json new file mode 100644 index 00000000..a22e81ac --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/exagray/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/exagray/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/exahenry/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/exahenry/v1.test.json new file mode 100644 index 00000000..5faf322a --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/exahenry/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/exahenry/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/exahertz/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/exahertz/v1.test.json new file mode 100644 index 00000000..32593d0c --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/exahertz/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/exahertz/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/exajoule/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/exajoule/v1.test.json new file mode 100644 index 00000000..6a5674a5 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/exajoule/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/exajoule/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/exakatal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/exakatal/v1.test.json new file mode 100644 index 00000000..d6723f14 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/exakatal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/exakatal/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/exalumen/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/exalumen/v1.test.json new file mode 100644 index 00000000..25e3fd69 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/exalumen/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/exalumen/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/exalux/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/exalux/v1.test.json new file mode 100644 index 00000000..061a5762 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/exalux/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/exalux/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/exanewton/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/exanewton/v1.test.json new file mode 100644 index 00000000..e6b7ed41 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/exanewton/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/exanewton/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/exaohm/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/exaohm/v1.test.json new file mode 100644 index 00000000..3aeedbc9 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/exaohm/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/exaohm/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/exapascal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/exapascal/v1.test.json new file mode 100644 index 00000000..a71dfa69 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/exapascal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/exapascal/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/exaradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/exaradian/v1.test.json new file mode 100644 index 00000000..3501d7a4 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/exaradian/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/exaradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/exasiemens/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/exasiemens/v1.test.json new file mode 100644 index 00000000..bf3781a4 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/exasiemens/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/exasiemens/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/exasievert/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/exasievert/v1.test.json new file mode 100644 index 00000000..a999400b --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/exasievert/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/exasievert/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/exasteradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/exasteradian/v1.test.json new file mode 100644 index 00000000..ff4f62e4 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/exasteradian/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/exasteradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/exatesla/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/exatesla/v1.test.json new file mode 100644 index 00000000..3a6474e5 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/exatesla/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/exatesla/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/exavolt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/exavolt/v1.test.json new file mode 100644 index 00000000..24a80dae --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/exavolt/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/exavolt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/exawatt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/exawatt/v1.test.json new file mode 100644 index 00000000..67a1580d --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/exawatt/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/exawatt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/exaweber/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/exaweber/v1.test.json new file mode 100644 index 00000000..93b8faa9 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/exaweber/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/exaweber/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/femtobecquerel/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/femtobecquerel/v1.test.json new file mode 100644 index 00000000..62aab01e --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/femtobecquerel/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtobecquerel/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/femtocoulomb/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/femtocoulomb/v1.test.json new file mode 100644 index 00000000..44de3609 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/femtocoulomb/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtocoulomb/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/femtodegree-celsius/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/femtodegree-celsius/v1.test.json new file mode 100644 index 00000000..c699ee28 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/femtodegree-celsius/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtodegree-celsius/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/femtofarad/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/femtofarad/v1.test.json new file mode 100644 index 00000000..43f6c447 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/femtofarad/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtofarad/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/femtogray/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/femtogray/v1.test.json new file mode 100644 index 00000000..1535e6f1 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/femtogray/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtogray/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/femtohenry/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/femtohenry/v1.test.json new file mode 100644 index 00000000..9a02be28 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/femtohenry/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtohenry/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/femtohertz/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/femtohertz/v1.test.json new file mode 100644 index 00000000..76847158 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/femtohertz/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtohertz/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/femtojoule/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/femtojoule/v1.test.json new file mode 100644 index 00000000..6ff913e1 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/femtojoule/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtojoule/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/femtokatal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/femtokatal/v1.test.json new file mode 100644 index 00000000..39acc169 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/femtokatal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtokatal/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/femtolumen/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/femtolumen/v1.test.json new file mode 100644 index 00000000..0e1c5aca --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/femtolumen/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtolumen/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/femtolux/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/femtolux/v1.test.json new file mode 100644 index 00000000..26410a33 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/femtolux/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtolux/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/femtonewton/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/femtonewton/v1.test.json new file mode 100644 index 00000000..2b57b7f0 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/femtonewton/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtonewton/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/femtoohm/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/femtoohm/v1.test.json new file mode 100644 index 00000000..0378ebf9 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/femtoohm/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtoohm/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/femtopascal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/femtopascal/v1.test.json new file mode 100644 index 00000000..d8e72618 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/femtopascal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtopascal/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/femtoradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/femtoradian/v1.test.json new file mode 100644 index 00000000..9a0a0d31 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/femtoradian/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtoradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/femtosiemens/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/femtosiemens/v1.test.json new file mode 100644 index 00000000..5176ea2f --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/femtosiemens/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtosiemens/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/femtosievert/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/femtosievert/v1.test.json new file mode 100644 index 00000000..17c41d90 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/femtosievert/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtosievert/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/femtosteradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/femtosteradian/v1.test.json new file mode 100644 index 00000000..b7d729d2 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/femtosteradian/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtosteradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/femtotesla/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/femtotesla/v1.test.json new file mode 100644 index 00000000..baa8250b --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/femtotesla/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtotesla/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/femtovolt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/femtovolt/v1.test.json new file mode 100644 index 00000000..52907801 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/femtovolt/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtovolt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/femtowatt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/femtowatt/v1.test.json new file mode 100644 index 00000000..1d4a479e --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/femtowatt/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtowatt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/femtoweber/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/femtoweber/v1.test.json new file mode 100644 index 00000000..30dba131 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/femtoweber/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/femtoweber/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/gigabecquerel/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/gigabecquerel/v1.test.json new file mode 100644 index 00000000..c36df8a2 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/gigabecquerel/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigabecquerel/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/gigacoulomb/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/gigacoulomb/v1.test.json new file mode 100644 index 00000000..f69eb330 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/gigacoulomb/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigacoulomb/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/gigadegree-celsius/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/gigadegree-celsius/v1.test.json new file mode 100644 index 00000000..a3a1c5af --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/gigadegree-celsius/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigadegree-celsius/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative within the scaled range", + "data": -1.36575e-7, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/gigafarad/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/gigafarad/v1.test.json new file mode 100644 index 00000000..fa6832d2 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/gigafarad/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigafarad/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/gigagray/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/gigagray/v1.test.json new file mode 100644 index 00000000..8d4f112d --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/gigagray/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigagray/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/gigahenry/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/gigahenry/v1.test.json new file mode 100644 index 00000000..5e5902a1 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/gigahenry/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigahenry/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/gigahertz/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/gigahertz/v1.test.json new file mode 100644 index 00000000..ab1e170c --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/gigahertz/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigahertz/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/gigajoule/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/gigajoule/v1.test.json new file mode 100644 index 00000000..271c4688 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/gigajoule/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigajoule/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/gigakatal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/gigakatal/v1.test.json new file mode 100644 index 00000000..420c087e --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/gigakatal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigakatal/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/gigalumen/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/gigalumen/v1.test.json new file mode 100644 index 00000000..c9548634 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/gigalumen/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigalumen/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/gigalux/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/gigalux/v1.test.json new file mode 100644 index 00000000..706343ce --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/gigalux/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigalux/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/giganewton/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/giganewton/v1.test.json new file mode 100644 index 00000000..529ae3ff --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/giganewton/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/giganewton/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/gigaohm/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/gigaohm/v1.test.json new file mode 100644 index 00000000..418ed33f --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/gigaohm/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigaohm/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/gigapascal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/gigapascal/v1.test.json new file mode 100644 index 00000000..969fd18c --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/gigapascal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigapascal/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/gigaradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/gigaradian/v1.test.json new file mode 100644 index 00000000..1cca56eb --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/gigaradian/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigaradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/gigasiemens/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/gigasiemens/v1.test.json new file mode 100644 index 00000000..d8d465ee --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/gigasiemens/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigasiemens/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/gigasievert/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/gigasievert/v1.test.json new file mode 100644 index 00000000..44b9ac94 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/gigasievert/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigasievert/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/gigasteradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/gigasteradian/v1.test.json new file mode 100644 index 00000000..451d5fa4 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/gigasteradian/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigasteradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/gigatesla/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/gigatesla/v1.test.json new file mode 100644 index 00000000..13bca757 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/gigatesla/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigatesla/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/gigavolt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/gigavolt/v1.test.json new file mode 100644 index 00000000..ce1c7347 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/gigavolt/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigavolt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/gigawatt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/gigawatt/v1.test.json new file mode 100644 index 00000000..a4992f72 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/gigawatt/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigawatt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/gigaweber/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/gigaweber/v1.test.json new file mode 100644 index 00000000..081044ec --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/gigaweber/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/gigaweber/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/hectobecquerel/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/hectobecquerel/v1.test.json new file mode 100644 index 00000000..1d0edab4 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/hectobecquerel/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectobecquerel/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/hectocoulomb/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/hectocoulomb/v1.test.json new file mode 100644 index 00000000..c6ba6b03 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/hectocoulomb/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectocoulomb/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/hectodegree-celsius/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/hectodegree-celsius/v1.test.json new file mode 100644 index 00000000..b42dfe50 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/hectodegree-celsius/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectodegree-celsius/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative within the scaled range", + "data": -1.36575, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/hectofarad/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/hectofarad/v1.test.json new file mode 100644 index 00000000..13d679cf --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/hectofarad/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectofarad/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/hectogray/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/hectogray/v1.test.json new file mode 100644 index 00000000..b7685ded --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/hectogray/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectogray/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/hectohenry/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/hectohenry/v1.test.json new file mode 100644 index 00000000..57dcf3ab --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/hectohenry/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectohenry/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/hectohertz/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/hectohertz/v1.test.json new file mode 100644 index 00000000..3386d74f --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/hectohertz/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectohertz/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/hectojoule/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/hectojoule/v1.test.json new file mode 100644 index 00000000..cb51f180 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/hectojoule/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectojoule/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/hectokatal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/hectokatal/v1.test.json new file mode 100644 index 00000000..70606b1f --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/hectokatal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectokatal/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/hectolumen/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/hectolumen/v1.test.json new file mode 100644 index 00000000..109a063c --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/hectolumen/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectolumen/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/hectolux/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/hectolux/v1.test.json new file mode 100644 index 00000000..755adfcc --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/hectolux/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectolux/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/hectonewton/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/hectonewton/v1.test.json new file mode 100644 index 00000000..536090a8 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/hectonewton/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectonewton/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/hectoohm/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/hectoohm/v1.test.json new file mode 100644 index 00000000..96b823dd --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/hectoohm/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectoohm/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/hectopascal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/hectopascal/v1.test.json new file mode 100644 index 00000000..052a16d3 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/hectopascal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectopascal/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/hectoradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/hectoradian/v1.test.json new file mode 100644 index 00000000..715d22e1 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/hectoradian/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectoradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/hectosiemens/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/hectosiemens/v1.test.json new file mode 100644 index 00000000..db58b5ae --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/hectosiemens/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectosiemens/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/hectosievert/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/hectosievert/v1.test.json new file mode 100644 index 00000000..2421fe31 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/hectosievert/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectosievert/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/hectosteradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/hectosteradian/v1.test.json new file mode 100644 index 00000000..5337a4df --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/hectosteradian/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectosteradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/hectotesla/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/hectotesla/v1.test.json new file mode 100644 index 00000000..0ac95e3f --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/hectotesla/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectotesla/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/hectovolt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/hectovolt/v1.test.json new file mode 100644 index 00000000..3630cc47 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/hectovolt/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectovolt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/hectowatt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/hectowatt/v1.test.json new file mode 100644 index 00000000..67e95ed6 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/hectowatt/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectowatt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/hectoweber/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/hectoweber/v1.test.json new file mode 100644 index 00000000..da3b35e8 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/hectoweber/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/hectoweber/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/kilobecquerel/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/kilobecquerel/v1.test.json new file mode 100644 index 00000000..d8860b65 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/kilobecquerel/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilobecquerel/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/kilocoulomb/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/kilocoulomb/v1.test.json new file mode 100644 index 00000000..c4dc864b --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/kilocoulomb/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilocoulomb/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/kilodegree-celsius/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/kilodegree-celsius/v1.test.json new file mode 100644 index 00000000..7171f62d --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/kilodegree-celsius/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilodegree-celsius/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative within the scaled range", + "data": -0.136575, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Invalid - below the scaled absolute zero floor", + "valid": false, + "data": -0.27316 + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/kilofarad/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/kilofarad/v1.test.json new file mode 100644 index 00000000..c9c548b5 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/kilofarad/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilofarad/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/kilogray/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/kilogray/v1.test.json new file mode 100644 index 00000000..9e08e43c --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/kilogray/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilogray/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/kilohenry/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/kilohenry/v1.test.json new file mode 100644 index 00000000..2328e46d --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/kilohenry/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilohenry/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/kilohertz/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/kilohertz/v1.test.json new file mode 100644 index 00000000..b0878aab --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/kilohertz/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilohertz/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/kilojoule/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/kilojoule/v1.test.json new file mode 100644 index 00000000..60eb57c8 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/kilojoule/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilojoule/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/kilokatal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/kilokatal/v1.test.json new file mode 100644 index 00000000..ed8ea607 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/kilokatal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilokatal/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/kilolumen/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/kilolumen/v1.test.json new file mode 100644 index 00000000..63a6cbf9 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/kilolumen/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilolumen/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/kilolux/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/kilolux/v1.test.json new file mode 100644 index 00000000..6b24e758 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/kilolux/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilolux/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/kilonewton/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/kilonewton/v1.test.json new file mode 100644 index 00000000..1c19a7bd --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/kilonewton/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilonewton/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/kiloohm/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/kiloohm/v1.test.json new file mode 100644 index 00000000..5667d130 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/kiloohm/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/kiloohm/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/kilopascal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/kilopascal/v1.test.json new file mode 100644 index 00000000..5f66dc2b --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/kilopascal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilopascal/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/kiloradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/kiloradian/v1.test.json new file mode 100644 index 00000000..b049d711 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/kiloradian/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/kiloradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/kilosiemens/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/kilosiemens/v1.test.json new file mode 100644 index 00000000..39606b19 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/kilosiemens/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilosiemens/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/kilosievert/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/kilosievert/v1.test.json new file mode 100644 index 00000000..8a0c3857 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/kilosievert/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilosievert/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/kilosteradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/kilosteradian/v1.test.json new file mode 100644 index 00000000..12e3d0ca --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/kilosteradian/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilosteradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/kilotesla/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/kilotesla/v1.test.json new file mode 100644 index 00000000..bc294992 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/kilotesla/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilotesla/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/kilovolt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/kilovolt/v1.test.json new file mode 100644 index 00000000..cab43092 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/kilovolt/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilovolt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/kilowatt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/kilowatt/v1.test.json new file mode 100644 index 00000000..683e8930 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/kilowatt/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/kilowatt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/kiloweber/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/kiloweber/v1.test.json new file mode 100644 index 00000000..48508675 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/kiloweber/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/kiloweber/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/megabecquerel/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/megabecquerel/v1.test.json new file mode 100644 index 00000000..92d4e18c --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/megabecquerel/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/megabecquerel/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/megacoulomb/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/megacoulomb/v1.test.json new file mode 100644 index 00000000..09e5c80c --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/megacoulomb/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/megacoulomb/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/megadegree-celsius/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/megadegree-celsius/v1.test.json new file mode 100644 index 00000000..aae3a466 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/megadegree-celsius/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/megadegree-celsius/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative within the scaled range", + "data": -0.000136575, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/megafarad/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/megafarad/v1.test.json new file mode 100644 index 00000000..13fe7a10 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/megafarad/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/megafarad/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/megagray/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/megagray/v1.test.json new file mode 100644 index 00000000..ac55e4c0 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/megagray/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/megagray/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/megahenry/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/megahenry/v1.test.json new file mode 100644 index 00000000..7703b255 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/megahenry/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/megahenry/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/megahertz/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/megahertz/v1.test.json new file mode 100644 index 00000000..326f1b6f --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/megahertz/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/megahertz/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/megajoule/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/megajoule/v1.test.json new file mode 100644 index 00000000..376a9313 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/megajoule/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/megajoule/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/megakatal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/megakatal/v1.test.json new file mode 100644 index 00000000..25f86eb3 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/megakatal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/megakatal/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/megalumen/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/megalumen/v1.test.json new file mode 100644 index 00000000..a0193932 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/megalumen/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/megalumen/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/megalux/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/megalux/v1.test.json new file mode 100644 index 00000000..bc98605b --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/megalux/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/megalux/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/meganewton/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/meganewton/v1.test.json new file mode 100644 index 00000000..5687a17c --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/meganewton/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/meganewton/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/megaohm/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/megaohm/v1.test.json new file mode 100644 index 00000000..229c3363 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/megaohm/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/megaohm/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/megapascal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/megapascal/v1.test.json new file mode 100644 index 00000000..bc44f06c --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/megapascal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/megapascal/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/megaradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/megaradian/v1.test.json new file mode 100644 index 00000000..4d890523 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/megaradian/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/megaradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/megasiemens/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/megasiemens/v1.test.json new file mode 100644 index 00000000..7f234950 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/megasiemens/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/megasiemens/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/megasievert/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/megasievert/v1.test.json new file mode 100644 index 00000000..3a328e50 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/megasievert/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/megasievert/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/megasteradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/megasteradian/v1.test.json new file mode 100644 index 00000000..18667953 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/megasteradian/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/megasteradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/megatesla/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/megatesla/v1.test.json new file mode 100644 index 00000000..bd6cea05 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/megatesla/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/megatesla/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/megavolt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/megavolt/v1.test.json new file mode 100644 index 00000000..0e6ef54b --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/megavolt/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/megavolt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/megawatt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/megawatt/v1.test.json new file mode 100644 index 00000000..3e53f9e5 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/megawatt/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/megawatt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/megaweber/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/megaweber/v1.test.json new file mode 100644 index 00000000..1bdbe4ae --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/megaweber/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/megaweber/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/microbecquerel/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/microbecquerel/v1.test.json new file mode 100644 index 00000000..8aed2873 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/microbecquerel/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/microbecquerel/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/microcoulomb/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/microcoulomb/v1.test.json new file mode 100644 index 00000000..63868343 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/microcoulomb/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/microcoulomb/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/microdegree-celsius/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/microdegree-celsius/v1.test.json new file mode 100644 index 00000000..86434adb --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/microdegree-celsius/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/microdegree-celsius/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/microfarad/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/microfarad/v1.test.json new file mode 100644 index 00000000..1d1097e4 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/microfarad/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/microfarad/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/microgray/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/microgray/v1.test.json new file mode 100644 index 00000000..8749b764 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/microgray/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/microgray/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/microhenry/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/microhenry/v1.test.json new file mode 100644 index 00000000..cbe28011 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/microhenry/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/microhenry/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/microhertz/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/microhertz/v1.test.json new file mode 100644 index 00000000..18e16655 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/microhertz/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/microhertz/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/microjoule/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/microjoule/v1.test.json new file mode 100644 index 00000000..af6d1bb7 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/microjoule/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/microjoule/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/microkatal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/microkatal/v1.test.json new file mode 100644 index 00000000..c23f03e4 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/microkatal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/microkatal/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/microlumen/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/microlumen/v1.test.json new file mode 100644 index 00000000..abcfe720 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/microlumen/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/microlumen/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/microlux/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/microlux/v1.test.json new file mode 100644 index 00000000..eec6f595 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/microlux/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/microlux/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/micronewton/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/micronewton/v1.test.json new file mode 100644 index 00000000..75515c3b --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/micronewton/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/micronewton/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/microohm/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/microohm/v1.test.json new file mode 100644 index 00000000..32267c71 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/microohm/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/microohm/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/micropascal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/micropascal/v1.test.json new file mode 100644 index 00000000..783d0f84 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/micropascal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/micropascal/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/microradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/microradian/v1.test.json new file mode 100644 index 00000000..1c43ab88 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/microradian/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/microradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/microsiemens/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/microsiemens/v1.test.json new file mode 100644 index 00000000..8cdec72e --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/microsiemens/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/microsiemens/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/microsievert/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/microsievert/v1.test.json new file mode 100644 index 00000000..dffa715a --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/microsievert/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/microsievert/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/microsteradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/microsteradian/v1.test.json new file mode 100644 index 00000000..d8577914 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/microsteradian/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/microsteradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/microtesla/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/microtesla/v1.test.json new file mode 100644 index 00000000..e545ada2 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/microtesla/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/microtesla/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/microvolt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/microvolt/v1.test.json new file mode 100644 index 00000000..94bf7ace --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/microvolt/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/microvolt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/microwatt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/microwatt/v1.test.json new file mode 100644 index 00000000..c6f83060 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/microwatt/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/microwatt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/microweber/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/microweber/v1.test.json new file mode 100644 index 00000000..efa94c52 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/microweber/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/microweber/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/millibecquerel/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/millibecquerel/v1.test.json new file mode 100644 index 00000000..81302b0c --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/millibecquerel/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/millibecquerel/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/millicoulomb/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/millicoulomb/v1.test.json new file mode 100644 index 00000000..534d1d3b --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/millicoulomb/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/millicoulomb/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/millidegree-celsius/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/millidegree-celsius/v1.test.json new file mode 100644 index 00000000..8775f88d --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/millidegree-celsius/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/millidegree-celsius/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Invalid - below the scaled absolute zero floor", + "valid": false, + "data": -273151 + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/millifarad/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/millifarad/v1.test.json new file mode 100644 index 00000000..71cada5c --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/millifarad/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/millifarad/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/milligray/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/milligray/v1.test.json new file mode 100644 index 00000000..8963086e --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/milligray/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/milligray/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/millihenry/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/millihenry/v1.test.json new file mode 100644 index 00000000..58702df4 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/millihenry/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/millihenry/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/millihertz/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/millihertz/v1.test.json new file mode 100644 index 00000000..9faa9bd8 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/millihertz/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/millihertz/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/millijoule/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/millijoule/v1.test.json new file mode 100644 index 00000000..8d732484 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/millijoule/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/millijoule/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/millikatal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/millikatal/v1.test.json new file mode 100644 index 00000000..9eda18be --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/millikatal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/millikatal/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/millilumen/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/millilumen/v1.test.json new file mode 100644 index 00000000..c05c348b --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/millilumen/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/millilumen/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/millilux/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/millilux/v1.test.json new file mode 100644 index 00000000..8a321471 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/millilux/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/millilux/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/millinewton/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/millinewton/v1.test.json new file mode 100644 index 00000000..53b266a7 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/millinewton/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/millinewton/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/milliohm/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/milliohm/v1.test.json new file mode 100644 index 00000000..d1a7fb5d --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/milliohm/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/milliohm/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/millipascal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/millipascal/v1.test.json new file mode 100644 index 00000000..98f37a18 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/millipascal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/millipascal/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/milliradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/milliradian/v1.test.json new file mode 100644 index 00000000..ef2a599f --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/milliradian/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/milliradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/millisiemens/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/millisiemens/v1.test.json new file mode 100644 index 00000000..9cc234f5 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/millisiemens/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/millisiemens/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/millisievert/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/millisievert/v1.test.json new file mode 100644 index 00000000..e9ed95a3 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/millisievert/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/millisievert/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/millisteradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/millisteradian/v1.test.json new file mode 100644 index 00000000..b1e8829d --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/millisteradian/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/millisteradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/millitesla/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/millitesla/v1.test.json new file mode 100644 index 00000000..7c64ac89 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/millitesla/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/millitesla/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/millivolt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/millivolt/v1.test.json new file mode 100644 index 00000000..3d9f9cf7 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/millivolt/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/millivolt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/milliwatt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/milliwatt/v1.test.json new file mode 100644 index 00000000..370af51c --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/milliwatt/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/milliwatt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/milliweber/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/milliweber/v1.test.json new file mode 100644 index 00000000..4f4c7fb6 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/milliweber/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/milliweber/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/nanobecquerel/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/nanobecquerel/v1.test.json new file mode 100644 index 00000000..f30b06d5 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/nanobecquerel/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanobecquerel/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/nanocoulomb/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/nanocoulomb/v1.test.json new file mode 100644 index 00000000..7c8df755 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/nanocoulomb/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanocoulomb/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/nanodegree-celsius/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/nanodegree-celsius/v1.test.json new file mode 100644 index 00000000..432439cd --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/nanodegree-celsius/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanodegree-celsius/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/nanofarad/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/nanofarad/v1.test.json new file mode 100644 index 00000000..ba988915 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/nanofarad/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanofarad/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/nanogray/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/nanogray/v1.test.json new file mode 100644 index 00000000..482a1e00 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/nanogray/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanogray/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/nanohenry/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/nanohenry/v1.test.json new file mode 100644 index 00000000..516c594c --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/nanohenry/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanohenry/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/nanohertz/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/nanohertz/v1.test.json new file mode 100644 index 00000000..091c84ec --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/nanohertz/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanohertz/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/nanojoule/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/nanojoule/v1.test.json new file mode 100644 index 00000000..ee493687 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/nanojoule/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanojoule/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/nanokatal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/nanokatal/v1.test.json new file mode 100644 index 00000000..60997c03 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/nanokatal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanokatal/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/nanolumen/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/nanolumen/v1.test.json new file mode 100644 index 00000000..f88f143f --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/nanolumen/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanolumen/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/nanolux/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/nanolux/v1.test.json new file mode 100644 index 00000000..0a99914b --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/nanolux/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanolux/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/nanonewton/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/nanonewton/v1.test.json new file mode 100644 index 00000000..f4fcf731 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/nanonewton/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanonewton/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/nanoohm/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/nanoohm/v1.test.json new file mode 100644 index 00000000..df06067a --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/nanoohm/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanoohm/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/nanopascal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/nanopascal/v1.test.json new file mode 100644 index 00000000..c88959da --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/nanopascal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanopascal/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/nanoradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/nanoradian/v1.test.json new file mode 100644 index 00000000..6f6845ed --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/nanoradian/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanoradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/nanosiemens/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/nanosiemens/v1.test.json new file mode 100644 index 00000000..3415b7bc --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/nanosiemens/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanosiemens/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/nanosievert/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/nanosievert/v1.test.json new file mode 100644 index 00000000..001dcf69 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/nanosievert/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanosievert/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/nanosteradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/nanosteradian/v1.test.json new file mode 100644 index 00000000..b54d0653 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/nanosteradian/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanosteradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/nanotesla/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/nanotesla/v1.test.json new file mode 100644 index 00000000..eb600d71 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/nanotesla/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanotesla/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/nanovolt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/nanovolt/v1.test.json new file mode 100644 index 00000000..7a3b7ab9 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/nanovolt/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanovolt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/nanowatt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/nanowatt/v1.test.json new file mode 100644 index 00000000..ee479fe1 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/nanowatt/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanowatt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/nanoweber/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/nanoweber/v1.test.json new file mode 100644 index 00000000..f129519c --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/nanoweber/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/nanoweber/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/petabecquerel/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/petabecquerel/v1.test.json new file mode 100644 index 00000000..b37ba343 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/petabecquerel/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/petabecquerel/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/petacoulomb/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/petacoulomb/v1.test.json new file mode 100644 index 00000000..928b4d8a --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/petacoulomb/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/petacoulomb/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/petadegree-celsius/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/petadegree-celsius/v1.test.json new file mode 100644 index 00000000..50a290aa --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/petadegree-celsius/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/petadegree-celsius/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative within the scaled range", + "data": -1.36575e-13, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/petafarad/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/petafarad/v1.test.json new file mode 100644 index 00000000..759ffade --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/petafarad/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/petafarad/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/petagray/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/petagray/v1.test.json new file mode 100644 index 00000000..5a7c6515 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/petagray/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/petagray/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/petahenry/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/petahenry/v1.test.json new file mode 100644 index 00000000..8e28c018 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/petahenry/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/petahenry/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/petahertz/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/petahertz/v1.test.json new file mode 100644 index 00000000..ed4448ff --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/petahertz/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/petahertz/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/petajoule/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/petajoule/v1.test.json new file mode 100644 index 00000000..7d6d29c6 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/petajoule/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/petajoule/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/petakatal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/petakatal/v1.test.json new file mode 100644 index 00000000..de31c0fe --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/petakatal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/petakatal/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/petalumen/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/petalumen/v1.test.json new file mode 100644 index 00000000..f97955b9 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/petalumen/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/petalumen/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/petalux/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/petalux/v1.test.json new file mode 100644 index 00000000..56c4da1c --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/petalux/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/petalux/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/petanewton/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/petanewton/v1.test.json new file mode 100644 index 00000000..1561bfa6 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/petanewton/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/petanewton/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/petaohm/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/petaohm/v1.test.json new file mode 100644 index 00000000..1040dda3 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/petaohm/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/petaohm/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/petapascal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/petapascal/v1.test.json new file mode 100644 index 00000000..ec4f8bee --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/petapascal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/petapascal/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/petaradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/petaradian/v1.test.json new file mode 100644 index 00000000..9061615f --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/petaradian/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/petaradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/petasiemens/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/petasiemens/v1.test.json new file mode 100644 index 00000000..79f719ef --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/petasiemens/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/petasiemens/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/petasievert/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/petasievert/v1.test.json new file mode 100644 index 00000000..b9e26130 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/petasievert/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/petasievert/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/petasteradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/petasteradian/v1.test.json new file mode 100644 index 00000000..1c2bf29b --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/petasteradian/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/petasteradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/petatesla/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/petatesla/v1.test.json new file mode 100644 index 00000000..0899462a --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/petatesla/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/petatesla/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/petavolt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/petavolt/v1.test.json new file mode 100644 index 00000000..793387ad --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/petavolt/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/petavolt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/petawatt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/petawatt/v1.test.json new file mode 100644 index 00000000..01f4e44d --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/petawatt/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/petawatt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/petaweber/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/petaweber/v1.test.json new file mode 100644 index 00000000..f1a82896 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/petaweber/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/petaweber/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/picobecquerel/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/picobecquerel/v1.test.json new file mode 100644 index 00000000..34dfd2a3 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/picobecquerel/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/picobecquerel/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/picocoulomb/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/picocoulomb/v1.test.json new file mode 100644 index 00000000..f3921417 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/picocoulomb/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/picocoulomb/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/picodegree-celsius/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/picodegree-celsius/v1.test.json new file mode 100644 index 00000000..88ce75f3 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/picodegree-celsius/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/picodegree-celsius/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/picofarad/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/picofarad/v1.test.json new file mode 100644 index 00000000..ca053935 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/picofarad/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/picofarad/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/picogray/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/picogray/v1.test.json new file mode 100644 index 00000000..312e33cc --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/picogray/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/picogray/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/picohenry/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/picohenry/v1.test.json new file mode 100644 index 00000000..fecc9ed7 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/picohenry/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/picohenry/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/picohertz/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/picohertz/v1.test.json new file mode 100644 index 00000000..51913bee --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/picohertz/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/picohertz/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/picojoule/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/picojoule/v1.test.json new file mode 100644 index 00000000..7fe28c47 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/picojoule/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/picojoule/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/picokatal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/picokatal/v1.test.json new file mode 100644 index 00000000..073e604f --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/picokatal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/picokatal/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/picolumen/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/picolumen/v1.test.json new file mode 100644 index 00000000..4e749b8c --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/picolumen/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/picolumen/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/picolux/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/picolux/v1.test.json new file mode 100644 index 00000000..497310b2 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/picolux/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/picolux/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/piconewton/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/piconewton/v1.test.json new file mode 100644 index 00000000..ad548b33 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/piconewton/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/piconewton/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/picoohm/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/picoohm/v1.test.json new file mode 100644 index 00000000..5ca19536 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/picoohm/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/picoohm/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/picopascal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/picopascal/v1.test.json new file mode 100644 index 00000000..ad6954e3 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/picopascal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/picopascal/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/picoradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/picoradian/v1.test.json new file mode 100644 index 00000000..ee14287c --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/picoradian/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/picoradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/picosiemens/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/picosiemens/v1.test.json new file mode 100644 index 00000000..ebfe8473 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/picosiemens/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/picosiemens/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/picosievert/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/picosievert/v1.test.json new file mode 100644 index 00000000..4665fc32 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/picosievert/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/picosievert/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/picosteradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/picosteradian/v1.test.json new file mode 100644 index 00000000..41c56d4f --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/picosteradian/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/picosteradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/picotesla/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/picotesla/v1.test.json new file mode 100644 index 00000000..1fc8de4c --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/picotesla/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/picotesla/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/picovolt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/picovolt/v1.test.json new file mode 100644 index 00000000..42b87557 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/picovolt/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/picovolt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/picowatt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/picowatt/v1.test.json new file mode 100644 index 00000000..7a4266e3 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/picowatt/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/picowatt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/picoweber/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/picoweber/v1.test.json new file mode 100644 index 00000000..9f37dd81 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/picoweber/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/picoweber/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quectobecquerel/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quectobecquerel/v1.test.json new file mode 100644 index 00000000..ea31c1bc --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quectobecquerel/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectobecquerel/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quectocoulomb/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quectocoulomb/v1.test.json new file mode 100644 index 00000000..7feba669 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quectocoulomb/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectocoulomb/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quectodegree-celsius/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quectodegree-celsius/v1.test.json new file mode 100644 index 00000000..6eccfae9 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quectodegree-celsius/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectodegree-celsius/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quectofarad/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quectofarad/v1.test.json new file mode 100644 index 00000000..e7ebf0de --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quectofarad/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectofarad/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quectogray/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quectogray/v1.test.json new file mode 100644 index 00000000..8c36cf76 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quectogray/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectogray/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quectohenry/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quectohenry/v1.test.json new file mode 100644 index 00000000..6a66642b --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quectohenry/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectohenry/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quectohertz/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quectohertz/v1.test.json new file mode 100644 index 00000000..54325822 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quectohertz/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectohertz/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quectojoule/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quectojoule/v1.test.json new file mode 100644 index 00000000..67de5be7 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quectojoule/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectojoule/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quectokatal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quectokatal/v1.test.json new file mode 100644 index 00000000..0c106a5a --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quectokatal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectokatal/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quectolumen/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quectolumen/v1.test.json new file mode 100644 index 00000000..dca1c16c --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quectolumen/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectolumen/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quectolux/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quectolux/v1.test.json new file mode 100644 index 00000000..c33e7faf --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quectolux/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectolux/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quectonewton/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quectonewton/v1.test.json new file mode 100644 index 00000000..02e31844 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quectonewton/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectonewton/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quectoohm/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quectoohm/v1.test.json new file mode 100644 index 00000000..9da6bcde --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quectoohm/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectoohm/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quectopascal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quectopascal/v1.test.json new file mode 100644 index 00000000..c939520e --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quectopascal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectopascal/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quectoradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quectoradian/v1.test.json new file mode 100644 index 00000000..1f647046 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quectoradian/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectoradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quectosiemens/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quectosiemens/v1.test.json new file mode 100644 index 00000000..d99e60d9 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quectosiemens/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectosiemens/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quectosievert/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quectosievert/v1.test.json new file mode 100644 index 00000000..5ac12e92 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quectosievert/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectosievert/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quectosteradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quectosteradian/v1.test.json new file mode 100644 index 00000000..49b1fd1e --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quectosteradian/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectosteradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quectotesla/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quectotesla/v1.test.json new file mode 100644 index 00000000..728db752 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quectotesla/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectotesla/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quectovolt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quectovolt/v1.test.json new file mode 100644 index 00000000..7676970e --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quectovolt/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectovolt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quectowatt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quectowatt/v1.test.json new file mode 100644 index 00000000..0eff2021 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quectowatt/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectowatt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quectoweber/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quectoweber/v1.test.json new file mode 100644 index 00000000..924ccefb --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quectoweber/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quectoweber/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quettabecquerel/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quettabecquerel/v1.test.json new file mode 100644 index 00000000..b27755fa --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quettabecquerel/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettabecquerel/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quettacoulomb/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quettacoulomb/v1.test.json new file mode 100644 index 00000000..b55686ae --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quettacoulomb/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettacoulomb/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quettadegree-celsius/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quettadegree-celsius/v1.test.json new file mode 100644 index 00000000..40e02cce --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quettadegree-celsius/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettadegree-celsius/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative within the scaled range", + "data": -1.36575e-28, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quettafarad/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quettafarad/v1.test.json new file mode 100644 index 00000000..ba7a5179 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quettafarad/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettafarad/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quettagray/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quettagray/v1.test.json new file mode 100644 index 00000000..82b7469d --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quettagray/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettagray/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quettahenry/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quettahenry/v1.test.json new file mode 100644 index 00000000..485fe259 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quettahenry/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettahenry/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quettahertz/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quettahertz/v1.test.json new file mode 100644 index 00000000..cad5590f --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quettahertz/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettahertz/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quettajoule/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quettajoule/v1.test.json new file mode 100644 index 00000000..f4cd1e57 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quettajoule/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettajoule/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quettakatal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quettakatal/v1.test.json new file mode 100644 index 00000000..96e14109 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quettakatal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettakatal/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quettalumen/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quettalumen/v1.test.json new file mode 100644 index 00000000..d4cc8077 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quettalumen/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettalumen/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quettalux/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quettalux/v1.test.json new file mode 100644 index 00000000..d1a681fd --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quettalux/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettalux/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quettanewton/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quettanewton/v1.test.json new file mode 100644 index 00000000..22e23c6b --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quettanewton/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettanewton/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quettaohm/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quettaohm/v1.test.json new file mode 100644 index 00000000..59cb469d --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quettaohm/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettaohm/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quettapascal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quettapascal/v1.test.json new file mode 100644 index 00000000..76ccf479 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quettapascal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettapascal/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quettaradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quettaradian/v1.test.json new file mode 100644 index 00000000..cf327187 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quettaradian/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettaradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quettasiemens/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quettasiemens/v1.test.json new file mode 100644 index 00000000..dc07a14a --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quettasiemens/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettasiemens/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quettasievert/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quettasievert/v1.test.json new file mode 100644 index 00000000..29db76e3 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quettasievert/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettasievert/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quettasteradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quettasteradian/v1.test.json new file mode 100644 index 00000000..7cd362d1 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quettasteradian/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettasteradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quettatesla/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quettatesla/v1.test.json new file mode 100644 index 00000000..7a5fea25 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quettatesla/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettatesla/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quettavolt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quettavolt/v1.test.json new file mode 100644 index 00000000..80ca26c1 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quettavolt/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettavolt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quettawatt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quettawatt/v1.test.json new file mode 100644 index 00000000..2fa4e3e7 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quettawatt/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettawatt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/quettaweber/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/quettaweber/v1.test.json new file mode 100644 index 00000000..08a782e1 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/quettaweber/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/quettaweber/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/ronnabecquerel/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/ronnabecquerel/v1.test.json new file mode 100644 index 00000000..cf166aa2 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/ronnabecquerel/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnabecquerel/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/ronnacoulomb/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/ronnacoulomb/v1.test.json new file mode 100644 index 00000000..c83da83c --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/ronnacoulomb/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnacoulomb/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/ronnadegree-celsius/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/ronnadegree-celsius/v1.test.json new file mode 100644 index 00000000..bfcb4cbd --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/ronnadegree-celsius/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnadegree-celsius/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative within the scaled range", + "data": -1.36575e-25, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/ronnafarad/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/ronnafarad/v1.test.json new file mode 100644 index 00000000..acc282c5 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/ronnafarad/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnafarad/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/ronnagray/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/ronnagray/v1.test.json new file mode 100644 index 00000000..5a65e605 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/ronnagray/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnagray/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/ronnahenry/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/ronnahenry/v1.test.json new file mode 100644 index 00000000..4e90218c --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/ronnahenry/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnahenry/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/ronnahertz/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/ronnahertz/v1.test.json new file mode 100644 index 00000000..b0b0e183 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/ronnahertz/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnahertz/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/ronnajoule/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/ronnajoule/v1.test.json new file mode 100644 index 00000000..987af8a7 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/ronnajoule/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnajoule/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/ronnakatal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/ronnakatal/v1.test.json new file mode 100644 index 00000000..fadc8938 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/ronnakatal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnakatal/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/ronnalumen/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/ronnalumen/v1.test.json new file mode 100644 index 00000000..80707d82 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/ronnalumen/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnalumen/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/ronnalux/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/ronnalux/v1.test.json new file mode 100644 index 00000000..0d3ece1b --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/ronnalux/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnalux/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/ronnanewton/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/ronnanewton/v1.test.json new file mode 100644 index 00000000..d05503f1 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/ronnanewton/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnanewton/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/ronnaohm/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/ronnaohm/v1.test.json new file mode 100644 index 00000000..2612680a --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/ronnaohm/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnaohm/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/ronnapascal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/ronnapascal/v1.test.json new file mode 100644 index 00000000..145ca424 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/ronnapascal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnapascal/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/ronnaradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/ronnaradian/v1.test.json new file mode 100644 index 00000000..9060d56d --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/ronnaradian/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnaradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/ronnasiemens/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/ronnasiemens/v1.test.json new file mode 100644 index 00000000..bee5a44e --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/ronnasiemens/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnasiemens/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/ronnasievert/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/ronnasievert/v1.test.json new file mode 100644 index 00000000..cc250230 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/ronnasievert/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnasievert/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/ronnasteradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/ronnasteradian/v1.test.json new file mode 100644 index 00000000..2f8a3ac8 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/ronnasteradian/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnasteradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/ronnatesla/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/ronnatesla/v1.test.json new file mode 100644 index 00000000..0be1de7a --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/ronnatesla/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnatesla/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/ronnavolt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/ronnavolt/v1.test.json new file mode 100644 index 00000000..d17dcafb --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/ronnavolt/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnavolt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/ronnawatt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/ronnawatt/v1.test.json new file mode 100644 index 00000000..cfd9ba70 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/ronnawatt/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnawatt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/ronnaweber/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/ronnaweber/v1.test.json new file mode 100644 index 00000000..1858b4b7 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/ronnaweber/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/ronnaweber/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/rontobecquerel/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/rontobecquerel/v1.test.json new file mode 100644 index 00000000..1fc6701d --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/rontobecquerel/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontobecquerel/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/rontocoulomb/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/rontocoulomb/v1.test.json new file mode 100644 index 00000000..217472ff --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/rontocoulomb/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontocoulomb/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/rontodegree-celsius/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/rontodegree-celsius/v1.test.json new file mode 100644 index 00000000..c91776a9 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/rontodegree-celsius/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontodegree-celsius/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/rontofarad/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/rontofarad/v1.test.json new file mode 100644 index 00000000..e304dcc9 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/rontofarad/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontofarad/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/rontogray/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/rontogray/v1.test.json new file mode 100644 index 00000000..0bcbf325 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/rontogray/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontogray/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/rontohenry/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/rontohenry/v1.test.json new file mode 100644 index 00000000..ee8ae5df --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/rontohenry/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontohenry/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/rontohertz/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/rontohertz/v1.test.json new file mode 100644 index 00000000..3a99a129 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/rontohertz/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontohertz/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/rontojoule/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/rontojoule/v1.test.json new file mode 100644 index 00000000..f5d5d606 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/rontojoule/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontojoule/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/rontokatal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/rontokatal/v1.test.json new file mode 100644 index 00000000..0656f850 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/rontokatal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontokatal/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/rontolumen/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/rontolumen/v1.test.json new file mode 100644 index 00000000..fbc3d0b0 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/rontolumen/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontolumen/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/rontolux/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/rontolux/v1.test.json new file mode 100644 index 00000000..97c2355a --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/rontolux/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontolux/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/rontonewton/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/rontonewton/v1.test.json new file mode 100644 index 00000000..9c0807cf --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/rontonewton/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontonewton/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/rontoohm/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/rontoohm/v1.test.json new file mode 100644 index 00000000..f493f5b5 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/rontoohm/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontoohm/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/rontopascal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/rontopascal/v1.test.json new file mode 100644 index 00000000..65173290 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/rontopascal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontopascal/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/rontoradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/rontoradian/v1.test.json new file mode 100644 index 00000000..a6676dbb --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/rontoradian/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontoradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/rontosiemens/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/rontosiemens/v1.test.json new file mode 100644 index 00000000..4ca3e673 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/rontosiemens/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontosiemens/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/rontosievert/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/rontosievert/v1.test.json new file mode 100644 index 00000000..e4e58fb0 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/rontosievert/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontosievert/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/rontosteradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/rontosteradian/v1.test.json new file mode 100644 index 00000000..9ff2c90f --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/rontosteradian/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontosteradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/rontotesla/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/rontotesla/v1.test.json new file mode 100644 index 00000000..f12c54a7 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/rontotesla/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontotesla/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/rontovolt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/rontovolt/v1.test.json new file mode 100644 index 00000000..211631f3 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/rontovolt/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontovolt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/rontowatt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/rontowatt/v1.test.json new file mode 100644 index 00000000..e8568ddc --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/rontowatt/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontowatt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/rontoweber/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/rontoweber/v1.test.json new file mode 100644 index 00000000..a6f9d42e --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/rontoweber/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/rontoweber/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/terabecquerel/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/terabecquerel/v1.test.json new file mode 100644 index 00000000..6bd49987 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/terabecquerel/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/terabecquerel/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/teracoulomb/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/teracoulomb/v1.test.json new file mode 100644 index 00000000..73fb77d3 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/teracoulomb/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/teracoulomb/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/teradegree-celsius/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/teradegree-celsius/v1.test.json new file mode 100644 index 00000000..a4706eea --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/teradegree-celsius/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/teradegree-celsius/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative within the scaled range", + "data": -1.36575e-10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/terafarad/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/terafarad/v1.test.json new file mode 100644 index 00000000..53f0e371 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/terafarad/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/terafarad/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/teragray/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/teragray/v1.test.json new file mode 100644 index 00000000..9f3e089d --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/teragray/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/teragray/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/terahenry/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/terahenry/v1.test.json new file mode 100644 index 00000000..37b87448 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/terahenry/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/terahenry/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/terahertz/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/terahertz/v1.test.json new file mode 100644 index 00000000..cee18214 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/terahertz/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/terahertz/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/terajoule/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/terajoule/v1.test.json new file mode 100644 index 00000000..2cbf43af --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/terajoule/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/terajoule/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/terakatal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/terakatal/v1.test.json new file mode 100644 index 00000000..ed6c2bf7 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/terakatal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/terakatal/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/teralumen/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/teralumen/v1.test.json new file mode 100644 index 00000000..87aebd0c --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/teralumen/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/teralumen/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/teralux/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/teralux/v1.test.json new file mode 100644 index 00000000..2d262839 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/teralux/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/teralux/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/teranewton/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/teranewton/v1.test.json new file mode 100644 index 00000000..4f595a1b --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/teranewton/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/teranewton/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/teraohm/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/teraohm/v1.test.json new file mode 100644 index 00000000..e5a53b11 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/teraohm/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/teraohm/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/terapascal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/terapascal/v1.test.json new file mode 100644 index 00000000..6acfdf44 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/terapascal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/terapascal/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/teraradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/teraradian/v1.test.json new file mode 100644 index 00000000..0705dcf9 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/teraradian/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/teraradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/terasiemens/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/terasiemens/v1.test.json new file mode 100644 index 00000000..8bd1cb31 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/terasiemens/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/terasiemens/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/terasievert/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/terasievert/v1.test.json new file mode 100644 index 00000000..787302c4 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/terasievert/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/terasievert/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/terasteradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/terasteradian/v1.test.json new file mode 100644 index 00000000..4f69dea1 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/terasteradian/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/terasteradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/teratesla/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/teratesla/v1.test.json new file mode 100644 index 00000000..ba3fb62e --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/teratesla/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/teratesla/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/teravolt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/teravolt/v1.test.json new file mode 100644 index 00000000..2fe481f8 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/teravolt/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/teravolt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/terawatt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/terawatt/v1.test.json new file mode 100644 index 00000000..c44515fb --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/terawatt/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/terawatt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/teraweber/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/teraweber/v1.test.json new file mode 100644 index 00000000..5bba3f6e --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/teraweber/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/teraweber/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yoctobecquerel/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yoctobecquerel/v1.test.json new file mode 100644 index 00000000..38c22785 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yoctobecquerel/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctobecquerel/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yoctocoulomb/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yoctocoulomb/v1.test.json new file mode 100644 index 00000000..19ff465f --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yoctocoulomb/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctocoulomb/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yoctodegree-celsius/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yoctodegree-celsius/v1.test.json new file mode 100644 index 00000000..1316850a --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yoctodegree-celsius/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctodegree-celsius/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yoctofarad/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yoctofarad/v1.test.json new file mode 100644 index 00000000..c31f490f --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yoctofarad/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctofarad/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yoctogray/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yoctogray/v1.test.json new file mode 100644 index 00000000..aaac43fe --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yoctogray/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctogray/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yoctohenry/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yoctohenry/v1.test.json new file mode 100644 index 00000000..2d84d56b --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yoctohenry/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctohenry/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yoctohertz/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yoctohertz/v1.test.json new file mode 100644 index 00000000..f41d3a00 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yoctohertz/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctohertz/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yoctojoule/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yoctojoule/v1.test.json new file mode 100644 index 00000000..906b54d8 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yoctojoule/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctojoule/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yoctokatal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yoctokatal/v1.test.json new file mode 100644 index 00000000..e076222a --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yoctokatal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctokatal/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yoctolumen/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yoctolumen/v1.test.json new file mode 100644 index 00000000..1f8db925 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yoctolumen/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctolumen/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yoctolux/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yoctolux/v1.test.json new file mode 100644 index 00000000..1f2dbfd5 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yoctolux/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctolux/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yoctonewton/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yoctonewton/v1.test.json new file mode 100644 index 00000000..779cda4e --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yoctonewton/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctonewton/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yoctoohm/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yoctoohm/v1.test.json new file mode 100644 index 00000000..476236e7 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yoctoohm/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctoohm/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yoctopascal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yoctopascal/v1.test.json new file mode 100644 index 00000000..d9438a9b --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yoctopascal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctopascal/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yoctoradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yoctoradian/v1.test.json new file mode 100644 index 00000000..316660a5 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yoctoradian/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctoradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yoctosiemens/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yoctosiemens/v1.test.json new file mode 100644 index 00000000..46704b53 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yoctosiemens/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctosiemens/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yoctosievert/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yoctosievert/v1.test.json new file mode 100644 index 00000000..d4ecdc98 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yoctosievert/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctosievert/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yoctosteradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yoctosteradian/v1.test.json new file mode 100644 index 00000000..ee4653fe --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yoctosteradian/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctosteradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yoctotesla/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yoctotesla/v1.test.json new file mode 100644 index 00000000..5151de8d --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yoctotesla/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctotesla/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yoctovolt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yoctovolt/v1.test.json new file mode 100644 index 00000000..d54f2ac2 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yoctovolt/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctovolt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yoctowatt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yoctowatt/v1.test.json new file mode 100644 index 00000000..d6872fdc --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yoctowatt/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctowatt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yoctoweber/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yoctoweber/v1.test.json new file mode 100644 index 00000000..4d2f3abf --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yoctoweber/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yoctoweber/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yottabecquerel/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yottabecquerel/v1.test.json new file mode 100644 index 00000000..6b7951f8 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yottabecquerel/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottabecquerel/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yottacoulomb/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yottacoulomb/v1.test.json new file mode 100644 index 00000000..430e8cd8 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yottacoulomb/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottacoulomb/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yottadegree-celsius/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yottadegree-celsius/v1.test.json new file mode 100644 index 00000000..f0ce4917 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yottadegree-celsius/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottadegree-celsius/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative within the scaled range", + "data": -1.36575e-22, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yottafarad/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yottafarad/v1.test.json new file mode 100644 index 00000000..0156a48e --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yottafarad/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottafarad/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yottagray/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yottagray/v1.test.json new file mode 100644 index 00000000..557644e1 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yottagray/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottagray/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yottahenry/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yottahenry/v1.test.json new file mode 100644 index 00000000..11317342 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yottahenry/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottahenry/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yottahertz/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yottahertz/v1.test.json new file mode 100644 index 00000000..ae13a59c --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yottahertz/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottahertz/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yottajoule/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yottajoule/v1.test.json new file mode 100644 index 00000000..bdb44009 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yottajoule/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottajoule/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yottakatal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yottakatal/v1.test.json new file mode 100644 index 00000000..5896c331 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yottakatal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottakatal/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yottalumen/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yottalumen/v1.test.json new file mode 100644 index 00000000..0c2d4dfb --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yottalumen/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottalumen/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yottalux/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yottalux/v1.test.json new file mode 100644 index 00000000..719c853a --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yottalux/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottalux/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yottanewton/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yottanewton/v1.test.json new file mode 100644 index 00000000..cd207b5c --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yottanewton/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottanewton/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yottaohm/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yottaohm/v1.test.json new file mode 100644 index 00000000..9523cf97 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yottaohm/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottaohm/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yottapascal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yottapascal/v1.test.json new file mode 100644 index 00000000..7b674d6a --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yottapascal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottapascal/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yottaradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yottaradian/v1.test.json new file mode 100644 index 00000000..7a476d5b --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yottaradian/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottaradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yottasiemens/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yottasiemens/v1.test.json new file mode 100644 index 00000000..408bb084 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yottasiemens/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottasiemens/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yottasievert/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yottasievert/v1.test.json new file mode 100644 index 00000000..e737ea67 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yottasievert/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottasievert/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yottasteradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yottasteradian/v1.test.json new file mode 100644 index 00000000..e5b8b0c7 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yottasteradian/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottasteradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yottatesla/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yottatesla/v1.test.json new file mode 100644 index 00000000..12584e26 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yottatesla/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottatesla/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yottavolt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yottavolt/v1.test.json new file mode 100644 index 00000000..2d745e59 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yottavolt/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottavolt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yottawatt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yottawatt/v1.test.json new file mode 100644 index 00000000..aed03b8c --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yottawatt/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottawatt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/yottaweber/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/yottaweber/v1.test.json new file mode 100644 index 00000000..bc3c7154 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/yottaweber/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/yottaweber/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zeptobecquerel/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zeptobecquerel/v1.test.json new file mode 100644 index 00000000..4ca7fb82 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zeptobecquerel/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptobecquerel/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zeptocoulomb/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zeptocoulomb/v1.test.json new file mode 100644 index 00000000..a938b862 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zeptocoulomb/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptocoulomb/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zeptodegree-celsius/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zeptodegree-celsius/v1.test.json new file mode 100644 index 00000000..ecd5e294 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zeptodegree-celsius/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptodegree-celsius/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zeptofarad/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zeptofarad/v1.test.json new file mode 100644 index 00000000..826786b7 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zeptofarad/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptofarad/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zeptogray/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zeptogray/v1.test.json new file mode 100644 index 00000000..0c625f06 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zeptogray/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptogray/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zeptohenry/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zeptohenry/v1.test.json new file mode 100644 index 00000000..51cbfeb8 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zeptohenry/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptohenry/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zeptohertz/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zeptohertz/v1.test.json new file mode 100644 index 00000000..c21c950e --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zeptohertz/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptohertz/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zeptojoule/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zeptojoule/v1.test.json new file mode 100644 index 00000000..dc2db425 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zeptojoule/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptojoule/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zeptokatal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zeptokatal/v1.test.json new file mode 100644 index 00000000..d873de80 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zeptokatal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptokatal/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zeptolumen/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zeptolumen/v1.test.json new file mode 100644 index 00000000..8823e6ad --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zeptolumen/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptolumen/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zeptolux/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zeptolux/v1.test.json new file mode 100644 index 00000000..b47e7d65 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zeptolux/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptolux/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zeptonewton/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zeptonewton/v1.test.json new file mode 100644 index 00000000..c0f4f5c1 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zeptonewton/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptonewton/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zeptoohm/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zeptoohm/v1.test.json new file mode 100644 index 00000000..e8c784ac --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zeptoohm/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptoohm/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zeptopascal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zeptopascal/v1.test.json new file mode 100644 index 00000000..317922c3 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zeptopascal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptopascal/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zeptoradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zeptoradian/v1.test.json new file mode 100644 index 00000000..87f29287 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zeptoradian/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptoradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zeptosiemens/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zeptosiemens/v1.test.json new file mode 100644 index 00000000..b0367eef --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zeptosiemens/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptosiemens/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zeptosievert/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zeptosievert/v1.test.json new file mode 100644 index 00000000..c501e79e --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zeptosievert/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptosievert/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zeptosteradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zeptosteradian/v1.test.json new file mode 100644 index 00000000..5cf1bb44 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zeptosteradian/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptosteradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zeptotesla/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zeptotesla/v1.test.json new file mode 100644 index 00000000..d95953d0 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zeptotesla/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptotesla/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zeptovolt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zeptovolt/v1.test.json new file mode 100644 index 00000000..ba8479e8 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zeptovolt/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptovolt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zeptowatt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zeptowatt/v1.test.json new file mode 100644 index 00000000..47958581 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zeptowatt/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptowatt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zeptoweber/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zeptoweber/v1.test.json new file mode 100644 index 00000000..2f3b8cd5 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zeptoweber/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zeptoweber/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zettabecquerel/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zettabecquerel/v1.test.json new file mode 100644 index 00000000..e9913089 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zettabecquerel/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettabecquerel/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zettacoulomb/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zettacoulomb/v1.test.json new file mode 100644 index 00000000..97042702 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zettacoulomb/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettacoulomb/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zettadegree-celsius/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zettadegree-celsius/v1.test.json new file mode 100644 index 00000000..d54f71be --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zettadegree-celsius/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettadegree-celsius/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative within the scaled range", + "data": -1.36575e-19, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zettafarad/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zettafarad/v1.test.json new file mode 100644 index 00000000..a49479a7 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zettafarad/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettafarad/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zettagray/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zettagray/v1.test.json new file mode 100644 index 00000000..fe99bf00 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zettagray/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettagray/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zettahenry/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zettahenry/v1.test.json new file mode 100644 index 00000000..8151f701 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zettahenry/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettahenry/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zettahertz/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zettahertz/v1.test.json new file mode 100644 index 00000000..1670b836 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zettahertz/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettahertz/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zettajoule/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zettajoule/v1.test.json new file mode 100644 index 00000000..0a58572b --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zettajoule/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettajoule/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zettakatal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zettakatal/v1.test.json new file mode 100644 index 00000000..384fec31 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zettakatal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettakatal/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zettalumen/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zettalumen/v1.test.json new file mode 100644 index 00000000..6fe6c057 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zettalumen/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettalumen/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zettalux/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zettalux/v1.test.json new file mode 100644 index 00000000..55de5faf --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zettalux/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettalux/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zettanewton/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zettanewton/v1.test.json new file mode 100644 index 00000000..591ff519 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zettanewton/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettanewton/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zettaohm/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zettaohm/v1.test.json new file mode 100644 index 00000000..79440d6c --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zettaohm/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettaohm/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zettapascal/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zettapascal/v1.test.json new file mode 100644 index 00000000..913644f8 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zettapascal/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettapascal/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zettaradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zettaradian/v1.test.json new file mode 100644 index 00000000..5cffbe31 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zettaradian/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettaradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zettasiemens/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zettasiemens/v1.test.json new file mode 100644 index 00000000..f5315723 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zettasiemens/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettasiemens/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - unit value", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - thousand", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zettasievert/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zettasievert/v1.test.json new file mode 100644 index 00000000..5359abef --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zettasievert/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettasievert/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zettasteradian/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zettasteradian/v1.test.json new file mode 100644 index 00000000..31d4d2b0 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zettasteradian/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettasteradian/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zettatesla/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zettatesla/v1.test.json new file mode 100644 index 00000000..50480616 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zettatesla/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettatesla/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zettavolt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zettavolt/v1.test.json new file mode 100644 index 00000000..0584c898 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zettavolt/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettavolt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zettawatt/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zettawatt/v1.test.json new file mode 100644 index 00000000..2cb28066 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zettawatt/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettawatt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - large value", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/prefixed/zettaweber/v1.test.json b/test/schemas/bipm/si/2019/derived/prefixed/zettaweber/v1.test.json new file mode 100644 index 00000000..aed50826 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/prefixed/zettaweber/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/prefixed/zettaweber/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive", + "data": 1, + "valid": true + }, + { + "description": "Valid - hundred", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative", + "data": -50, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/quantity/absorbed-dose/v1.test.json b/test/schemas/bipm/si/2019/derived/quantity/absorbed-dose/v1.test.json new file mode 100644 index 00000000..e9cfdc08 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/quantity/absorbed-dose/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/quantity/absorbed-dose/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/quantity/activity-referred-to-radionuclide/v1.test.json b/test/schemas/bipm/si/2019/derived/quantity/activity-referred-to-radionuclide/v1.test.json new file mode 100644 index 00000000..58561149 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/quantity/activity-referred-to-radionuclide/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/quantity/activity-referred-to-radionuclide/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/quantity/amount-of-heat/v1.test.json b/test/schemas/bipm/si/2019/derived/quantity/amount-of-heat/v1.test.json new file mode 100644 index 00000000..f3e6a596 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/quantity/amount-of-heat/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/quantity/amount-of-heat/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/quantity/capacitance/v1.test.json b/test/schemas/bipm/si/2019/derived/quantity/capacitance/v1.test.json new file mode 100644 index 00000000..48535d56 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/quantity/capacitance/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/quantity/capacitance/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/quantity/catalytic-activity/v1.test.json b/test/schemas/bipm/si/2019/derived/quantity/catalytic-activity/v1.test.json new file mode 100644 index 00000000..5b81980f --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/quantity/catalytic-activity/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/quantity/catalytic-activity/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/quantity/celsius-temperature/v1.test.json b/test/schemas/bipm/si/2019/derived/quantity/celsius-temperature/v1.test.json new file mode 100644 index 00000000..49fb3e63 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/quantity/celsius-temperature/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/quantity/celsius-temperature/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/quantity/dose-equivalent/v1.test.json b/test/schemas/bipm/si/2019/derived/quantity/dose-equivalent/v1.test.json new file mode 100644 index 00000000..6f1d49fd --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/quantity/dose-equivalent/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/quantity/dose-equivalent/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/quantity/electric-charge/v1.test.json b/test/schemas/bipm/si/2019/derived/quantity/electric-charge/v1.test.json new file mode 100644 index 00000000..5b3cc2bf --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/quantity/electric-charge/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/quantity/electric-charge/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/quantity/electric-conductance/v1.test.json b/test/schemas/bipm/si/2019/derived/quantity/electric-conductance/v1.test.json new file mode 100644 index 00000000..ffc8fd9a --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/quantity/electric-conductance/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/quantity/electric-conductance/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/quantity/electric-potential-difference/v1.test.json b/test/schemas/bipm/si/2019/derived/quantity/electric-potential-difference/v1.test.json new file mode 100644 index 00000000..66dbc86b --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/quantity/electric-potential-difference/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/quantity/electric-potential-difference/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/quantity/electric-resistance/v1.test.json b/test/schemas/bipm/si/2019/derived/quantity/electric-resistance/v1.test.json new file mode 100644 index 00000000..d63e2371 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/quantity/electric-resistance/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/quantity/electric-resistance/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/quantity/energy/v1.test.json b/test/schemas/bipm/si/2019/derived/quantity/energy/v1.test.json new file mode 100644 index 00000000..c13a8dd0 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/quantity/energy/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/quantity/energy/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/quantity/force/v1.test.json b/test/schemas/bipm/si/2019/derived/quantity/force/v1.test.json new file mode 100644 index 00000000..66901b00 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/quantity/force/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/quantity/force/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/quantity/frequency/v1.test.json b/test/schemas/bipm/si/2019/derived/quantity/frequency/v1.test.json new file mode 100644 index 00000000..cf0d3676 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/quantity/frequency/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/quantity/frequency/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/quantity/illuminance/v1.test.json b/test/schemas/bipm/si/2019/derived/quantity/illuminance/v1.test.json new file mode 100644 index 00000000..d42d35fd --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/quantity/illuminance/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/quantity/illuminance/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/quantity/inductance/v1.test.json b/test/schemas/bipm/si/2019/derived/quantity/inductance/v1.test.json new file mode 100644 index 00000000..82e4b1fd --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/quantity/inductance/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/quantity/inductance/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/quantity/kerma/v1.test.json b/test/schemas/bipm/si/2019/derived/quantity/kerma/v1.test.json new file mode 100644 index 00000000..452fe0f6 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/quantity/kerma/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/quantity/kerma/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/quantity/luminous-flux/v1.test.json b/test/schemas/bipm/si/2019/derived/quantity/luminous-flux/v1.test.json new file mode 100644 index 00000000..aded0a04 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/quantity/luminous-flux/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/quantity/luminous-flux/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/quantity/magnetic-flux-density/v1.test.json b/test/schemas/bipm/si/2019/derived/quantity/magnetic-flux-density/v1.test.json new file mode 100644 index 00000000..223ea4d2 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/quantity/magnetic-flux-density/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/quantity/magnetic-flux-density/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/quantity/magnetic-flux/v1.test.json b/test/schemas/bipm/si/2019/derived/quantity/magnetic-flux/v1.test.json new file mode 100644 index 00000000..5b91567c --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/quantity/magnetic-flux/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/quantity/magnetic-flux/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/quantity/plane-angle/v1.test.json b/test/schemas/bipm/si/2019/derived/quantity/plane-angle/v1.test.json new file mode 100644 index 00000000..764d2f6f --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/quantity/plane-angle/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/quantity/plane-angle/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/quantity/power/v1.test.json b/test/schemas/bipm/si/2019/derived/quantity/power/v1.test.json new file mode 100644 index 00000000..9060e6f8 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/quantity/power/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/quantity/power/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/quantity/pressure/v1.test.json b/test/schemas/bipm/si/2019/derived/quantity/pressure/v1.test.json new file mode 100644 index 00000000..83a29695 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/quantity/pressure/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/quantity/pressure/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/quantity/radiant-flux/v1.test.json b/test/schemas/bipm/si/2019/derived/quantity/radiant-flux/v1.test.json new file mode 100644 index 00000000..501dd581 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/quantity/radiant-flux/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/quantity/radiant-flux/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/quantity/solid-angle/v1.test.json b/test/schemas/bipm/si/2019/derived/quantity/solid-angle/v1.test.json new file mode 100644 index 00000000..3358c90e --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/quantity/solid-angle/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/quantity/solid-angle/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/quantity/stress/v1.test.json b/test/schemas/bipm/si/2019/derived/quantity/stress/v1.test.json new file mode 100644 index 00000000..869e160a --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/quantity/stress/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/quantity/stress/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/quantity/work/v1.test.json b/test/schemas/bipm/si/2019/derived/quantity/work/v1.test.json new file mode 100644 index 00000000..ea0fb470 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/quantity/work/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/quantity/work/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/symbol/v1.test.json b/test/schemas/bipm/si/2019/derived/symbol/v1.test.json new file mode 100644 index 00000000..70a5fb79 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/symbol/v1.test.json @@ -0,0 +1,165 @@ +{ + "target": "../../../../../../../schemas/bipm/si/2019/derived/symbol/v1.json", + "tests": [ + { + "description": "Valid - hertz", + "data": "Hz", + "valid": true + }, + { + "description": "Valid - newton", + "data": "N", + "valid": true + }, + { + "description": "Valid - pascal", + "data": "Pa", + "valid": true + }, + { + "description": "Valid - joule", + "data": "J", + "valid": true + }, + { + "description": "Valid - watt", + "data": "W", + "valid": true + }, + { + "description": "Valid - ohm", + "data": "Ω", + "valid": true + }, + { + "description": "Valid - degree Celsius", + "data": "°C", + "valid": true + }, + { + "description": "Valid - katal", + "data": "kat", + "valid": true + }, + { + "description": "Valid - millihertz", + "data": "mHz", + "valid": true + }, + { + "description": "Valid - kilonewton", + "data": "kN", + "valid": true + }, + { + "description": "Valid - megapascal", + "data": "MPa", + "valid": true + }, + { + "description": "Valid - kilojoule", + "data": "kJ", + "valid": true + }, + { + "description": "Valid - milliwatt", + "data": "mW", + "valid": true + }, + { + "description": "Valid - microvolt", + "data": "µV", + "valid": true + }, + { + "description": "Valid - picofarad", + "data": "pF", + "valid": true + }, + { + "description": "Valid - microohm", + "data": "µΩ", + "valid": true + }, + { + "description": "Valid - nanotesla", + "data": "nT", + "valid": true + }, + { + "description": "Valid - microhenry", + "data": "µH", + "valid": true + }, + { + "description": "Valid - microdegree celsius", + "data": "µ°C", + "valid": true + }, + { + "description": "Valid - gigabecquerel", + "data": "GBq", + "valid": true + }, + { + "description": "Valid - milligray", + "data": "mGy", + "valid": true + }, + { + "description": "Valid - millisievert", + "data": "mSv", + "valid": true + }, + { + "description": "Valid - nanokatal", + "data": "nkat", + "valid": true + }, + { + "description": "Valid - quettahertz", + "data": "QHz", + "valid": true + }, + { + "description": "Valid - quectojoule", + "data": "qJ", + "valid": true + }, + { + "description": "Invalid - base unit symbol", + "data": "m", + "valid": false + }, + { + "description": "Invalid - unknown symbol", + "data": "XYZ", + "valid": false + }, + { + "description": "Invalid type - number", + "data": 1, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/unit/becquerel/v1.test.json b/test/schemas/bipm/si/2019/derived/unit/becquerel/v1.test.json new file mode 100644 index 00000000..9b54f5d6 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/unit/becquerel/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/unit/becquerel/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/unit/coulomb/v1.test.json b/test/schemas/bipm/si/2019/derived/unit/coulomb/v1.test.json new file mode 100644 index 00000000..35d59006 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/unit/coulomb/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/unit/coulomb/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/unit/degree-celsius/v1.test.json b/test/schemas/bipm/si/2019/derived/unit/degree-celsius/v1.test.json new file mode 100644 index 00000000..cf9fd5f4 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/unit/degree-celsius/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/unit/degree-celsius/v1.json", + "tests": [ + { + "description": "Valid - absolute zero in Celsius", + "data": -273.15, + "valid": true + }, + { + "description": "Valid - water freezing point", + "data": 0, + "valid": true + }, + { + "description": "Valid - room temperature", + "data": 20, + "valid": true + }, + { + "description": "Valid - water boiling point", + "data": 100, + "valid": true + }, + { + "description": "Valid - high temperature", + "data": 500, + "valid": true + }, + { + "description": "Invalid - below absolute zero", + "data": -274, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "20", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/unit/farad/v1.test.json b/test/schemas/bipm/si/2019/derived/unit/farad/v1.test.json new file mode 100644 index 00000000..0b534585 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/unit/farad/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/unit/farad/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/unit/gray/v1.test.json b/test/schemas/bipm/si/2019/derived/unit/gray/v1.test.json new file mode 100644 index 00000000..e4d89c4b --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/unit/gray/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/unit/gray/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/unit/henry/v1.test.json b/test/schemas/bipm/si/2019/derived/unit/henry/v1.test.json new file mode 100644 index 00000000..1b00c347 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/unit/henry/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/unit/henry/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/unit/hertz/v1.test.json b/test/schemas/bipm/si/2019/derived/unit/hertz/v1.test.json new file mode 100644 index 00000000..b5236b69 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/unit/hertz/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/unit/hertz/v1.json", + "tests": [ + { + "description": "Valid - small positive", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - power line frequency", + "data": 50, + "valid": true + }, + { + "description": "Valid - typical frequency", + "data": 1000, + "valid": true + }, + { + "description": "Valid - radio frequency", + "data": 2400000000, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -50, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "50", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/unit/joule/v1.test.json b/test/schemas/bipm/si/2019/derived/unit/joule/v1.test.json new file mode 100644 index 00000000..d912bf40 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/unit/joule/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/unit/joule/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/unit/katal/v1.test.json b/test/schemas/bipm/si/2019/derived/unit/katal/v1.test.json new file mode 100644 index 00000000..c85f8ff4 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/unit/katal/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/unit/katal/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/unit/lumen/v1.test.json b/test/schemas/bipm/si/2019/derived/unit/lumen/v1.test.json new file mode 100644 index 00000000..972264a0 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/unit/lumen/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/unit/lumen/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/unit/lux/v1.test.json b/test/schemas/bipm/si/2019/derived/unit/lux/v1.test.json new file mode 100644 index 00000000..3758ed90 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/unit/lux/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/unit/lux/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/unit/newton/v1.test.json b/test/schemas/bipm/si/2019/derived/unit/newton/v1.test.json new file mode 100644 index 00000000..2a69e72a --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/unit/newton/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/unit/newton/v1.json", + "tests": [ + { + "description": "Valid - zero force", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive force", + "data": 9.8, + "valid": true + }, + { + "description": "Valid - negative force", + "data": -50, + "valid": true + }, + { + "description": "Valid - large force", + "data": 10000, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 1.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/unit/ohm/v1.test.json b/test/schemas/bipm/si/2019/derived/unit/ohm/v1.test.json new file mode 100644 index 00000000..8c94f46f --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/unit/ohm/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/unit/ohm/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/unit/pascal/v1.test.json b/test/schemas/bipm/si/2019/derived/unit/pascal/v1.test.json new file mode 100644 index 00000000..a164ec4e --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/unit/pascal/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/unit/pascal/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/unit/radian/v1.test.json b/test/schemas/bipm/si/2019/derived/unit/radian/v1.test.json new file mode 100644 index 00000000..db4830ca --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/unit/radian/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/unit/radian/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/unit/siemens/v1.test.json b/test/schemas/bipm/si/2019/derived/unit/siemens/v1.test.json new file mode 100644 index 00000000..908341a6 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/unit/siemens/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/unit/siemens/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/unit/sievert/v1.test.json b/test/schemas/bipm/si/2019/derived/unit/sievert/v1.test.json new file mode 100644 index 00000000..c2e38316 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/unit/sievert/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/unit/sievert/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/unit/steradian/v1.test.json b/test/schemas/bipm/si/2019/derived/unit/steradian/v1.test.json new file mode 100644 index 00000000..64e492bf --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/unit/steradian/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/unit/steradian/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/unit/tesla/v1.test.json b/test/schemas/bipm/si/2019/derived/unit/tesla/v1.test.json new file mode 100644 index 00000000..ee3dde0b --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/unit/tesla/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/unit/tesla/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/unit/volt/v1.test.json b/test/schemas/bipm/si/2019/derived/unit/volt/v1.test.json new file mode 100644 index 00000000..b1989e24 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/unit/volt/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/unit/volt/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/unit/watt/v1.test.json b/test/schemas/bipm/si/2019/derived/unit/watt/v1.test.json new file mode 100644 index 00000000..b31c7449 --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/unit/watt/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/unit/watt/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/derived/unit/weber/v1.test.json b/test/schemas/bipm/si/2019/derived/unit/weber/v1.test.json new file mode 100644 index 00000000..5b7bfd6b --- /dev/null +++ b/test/schemas/bipm/si/2019/derived/unit/weber/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/derived/unit/weber/v1.json", + "tests": [ + { + "description": "Valid - positive number", + "data": 10, + "valid": true + }, + { + "description": "Valid - decimal", + "data": 5.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "10", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/non-si/unit/arcminute/v1.test.json b/test/schemas/bipm/si/2019/non-si/unit/arcminute/v1.test.json new file mode 100644 index 00000000..c0e1ec2d --- /dev/null +++ b/test/schemas/bipm/si/2019/non-si/unit/arcminute/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/non-si/unit/arcminute/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - one arcminute", + "data": 1, + "valid": true + }, + { + "description": "Valid - one degree in arcminutes", + "data": 60, + "valid": true + }, + { + "description": "Valid - negative", + "data": -30, + "valid": true + }, + { + "description": "Valid - fractional", + "data": 15.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "30", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/non-si/unit/arcsecond/v1.test.json b/test/schemas/bipm/si/2019/non-si/unit/arcsecond/v1.test.json new file mode 100644 index 00000000..1f074c85 --- /dev/null +++ b/test/schemas/bipm/si/2019/non-si/unit/arcsecond/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/non-si/unit/arcsecond/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - one arcsecond", + "data": 1, + "valid": true + }, + { + "description": "Valid - one arcminute in arcseconds", + "data": 60, + "valid": true + }, + { + "description": "Valid - negative", + "data": -30, + "valid": true + }, + { + "description": "Valid - fractional", + "data": 15.5, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "30", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/non-si/unit/astronomical-unit/v1.test.json b/test/schemas/bipm/si/2019/non-si/unit/astronomical-unit/v1.test.json new file mode 100644 index 00000000..62898fca --- /dev/null +++ b/test/schemas/bipm/si/2019/non-si/unit/astronomical-unit/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/non-si/unit/astronomical-unit/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - Earth-Sun distance", + "data": 1, + "valid": true + }, + { + "description": "Valid - Mercury distance", + "data": 0.387, + "valid": true + }, + { + "description": "Valid - Mars distance", + "data": 1.524, + "valid": true + }, + { + "description": "Valid - Pluto distance", + "data": 39.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -1, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "1", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/non-si/unit/dalton/v1.test.json b/test/schemas/bipm/si/2019/non-si/unit/dalton/v1.test.json new file mode 100644 index 00000000..64f61270 --- /dev/null +++ b/test/schemas/bipm/si/2019/non-si/unit/dalton/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/non-si/unit/dalton/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - hydrogen atomic mass", + "data": 1, + "valid": true + }, + { + "description": "Valid - carbon atomic mass", + "data": 12, + "valid": true + }, + { + "description": "Valid - water molecular mass", + "data": 18, + "valid": true + }, + { + "description": "Valid - glucose molecular mass", + "data": 180.16, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -1, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "12", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/non-si/unit/day/v1.test.json b/test/schemas/bipm/si/2019/non-si/unit/day/v1.test.json new file mode 100644 index 00000000..8fdbe6b1 --- /dev/null +++ b/test/schemas/bipm/si/2019/non-si/unit/day/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/non-si/unit/day/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - one day", + "data": 1, + "valid": true + }, + { + "description": "Valid - one week in days", + "data": 7, + "valid": true + }, + { + "description": "Valid - one year in days", + "data": 365, + "valid": true + }, + { + "description": "Valid - fractional", + "data": 0.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -1, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "7", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/non-si/unit/degree/v1.test.json b/test/schemas/bipm/si/2019/non-si/unit/degree/v1.test.json new file mode 100644 index 00000000..0465e968 --- /dev/null +++ b/test/schemas/bipm/si/2019/non-si/unit/degree/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/non-si/unit/degree/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - right angle", + "data": 90, + "valid": true + }, + { + "description": "Valid - straight angle", + "data": 180, + "valid": true + }, + { + "description": "Valid - full rotation", + "data": 360, + "valid": true + }, + { + "description": "Valid - negative angle", + "data": -90, + "valid": true + }, + { + "description": "Valid - decimal degrees", + "data": 37.7749, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "90", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/non-si/unit/electronvolt/v1.test.json b/test/schemas/bipm/si/2019/non-si/unit/electronvolt/v1.test.json new file mode 100644 index 00000000..9ef5a26d --- /dev/null +++ b/test/schemas/bipm/si/2019/non-si/unit/electronvolt/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/non-si/unit/electronvolt/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - one electronvolt", + "data": 1, + "valid": true + }, + { + "description": "Valid - hydrogen ionization energy", + "data": 13.6, + "valid": true + }, + { + "description": "Valid - electron rest mass energy", + "data": 511000, + "valid": true + }, + { + "description": "Valid - GeV scale", + "data": 1e+9, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -1, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "1", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/non-si/unit/hectare/v1.test.json b/test/schemas/bipm/si/2019/non-si/unit/hectare/v1.test.json new file mode 100644 index 00000000..4f9612fc --- /dev/null +++ b/test/schemas/bipm/si/2019/non-si/unit/hectare/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/non-si/unit/hectare/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - one hectare", + "data": 1, + "valid": true + }, + { + "description": "Valid - fractional", + "data": 0.5, + "valid": true + }, + { + "description": "Valid - large area", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -1, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "1", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/non-si/unit/hour/v1.test.json b/test/schemas/bipm/si/2019/non-si/unit/hour/v1.test.json new file mode 100644 index 00000000..2af68f28 --- /dev/null +++ b/test/schemas/bipm/si/2019/non-si/unit/hour/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/non-si/unit/hour/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - one hour", + "data": 1, + "valid": true + }, + { + "description": "Valid - one day in hours", + "data": 24, + "valid": true + }, + { + "description": "Valid - fractional", + "data": 1.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -5, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "24", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/non-si/unit/litre/v1.test.json b/test/schemas/bipm/si/2019/non-si/unit/litre/v1.test.json new file mode 100644 index 00000000..8a1bc3f8 --- /dev/null +++ b/test/schemas/bipm/si/2019/non-si/unit/litre/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/non-si/unit/litre/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - one litre", + "data": 1, + "valid": true + }, + { + "description": "Valid - half litre", + "data": 0.5, + "valid": true + }, + { + "description": "Valid - large volume", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -1, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "1", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/non-si/unit/minute/v1.test.json b/test/schemas/bipm/si/2019/non-si/unit/minute/v1.test.json new file mode 100644 index 00000000..a9410b55 --- /dev/null +++ b/test/schemas/bipm/si/2019/non-si/unit/minute/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/non-si/unit/minute/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - one minute", + "data": 1, + "valid": true + }, + { + "description": "Valid - one hour in minutes", + "data": 60, + "valid": true + }, + { + "description": "Valid - fractional", + "data": 1.5, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -5, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "60", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/non-si/unit/tonne/v1.test.json b/test/schemas/bipm/si/2019/non-si/unit/tonne/v1.test.json new file mode 100644 index 00000000..42e235cb --- /dev/null +++ b/test/schemas/bipm/si/2019/non-si/unit/tonne/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../../schemas/bipm/si/2019/non-si/unit/tonne/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - one tonne", + "data": 1, + "valid": true + }, + { + "description": "Valid - fractional", + "data": 0.5, + "valid": true + }, + { + "description": "Valid - large mass", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - negative", + "data": -1, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "1", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/bipm/si/2019/symbol/v1.test.json b/test/schemas/bipm/si/2019/symbol/v1.test.json new file mode 100644 index 00000000..1345e03d --- /dev/null +++ b/test/schemas/bipm/si/2019/symbol/v1.test.json @@ -0,0 +1,70 @@ +{ + "target": "../../../../../../schemas/bipm/si/2019/symbol/v1.json", + "tests": [ + { + "description": "Valid - base unit second", + "data": "s", + "valid": true + }, + { + "description": "Valid - base unit metre", + "data": "m", + "valid": true + }, + { + "description": "Valid - base unit kilogram", + "data": "kg", + "valid": true + }, + { + "description": "Valid - derived unit hertz", + "data": "Hz", + "valid": true + }, + { + "description": "Valid - derived unit newton", + "data": "N", + "valid": true + }, + { + "description": "Valid - derived unit ohm", + "data": "Ω", + "valid": true + }, + { + "description": "Valid - derived unit degree Celsius", + "data": "°C", + "valid": true + }, + { + "description": "Invalid - unknown symbol", + "data": "foo", + "valid": false + }, + { + "description": "Invalid type - number", + "data": 100, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/ieee/floating-point/2019/binary16-special/v1.test.json b/test/schemas/ieee/floating-point/2019/binary16-special/v1.test.json new file mode 100644 index 00000000..765781e1 --- /dev/null +++ b/test/schemas/ieee/floating-point/2019/binary16-special/v1.test.json @@ -0,0 +1,100 @@ +{ + "target": "../../../../../../schemas/ieee/floating-point/2019/binary16-special/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0.0, + "valid": true + }, + { + "description": "Valid - positive value", + "data": 1.0, + "valid": true + }, + { + "description": "Valid - negative value", + "data": -1.0, + "valid": true + }, + { + "description": "Valid - maximum value", + "data": 65504.0, + "valid": true + }, + { + "description": "Valid - minimum value", + "data": -65504.0, + "valid": true + }, + { + "description": "Valid - NaN", + "data": "NaN", + "valid": true + }, + { + "description": "Valid - qNaN", + "data": "qNaN", + "valid": true + }, + { + "description": "Valid - sNaN", + "data": "sNaN", + "valid": true + }, + { + "description": "Valid - +Inf", + "data": "+Inf", + "valid": true + }, + { + "description": "Valid - -Inf", + "data": "-Inf", + "valid": true + }, + { + "description": "Invalid - above maximum", + "data": 70000.0, + "valid": false + }, + { + "description": "Invalid - below minimum", + "data": -70000.0, + "valid": false + }, + { + "description": "Invalid - lowercase nan", + "data": "nan", + "valid": false + }, + { + "description": "Invalid - C23 style NAN", + "data": "NAN", + "valid": false + }, + { + "description": "Invalid - C23 style INFINITY", + "data": "INFINITY", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/ieee/floating-point/2019/binary16/v1.test.json b/test/schemas/ieee/floating-point/2019/binary16/v1.test.json new file mode 100644 index 00000000..056d56bd --- /dev/null +++ b/test/schemas/ieee/floating-point/2019/binary16/v1.test.json @@ -0,0 +1,80 @@ +{ + "target": "../../../../../../schemas/ieee/floating-point/2019/binary16/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0.0, + "valid": true + }, + { + "description": "Valid - positive value", + "data": 1.0, + "valid": true + }, + { + "description": "Valid - negative value", + "data": -1.0, + "valid": true + }, + { + "description": "Valid - pi approximation", + "data": 3.14, + "valid": true + }, + { + "description": "Valid - maximum value", + "data": 65504.0, + "valid": true + }, + { + "description": "Valid - minimum value", + "data": -65504.0, + "valid": true + }, + { + "description": "Valid - small positive value", + "data": 6.10352e-5, + "valid": true + }, + { + "description": "Valid - small negative value", + "data": -6.10352e-5, + "valid": true + }, + { + "description": "Invalid - above maximum", + "data": 70000.0, + "valid": false + }, + { + "description": "Invalid - below minimum", + "data": -70000.0, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "1.0", + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/ieee/floating-point/2019/binary32-special/v1.test.json b/test/schemas/ieee/floating-point/2019/binary32-special/v1.test.json new file mode 100644 index 00000000..8816de6c --- /dev/null +++ b/test/schemas/ieee/floating-point/2019/binary32-special/v1.test.json @@ -0,0 +1,105 @@ +{ + "target": "../../../../../../schemas/ieee/floating-point/2019/binary32-special/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0.0, + "valid": true + }, + { + "description": "Valid - positive value", + "data": 1.5, + "valid": true + }, + { + "description": "Valid - negative value", + "data": -3.14, + "valid": true + }, + { + "description": "Valid - maximum value", + "data": 3.402823466385288598117041834845169254400e+38, + "valid": true + }, + { + "description": "Valid - minimum value", + "data": -3.402823466385288598117041834845169254400e+38, + "valid": true + }, + { + "description": "Valid - NaN", + "data": "NaN", + "valid": true + }, + { + "description": "Valid - qNaN", + "data": "qNaN", + "valid": true + }, + { + "description": "Valid - sNaN", + "data": "sNaN", + "valid": true + }, + { + "description": "Valid - +Inf", + "data": "+Inf", + "valid": true + }, + { + "description": "Valid - -Inf", + "data": "-Inf", + "valid": true + }, + { + "description": "Invalid - above maximum", + "data": 3.500000000000000015655673478354095308800e+38, + "valid": false + }, + { + "description": "Invalid - below minimum", + "data": -3.500000000000000015655673478354095308800e+38, + "valid": false + }, + { + "description": "Invalid - lowercase nan", + "data": "nan", + "valid": false + }, + { + "description": "Invalid - C23 style NAN", + "data": "NAN", + "valid": false + }, + { + "description": "Invalid - C23 style INFINITY", + "data": "INFINITY", + "valid": false + }, + { + "description": "Invalid - JavaScript style Infinity", + "data": "Infinity", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/ieee/floating-point/2019/binary32/v1.test.json b/test/schemas/ieee/floating-point/2019/binary32/v1.test.json new file mode 100644 index 00000000..38fd3162 --- /dev/null +++ b/test/schemas/ieee/floating-point/2019/binary32/v1.test.json @@ -0,0 +1,75 @@ +{ + "target": "../../../../../../schemas/ieee/floating-point/2019/binary32/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0.0, + "valid": true + }, + { + "description": "Valid - positive value", + "data": 1.5, + "valid": true + }, + { + "description": "Valid - negative value", + "data": -3.14, + "valid": true + }, + { + "description": "Valid - maximum value", + "data": 3.402823466385288598117041834845169254400e+38, + "valid": true + }, + { + "description": "Valid - minimum value", + "data": -3.402823466385288598117041834845169254400e+38, + "valid": true + }, + { + "description": "Valid - small positive", + "data": 1.4013e-45, + "valid": true + }, + { + "description": "Valid - integer", + "data": 42, + "valid": true + }, + { + "description": "Invalid - above maximum", + "data": 3.500000000000000015655673478354095308800e+38, + "valid": false + }, + { + "description": "Invalid - below minimum", + "data": -3.500000000000000015655673478354095308800e+38, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "1.5", + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/ieee/floating-point/2019/binary64-special/v1.test.json b/test/schemas/ieee/floating-point/2019/binary64-special/v1.test.json new file mode 100644 index 00000000..dbb06d6f --- /dev/null +++ b/test/schemas/ieee/floating-point/2019/binary64-special/v1.test.json @@ -0,0 +1,95 @@ +{ + "target": "../../../../../../schemas/ieee/floating-point/2019/binary64-special/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0.0, + "valid": true + }, + { + "description": "Valid - positive value", + "data": 1.5, + "valid": true + }, + { + "description": "Valid - negative value", + "data": -3.14159, + "valid": true + }, + { + "description": "Valid - maximum value", + "data": 1.797693134862315708145274237317043567980705675258449965989174768031572607800285387605895586327668781715404589535143824642343213268894641827684675467035375169860499105765512820762454900903893289440758685084551339423045832369032229481658085593321233482747978262041447231687381771809192998812504040261841248583680e+308, + "valid": true + }, + { + "description": "Valid - minimum value", + "data": -1.797693134862315708145274237317043567980705675258449965989174768031572607800285387605895586327668781715404589535143824642343213268894641827684675467035375169860499105765512820762454900903893289440758685084551339423045832369032229481658085593321233482747978262041447231687381771809192998812504040261841248583680e+308, + "valid": true + }, + { + "description": "Valid - NaN", + "data": "NaN", + "valid": true + }, + { + "description": "Valid - qNaN", + "data": "qNaN", + "valid": true + }, + { + "description": "Valid - sNaN", + "data": "sNaN", + "valid": true + }, + { + "description": "Valid - +Inf", + "data": "+Inf", + "valid": true + }, + { + "description": "Valid - -Inf", + "data": "-Inf", + "valid": true + }, + { + "description": "Invalid - lowercase nan", + "data": "nan", + "valid": false + }, + { + "description": "Invalid - C23 style NAN", + "data": "NAN", + "valid": false + }, + { + "description": "Invalid - C23 style INFINITY", + "data": "INFINITY", + "valid": false + }, + { + "description": "Invalid - JavaScript style Infinity", + "data": "Infinity", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/ieee/floating-point/2019/binary64/v1.test.json b/test/schemas/ieee/floating-point/2019/binary64/v1.test.json new file mode 100644 index 00000000..44dc665e --- /dev/null +++ b/test/schemas/ieee/floating-point/2019/binary64/v1.test.json @@ -0,0 +1,80 @@ +{ + "target": "../../../../../../schemas/ieee/floating-point/2019/binary64/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0.0, + "valid": true + }, + { + "description": "Valid - positive value", + "data": 1.5, + "valid": true + }, + { + "description": "Valid - negative value", + "data": -3.14159, + "valid": true + }, + { + "description": "Valid - scientific notation", + "data": 299800000.0, + "valid": true + }, + { + "description": "Valid - maximum value", + "data": 1.797693134862315708145274237317043567980705675258449965989174768031572607800285387605895586327668781715404589535143824642343213268894641827684675467035375169860499105765512820762454900903893289440758685084551339423045832369032229481658085593321233482747978262041447231687381771809192998812504040261841248583680e+308, + "valid": true + }, + { + "description": "Valid - minimum value", + "data": -1.797693134862315708145274237317043567980705675258449965989174768031572607800285387605895586327668781715404589535143824642343213268894641827684675467035375169860499105765512820762454900903893289440758685084551339423045832369032229481658085593321233482747978262041447231687381771809192998812504040261841248583680e+308, + "valid": true + }, + { + "description": "Valid - integer value", + "data": 42, + "valid": true + }, + { + "description": "Valid - negative integer value", + "data": -100, + "valid": true + }, + { + "description": "Valid - large value within range", + "data": 1.00000000000000001590289110975991804683608085639452813897813275577478387721703810608134699858568151040e+100, + "valid": true + }, + { + "description": "Valid - small negative value within range", + "data": -1.00000000000000001590289110975991804683608085639452813897813275577478387721703810608134699858568151040e+100, + "valid": true + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "1.5", + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/ieee/floating-point/2019/special/v1.test.json b/test/schemas/ieee/floating-point/2019/special/v1.test.json new file mode 100644 index 00000000..d7418d68 --- /dev/null +++ b/test/schemas/ieee/floating-point/2019/special/v1.test.json @@ -0,0 +1,100 @@ +{ + "target": "../../../../../../schemas/ieee/floating-point/2019/special/v1.json", + "tests": [ + { + "description": "Valid - NaN", + "data": "NaN", + "valid": true + }, + { + "description": "Valid - qNaN", + "data": "qNaN", + "valid": true + }, + { + "description": "Valid - sNaN", + "data": "sNaN", + "valid": true + }, + { + "description": "Valid - +Inf", + "data": "+Inf", + "valid": true + }, + { + "description": "Valid - -Inf", + "data": "-Inf", + "valid": true + }, + { + "description": "Invalid - lowercase nan", + "data": "nan", + "valid": false + }, + { + "description": "Invalid - lowercase inf", + "data": "inf", + "valid": false + }, + { + "description": "Invalid - +inf lowercase", + "data": "+inf", + "valid": false + }, + { + "description": "Invalid - C23 style NAN", + "data": "NAN", + "valid": false + }, + { + "description": "Invalid - C23 style INFINITY", + "data": "INFINITY", + "valid": false + }, + { + "description": "Invalid - C23 style -INFINITY", + "data": "-INFINITY", + "valid": false + }, + { + "description": "Invalid - JavaScript style Infinity", + "data": "Infinity", + "valid": false + }, + { + "description": "Invalid - INF uppercase", + "data": "INF", + "valid": false + }, + { + "description": "Invalid - arbitrary string", + "data": "not-a-number", + "valid": false + }, + { + "description": "Invalid type - number", + "data": 0, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/ieee/posix/2017/path-absolute/v1.test.json b/test/schemas/ieee/posix/2017/path-absolute/v1.test.json new file mode 100644 index 00000000..e72ff5df --- /dev/null +++ b/test/schemas/ieee/posix/2017/path-absolute/v1.test.json @@ -0,0 +1,425 @@ +{ + "target": "../../../../../../schemas/ieee/posix/2017/path-absolute/v1.json", + "tests": [ + { + "description": "Invalid type - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Root directory", + "data": "/", + "valid": true + }, + { + "description": "Single slash with filename", + "data": "/file", + "valid": true + }, + { + "description": "Simple absolute path", + "data": "/home/user", + "valid": true + }, + { + "description": "Deep absolute path", + "data": "/usr/local/bin/program", + "valid": true + }, + { + "description": "Path with file extension", + "data": "/etc/passwd", + "valid": true + }, + { + "description": "Invalid - exactly two leading slashes are excluded from absolute pathnames", + "data": "//server/share", + "valid": false + }, + { + "description": "Three or more leading slashes (treated as single slash)", + "data": "///home/user", + "valid": true + }, + { + "description": "Four leading slashes", + "data": "////etc/hosts", + "valid": true + }, + { + "description": "Many leading slashes", + "data": "/////////usr/bin", + "valid": true + }, + { + "description": "Multiple slashes in middle", + "data": "/home//user", + "valid": true + }, + { + "description": "Many consecutive slashes", + "data": "/home////user//documents", + "valid": true + }, + { + "description": "Mixed single and multiple slashes", + "data": "/usr//local/bin//program", + "valid": true + }, + { + "description": "Single trailing slash", + "data": "/home/user/", + "valid": true + }, + { + "description": "Multiple trailing slashes", + "data": "/home/user///", + "valid": true + }, + { + "description": "Root with multiple slashes", + "data": "///", + "valid": true + }, + { + "description": "Path with dot component", + "data": "/home/./user", + "valid": true + }, + { + "description": "Path with dot-dot component", + "data": "/home/../etc", + "valid": true + }, + { + "description": "Path with multiple dot components", + "data": "/home/./user/./documents", + "valid": true + }, + { + "description": "Path with multiple dot-dot components", + "data": "/home/user/../../etc", + "valid": true + }, + { + "description": "Path ending with dot", + "data": "/home/user/.", + "valid": true + }, + { + "description": "Path ending with dot-dot", + "data": "/home/user/..", + "valid": true + }, + { + "description": "All uppercase letters", + "data": "/ABCDEFGHIJKLMNOPQRSTUVWXYZ", + "valid": true + }, + { + "description": "All lowercase letters", + "data": "/abcdefghijklmnopqrstuvwxyz", + "valid": true + }, + { + "description": "All digits", + "data": "/0123456789", + "valid": true + }, + { + "description": "Period characters", + "data": "/file.name.ext", + "valid": true + }, + { + "description": "Underscore characters", + "data": "/file_name_with_underscores", + "valid": true + }, + { + "description": "Hyphen characters", + "data": "/file-name-with-hyphens", + "valid": true + }, + { + "description": "Mixed portable characters", + "data": "/home/User_123/file-name.txt", + "valid": true + }, + { + "description": "All portable characters in one filename", + "data": "/ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._-", + "valid": true + }, + { + "description": "Empty component between slashes", + "data": "/home//user", + "valid": true + }, + { + "description": "Multiple empty components", + "data": "/home///user///documents", + "valid": true + }, + { + "description": "Single character filename", + "data": "/a", + "valid": true + }, + { + "description": "Single digit filename", + "data": "/1", + "valid": true + }, + { + "description": "Filename starting with dot (hidden file)", + "data": "/home/user/.bashrc", + "valid": true + }, + { + "description": "Filename starting with hyphen", + "data": "/-file", + "valid": true + }, + { + "description": "Filename with only dots", + "data": "/home/user/....", + "valid": true + }, + { + "description": "Filename with only hyphens", + "data": "/home/user/----", + "valid": true + }, + { + "description": "Filename with only underscores", + "data": "/home/user/____", + "valid": true + }, + { + "description": "Relative path", + "data": "home/user", + "valid": false + }, + { + "description": "Empty string", + "data": "", + "valid": false + }, + { + "description": "Single dot", + "data": ".", + "valid": false + }, + { + "description": "Dot-dot", + "data": "..", + "valid": false + }, + { + "description": "Filename without leading slash", + "data": "file.txt", + "valid": false + }, + { + "description": "Path starting with dot", + "data": "./home/user", + "valid": false + }, + { + "description": "Path starting with dot-dot", + "data": "../home/user", + "valid": false + }, + { + "description": "Path starting with letter", + "data": "home/user/documents", + "valid": false + }, + { + "description": "Null byte in path", + "data": "/home/user\u0000file", + "valid": false + }, + { + "description": "Null byte at beginning of filename", + "data": "/\u0000home", + "valid": false + }, + { + "description": "Null byte at end", + "data": "/home/user\u0000", + "valid": false + }, + { + "description": "Deep nesting", + "data": "/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z", + "valid": true + }, + { + "description": "Space in filename", + "data": "/home/my file", + "valid": true + }, + { + "description": "Special characters (non-portable but not forbidden)", + "data": "/home/file@#$%^&*()", + "valid": true + }, + { + "description": "Unicode characters (implementation-dependent)", + "data": "/home/файл", + "valid": true + }, + { + "description": "High-bit characters", + "data": "/home/fileéñ", + "valid": true + }, + { + "description": "Maximum depth root reference", + "data": "/../../../../../../../../../../../../../../../../../../../../..", + "valid": true + }, + { + "description": "Complex combination of dots and regular names", + "data": "/home/./user/../user/./documents/../documents/file", + "valid": true + }, + { + "description": "Common executable path", + "data": "/usr/bin/bash", + "valid": true + }, + { + "description": "Common configuration file", + "data": "/etc/systemd/system/myservice.service", + "valid": true + }, + { + "description": "Home directory file", + "data": "/home/username/.ssh/id_rsa", + "valid": true + }, + { + "description": "Temporary file", + "data": "/tmp/temp_file_123.tmp", + "valid": true + }, + { + "description": "Device file", + "data": "/dev/sda1", + "valid": true + }, + { + "description": "Proc filesystem", + "data": "/proc/1/cmdline", + "valid": true + }, + { + "description": "Var log file", + "data": "/var/log/syslog", + "valid": true + }, + { + "description": "Path with backslash (valid character, not separator in POSIX)", + "data": "/home/file\\name", + "valid": true + }, + { + "description": "Path with colon (valid in POSIX filenames)", + "data": "/home/file:name", + "valid": true + }, + { + "description": "Path with semicolon", + "data": "/home/file;name", + "valid": true + }, + { + "description": "Path with question mark", + "data": "/home/file?name", + "valid": true + }, + { + "description": "Path with asterisk", + "data": "/home/file*name", + "valid": true + }, + { + "description": "Path with brackets", + "data": "/home/file[123]name", + "valid": true + }, + { + "description": "Path with braces", + "data": "/home/file{abc}name", + "valid": true + }, + { + "description": "Path with pipe character", + "data": "/home/file|name", + "valid": true + }, + { + "description": "Path with tab character", + "data": "/home/file\tname", + "valid": true + }, + { + "description": "Path with newline (valid but problematic)", + "data": "/home/file\nname", + "valid": true + }, + { + "description": "Hidden directory with config", + "data": "/home/user/.config/app/settings.conf", + "valid": true + }, + { + "description": "Multiple extensions", + "data": "/usr/share/doc/package/README.md.gz", + "valid": true + }, + { + "description": "Numeric filename", + "data": "/proc/1234/fd/0", + "valid": true + }, + { + "description": "Single slash only", + "data": "/", + "valid": true + }, + { + "description": "Invalid - exactly two slashes are excluded from absolute pathnames", + "data": "//", + "valid": false + }, + { + "description": "Many slashes only", + "data": "/////////", + "valid": true + } + ] +} diff --git a/test/schemas/ieee/posix/2017/path-relative/v1.test.json b/test/schemas/ieee/posix/2017/path-relative/v1.test.json new file mode 100644 index 00000000..6ebf85cb --- /dev/null +++ b/test/schemas/ieee/posix/2017/path-relative/v1.test.json @@ -0,0 +1,410 @@ +{ + "target": "../../../../../../schemas/ieee/posix/2017/path-relative/v1.json", + "tests": [ + { + "description": "Invalid type - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Empty string", + "data": "", + "valid": true + }, + { + "description": "Single filename", + "data": "file.txt", + "valid": true + }, + { + "description": "Simple relative path", + "data": "home/user", + "valid": true + }, + { + "description": "Deep relative path", + "data": "documents/projects/readme.md", + "valid": true + }, + { + "description": "Path with file extension", + "data": "config/settings.conf", + "valid": true + }, + { + "description": "Current directory reference", + "data": ".", + "valid": true + }, + { + "description": "Parent directory reference", + "data": "..", + "valid": true + }, + { + "description": "Path starting with dot", + "data": "./file.txt", + "valid": true + }, + { + "description": "Path starting with dot-dot", + "data": "../file.txt", + "valid": true + }, + { + "description": "Path with dot component", + "data": "home/./user", + "valid": true + }, + { + "description": "Path with dot-dot component", + "data": "home/../etc", + "valid": true + }, + { + "description": "Multiple dot components", + "data": "home/./user/./documents", + "valid": true + }, + { + "description": "Multiple dot-dot components", + "data": "home/user/../../etc", + "valid": true + }, + { + "description": "Path ending with dot", + "data": "home/user/.", + "valid": true + }, + { + "description": "Path ending with dot-dot", + "data": "home/user/..", + "valid": true + }, + { + "description": "Complex dot navigation", + "data": "../../../home/./user/../documents", + "valid": true + }, + { + "description": "Multiple consecutive slashes", + "data": "home//user", + "valid": true + }, + { + "description": "Many consecutive slashes", + "data": "home////user//documents", + "valid": true + }, + { + "description": "Mixed single and multiple slashes", + "data": "usr//local/bin//program", + "valid": true + }, + { + "description": "Trailing slash", + "data": "home/user/", + "valid": true + }, + { + "description": "Multiple trailing slashes", + "data": "home/user///", + "valid": true + }, + { + "description": "Dot with trailing slash", + "data": "./", + "valid": true + }, + { + "description": "Dot-dot with trailing slash", + "data": "../", + "valid": true + }, + { + "description": "All uppercase letters", + "data": "ABCDEFGHIJKLMNOPQRSTUVWXYZ", + "valid": true + }, + { + "description": "All lowercase letters", + "data": "abcdefghijklmnopqrstuvwxyz", + "valid": true + }, + { + "description": "All digits", + "data": "0123456789", + "valid": true + }, + { + "description": "Period characters", + "data": "file.name.ext", + "valid": true + }, + { + "description": "Underscore characters", + "data": "file_name_with_underscores", + "valid": true + }, + { + "description": "Hyphen characters", + "data": "file-name-with-hyphens", + "valid": true + }, + { + "description": "Mixed portable characters", + "data": "home/User_123/file-name.txt", + "valid": true + }, + { + "description": "Single character filename", + "data": "a", + "valid": true + }, + { + "description": "Single digit filename", + "data": "1", + "valid": true + }, + { + "description": "Hidden file (starts with dot)", + "data": ".bashrc", + "valid": true + }, + { + "description": "Hidden file in directory", + "data": "home/user/.bashrc", + "valid": true + }, + { + "description": "Filename starting with hyphen", + "data": "-file", + "valid": true + }, + { + "description": "Filename with only dots", + "data": "....", + "valid": true + }, + { + "description": "Filename with only hyphens", + "data": "----", + "valid": true + }, + { + "description": "Filename with only underscores", + "data": "____", + "valid": true + }, + { + "description": "Space in filename", + "data": "my file", + "valid": true + }, + { + "description": "Space in path", + "data": "home/my file/document", + "valid": true + }, + { + "description": "Special characters", + "data": "file@#$%^&*()", + "valid": true + }, + { + "description": "Unicode characters", + "data": "файл.txt", + "valid": true + }, + { + "description": "High-bit characters", + "data": "filé.txt", + "valid": true + }, + { + "description": "Backslash character", + "data": "file\\name", + "valid": true + }, + { + "description": "Colon character", + "data": "file:name", + "valid": true + }, + { + "description": "Semicolon character", + "data": "file;name", + "valid": true + }, + { + "description": "Question mark character", + "data": "file?name", + "valid": true + }, + { + "description": "Asterisk character", + "data": "file*name", + "valid": true + }, + { + "description": "Brackets", + "data": "file[123]name", + "valid": true + }, + { + "description": "Braces", + "data": "file{abc}name", + "valid": true + }, + { + "description": "Pipe character", + "data": "file|name", + "valid": true + }, + { + "description": "Tab character", + "data": "file\tname", + "valid": true + }, + { + "description": "Newline character", + "data": "file\nname", + "valid": true + }, + { + "description": "Deep nesting", + "data": "a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z", + "valid": true + }, + { + "description": "Complex combination with dots", + "data": "home/./user/../user/./documents/../documents/file", + "valid": true + }, + { + "description": "Common document path", + "data": "Documents/Projects/readme.md", + "valid": true + }, + { + "description": "Configuration file path", + "data": ".config/app/settings.conf", + "valid": true + }, + { + "description": "Source code path", + "data": "src/main/java/com/example/App.java", + "valid": true + }, + { + "description": "Build output path", + "data": "build/dist/app-1.0.0.jar", + "valid": true + }, + { + "description": "Temporary file", + "data": "tmp/temp_file_123.tmp", + "valid": true + }, + { + "description": "Multiple extensions", + "data": "archive.tar.gz", + "valid": true + }, + { + "description": "No extension", + "data": "README", + "valid": true + }, + { + "description": "Numeric filename", + "data": "1234/5678", + "valid": true + }, + { + "description": "Only slashes (empty components)", + "data": "///", + "valid": false + }, + { + "description": "Empty components between names", + "data": "home///user", + "valid": true + }, + { + "description": "Absolute path (starts with slash)", + "data": "/home/user", + "valid": false + }, + { + "description": "Root directory", + "data": "/", + "valid": false + }, + { + "description": "Absolute path with single file", + "data": "/file.txt", + "valid": false + }, + { + "description": "Deep absolute path", + "data": "/usr/local/bin/program", + "valid": false + }, + { + "description": "Two leading slashes", + "data": "//server/share", + "valid": false + }, + { + "description": "Three leading slashes", + "data": "///home/user", + "valid": false + }, + { + "description": "Many leading slashes", + "data": "/////////usr/bin", + "valid": false + }, + { + "description": "Null byte in path", + "data": "home/user\u0000file", + "valid": false + }, + { + "description": "Null byte at beginning", + "data": "\u0000home", + "valid": false + }, + { + "description": "Null byte at end", + "data": "home/user\u0000", + "valid": false + }, + { + "description": "Null byte in filename", + "data": "file\u0000.txt", + "valid": false + } + ] +} diff --git a/test/schemas/ieee/posix/2017/path/v1.test.json b/test/schemas/ieee/posix/2017/path/v1.test.json new file mode 100644 index 00000000..ae93c692 --- /dev/null +++ b/test/schemas/ieee/posix/2017/path/v1.test.json @@ -0,0 +1,575 @@ +{ + "target": "../../../../../../schemas/ieee/posix/2017/path/v1.json", + "tests": [ + { + "description": "Invalid type - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Empty string (relative path)", + "data": "", + "valid": true + }, + { + "description": "Root directory (absolute)", + "data": "/", + "valid": true + }, + { + "description": "Simple absolute path", + "data": "/home/user", + "valid": true + }, + { + "description": "Deep absolute path", + "data": "/usr/local/bin/program", + "valid": true + }, + { + "description": "Absolute path with extension", + "data": "/etc/passwd", + "valid": true + }, + { + "description": "Single filename (relative)", + "data": "file.txt", + "valid": true + }, + { + "description": "Simple relative path", + "data": "home/user", + "valid": true + }, + { + "description": "Deep relative path", + "data": "documents/projects/readme.md", + "valid": true + }, + { + "description": "Relative path with extension", + "data": "config/settings.conf", + "valid": true + }, + { + "description": "Two leading slashes (absolute, implementation-defined)", + "data": "//server/share", + "valid": true + }, + { + "description": "Three leading slashes (absolute)", + "data": "///home/user", + "valid": true + }, + { + "description": "Many leading slashes (absolute)", + "data": "/////////usr/bin", + "valid": true + }, + { + "description": "Current directory (relative)", + "data": ".", + "valid": true + }, + { + "description": "Parent directory (relative)", + "data": "..", + "valid": true + }, + { + "description": "Relative path starting with dot", + "data": "./file.txt", + "valid": true + }, + { + "description": "Relative path starting with dot-dot", + "data": "../file.txt", + "valid": true + }, + { + "description": "Absolute path with dot component", + "data": "/home/./user", + "valid": true + }, + { + "description": "Absolute path with dot-dot component", + "data": "/home/../etc", + "valid": true + }, + { + "description": "Relative path with dot component", + "data": "home/./user", + "valid": true + }, + { + "description": "Relative path with dot-dot component", + "data": "home/../etc", + "valid": true + }, + { + "description": "Multiple dots in absolute path", + "data": "/home/./user/./documents", + "valid": true + }, + { + "description": "Multiple dots in relative path", + "data": "home/./user/./documents", + "valid": true + }, + { + "description": "Multiple dot-dots in absolute path", + "data": "/home/user/../../etc", + "valid": true + }, + { + "description": "Multiple dot-dots in relative path", + "data": "home/user/../../etc", + "valid": true + }, + { + "description": "Absolute path ending with dot", + "data": "/home/user/.", + "valid": true + }, + { + "description": "Relative path ending with dot", + "data": "home/user/.", + "valid": true + }, + { + "description": "Absolute path ending with dot-dot", + "data": "/home/user/..", + "valid": true + }, + { + "description": "Relative path ending with dot-dot", + "data": "home/user/..", + "valid": true + }, + { + "description": "Multiple slashes in absolute path", + "data": "/home//user", + "valid": true + }, + { + "description": "Multiple slashes in relative path", + "data": "home//user", + "valid": true + }, + { + "description": "Many consecutive slashes in absolute path", + "data": "/home////user//documents", + "valid": true + }, + { + "description": "Many consecutive slashes in relative path", + "data": "home////user//documents", + "valid": true + }, + { + "description": "Absolute path with trailing slash", + "data": "/home/user/", + "valid": true + }, + { + "description": "Relative path with trailing slash", + "data": "home/user/", + "valid": true + }, + { + "description": "Absolute path with multiple trailing slashes", + "data": "/home/user///", + "valid": true + }, + { + "description": "Relative path with multiple trailing slashes", + "data": "home/user///", + "valid": true + }, + { + "description": "Current directory with trailing slash", + "data": "./", + "valid": true + }, + { + "description": "Parent directory with trailing slash", + "data": "../", + "valid": true + }, + { + "description": "Portable characters - all uppercase", + "data": "ABCDEFGHIJKLMNOPQRSTUVWXYZ", + "valid": true + }, + { + "description": "Portable characters - all lowercase", + "data": "abcdefghijklmnopqrstuvwxyz", + "valid": true + }, + { + "description": "Portable characters - all digits", + "data": "0123456789", + "valid": true + }, + { + "description": "Portable characters - period", + "data": "file.name.ext", + "valid": true + }, + { + "description": "Portable characters - underscore", + "data": "file_name_with_underscores", + "valid": true + }, + { + "description": "Portable characters - hyphen", + "data": "file-name-with-hyphens", + "valid": true + }, + { + "description": "Mixed portable characters in absolute path", + "data": "/home/User_123/file-name.txt", + "valid": true + }, + { + "description": "Mixed portable characters in relative path", + "data": "home/User_123/file-name.txt", + "valid": true + }, + { + "description": "Single character absolute path", + "data": "/a", + "valid": true + }, + { + "description": "Single character relative path", + "data": "a", + "valid": true + }, + { + "description": "Single digit absolute path", + "data": "/1", + "valid": true + }, + { + "description": "Single digit relative path", + "data": "1", + "valid": true + }, + { + "description": "Hidden file in absolute path", + "data": "/home/user/.bashrc", + "valid": true + }, + { + "description": "Hidden file in relative path", + "data": ".bashrc", + "valid": true + }, + { + "description": "Filename starting with hyphen in absolute path", + "data": "/-file", + "valid": true + }, + { + "description": "Filename starting with hyphen in relative path", + "data": "-file", + "valid": true + }, + { + "description": "Space in absolute path", + "data": "/home/my file", + "valid": true + }, + { + "description": "Space in relative path", + "data": "my file", + "valid": true + }, + { + "description": "Special characters in absolute path", + "data": "/home/file@#$%^&*()", + "valid": true + }, + { + "description": "Special characters in relative path", + "data": "file@#$%^&*()", + "valid": true + }, + { + "description": "Unicode characters in absolute path", + "data": "/home/файл", + "valid": true + }, + { + "description": "Unicode characters in relative path", + "data": "файл", + "valid": true + }, + { + "description": "High-bit characters in absolute path", + "data": "/home/filé", + "valid": true + }, + { + "description": "High-bit characters in relative path", + "data": "filé", + "valid": true + }, + { + "description": "Backslash in absolute path", + "data": "/home/file\\name", + "valid": true + }, + { + "description": "Backslash in relative path", + "data": "file\\name", + "valid": true + }, + { + "description": "Colon in absolute path", + "data": "/home/file:name", + "valid": true + }, + { + "description": "Colon in relative path", + "data": "file:name", + "valid": true + }, + { + "description": "Question mark in absolute path", + "data": "/home/file?name", + "valid": true + }, + { + "description": "Question mark in relative path", + "data": "file?name", + "valid": true + }, + { + "description": "Asterisk in absolute path", + "data": "/home/file*name", + "valid": true + }, + { + "description": "Asterisk in relative path", + "data": "file*name", + "valid": true + }, + { + "description": "Brackets in absolute path", + "data": "/home/file[123]name", + "valid": true + }, + { + "description": "Brackets in relative path", + "data": "file[123]name", + "valid": true + }, + { + "description": "Pipe character in absolute path", + "data": "/home/file|name", + "valid": true + }, + { + "description": "Pipe character in relative path", + "data": "file|name", + "valid": true + }, + { + "description": "Tab character in absolute path", + "data": "/home/file\tname", + "valid": true + }, + { + "description": "Tab character in relative path", + "data": "file\tname", + "valid": true + }, + { + "description": "Newline in absolute path", + "data": "/home/file\nname", + "valid": true + }, + { + "description": "Newline in relative path", + "data": "file\nname", + "valid": true + }, + { + "description": "Deep nesting absolute path", + "data": "/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z", + "valid": true + }, + { + "description": "Deep nesting relative path", + "data": "a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z", + "valid": true + }, + { + "description": "Complex dot navigation in absolute path", + "data": "/home/./user/../user/./documents/../documents/file", + "valid": true + }, + { + "description": "Complex dot navigation in relative path", + "data": "home/./user/../user/./documents/../documents/file", + "valid": true + }, + { + "description": "Common executable absolute path", + "data": "/usr/bin/bash", + "valid": true + }, + { + "description": "Common config absolute path", + "data": "/etc/systemd/system/myservice.service", + "valid": true + }, + { + "description": "Home directory absolute path", + "data": "/home/username/.ssh/id_rsa", + "valid": true + }, + { + "description": "Temp file absolute path", + "data": "/tmp/temp_file_123.tmp", + "valid": true + }, + { + "description": "Device file absolute path", + "data": "/dev/sda1", + "valid": true + }, + { + "description": "Proc filesystem absolute path", + "data": "/proc/1/cmdline", + "valid": true + }, + { + "description": "Common document relative path", + "data": "Documents/Projects/readme.md", + "valid": true + }, + { + "description": "Config file relative path", + "data": ".config/app/settings.conf", + "valid": true + }, + { + "description": "Source code relative path", + "data": "src/main/java/com/example/App.java", + "valid": true + }, + { + "description": "Build output relative path", + "data": "build/dist/app-1.0.0.jar", + "valid": true + }, + { + "description": "Multiple extensions absolute", + "data": "/usr/share/doc/package/README.md.gz", + "valid": true + }, + { + "description": "Multiple extensions relative", + "data": "archive.tar.gz", + "valid": true + }, + { + "description": "No extension absolute", + "data": "/usr/bin/ls", + "valid": true + }, + { + "description": "No extension relative", + "data": "README", + "valid": true + }, + { + "description": "Numeric filename absolute", + "data": "/proc/1234/fd/0", + "valid": true + }, + { + "description": "Numeric filename relative", + "data": "1234/5678", + "valid": true + }, + { + "description": "Only slashes relative (empty components)", + "data": "///", + "valid": true + }, + { + "description": "Empty components in absolute path", + "data": "/home///user", + "valid": true + }, + { + "description": "Empty components in relative path", + "data": "home///user", + "valid": true + }, + { + "description": "Null byte in absolute path", + "data": "/home/user\u0000file", + "valid": false + }, + { + "description": "Null byte in relative path", + "data": "home/user\u0000file", + "valid": false + }, + { + "description": "Null byte at beginning of absolute path", + "data": "/\u0000home", + "valid": false + }, + { + "description": "Null byte at beginning of relative path", + "data": "\u0000home", + "valid": false + }, + { + "description": "Null byte at end of absolute path", + "data": "/home/user\u0000", + "valid": false + }, + { + "description": "Null byte at end of relative path", + "data": "home/user\u0000", + "valid": false + }, + { + "description": "Null byte in filename absolute", + "data": "/file\u0000.txt", + "valid": false + }, + { + "description": "Null byte in filename relative", + "data": "file\u0000.txt", + "valid": false + } + ] +} diff --git a/test/schemas/ietf/email/5321/address/v1.test.json b/test/schemas/ietf/email/5321/address/v1.test.json new file mode 100644 index 00000000..821ad87f --- /dev/null +++ b/test/schemas/ietf/email/5321/address/v1.test.json @@ -0,0 +1,365 @@ +{ + "target": "../../../../../../schemas/ietf/email/5321/address/v1.json", + "tests": [ + { + "description": "Invalid type", + "data": 1, + "valid": false + }, + { + "description": "Basic email format", + "data": "simple@example.com", + "valid": true + }, + { + "description": "Local-part with dot", + "data": "very.common@example.com", + "valid": true + }, + { + "description": "Mixed case local and domain", + "data": "FirstName.LastName@EasierReading.org", + "valid": true + }, + { + "description": "Single character local part", + "data": "x@example.com", + "valid": true + }, + { + "description": "Local-part with hyphens and subdomains", + "data": "long.email-address-with-hyphens@and.subdomains.example.com", + "valid": true + }, + { + "description": "Local-part with plus sign and tags", + "data": "user.name+tag+sorting@example.com", + "valid": true + }, + { + "description": "Local-part with slash", + "data": "name/surname@example.com", + "valid": true + }, + { + "description": "Local-part with underscore", + "data": "user_name@example.com", + "valid": true + }, + { + "description": "Local-part and domain with hyphen", + "data": "user-name@sub-domain.example.co.uk", + "valid": true + }, + { + "description": "Quoted local-part with double dot inside", + "data": "\"john..doe\"@example.org", + "valid": true + }, + { + "description": "Quoted local-part with space", + "data": "\" \"@example.org", + "valid": true + }, + { + "description": "Quoted local-part ending with dot", + "data": "\"john.doe.\"@example.com", + "valid": true + }, + { + "description": "Quoted local-part containing @ symbol", + "data": "\"john@doe\"@example.com", + "valid": true + }, + { + "description": "Example with all allowed special characters in local-part", + "data": "test!#$%&'*+/=?^_`{|}~@example.com", + "valid": true + }, + { + "description": "Bang path style local-part", + "data": "mailhost!username@example.org", + "valid": true + }, + { + "description": "Percent hack routing", + "data": "user%example.com@example.org", + "valid": true + }, + { + "description": "Local-part ending with dash", + "data": "user-@example.org", + "valid": true + }, + { + "description": "IPv4 address literal domain", + "data": "postmaster@[123.123.123.123]", + "valid": true + }, + { + "description": "IPv6 address literal domain", + "data": "postmaster@[IPv6:2001:db8::85a3:0:0:8a2e:370:7334]", + "valid": true + }, + { + "description": "Local-part starts with underscore", + "data": "_test123@example.org", + "valid": true + }, + { + "description": "Plus in local-part with uppercase domain", + "data": "test+filter@Example.COM", + "valid": true + }, + { + "description": "Dot in local-part", + "data": "test.filter@example.com", + "valid": true + }, + { + "description": "Underscore in local-part", + "data": "test_filter@example.com", + "valid": true + }, + { + "description": "Domain with no TLD (dotless domain)", + "data": "admin@example", + "valid": true + }, + { + "description": "Comments around local, domain, and address", + "data": "(comment)john.smith@(comment)example.com(comment)", + "valid": false + }, + { + "description": "Quoted local-part with space and letters", + "data": "\"Fred Bloggs\"@example.com", + "valid": true + }, + { + "description": "Domain literal with letters and dot", + "data": "user@[abc.def]", + "valid": false + }, + { + "description": "All uppercase local and domain", + "data": "USER@EXAMPLE.COM", + "valid": true + }, + { + "description": "Local-part with tilde and domain with hyphen", + "data": "a~b@c-domain.com", + "valid": true + }, + { + "description": "Local-part with slash and plus", + "data": "first.last+category/department@domain.com", + "valid": true + }, + { + "description": "Local-part with apostrophe", + "data": "o'reilly@example.com", + "valid": true + }, + { + "description": "Local-part with multiple route characters", + "data": "dizzy%example.com+tag@example.org", + "valid": true + }, + { + "description": "Email with comment in domain", + "data": "john.smith@(comment)example.com", + "valid": false + }, + { + "description": "Email with comment in local part", + "data": "jo(comment)hn@example.com", + "valid": false + }, + { + "description": "Complex quoted local-part with many allowed symbols", + "data": "\"very.(),:;<>[]\\\".VERY.\\\"very@\\\\ \\\"very\\\".unusual\"@strange.example.com", + "valid": true + }, + { + "description": "Missing @ symbol", + "data": "plainaddress", + "valid": false + }, + { + "description": "Missing local part", + "data": "@no-local-part.com", + "valid": false + }, + { + "description": "Missing domain", + "data": "user@", + "valid": false + }, + { + "description": "Missing both local and domain parts", + "data": "@", + "valid": false + }, + { + "description": "Leading dot in local-part", + "data": ".user@example.com", + "valid": false + }, + { + "description": "Trailing dot in local-part", + "data": "user.@example.com", + "valid": false + }, + { + "description": "Consecutive dots in local-part", + "data": "user..user@example.com", + "valid": false + }, + { + "description": "Leading dot in domain", + "data": "user@.example.com", + "valid": false + }, + { + "description": "Trailing dot in domain", + "data": "user@example.com.", + "valid": false + }, + { + "description": "Consecutive dots in domain", + "data": "user@example..com", + "valid": false + }, + { + "description": "Domain label starts with hyphen", + "data": "user@-example.com", + "valid": false + }, + { + "description": "Domain label ends with hyphen", + "data": "user@example-.com", + "valid": false + }, + { + "description": "Underscore in domain part", + "data": "user@exam_ple.com", + "valid": false + }, + { + "description": "Numeric TLD in domain", + "data": "user@example.123", + "valid": true + }, + { + "description": "Multiple @ symbols", + "data": "A@b@c@example.com", + "valid": false + }, + { + "description": "Invalid characters in local-part (unquoted specials)", + "data": "a\"b(c)d,e:f;gi[j\\k]l@example.com", + "valid": false + }, + { + "description": "Incorrect quoted string placement in local-part", + "data": "just\"not\"right@example.com", + "valid": false + }, + { + "description": "Unquoted space in local-part", + "data": "this is\"not\\allowed@example.com", + "valid": false + }, + { + "description": "Escaped characters outside quotes in local-part", + "data": "this\\ still\\\"not\\\\allowed@example.com", + "valid": false + }, + { + "description": "Just a quoted string with no @ and domain", + "data": "\"test\"", + "valid": false + }, + { + "description": "Unclosed comment in local-part", + "data": "john(dôe@example.com", + "valid": false + }, + { + "description": "Unmatched parenthesis in domain", + "data": "john@example.com)", + "valid": false + }, + { + "description": "Non-ASCII character in local-part", + "data": "mañana@example.com", + "valid": false + }, + { + "description": "Non-ASCII character in domain", + "data": "user@exámple.com", + "valid": false + }, + { + "description": "Missing closing bracket in domain literal", + "data": "test@[127.0.0.1", + "valid": false + }, + { + "description": "Missing opening bracket in domain literal", + "data": "test@127.0.0.1]", + "valid": false + }, + { + "description": "Trailing dot after domain literal", + "data": "test@[127.0.0.1].", + "valid": false + }, + { + "description": "Unclosed IPv6 literal", + "data": "test@[IPv6:2001:db8::1", + "valid": false + }, + { + "description": "Extra characters after domain literal", + "data": "test@[IPv6:2001:db8::1]extra", + "valid": false + }, + { + "description": "Uppercase numeric TLD", + "data": "user@EXAMPLE.123", + "valid": true + }, + { + "description": "IP address without brackets in domain", + "data": "user@123.123.123.123", + "valid": true + }, + { + "description": "IPv6 address without brackets", + "data": "user@IPv6:2001:db8::1", + "valid": false + }, + { + "description": "Single quote in local part", + "data": "'test'@example.com", + "valid": true + }, + { + "description": "Double quotes misplacement", + "data": "\"\"test@example.com", + "valid": false + }, + { + "description": "Escaped @ outside quoted string (invalid)", + "data": "test\\@example.com", + "valid": false + }, + { + "description": "Empty string", + "data": "", + "valid": false + } + ] +} diff --git a/test/schemas/ietf/encoding/4648/base16/v1.test.json b/test/schemas/ietf/encoding/4648/base16/v1.test.json new file mode 100644 index 00000000..73383788 --- /dev/null +++ b/test/schemas/ietf/encoding/4648/base16/v1.test.json @@ -0,0 +1,500 @@ +{ + "target": "../../../../../../schemas/ietf/encoding/4648/base16/v1.json", + "tests": [ + { + "description": "Valid - empty string", + "data": "", + "valid": true + }, + { + "description": "Valid - single byte uppercase", + "data": "0F", + "valid": true + }, + { + "description": "Valid - single byte lowercase", + "data": "0f", + "valid": true + }, + { + "description": "Valid - single byte mixed case", + "data": "0F", + "valid": true + }, + { + "description": "Valid - 'Hello World!' in hex", + "data": "48656C6C6F20576F726C6421", + "valid": true + }, + { + "description": "Valid - 'foo' in hex", + "data": "666F6F", + "valid": true + }, + { + "description": "Valid - all uppercase", + "data": "DEADBEEF", + "valid": true + }, + { + "description": "Valid - all lowercase", + "data": "deadbeef", + "valid": true + }, + { + "description": "Valid - mixed case", + "data": "DeAdBeEf", + "valid": true + }, + { + "description": "Valid - all zeros", + "data": "0000", + "valid": true + }, + { + "description": "Valid - all F's uppercase", + "data": "FFFF", + "valid": true + }, + { + "description": "Valid - all f's lowercase", + "data": "ffff", + "valid": true + }, + { + "description": "Valid - only digits 0-9", + "data": "0123456789", + "valid": true + }, + { + "description": "Valid - only letters A-F uppercase", + "data": "ABCDEF", + "valid": true + }, + { + "description": "Valid - only letters a-f lowercase", + "data": "abcdef", + "valid": true + }, + { + "description": "Valid - two bytes", + "data": "0FB7", + "valid": true + }, + { + "description": "Valid - four bytes", + "data": "DEADBEEF", + "valid": true + }, + { + "description": "Valid - eight bytes", + "data": "0123456789ABCDEF", + "valid": true + }, + { + "description": "Valid - sixteen bytes", + "data": "0123456789ABCDEF0123456789ABCDEF", + "valid": true + }, + { + "description": "Valid - long hex string", + "data": "48656C6C6F20576F726C64212048657265206973206120766572792076657279206C6F6E672068657820737472696E67", + "valid": true + }, + { + "description": "Invalid - single character (odd length)", + "data": "0", + "valid": false + }, + { + "description": "Invalid - three characters (odd length)", + "data": "ABC", + "valid": false + }, + { + "description": "Invalid - five characters (odd length)", + "data": "ABCDE", + "valid": false + }, + { + "description": "Invalid - seven characters (odd length)", + "data": "ABCDEFG", + "valid": false + }, + { + "description": "Invalid - contains G", + "data": "0G", + "valid": false + }, + { + "description": "Invalid - contains H", + "data": "0H", + "valid": false + }, + { + "description": "Invalid - contains Z", + "data": "0Z", + "valid": false + }, + { + "description": "Invalid - contains g", + "data": "0g", + "valid": false + }, + { + "description": "Invalid - contains h", + "data": "0h", + "valid": false + }, + { + "description": "Invalid - contains z", + "data": "0z", + "valid": false + }, + { + "description": "Invalid - contains space", + "data": "DE AD", + "valid": false + }, + { + "description": "Invalid - contains hyphen", + "data": "DE-AD", + "valid": false + }, + { + "description": "Invalid - contains underscore", + "data": "DE_AD", + "valid": false + }, + { + "description": "Invalid - contains plus", + "data": "DE+AD", + "valid": false + }, + { + "description": "Invalid - contains slash", + "data": "DE/AD", + "valid": false + }, + { + "description": "Invalid - contains period", + "data": "DE.AD", + "valid": false + }, + { + "description": "Invalid - contains comma", + "data": "DE,AD", + "valid": false + }, + { + "description": "Invalid - contains colon", + "data": "DE:AD", + "valid": false + }, + { + "description": "Invalid - contains semicolon", + "data": "DE;AD", + "valid": false + }, + { + "description": "Invalid - contains (", + "data": "DE(AD", + "valid": false + }, + { + "description": "Invalid - contains )", + "data": "DE)AD", + "valid": false + }, + { + "description": "Invalid - contains [", + "data": "DE[AD", + "valid": false + }, + { + "description": "Invalid - contains ]", + "data": "DE]AD", + "valid": false + }, + { + "description": "Invalid - contains {", + "data": "DE{AD", + "valid": false + }, + { + "description": "Invalid - contains }", + "data": "DE}AD", + "valid": false + }, + { + "description": "Invalid - contains !", + "data": "DE!AD", + "valid": false + }, + { + "description": "Invalid - contains ?", + "data": "DE?AD", + "valid": false + }, + { + "description": "Invalid - contains @", + "data": "DE@AD", + "valid": false + }, + { + "description": "Invalid - contains #", + "data": "DE#AD", + "valid": false + }, + { + "description": "Invalid - contains $", + "data": "DE$AD", + "valid": false + }, + { + "description": "Invalid - contains %", + "data": "DE%AD", + "valid": false + }, + { + "description": "Invalid - contains ^", + "data": "DE^AD", + "valid": false + }, + { + "description": "Invalid - contains &", + "data": "DE&AD", + "valid": false + }, + { + "description": "Invalid - contains *", + "data": "DE*AD", + "valid": false + }, + { + "description": "Invalid - contains ~", + "data": "DE~AD", + "valid": false + }, + { + "description": "Invalid - contains `", + "data": "DE`AD", + "valid": false + }, + { + "description": "Invalid - contains |", + "data": "DE|AD", + "valid": false + }, + { + "description": "Invalid - contains \\", + "data": "DE\\AD", + "valid": false + }, + { + "description": "Invalid - contains '", + "data": "DE'AD", + "valid": false + }, + { + "description": "Invalid - contains \"", + "data": "DE\"AD", + "valid": false + }, + { + "description": "Invalid - contains <", + "data": "DE", + "data": "DE>AD", + "valid": false + }, + { + "description": "Invalid - leading space", + "data": " DEAD", + "valid": false + }, + { + "description": "Invalid - trailing space", + "data": "DEAD ", + "valid": false + }, + { + "description": "Invalid - leading tab", + "data": "\tDEAD", + "valid": false + }, + { + "description": "Invalid - trailing tab", + "data": "DEAD\t", + "valid": false + }, + { + "description": "Invalid - tab in middle", + "data": "DE\tAD", + "valid": false + }, + { + "description": "Invalid - contains newline", + "data": "DE\nAD", + "valid": false + }, + { + "description": "Invalid - contains carriage return", + "data": "DE\rAD", + "valid": false + }, + { + "description": "Invalid - non-ASCII character", + "data": "DEéAD", + "valid": false + }, + { + "description": "Invalid - emoji", + "data": "DE😀AD", + "valid": false + }, + { + "description": "Invalid - number type", + "data": 123, + "valid": false + }, + { + "description": "Invalid - boolean type", + "data": true, + "valid": false + }, + { + "description": "Invalid - null type", + "data": null, + "valid": false + }, + { + "description": "Valid - digit 0", + "data": "00", + "valid": true + }, + { + "description": "Valid - digit 1", + "data": "11", + "valid": true + }, + { + "description": "Valid - digit 2", + "data": "22", + "valid": true + }, + { + "description": "Valid - digit 3", + "data": "33", + "valid": true + }, + { + "description": "Valid - digit 4", + "data": "44", + "valid": true + }, + { + "description": "Valid - digit 5", + "data": "55", + "valid": true + }, + { + "description": "Valid - digit 6", + "data": "66", + "valid": true + }, + { + "description": "Valid - digit 7", + "data": "77", + "valid": true + }, + { + "description": "Valid - digit 8", + "data": "88", + "valid": true + }, + { + "description": "Valid - digit 9", + "data": "99", + "valid": true + }, + { + "description": "Valid - letter A uppercase", + "data": "AA", + "valid": true + }, + { + "description": "Valid - letter B uppercase", + "data": "BB", + "valid": true + }, + { + "description": "Valid - letter C uppercase", + "data": "CC", + "valid": true + }, + { + "description": "Valid - letter D uppercase", + "data": "DD", + "valid": true + }, + { + "description": "Valid - letter E uppercase", + "data": "EE", + "valid": true + }, + { + "description": "Valid - letter F uppercase", + "data": "FF", + "valid": true + }, + { + "description": "Valid - letter a lowercase", + "data": "aa", + "valid": true + }, + { + "description": "Valid - letter b lowercase", + "data": "bb", + "valid": true + }, + { + "description": "Valid - letter c lowercase", + "data": "cc", + "valid": true + }, + { + "description": "Valid - letter d lowercase", + "data": "dd", + "valid": true + }, + { + "description": "Valid - letter e lowercase", + "data": "ee", + "valid": true + }, + { + "description": "Valid - letter f lowercase", + "data": "ff", + "valid": true + }, + { + "description": "Valid - repeating pattern", + "data": "0F0F0F0F", + "valid": true + }, + { + "description": "Valid - alternating case", + "data": "AaBbCcDd", + "valid": true + }, + { + "description": "Valid - all digits and letters mixed", + "data": "0123456789ABCDEFabcdef", + "valid": true + } + ] +} diff --git a/test/schemas/ietf/encoding/4648/base32/v1.test.json b/test/schemas/ietf/encoding/4648/base32/v1.test.json new file mode 100644 index 00000000..48c6f31a --- /dev/null +++ b/test/schemas/ietf/encoding/4648/base32/v1.test.json @@ -0,0 +1,490 @@ +{ + "target": "../../../../../../schemas/ietf/encoding/4648/base32/v1.json", + "tests": [ + { + "description": "Valid - empty string", + "data": "", + "valid": true + }, + { + "description": "Valid - single byte (2 chars + 6 padding)", + "data": "ME======", + "valid": true + }, + { + "description": "Valid - two bytes (4 chars + 4 padding)", + "data": "MZXQ====", + "valid": true + }, + { + "description": "Valid - three bytes (5 chars + 3 padding)", + "data": "MZXW6===", + "valid": true + }, + { + "description": "Valid - four bytes (7 chars + 1 padding)", + "data": "MZXW6YQ=", + "valid": true + }, + { + "description": "Valid - five bytes (8 chars, no padding)", + "data": "MZXW6YTB", + "valid": true + }, + { + "description": "Valid - 'Hello World!'", + "data": "JBSWY3DPEBLW64TMMQ======", + "valid": true + }, + { + "description": "Valid - 'foo'", + "data": "MZXW6===", + "valid": true + }, + { + "description": "Valid - 'foobar'", + "data": "MZXW6YTBOI======", + "valid": true + }, + { + "description": "Valid - all A's", + "data": "AAAAAAAA", + "valid": true + }, + { + "description": "Valid - all 7's", + "data": "77777777", + "valid": true + }, + { + "description": "Valid - mixed alphabet", + "data": "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567", + "valid": true + }, + { + "description": "Valid - only letters A-Z", + "data": "ABCDEFGHIJKLMNOP", + "valid": true + }, + { + "description": "Valid - only digits 2-7", + "data": "23456723", + "valid": true + }, + { + "description": "Valid - 16 chars no padding", + "data": "ABCDEFGHIJKLMNOP", + "valid": true + }, + { + "description": "Valid - 24 chars no padding", + "data": "ABCDEFGHIJKLMNOPQRSTUVWX", + "valid": true + }, + { + "description": "Valid - long string with padding", + "data": "JBSWY3DPEBLW64TMMQQQ====", + "valid": true + }, + { + "description": "Invalid - single char without padding", + "data": "M", + "valid": false + }, + { + "description": "Invalid - two chars without padding", + "data": "ME", + "valid": false + }, + { + "description": "Invalid - three chars without padding", + "data": "MEZ", + "valid": false + }, + { + "description": "Invalid - four chars without padding", + "data": "MZXQ", + "valid": false + }, + { + "description": "Invalid - five chars without padding", + "data": "MZXW6", + "valid": false + }, + { + "description": "Invalid - six chars without padding", + "data": "MZXW6Y", + "valid": false + }, + { + "description": "Invalid - seven chars without padding", + "data": "MZXW6YQ", + "valid": false + }, + { + "description": "Invalid - nine chars without padding", + "data": "MZXW6YTBO", + "valid": false + }, + { + "description": "Invalid - contains 0 (not in base32 alphabet)", + "data": "M0======", + "valid": false + }, + { + "description": "Invalid - contains 1 (not in base32 alphabet)", + "data": "M1======", + "valid": false + }, + { + "description": "Invalid - contains 8 (not in base32 alphabet)", + "data": "M8======", + "valid": false + }, + { + "description": "Invalid - contains 9 (not in base32 alphabet)", + "data": "M9======", + "valid": false + }, + { + "description": "Invalid - lowercase letters", + "data": "mzxw6===", + "valid": false + }, + { + "description": "Invalid - mixed case", + "data": "MzXw6===", + "valid": false + }, + { + "description": "Valid - 7 chars + 1 padding (non-canonical but syntactically valid)", + "data": "MZXW6YT=", + "valid": true + }, + { + "description": "Invalid - wrong padding count (2 equals)", + "data": "MZXW6Y==", + "valid": false + }, + { + "description": "Invalid - wrong padding count (5 equals)", + "data": "MZX=====", + "valid": false + }, + { + "description": "Invalid - wrong padding count (7 equals)", + "data": "M=======", + "valid": false + }, + { + "description": "Invalid - too much padding (8 equals)", + "data": "========", + "valid": false + }, + { + "description": "Invalid - padding in middle", + "data": "ME======MZXW6===", + "valid": false + }, + { + "description": "Invalid - padding not at end", + "data": "M=ZXQAAA", + "valid": false + }, + { + "description": "Invalid - contains space", + "data": "MZXW 6===", + "valid": false + }, + { + "description": "Invalid - contains hyphen", + "data": "MZXW-6===", + "valid": false + }, + { + "description": "Invalid - contains underscore", + "data": "MZXW_6===", + "valid": false + }, + { + "description": "Invalid - contains plus", + "data": "MZXW+6===", + "valid": false + }, + { + "description": "Invalid - contains slash", + "data": "MZXW/6===", + "valid": false + }, + { + "description": "Invalid - contains period", + "data": "MZXW.6===", + "valid": false + }, + { + "description": "Invalid - contains comma", + "data": "MZXW,6===", + "valid": false + }, + { + "description": "Invalid - contains (", + "data": "MZXW(===", + "valid": false + }, + { + "description": "Invalid - contains )", + "data": "MZXW)===", + "valid": false + }, + { + "description": "Invalid - contains [", + "data": "MZXW[===", + "valid": false + }, + { + "description": "Invalid - contains ]", + "data": "MZXW]===", + "valid": false + }, + { + "description": "Invalid - contains {", + "data": "MZXW{===", + "valid": false + }, + { + "description": "Invalid - contains }", + "data": "MZXW}===", + "valid": false + }, + { + "description": "Invalid - contains !", + "data": "MZXW!===", + "valid": false + }, + { + "description": "Invalid - contains ?", + "data": "MZXW?===", + "valid": false + }, + { + "description": "Invalid - contains @", + "data": "MZXW@===", + "valid": false + }, + { + "description": "Invalid - contains #", + "data": "MZXW#===", + "valid": false + }, + { + "description": "Invalid - contains $", + "data": "MZXW$===", + "valid": false + }, + { + "description": "Invalid - contains %", + "data": "MZXW%===", + "valid": false + }, + { + "description": "Invalid - contains ^", + "data": "MZXW^===", + "valid": false + }, + { + "description": "Invalid - contains &", + "data": "MZXW&===", + "valid": false + }, + { + "description": "Invalid - contains *", + "data": "MZXW*===", + "valid": false + }, + { + "description": "Invalid - contains ~", + "data": "MZXW~===", + "valid": false + }, + { + "description": "Invalid - contains `", + "data": "MZXW`===", + "valid": false + }, + { + "description": "Invalid - contains |", + "data": "MZXW|===", + "valid": false + }, + { + "description": "Invalid - contains \\", + "data": "MZXW\\===", + "valid": false + }, + { + "description": "Invalid - contains :", + "data": "MZXW:===", + "valid": false + }, + { + "description": "Invalid - contains ;", + "data": "MZXW;===", + "valid": false + }, + { + "description": "Invalid - contains '", + "data": "MZXW'===", + "valid": false + }, + { + "description": "Invalid - contains \"", + "data": "MZXW\"===", + "valid": false + }, + { + "description": "Invalid - contains <", + "data": "MZXW<===", + "valid": false + }, + { + "description": "Invalid - contains >", + "data": "MZXW>===", + "valid": false + }, + { + "description": "Invalid - leading space", + "data": " MZXW6===", + "valid": false + }, + { + "description": "Invalid - trailing space", + "data": "MZXW6=== ", + "valid": false + }, + { + "description": "Invalid - leading tab", + "data": "\tMZXW6===", + "valid": false + }, + { + "description": "Invalid - trailing tab", + "data": "MZXW6===\t", + "valid": false + }, + { + "description": "Invalid - tab in middle", + "data": "MZXW\t6===", + "valid": false + }, + { + "description": "Invalid - contains newline", + "data": "MZXW\n6===", + "valid": false + }, + { + "description": "Invalid - contains carriage return", + "data": "MZXW\r6===", + "valid": false + }, + { + "description": "Invalid - non-ASCII character", + "data": "MZXWé===", + "valid": false + }, + { + "description": "Invalid - emoji", + "data": "MZXW😀===", + "valid": false + }, + { + "description": "Invalid - number type", + "data": 123, + "valid": false + }, + { + "description": "Invalid - boolean type", + "data": true, + "valid": false + }, + { + "description": "Invalid - null type", + "data": null, + "valid": false + }, + { + "description": "Invalid - padding at beginning", + "data": "======ME", + "valid": false + }, + { + "description": "Invalid - only padding", + "data": "========", + "valid": false + }, + { + "description": "Invalid - mixed padding", + "data": "M=Z=W===", + "valid": false + }, + { + "description": "Valid - all alphabet chars at start", + "data": "ABCDEFGH", + "valid": true + }, + { + "description": "Valid - all alphabet chars at end", + "data": "STUVWXYZ", + "valid": true + }, + { + "description": "Valid - digit 2", + "data": "2AAAAAAA", + "valid": true + }, + { + "description": "Valid - digit 3", + "data": "3AAAAAAA", + "valid": true + }, + { + "description": "Valid - digit 4", + "data": "4AAAAAAA", + "valid": true + }, + { + "description": "Valid - digit 5", + "data": "5AAAAAAA", + "valid": true + }, + { + "description": "Valid - digit 6", + "data": "6AAAAAAA", + "valid": true + }, + { + "description": "Valid - digit 7", + "data": "7AAAAAAA", + "valid": true + }, + { + "description": "Valid - repeating pattern", + "data": "ABABABABABABABAB", + "valid": true + }, + { + "description": "Valid - very long valid base32", + "data": "JBSWY3DPFQQFO33SNRSCC===", + "valid": true + }, + { + "description": "Invalid - 3 chars with 4 padding (should be 6 padding for 2 chars)", + "data": "MEZ====", + "valid": false + }, + { + "description": "Invalid - 6 chars with 3 padding (no valid padding for 6 chars)", + "data": "MZXW6Y===", + "valid": false + } + ] +} diff --git a/test/schemas/ietf/encoding/4648/base32hex/v1.test.json b/test/schemas/ietf/encoding/4648/base32hex/v1.test.json new file mode 100644 index 00000000..be6a67eb --- /dev/null +++ b/test/schemas/ietf/encoding/4648/base32hex/v1.test.json @@ -0,0 +1,510 @@ +{ + "target": "../../../../../../schemas/ietf/encoding/4648/base32hex/v1.json", + "tests": [ + { + "description": "Valid - empty string", + "data": "", + "valid": true + }, + { + "description": "Valid - single byte (2 chars + 6 padding)", + "data": "C4======", + "valid": true + }, + { + "description": "Valid - two bytes (4 chars + 4 padding)", + "data": "CPNG====", + "valid": true + }, + { + "description": "Valid - three bytes (5 chars + 3 padding)", + "data": "CPNMU===", + "valid": true + }, + { + "description": "Valid - four bytes (7 chars + 1 padding)", + "data": "CPNMUO8=", + "valid": true + }, + { + "description": "Valid - five bytes (8 chars, no padding)", + "data": "CPNMUOJ1", + "valid": true + }, + { + "description": "Valid - 'Hello World!'", + "data": "91IMOR3F41BMUSJCCG======", + "valid": true + }, + { + "description": "Valid - 'foo'", + "data": "CPNMU===", + "valid": true + }, + { + "description": "Valid - 'foobar'", + "data": "CPNMUOJ1E8======", + "valid": true + }, + { + "description": "Valid - all 0's", + "data": "00000000", + "valid": true + }, + { + "description": "Valid - all V's", + "data": "VVVVVVVV", + "valid": true + }, + { + "description": "Valid - mixed alphabet", + "data": "0123456789ABCDEFGHIJKLMNOPQRSTUV", + "valid": true + }, + { + "description": "Valid - only digits 0-9", + "data": "01234567", + "valid": true + }, + { + "description": "Valid - only letters A-V", + "data": "ABCDEFGHIJKLMNOP", + "valid": true + }, + { + "description": "Valid - 16 chars no padding", + "data": "0123456789ABCDEF", + "valid": true + }, + { + "description": "Valid - 24 chars no padding", + "data": "0123456789ABCDEFGHIJKLMN", + "valid": true + }, + { + "description": "Valid - long string with padding", + "data": "91IMOR3F41BMUSJCCGGG====", + "valid": true + }, + { + "description": "Invalid - single char without padding", + "data": "C", + "valid": false + }, + { + "description": "Invalid - two chars without padding", + "data": "C4", + "valid": false + }, + { + "description": "Invalid - three chars without padding", + "data": "C4P", + "valid": false + }, + { + "description": "Invalid - four chars without padding", + "data": "CPNG", + "valid": false + }, + { + "description": "Invalid - five chars without padding", + "data": "CPNMU", + "valid": false + }, + { + "description": "Invalid - six chars without padding", + "data": "CPNMUO", + "valid": false + }, + { + "description": "Invalid - seven chars without padding", + "data": "CPNMUO8", + "valid": false + }, + { + "description": "Invalid - nine chars without padding", + "data": "CPNMUOJ1E", + "valid": false + }, + { + "description": "Invalid - contains W (not in base32hex alphabet)", + "data": "CPNMUW==", + "valid": false + }, + { + "description": "Invalid - contains X (not in base32hex alphabet)", + "data": "CPNMUX==", + "valid": false + }, + { + "description": "Invalid - contains Y (not in base32hex alphabet)", + "data": "CPNMUY==", + "valid": false + }, + { + "description": "Invalid - contains Z (not in base32hex alphabet)", + "data": "CPNMUZ==", + "valid": false + }, + { + "description": "Invalid - lowercase letters", + "data": "cpnmu===", + "valid": false + }, + { + "description": "Invalid - mixed case", + "data": "CpNmU===", + "valid": false + }, + { + "description": "Valid - 7 chars + 1 padding (non-canonical but syntactically valid)", + "data": "CPNMUOJ=", + "valid": true + }, + { + "description": "Invalid - wrong padding count (2 equals)", + "data": "CPNMUO==", + "valid": false + }, + { + "description": "Invalid - wrong padding count (5 equals)", + "data": "CPN=====", + "valid": false + }, + { + "description": "Invalid - wrong padding count (7 equals)", + "data": "C=======", + "valid": false + }, + { + "description": "Invalid - too much padding (8 equals)", + "data": "========", + "valid": false + }, + { + "description": "Invalid - padding in middle", + "data": "C4======CPNMU===", + "valid": false + }, + { + "description": "Invalid - padding not at end", + "data": "C=PNG000", + "valid": false + }, + { + "description": "Invalid - contains space", + "data": "CPNMU ===", + "valid": false + }, + { + "description": "Invalid - contains hyphen", + "data": "CPNMU-===", + "valid": false + }, + { + "description": "Invalid - contains underscore", + "data": "CPNMU_===", + "valid": false + }, + { + "description": "Invalid - contains plus", + "data": "CPNMU+===", + "valid": false + }, + { + "description": "Invalid - contains slash", + "data": "CPNMU/===", + "valid": false + }, + { + "description": "Invalid - contains period", + "data": "CPNMU.===", + "valid": false + }, + { + "description": "Invalid - contains comma", + "data": "CPNMU,===", + "valid": false + }, + { + "description": "Invalid - contains (", + "data": "CPNMU(==", + "valid": false + }, + { + "description": "Invalid - contains )", + "data": "CPNMU)==", + "valid": false + }, + { + "description": "Invalid - contains [", + "data": "CPNMU[==", + "valid": false + }, + { + "description": "Invalid - contains ]", + "data": "CPNMU]==", + "valid": false + }, + { + "description": "Invalid - contains {", + "data": "CPNMU{==", + "valid": false + }, + { + "description": "Invalid - contains }", + "data": "CPNMU}==", + "valid": false + }, + { + "description": "Invalid - contains !", + "data": "CPNMU!==", + "valid": false + }, + { + "description": "Invalid - contains ?", + "data": "CPNMU?==", + "valid": false + }, + { + "description": "Invalid - contains @", + "data": "CPNMU@==", + "valid": false + }, + { + "description": "Invalid - contains #", + "data": "CPNMU#==", + "valid": false + }, + { + "description": "Invalid - contains $", + "data": "CPNMU$==", + "valid": false + }, + { + "description": "Invalid - contains %", + "data": "CPNMU%==", + "valid": false + }, + { + "description": "Invalid - contains ^", + "data": "CPNMU^==", + "valid": false + }, + { + "description": "Invalid - contains &", + "data": "CPNMU&==", + "valid": false + }, + { + "description": "Invalid - contains *", + "data": "CPNMU*==", + "valid": false + }, + { + "description": "Invalid - contains ~", + "data": "CPNMU~==", + "valid": false + }, + { + "description": "Invalid - contains `", + "data": "CPNMU`==", + "valid": false + }, + { + "description": "Invalid - contains |", + "data": "CPNMU|==", + "valid": false + }, + { + "description": "Invalid - contains \\", + "data": "CPNMU\\==", + "valid": false + }, + { + "description": "Invalid - contains :", + "data": "CPNMU:==", + "valid": false + }, + { + "description": "Invalid - contains ;", + "data": "CPNMU;==", + "valid": false + }, + { + "description": "Invalid - contains '", + "data": "CPNMU'==", + "valid": false + }, + { + "description": "Invalid - contains \"", + "data": "CPNMU\"==", + "valid": false + }, + { + "description": "Invalid - contains <", + "data": "CPNMU<==", + "valid": false + }, + { + "description": "Invalid - contains >", + "data": "CPNMU>==", + "valid": false + }, + { + "description": "Invalid - leading space", + "data": " CPNMU===", + "valid": false + }, + { + "description": "Invalid - trailing space", + "data": "CPNMU=== ", + "valid": false + }, + { + "description": "Invalid - leading tab", + "data": "\tCPNMU===", + "valid": false + }, + { + "description": "Invalid - trailing tab", + "data": "CPNMU===\t", + "valid": false + }, + { + "description": "Invalid - tab in middle", + "data": "CPN\tMU===", + "valid": false + }, + { + "description": "Invalid - contains newline", + "data": "CPN\nMU===", + "valid": false + }, + { + "description": "Invalid - contains carriage return", + "data": "CPN\rMU===", + "valid": false + }, + { + "description": "Invalid - non-ASCII character", + "data": "CPNMUé==", + "valid": false + }, + { + "description": "Invalid - emoji", + "data": "CPNMU😀==", + "valid": false + }, + { + "description": "Invalid - number type", + "data": 123, + "valid": false + }, + { + "description": "Invalid - boolean type", + "data": true, + "valid": false + }, + { + "description": "Invalid - null type", + "data": null, + "valid": false + }, + { + "description": "Invalid - padding at beginning", + "data": "======C4", + "valid": false + }, + { + "description": "Invalid - only padding", + "data": "========", + "valid": false + }, + { + "description": "Invalid - mixed padding", + "data": "C=P=MU==", + "valid": false + }, + { + "description": "Valid - digit 0", + "data": "00000000", + "valid": true + }, + { + "description": "Valid - digit 1", + "data": "11111111", + "valid": true + }, + { + "description": "Valid - digit 2", + "data": "22222222", + "valid": true + }, + { + "description": "Valid - digit 3", + "data": "33333333", + "valid": true + }, + { + "description": "Valid - digit 4", + "data": "44444444", + "valid": true + }, + { + "description": "Valid - digit 5", + "data": "55555555", + "valid": true + }, + { + "description": "Valid - digit 6", + "data": "66666666", + "valid": true + }, + { + "description": "Valid - digit 7", + "data": "77777777", + "valid": true + }, + { + "description": "Valid - digit 8", + "data": "88888888", + "valid": true + }, + { + "description": "Valid - digit 9", + "data": "99999999", + "valid": true + }, + { + "description": "Valid - letter A", + "data": "AAAAAAAA", + "valid": true + }, + { + "description": "Valid - letter V", + "data": "VVVVVVVV", + "valid": true + }, + { + "description": "Valid - repeating pattern", + "data": "0A0A0A0A", + "valid": true + }, + { + "description": "Valid - very long valid base32hex", + "data": "91IMOR3F5GG5E33IDHIA====", + "valid": true + }, + { + "description": "Invalid - 3 chars with 4 padding (should be 6 padding for 2 chars)", + "data": "C4P====", + "valid": false + }, + { + "description": "Invalid - 6 chars with 3 padding (no valid padding for 6 chars)", + "data": "CPNMUO===", + "valid": false + } + ] +} diff --git a/test/schemas/ietf/encoding/4648/base64/v1.test.json b/test/schemas/ietf/encoding/4648/base64/v1.test.json new file mode 100644 index 00000000..3e3bbc28 --- /dev/null +++ b/test/schemas/ietf/encoding/4648/base64/v1.test.json @@ -0,0 +1,525 @@ +{ + "target": "../../../../../../schemas/ietf/encoding/4648/base64/v1.json", + "tests": [ + { + "description": "Valid - empty string", + "data": "", + "valid": true + }, + { + "description": "Valid - single char with padding", + "data": "YQ==", + "valid": true + }, + { + "description": "Valid - two chars with padding", + "data": "YWI=", + "valid": true + }, + { + "description": "Valid - three chars no padding", + "data": "YWJj", + "valid": true + }, + { + "description": "Valid - four chars", + "data": "YWJjZA==", + "valid": true + }, + { + "description": "Valid - Hello World", + "data": "SGVsbG8gV29ybGQh", + "valid": true + }, + { + "description": "Invalid - insufficient chars in final group", + "data": "a+b/c==", + "valid": false + }, + { + "description": "Valid - with plus sign", + "data": "a+b/cg==", + "valid": true + }, + { + "description": "Valid - with slash", + "data": "abc/def=", + "valid": true + }, + { + "description": "Valid - all uppercase", + "data": "QUJDRA==", + "valid": true + }, + { + "description": "Valid - all lowercase", + "data": "cXdlcg==", + "valid": true + }, + { + "description": "Valid - all digits", + "data": "MTIzNDU2Nzg5MA==", + "valid": true + }, + { + "description": "Valid - GIF header", + "data": "R0lGODlhAQABAAAAACw=", + "valid": true + }, + { + "description": "Valid - multiple of 4 chars", + "data": "YWJjZGVmZ2hpamtsbW5vcA==", + "valid": true + }, + { + "description": "Valid - long string", + "data": "VGhpcyBpcyBhIGxvbmcgYmFzZTY0IGVuY29kZWQgc3RyaW5nIHRoYXQgc2hvdWxkIGJlIHZhbGlk", + "valid": true + }, + { + "description": "Invalid - one equals padding only", + "data": "YWI==", + "valid": false + }, + { + "description": "Invalid - three equals", + "data": "YQ===", + "valid": false + }, + { + "description": "Invalid - padding in middle", + "data": "YQ==YWI=", + "valid": false + }, + { + "description": "Invalid - padding not at end", + "data": "Y=WI", + "valid": false + }, + { + "description": "Invalid - single character without padding (insufficient data)", + "data": "Y", + "valid": false + }, + { + "description": "Invalid - two characters without required padding", + "data": "YW", + "valid": false + }, + { + "description": "Invalid - three characters without required padding", + "data": "YWJ", + "valid": false + }, + { + "description": "Invalid - contains space", + "data": "YWJj ZA==", + "valid": false + }, + { + "description": "Invalid - contains dash", + "data": "YWJj-ZA==", + "valid": false + }, + { + "description": "Invalid - contains underscore", + "data": "YWJj_ZA==", + "valid": false + }, + { + "description": "Invalid - contains period", + "data": "YWJj.ZA==", + "valid": false + }, + { + "description": "Invalid - contains comma", + "data": "YWJj,ZA==", + "valid": false + }, + { + "description": "Invalid - contains special char", + "data": "YWJj@ZA==", + "valid": false + }, + { + "description": "Invalid - number type", + "data": 123, + "valid": false + }, + { + "description": "Invalid - boolean type", + "data": true, + "valid": false + }, + { + "description": "Invalid - null type", + "data": null, + "valid": false + }, + { + "description": "Valid - only uppercase letters", + "data": "ABCDEFGH", + "valid": true + }, + { + "description": "Valid - only lowercase letters", + "data": "abcdefgh", + "valid": true + }, + { + "description": "Valid - only digits", + "data": "01234567", + "valid": true + }, + { + "description": "Valid - plus at start", + "data": "+ABC", + "valid": true + }, + { + "description": "Valid - slash at start", + "data": "/ABC", + "valid": true + }, + { + "description": "Valid - plus at end", + "data": "ABC+", + "valid": true + }, + { + "description": "Valid - slash at end", + "data": "ABC/", + "valid": true + }, + { + "description": "Valid - multiple plus signs", + "data": "A+B+C+D+", + "valid": true + }, + { + "description": "Valid - multiple slashes", + "data": "A/B/C/D/", + "valid": true + }, + { + "description": "Valid - plus and slash mixed", + "data": "A+B/C+D/", + "valid": true + }, + { + "description": "Valid - 8 chars no padding", + "data": "ABCDEFGH", + "valid": true + }, + { + "description": "Valid - 12 chars no padding", + "data": "ABCDEFGHIJKL", + "valid": true + }, + { + "description": "Valid - 16 chars no padding", + "data": "ABCDEFGHIJKLMNOP", + "valid": true + }, + { + "description": "Invalid - 5 chars without required padding", + "data": "ABCDE", + "valid": false + }, + { + "description": "Invalid - 6 chars without required padding", + "data": "ABCDEF", + "valid": false + }, + { + "description": "Invalid - 7 chars without required padding", + "data": "ABCDEFG", + "valid": false + }, + { + "description": "Invalid - 10 chars without required padding", + "data": "ABCDEFGHIJ", + "valid": false + }, + { + "description": "Valid - padding with two equals at end of 4-char group", + "data": "AB==", + "valid": true + }, + { + "description": "Valid - padding with one equal at end of 4-char group", + "data": "ABC=", + "valid": true + }, + { + "description": "Valid - 8 chars then padding", + "data": "ABCDEFGH/w==", + "valid": true + }, + { + "description": "Valid - all char types", + "data": "AZ09+/AB", + "valid": true + }, + { + "description": "Valid - repeated patterns", + "data": "AAAABBBBCCCCDDDD", + "valid": true + }, + { + "description": "Valid - zeros encoded", + "data": "AAAA", + "valid": true + }, + { + "description": "Valid - max values encoded", + "data": "////", + "valid": true + }, + { + "description": "Valid - alternating chars", + "data": "AaAaAaAa", + "valid": true + }, + { + "description": "Invalid - padding at beginning", + "data": "==ABCD", + "valid": false + }, + { + "description": "Invalid - padding in first position", + "data": "=ABC", + "valid": false + }, + { + "description": "Invalid - only equals", + "data": "====", + "valid": false + }, + { + "description": "Invalid - single equals", + "data": "=", + "valid": false + }, + { + "description": "Invalid - double equals alone", + "data": "==", + "valid": false + }, + { + "description": "Invalid - four equals", + "data": "ABCD====", + "valid": false + }, + { + "description": "Invalid - padding then more chars", + "data": "AB==CD", + "valid": false + }, + { + "description": "Invalid - padding then padding", + "data": "AB===", + "valid": false + }, + { + "description": "Invalid - mixed padding positions", + "data": "A=B=", + "valid": false + }, + { + "description": "Invalid - three chars with two equals", + "data": "ABC==", + "valid": false + }, + { + "description": "Invalid - two chars with one equal", + "data": "AB=", + "valid": false + }, + { + "description": "Invalid - five chars with padding", + "data": "ABCDE=", + "valid": false + }, + { + "description": "Valid - uppercase G", + "data": "ABCG", + "valid": true + }, + { + "description": "Valid - lowercase g", + "data": "ABCg", + "valid": true + }, + { + "description": "Invalid - contains (", + "data": "ABC(", + "valid": false + }, + { + "description": "Invalid - contains )", + "data": "ABC)", + "valid": false + }, + { + "description": "Invalid - contains [", + "data": "ABC[", + "valid": false + }, + { + "description": "Invalid - contains ]", + "data": "ABC]", + "valid": false + }, + { + "description": "Invalid - contains {", + "data": "ABC{", + "valid": false + }, + { + "description": "Invalid - contains }", + "data": "ABC}", + "valid": false + }, + { + "description": "Invalid - contains !", + "data": "ABC!", + "valid": false + }, + { + "description": "Invalid - contains ?", + "data": "ABC?", + "valid": false + }, + { + "description": "Invalid - contains *", + "data": "ABC*", + "valid": false + }, + { + "description": "Invalid - contains &", + "data": "ABC&", + "valid": false + }, + { + "description": "Invalid - contains $", + "data": "ABC$", + "valid": false + }, + { + "description": "Invalid - contains %", + "data": "ABC%", + "valid": false + }, + { + "description": "Invalid - contains #", + "data": "ABC#", + "valid": false + }, + { + "description": "Invalid - contains ^", + "data": "ABC^", + "valid": false + }, + { + "description": "Invalid - contains ~", + "data": "ABC~", + "valid": false + }, + { + "description": "Invalid - contains `", + "data": "ABC`", + "valid": false + }, + { + "description": "Invalid - contains |", + "data": "ABC|", + "valid": false + }, + { + "description": "Invalid - contains \\", + "data": "ABC\\", + "valid": false + }, + { + "description": "Invalid - contains ;", + "data": "ABC;", + "valid": false + }, + { + "description": "Invalid - contains :", + "data": "ABC:", + "valid": false + }, + { + "description": "Invalid - contains '", + "data": "ABC'", + "valid": false + }, + { + "description": "Invalid - contains \"", + "data": "ABC\"", + "valid": false + }, + { + "description": "Invalid - contains <", + "data": "ABC<", + "valid": false + }, + { + "description": "Invalid - contains >", + "data": "ABC>", + "valid": false + }, + { + "description": "Invalid - leading tab", + "data": "\tABCD", + "valid": false + }, + { + "description": "Invalid - trailing tab", + "data": "ABCD\t", + "valid": false + }, + { + "description": "Invalid - tab in middle", + "data": "AB\tCD", + "valid": false + }, + { + "description": "Invalid - leading space", + "data": " ABCD", + "valid": false + }, + { + "description": "Invalid - trailing space", + "data": "ABCD ", + "valid": false + }, + { + "description": "Invalid - multiple spaces", + "data": "AB CD", + "valid": false + }, + { + "description": "Invalid - contains carriage return", + "data": "AB\rCD", + "valid": false + }, + { + "description": "Invalid - non-ASCII character", + "data": "ABCé", + "valid": false + }, + { + "description": "Invalid - emoji", + "data": "ABC😀", + "valid": false + }, + { + "description": "Valid - very long valid base64", + "data": "VGhpcyBpcyBhIHZlcnkgbG9uZyBiYXNlNjQgZW5jb2RlZCBzdHJpbmcgdGhhdCB3ZSBhcmUgdXNpbmcgdG8gdGVzdCB0aGUgdmFsaWRhdGlvbiBvZiBsb25nZXIgaW5wdXRzIHRvIG1ha2Ugc3VyZSBvdXIgcGF0dGVybiB3b3JrcyBjb3JyZWN0bHk=", + "valid": true + } + ] +} diff --git a/test/schemas/ietf/encoding/4648/base64url/v1.test.json b/test/schemas/ietf/encoding/4648/base64url/v1.test.json new file mode 100644 index 00000000..44a743f3 --- /dev/null +++ b/test/schemas/ietf/encoding/4648/base64url/v1.test.json @@ -0,0 +1,540 @@ +{ + "target": "../../../../../../schemas/ietf/encoding/4648/base64url/v1.json", + "tests": [ + { + "description": "Valid - empty string", + "data": "", + "valid": true + }, + { + "description": "Valid - single char with padding", + "data": "YQ==", + "valid": true + }, + { + "description": "Valid - two chars with padding", + "data": "YWI=", + "valid": true + }, + { + "description": "Valid - three chars no padding", + "data": "YWJj", + "valid": true + }, + { + "description": "Valid - four chars", + "data": "YWJjZA==", + "valid": true + }, + { + "description": "Valid - Hello World", + "data": "SGVsbG8gV29ybGQh", + "valid": true + }, + { + "description": "Invalid - insufficient chars in final group", + "data": "a-b_c==", + "valid": false + }, + { + "description": "Valid - with hyphen", + "data": "a-b_cg==", + "valid": true + }, + { + "description": "Valid - with underscore", + "data": "abc_def=", + "valid": true + }, + { + "description": "Valid - all uppercase", + "data": "QUJDRA==", + "valid": true + }, + { + "description": "Valid - all lowercase", + "data": "cXdlcg==", + "valid": true + }, + { + "description": "Valid - all digits", + "data": "MTIzNDU2Nzg5MA==", + "valid": true + }, + { + "description": "Valid - GIF header", + "data": "R0lGODlhAQABAAAAACw=", + "valid": true + }, + { + "description": "Valid - multiple of 4 chars", + "data": "YWJjZGVmZ2hpamtsbW5vcA==", + "valid": true + }, + { + "description": "Valid - long string", + "data": "VGhpcyBpcyBhIGxvbmcgYmFzZTY0IHVybCBlbmNvZGVkIHN0cmluZyB0aGF0IHNob3VsZCBiZSB2YWxpZA==", + "valid": true + }, + { + "description": "Invalid - one equals padding only", + "data": "YWI==", + "valid": false + }, + { + "description": "Invalid - three equals", + "data": "YQ===", + "valid": false + }, + { + "description": "Invalid - padding in middle", + "data": "YQ==YWI=", + "valid": false + }, + { + "description": "Invalid - padding not at end", + "data": "Y=WI", + "valid": false + }, + { + "description": "Invalid - single character without padding (insufficient data)", + "data": "Y", + "valid": false + }, + { + "description": "Invalid - two characters without required padding", + "data": "YW", + "valid": false + }, + { + "description": "Invalid - three characters without required padding", + "data": "YWJ", + "valid": false + }, + { + "description": "Invalid - contains space", + "data": "YWJj ZA==", + "valid": false + }, + { + "description": "Invalid - contains period", + "data": "YWJj.ZA==", + "valid": false + }, + { + "description": "Invalid - contains comma", + "data": "YWJj,ZA==", + "valid": false + }, + { + "description": "Invalid - contains special char", + "data": "YWJj@ZA==", + "valid": false + }, + { + "description": "Invalid - number type", + "data": 123, + "valid": false + }, + { + "description": "Invalid - boolean type", + "data": true, + "valid": false + }, + { + "description": "Invalid - null type", + "data": null, + "valid": false + }, + { + "description": "Valid - only uppercase letters", + "data": "ABCDEFGH", + "valid": true + }, + { + "description": "Valid - only lowercase letters", + "data": "abcdefgh", + "valid": true + }, + { + "description": "Valid - only digits", + "data": "01234567", + "valid": true + }, + { + "description": "Valid - hyphen at start", + "data": "-ABC", + "valid": true + }, + { + "description": "Valid - underscore at start", + "data": "_ABC", + "valid": true + }, + { + "description": "Valid - hyphen at end", + "data": "ABC-", + "valid": true + }, + { + "description": "Valid - underscore at end", + "data": "ABC_", + "valid": true + }, + { + "description": "Valid - multiple hyphens", + "data": "A-B-C-D-", + "valid": true + }, + { + "description": "Valid - multiple underscores", + "data": "A_B_C_D_", + "valid": true + }, + { + "description": "Valid - hyphen and underscore mixed", + "data": "A-B_C-D_", + "valid": true + }, + { + "description": "Valid - 8 chars no padding", + "data": "ABCDEFGH", + "valid": true + }, + { + "description": "Valid - 12 chars no padding", + "data": "ABCDEFGHIJKL", + "valid": true + }, + { + "description": "Valid - 16 chars no padding", + "data": "ABCDEFGHIJKLMNOP", + "valid": true + }, + { + "description": "Invalid - 5 chars without required padding", + "data": "ABCDE", + "valid": false + }, + { + "description": "Invalid - 6 chars without required padding", + "data": "ABCDEF", + "valid": false + }, + { + "description": "Invalid - 7 chars without required padding", + "data": "ABCDEFG", + "valid": false + }, + { + "description": "Invalid - 10 chars without required padding", + "data": "ABCDEFGHIJ", + "valid": false + }, + { + "description": "Valid - padding with two equals at end of 4-char group", + "data": "AB==", + "valid": true + }, + { + "description": "Valid - padding with one equal at end of 4-char group", + "data": "ABC=", + "valid": true + }, + { + "description": "Valid - 8 chars then padding", + "data": "ABCDEFGH_w==", + "valid": true + }, + { + "description": "Valid - all char types", + "data": "AZ09-_AB", + "valid": true + }, + { + "description": "Valid - repeated patterns", + "data": "AAAABBBBCCCCDDDD", + "valid": true + }, + { + "description": "Valid - zeros encoded", + "data": "AAAA", + "valid": true + }, + { + "description": "Valid - alternating chars", + "data": "AaAaAaAa", + "valid": true + }, + { + "description": "Invalid - padding at beginning", + "data": "==ABCD", + "valid": false + }, + { + "description": "Invalid - padding in first position", + "data": "=ABC", + "valid": false + }, + { + "description": "Invalid - only equals", + "data": "====", + "valid": false + }, + { + "description": "Invalid - single equals", + "data": "=", + "valid": false + }, + { + "description": "Invalid - double equals alone", + "data": "==", + "valid": false + }, + { + "description": "Invalid - four equals", + "data": "ABCD====", + "valid": false + }, + { + "description": "Invalid - padding then more chars", + "data": "AB==CD", + "valid": false + }, + { + "description": "Invalid - padding then padding", + "data": "AB===", + "valid": false + }, + { + "description": "Invalid - mixed padding positions", + "data": "A=B=", + "valid": false + }, + { + "description": "Invalid - three chars with two equals", + "data": "ABC==", + "valid": false + }, + { + "description": "Invalid - two chars with one equal", + "data": "AB=", + "valid": false + }, + { + "description": "Invalid - five chars with padding", + "data": "ABCDE=", + "valid": false + }, + { + "description": "Valid - uppercase G", + "data": "ABCG", + "valid": true + }, + { + "description": "Valid - lowercase g", + "data": "ABCg", + "valid": true + }, + { + "description": "Invalid - contains plus (base64 char, not base64url)", + "data": "ABC+", + "valid": false + }, + { + "description": "Invalid - contains slash (base64 char, not base64url)", + "data": "ABC/", + "valid": false + }, + { + "description": "Invalid - contains (", + "data": "ABC(", + "valid": false + }, + { + "description": "Invalid - contains )", + "data": "ABC)", + "valid": false + }, + { + "description": "Invalid - contains [", + "data": "ABC[", + "valid": false + }, + { + "description": "Invalid - contains ]", + "data": "ABC]", + "valid": false + }, + { + "description": "Invalid - contains {", + "data": "ABC{", + "valid": false + }, + { + "description": "Invalid - contains }", + "data": "ABC}", + "valid": false + }, + { + "description": "Invalid - contains !", + "data": "ABC!", + "valid": false + }, + { + "description": "Invalid - contains ?", + "data": "ABC?", + "valid": false + }, + { + "description": "Invalid - contains *", + "data": "ABC*", + "valid": false + }, + { + "description": "Invalid - contains &", + "data": "ABC&", + "valid": false + }, + { + "description": "Invalid - contains $", + "data": "ABC$", + "valid": false + }, + { + "description": "Invalid - contains %", + "data": "ABC%", + "valid": false + }, + { + "description": "Invalid - contains #", + "data": "ABC#", + "valid": false + }, + { + "description": "Invalid - contains ^", + "data": "ABC^", + "valid": false + }, + { + "description": "Invalid - contains ~", + "data": "ABC~", + "valid": false + }, + { + "description": "Invalid - contains `", + "data": "ABC`", + "valid": false + }, + { + "description": "Invalid - contains |", + "data": "ABC|", + "valid": false + }, + { + "description": "Invalid - contains \\", + "data": "ABC\\", + "valid": false + }, + { + "description": "Invalid - contains ;", + "data": "ABC;", + "valid": false + }, + { + "description": "Invalid - contains :", + "data": "ABC:", + "valid": false + }, + { + "description": "Invalid - contains '", + "data": "ABC'", + "valid": false + }, + { + "description": "Invalid - contains \"", + "data": "ABC\"", + "valid": false + }, + { + "description": "Invalid - contains <", + "data": "ABC<", + "valid": false + }, + { + "description": "Invalid - contains >", + "data": "ABC>", + "valid": false + }, + { + "description": "Invalid - leading tab", + "data": "\tABCD", + "valid": false + }, + { + "description": "Invalid - trailing tab", + "data": "ABCD\t", + "valid": false + }, + { + "description": "Invalid - tab in middle", + "data": "AB\tCD", + "valid": false + }, + { + "description": "Invalid - leading space", + "data": " ABCD", + "valid": false + }, + { + "description": "Invalid - trailing space", + "data": "ABCD ", + "valid": false + }, + { + "description": "Invalid - multiple spaces", + "data": "AB CD", + "valid": false + }, + { + "description": "Invalid - contains newline", + "data": "AB\nCD", + "valid": false + }, + { + "description": "Invalid - contains carriage return", + "data": "AB\rCD", + "valid": false + }, + { + "description": "Invalid - non-ASCII character", + "data": "ABCé", + "valid": false + }, + { + "description": "Invalid - emoji", + "data": "ABC😀", + "valid": false + }, + { + "description": "Valid - very long valid base64url", + "data": "VGhpcyBpcyBhIHZlcnkgbG9uZyBiYXNlNjQgdXJsIGVuY29kZWQgc3RyaW5nIHRoYXQgd2UgYXJlIHVzaW5nIHRvIHRlc3QgdGhlIHZhbGlkYXRpb24gb2YgbG9uZ2VyIGlucHV0cyB0byBtYWtlIHN1cmUgb3VyIHBhdHRlcm4gd29ya3MgY29ycmVjdGx5", + "valid": true + }, + { + "description": "Valid - URL-safe chars only", + "data": "A-Z_09ab", + "valid": true + }, + { + "description": "Invalid - base64 plus in base64url context", + "data": "SGVs+G8h", + "valid": false + }, + { + "description": "Invalid - base64 slash in base64url context", + "data": "SGVs/G8h", + "valid": false + } + ] +} diff --git a/test/schemas/ietf/geojson/7946/bounding-box/v1.test.json b/test/schemas/ietf/geojson/7946/bounding-box/v1.test.json new file mode 100644 index 00000000..53cebc8f --- /dev/null +++ b/test/schemas/ietf/geojson/7946/bounding-box/v1.test.json @@ -0,0 +1,150 @@ +{ + "target": "../../../../../../schemas/ietf/geojson/7946/bounding-box/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "not an array", + "valid": false + }, + { + "description": "Invalid type - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Empty array - too few items", + "data": [], + "valid": false + }, + { + "description": "One item - too few items", + "data": [ 0 ], + "valid": false + }, + { + "description": "Two items - too few items", + "data": [ 0, 0 ], + "valid": false + }, + { + "description": "Three items - too few items", + "data": [ 0, 0, 1 ], + "valid": false + }, + { + "description": "Valid 2D bounding box", + "data": [ -180, -90, 180, 90 ], + "valid": true + }, + { + "description": "Valid 3D bounding box", + "data": [ -180, -90, 0, 180, 90, 1000 ], + "valid": true + }, + { + "description": "Valid bounding box with decimal numbers", + "data": [ -122.5, 37.5, -122.0, 38.0 ], + "valid": true + }, + { + "description": "Valid bounding box with negative values", + "data": [ -10.5, -20.5, -5.0, -10.0 ], + "valid": true + }, + { + "description": "Invalid - contains string", + "data": [ 0, 0, "1", 1 ], + "valid": false + }, + { + "description": "Invalid - contains null", + "data": [ 0, 0, null, 1 ], + "valid": false + }, + { + "description": "Invalid - contains boolean", + "data": [ 0, 0, true, 1 ], + "valid": false + }, + { + "description": "Invalid - contains object", + "data": [ + 0, + 0, + {}, + 1 + ], + "valid": false + }, + { + "description": "Invalid - contains array", + "data": [ + 0, + 0, + [], + 1 + ], + "valid": false + }, + { + "description": "Invalid 2D bbox - south latitude below -90", + "data": [ 0, -91, 1, 0 ], + "valid": false + }, + { + "description": "Invalid 2D bbox - south latitude above 90", + "data": [ 0, 91, 1, 0 ], + "valid": false + }, + { + "description": "Invalid 2D bbox - north latitude below -90", + "data": [ 0, 0, 1, -91 ], + "valid": false + }, + { + "description": "Invalid 2D bbox - north latitude above 90", + "data": [ 0, 0, 1, 91 ], + "valid": false + }, + { + "description": "Invalid 3D bbox - south latitude out of range", + "data": [ 0, -91, 0, 1, 0, 100 ], + "valid": false + }, + { + "description": "Invalid 3D bbox - north latitude out of range", + "data": [ 0, 0, 0, 1, 91, 100 ], + "valid": false + }, + { + "description": "Valid - four dimensional box with even length", + "data": [ 0, 0, 0, 0, 1, 1, 1, 1 ], + "valid": true + }, + { + "description": "Invalid - odd number of elements can never be 2*n", + "valid": false, + "data": [ 1, 2, 3, 4, 5, 6, 7 ] + }, + { + "description": "Invalid - latitude beyond range in a four dimensional box", + "valid": false, + "data": [ 0, 95, 0, 0, 10, 96, 10, 10 ] + } + ] +} diff --git a/test/schemas/ietf/geojson/7946/feature-collection/v1.test.json b/test/schemas/ietf/geojson/7946/feature-collection/v1.test.json new file mode 100644 index 00000000..00a7c361 --- /dev/null +++ b/test/schemas/ietf/geojson/7946/feature-collection/v1.test.json @@ -0,0 +1,304 @@ +{ + "target": "../../../../../../schemas/ietf/geojson/7946/feature-collection/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "not an object", + "valid": false + }, + { + "description": "Invalid type - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Empty object - missing required properties", + "data": {}, + "valid": false + }, + { + "description": "Missing features property", + "data": { + "type": "FeatureCollection" + }, + "valid": false + }, + { + "description": "Missing type property", + "data": { + "features": [] + }, + "valid": false + }, + { + "description": "Wrong type value", + "data": { + "type": "Feature", + "features": [] + }, + "valid": false + }, + { + "description": "Valid empty FeatureCollection", + "data": { + "type": "FeatureCollection", + "features": [] + }, + "valid": true + }, + { + "description": "Valid FeatureCollection with one feature", + "data": { + "type": "FeatureCollection", + "features": [ + { + "type": "Feature", + "geometry": null, + "properties": null + } + ] + }, + "valid": true + }, + { + "description": "Valid FeatureCollection with multiple features", + "data": { + "type": "FeatureCollection", + "features": [ + { + "type": "Feature", + "geometry": { + "type": "Point", + "coordinates": [ 0, 0 ] + }, + "properties": { + "name": "Point A" + } + }, + { + "type": "Feature", + "geometry": { + "type": "Point", + "coordinates": [ 1, 1 ] + }, + "properties": { + "name": "Point B" + } + } + ] + }, + "valid": true + }, + { + "description": "Valid FeatureCollection with bbox", + "data": { + "type": "FeatureCollection", + "features": [], + "bbox": [ -180, -90, 180, 90 ] + }, + "valid": true + }, + { + "description": "RFC 7946 Section 5 - 2D bbox", + "data": { + "type": "FeatureCollection", + "bbox": [ 100.0, 0.0, 105.0, 1.0 ], + "features": [] + }, + "valid": true + }, + { + "description": "RFC 7946 Section 5 - 3D bbox", + "data": { + "type": "FeatureCollection", + "bbox": [ 100.0, 0.0, -100.0, 105.0, 1.0, 0.0 ], + "features": [] + }, + "valid": true + }, + { + "description": "RFC 7946 Section 1.5 - FeatureCollection example", + "data": { + "type": "FeatureCollection", + "features": [ + { + "type": "Feature", + "geometry": { + "type": "Point", + "coordinates": [ 102.0, 0.5 ] + }, + "properties": { + "prop0": "value0" + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ 102.0, 0.0 ], + [ 103.0, 1.0 ], + [ 104.0, 0.0 ], + [ 105.0, 1.0 ] + ] + }, + "properties": { + "prop0": "value0", + "prop1": 0.0 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ 100.0, 0.0 ], + [ 101.0, 0.0 ], + [ 101.0, 1.0 ], + [ 100.0, 1.0 ], + [ 100.0, 0.0 ] + ] + ] + }, + "properties": { + "prop0": "value0", + "prop1": { + "this": "that" + } + } + } + ] + }, + "valid": true + }, + { + "description": "Valid FeatureCollection with various geometries", + "data": { + "type": "FeatureCollection", + "features": [ + { + "type": "Feature", + "geometry": { + "type": "Point", + "coordinates": [ 0, 0 ] + }, + "properties": null + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ 0, 0 ], + [ 1, 1 ] + ] + }, + "properties": null + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ 0, 0 ], + [ 1, 0 ], + [ 1, 1 ], + [ 0, 0 ] + ] + ] + }, + "properties": null + } + ] + }, + "valid": true + }, + { + "description": "Invalid - features is not an array", + "data": { + "type": "FeatureCollection", + "features": {} + }, + "valid": false + }, + { + "description": "Invalid - feature missing required properties", + "data": { + "type": "FeatureCollection", + "features": [ + { + "type": "Feature" + } + ] + }, + "valid": false + }, + { + "description": "Invalid - feature has wrong type", + "data": { + "type": "FeatureCollection", + "features": [ + { + "type": "Point", + "geometry": null, + "properties": null + } + ] + }, + "valid": false + }, + { + "description": "Invalid - forbidden member coordinates", + "data": { + "type": "FeatureCollection", + "features": [], + "coordinates": [ 0, 0 ] + }, + "valid": false + }, + { + "description": "Invalid - forbidden member geometries", + "data": { + "type": "FeatureCollection", + "features": [], + "geometries": [] + }, + "valid": false + }, + { + "description": "Invalid - forbidden member geometry", + "data": { + "type": "FeatureCollection", + "features": [], + "geometry": null + }, + "valid": false + }, + { + "description": "Invalid - forbidden member properties", + "data": { + "type": "FeatureCollection", + "features": [], + "properties": null + }, + "valid": false + } + ] +} diff --git a/test/schemas/ietf/geojson/7946/feature/v1.test.json b/test/schemas/ietf/geojson/7946/feature/v1.test.json new file mode 100644 index 00000000..b4f1fd39 --- /dev/null +++ b/test/schemas/ietf/geojson/7946/feature/v1.test.json @@ -0,0 +1,257 @@ +{ + "target": "../../../../../../schemas/ietf/geojson/7946/feature/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "not an object", + "valid": false + }, + { + "description": "Invalid type - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Empty object - missing required properties", + "data": {}, + "valid": false + }, + { + "description": "Missing geometry and properties", + "data": { + "type": "Feature" + }, + "valid": false + }, + { + "description": "Missing properties", + "data": { + "type": "Feature", + "geometry": null + }, + "valid": false + }, + { + "description": "Missing geometry", + "data": { + "type": "Feature", + "properties": null + }, + "valid": false + }, + { + "description": "Missing type", + "data": { + "geometry": null, + "properties": null + }, + "valid": false + }, + { + "description": "Wrong type value", + "data": { + "type": "Point", + "geometry": null, + "properties": null + }, + "valid": false + }, + { + "description": "Valid Feature with null geometry", + "data": { + "type": "Feature", + "geometry": null, + "properties": null + }, + "valid": true + }, + { + "description": "Valid Feature with Point geometry", + "data": { + "type": "Feature", + "geometry": { + "type": "Point", + "coordinates": [ 0, 0 ] + }, + "properties": null + }, + "valid": true + }, + { + "description": "Valid Feature with properties object", + "data": { + "type": "Feature", + "geometry": null, + "properties": { + "name": "Test", + "value": 123 + } + }, + "valid": true + }, + { + "description": "Valid Feature with numeric id", + "data": { + "type": "Feature", + "id": 123, + "geometry": null, + "properties": null + }, + "valid": true + }, + { + "description": "Valid Feature with string id", + "data": { + "type": "Feature", + "id": "feature-1", + "geometry": null, + "properties": null + }, + "valid": true + }, + { + "description": "RFC 7946 Section 5 - Feature with bbox", + "data": { + "type": "Feature", + "bbox": [ -10.0, -10.0, 10.0, 10.0 ], + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ -10.0, -10.0 ], + [ 10.0, -10.0 ], + [ 10.0, 10.0 ], + [ -10.0, -10.0 ] + ] + ] + }, + "properties": null + }, + "valid": true + }, + { + "description": "RFC 7946 Section 6.1 - Feature with foreign members", + "data": { + "type": "Feature", + "id": "f1", + "geometry": null, + "properties": null, + "title": "Example Feature" + }, + "valid": true + }, + { + "description": "Valid Feature with bbox", + "data": { + "type": "Feature", + "geometry": { + "type": "Point", + "coordinates": [ 0, 0 ] + }, + "properties": null, + "bbox": [ -1, -1, 1, 1 ] + }, + "valid": true + }, + { + "description": "Valid Feature with all geometry types", + "data": { + "type": "Feature", + "geometry": { + "type": "GeometryCollection", + "geometries": [ + { + "type": "Point", + "coordinates": [ 0, 0 ] + } + ] + }, + "properties": null + }, + "valid": true + }, + { + "description": "Invalid - properties is not null or object", + "data": { + "type": "Feature", + "geometry": null, + "properties": "invalid" + }, + "valid": false + }, + { + "description": "Invalid - properties is array", + "data": { + "type": "Feature", + "geometry": null, + "properties": [] + }, + "valid": false + }, + { + "description": "Invalid - id is boolean", + "data": { + "type": "Feature", + "id": true, + "geometry": null, + "properties": null + }, + "valid": false + }, + { + "description": "Invalid - id is object", + "data": { + "type": "Feature", + "id": {}, + "geometry": null, + "properties": null + }, + "valid": false + }, + { + "description": "Invalid - forbidden member coordinates", + "data": { + "type": "Feature", + "geometry": null, + "properties": null, + "coordinates": [ 0, 0 ] + }, + "valid": false + }, + { + "description": "Invalid - forbidden member geometries", + "data": { + "type": "Feature", + "geometry": null, + "properties": null, + "geometries": [] + }, + "valid": false + }, + { + "description": "Invalid - forbidden member features", + "data": { + "type": "Feature", + "geometry": null, + "properties": null, + "features": [] + }, + "valid": false + } + ] +} diff --git a/test/schemas/ietf/geojson/7946/geometry-collection/v1.test.json b/test/schemas/ietf/geojson/7946/geometry-collection/v1.test.json new file mode 100644 index 00000000..4a16050e --- /dev/null +++ b/test/schemas/ietf/geojson/7946/geometry-collection/v1.test.json @@ -0,0 +1,257 @@ +{ + "target": "../../../../../../schemas/ietf/geojson/7946/geometry-collection/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "not an object", + "valid": false + }, + { + "description": "Invalid type - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Empty object - missing required properties", + "data": {}, + "valid": false + }, + { + "description": "Missing geometries property", + "data": { + "type": "GeometryCollection" + }, + "valid": false + }, + { + "description": "Missing type property", + "data": { + "geometries": [] + }, + "valid": false + }, + { + "description": "Wrong type value", + "data": { + "type": "Point", + "geometries": [] + }, + "valid": false + }, + { + "description": "Valid empty GeometryCollection", + "data": { + "type": "GeometryCollection", + "geometries": [] + }, + "valid": true + }, + { + "description": "Valid GeometryCollection with Point", + "data": { + "type": "GeometryCollection", + "geometries": [ + { + "type": "Point", + "coordinates": [ 0, 0 ] + } + ] + }, + "valid": true + }, + { + "description": "Valid GeometryCollection with multiple geometries", + "data": { + "type": "GeometryCollection", + "geometries": [ + { + "type": "Point", + "coordinates": [ 0, 0 ] + }, + { + "type": "LineString", + "coordinates": [ + [ 0, 0 ], + [ 1, 1 ] + ] + } + ] + }, + "valid": true + }, + { + "description": "RFC 7946 Appendix A.7 - GeometryCollection", + "data": { + "type": "GeometryCollection", + "geometries": [ + { + "type": "Point", + "coordinates": [ 100.0, 0.0 ] + }, + { + "type": "LineString", + "coordinates": [ + [ 101.0, 0.0 ], + [ 102.0, 1.0 ] + ] + } + ] + }, + "valid": true + }, + { + "description": "Valid GeometryCollection with all geometry types", + "data": { + "type": "GeometryCollection", + "geometries": [ + { + "type": "Point", + "coordinates": [ 0, 0 ] + }, + { + "type": "LineString", + "coordinates": [ + [ 0, 0 ], + [ 1, 1 ] + ] + }, + { + "type": "Polygon", + "coordinates": [ + [ + [ 0, 0 ], + [ 1, 0 ], + [ 1, 1 ], + [ 0, 0 ] + ] + ] + }, + { + "type": "MultiPoint", + "coordinates": [ + [ 0, 0 ] + ] + }, + { + "type": "MultiLineString", + "coordinates": [ + [ + [ 0, 0 ], + [ 1, 1 ] + ] + ] + }, + { + "type": "MultiPolygon", + "coordinates": [ + [ + [ + [ 0, 0 ], + [ 1, 0 ], + [ 1, 1 ], + [ 0, 0 ] + ] + ] + ] + } + ] + }, + "valid": true + }, + { + "description": "Valid GeometryCollection with bbox", + "data": { + "type": "GeometryCollection", + "geometries": [ + { + "type": "Point", + "coordinates": [ 0, 0 ] + } + ], + "bbox": [ -1, -1, 1, 1 ] + }, + "valid": true + }, + { + "description": "Invalid - geometry with invalid type", + "data": { + "type": "GeometryCollection", + "geometries": [ + { + "type": "Unknown", + "coordinates": [ 0, 0 ] + } + ] + }, + "valid": false + }, + { + "description": "Invalid - geometries is not an array", + "data": { + "type": "GeometryCollection", + "geometries": {} + }, + "valid": false + }, + { + "description": "Invalid - forbidden member geometry", + "data": { + "type": "GeometryCollection", + "geometries": [], + "geometry": null + }, + "valid": false + }, + { + "description": "Invalid - forbidden member properties", + "data": { + "type": "GeometryCollection", + "geometries": [], + "properties": null + }, + "valid": false + }, + { + "description": "Invalid - forbidden member features", + "data": { + "type": "GeometryCollection", + "geometries": [], + "features": [] + }, + "valid": false + }, + { + "description": "Valid - nested geometry collection", + "valid": true, + "data": { + "type": "GeometryCollection", + "geometries": [ + { + "type": "GeometryCollection", + "geometries": [ + { + "type": "Point", + "coordinates": [ 0, 0 ] + } + ] + } + ] + } + } + ] +} diff --git a/test/schemas/ietf/geojson/7946/geometry/v1.test.json b/test/schemas/ietf/geojson/7946/geometry/v1.test.json new file mode 100644 index 00000000..5c747720 --- /dev/null +++ b/test/schemas/ietf/geojson/7946/geometry/v1.test.json @@ -0,0 +1,135 @@ +{ + "target": "../../../../../../schemas/ietf/geojson/7946/geometry/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "not an object", + "valid": false + }, + { + "description": "Invalid type - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Empty object - missing required properties", + "data": {}, + "valid": false + }, + { + "description": "Valid Point geometry", + "data": { + "type": "Point", + "coordinates": [ 0, 0 ] + }, + "valid": true + }, + { + "description": "Valid LineString geometry", + "data": { + "type": "LineString", + "coordinates": [ + [ 0, 0 ], + [ 1, 1 ] + ] + }, + "valid": true + }, + { + "description": "Valid Polygon geometry", + "data": { + "type": "Polygon", + "coordinates": [ + [ + [ 0, 0 ], + [ 1, 0 ], + [ 1, 1 ], + [ 0, 0 ] + ] + ] + }, + "valid": true + }, + { + "description": "Valid MultiPoint geometry", + "data": { + "type": "MultiPoint", + "coordinates": [ + [ 0, 0 ], + [ 1, 1 ] + ] + }, + "valid": true + }, + { + "description": "Valid MultiLineString geometry", + "data": { + "type": "MultiLineString", + "coordinates": [ + [ + [ 0, 0 ], + [ 1, 1 ] + ] + ] + }, + "valid": true + }, + { + "description": "Valid MultiPolygon geometry", + "data": { + "type": "MultiPolygon", + "coordinates": [ + [ + [ + [ 0, 0 ], + [ 1, 0 ], + [ 1, 1 ], + [ 0, 0 ] + ] + ] + ] + }, + "valid": true + }, + { + "description": "Invalid - unknown geometry type", + "data": { + "type": "Unknown", + "coordinates": [ 0, 0 ] + }, + "valid": false + }, + { + "description": "Invalid - Feature is not a geometry", + "data": { + "type": "Feature", + "properties": null, + "geometry": null + }, + "valid": false + }, + { + "description": "Invalid - GeometryCollection is not included", + "data": { + "type": "GeometryCollection", + "geometries": [] + }, + "valid": false + } + ] +} diff --git a/test/schemas/ietf/geojson/7946/line-string-coordinates/v1.test.json b/test/schemas/ietf/geojson/7946/line-string-coordinates/v1.test.json new file mode 100644 index 00000000..3c7cea5f --- /dev/null +++ b/test/schemas/ietf/geojson/7946/line-string-coordinates/v1.test.json @@ -0,0 +1,100 @@ +{ + "target": "../../../../../../schemas/ietf/geojson/7946/line-string-coordinates/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "not an array", + "valid": false + }, + { + "description": "Invalid type - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Empty array - too few positions", + "data": [], + "valid": false + }, + { + "description": "One position - too few positions", + "data": [ + [ 0, 0 ] + ], + "valid": false + }, + { + "description": "Valid LineString with two positions", + "data": [ + [ 0, 0 ], + [ 1, 1 ] + ], + "valid": true + }, + { + "description": "Valid LineString with three positions", + "data": [ + [ 0, 0 ], + [ 1, 1 ], + [ 2, 0 ] + ], + "valid": true + }, + { + "description": "Valid LineString with 3D positions", + "data": [ + [ 0, 0, 0 ], + [ 1, 1, 10 ], + [ 2, 0, 20 ] + ], + "valid": true + }, + { + "description": "Invalid - position has only one coordinate", + "data": [ + [ 0 ], + [ 1, 1 ] + ], + "valid": false + }, + { + "description": "Invalid - position contains string", + "data": [ + [ "0", 0 ], + [ 1, 1 ] + ], + "valid": false + }, + { + "description": "Invalid - position is not an array", + "data": [ + 0, + [ 1, 1 ] + ], + "valid": false + }, + { + "description": "Invalid - position is null", + "data": [ + null, + [ 1, 1 ] + ], + "valid": false + } + ] +} diff --git a/test/schemas/ietf/geojson/7946/line-string/v1.test.json b/test/schemas/ietf/geojson/7946/line-string/v1.test.json new file mode 100644 index 00000000..c85eeaa3 --- /dev/null +++ b/test/schemas/ietf/geojson/7946/line-string/v1.test.json @@ -0,0 +1,185 @@ +{ + "target": "../../../../../../schemas/ietf/geojson/7946/line-string/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "not an object", + "valid": false + }, + { + "description": "Invalid type - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Empty object - missing required properties", + "data": {}, + "valid": false + }, + { + "description": "Missing coordinates property", + "data": { + "type": "LineString" + }, + "valid": false + }, + { + "description": "Missing type property", + "data": { + "coordinates": [ + [ 0, 0 ], + [ 1, 1 ] + ] + }, + "valid": false + }, + { + "description": "Wrong type value", + "data": { + "type": "Point", + "coordinates": [ + [ 0, 0 ], + [ 1, 1 ] + ] + }, + "valid": false + }, + { + "description": "Valid LineString with two positions", + "data": { + "type": "LineString", + "coordinates": [ + [ 0, 0 ], + [ 1, 1 ] + ] + }, + "valid": true + }, + { + "description": "RFC 7946 Appendix A.2 - LineString", + "data": { + "type": "LineString", + "coordinates": [ + [ 100.0, 0.0 ], + [ 101.0, 1.0 ] + ] + }, + "valid": true + }, + { + "description": "Valid LineString with three positions", + "data": { + "type": "LineString", + "coordinates": [ + [ 0, 0 ], + [ 1, 1 ], + [ 2, 0 ] + ] + }, + "valid": true + }, + { + "description": "Valid LineString with 3D coordinates", + "data": { + "type": "LineString", + "coordinates": [ + [ 0, 0, 0 ], + [ 1, 1, 10 ] + ] + }, + "valid": true + }, + { + "description": "Valid LineString with bbox", + "data": { + "type": "LineString", + "coordinates": [ + [ 0, 0 ], + [ 1, 1 ] + ], + "bbox": [ 0, 0, 1, 1 ] + }, + "valid": true + }, + { + "description": "Invalid - only one position", + "data": { + "type": "LineString", + "coordinates": [ + [ 0, 0 ] + ] + }, + "valid": false + }, + { + "description": "Invalid - position has only one coordinate", + "data": { + "type": "LineString", + "coordinates": [ + [ 0 ], + [ 1, 1 ] + ] + }, + "valid": false + }, + { + "description": "Invalid - coordinates is not an array", + "data": { + "type": "LineString", + "coordinates": {} + }, + "valid": false + }, + { + "description": "Invalid - forbidden member geometry", + "data": { + "type": "LineString", + "coordinates": [ + [ 0, 0 ], + [ 1, 1 ] + ], + "geometry": null + }, + "valid": false + }, + { + "description": "Invalid - forbidden member properties", + "data": { + "type": "LineString", + "coordinates": [ + [ 0, 0 ], + [ 1, 1 ] + ], + "properties": null + }, + "valid": false + }, + { + "description": "Invalid - forbidden member features", + "data": { + "type": "LineString", + "coordinates": [ + [ 0, 0 ], + [ 1, 1 ] + ], + "features": [] + }, + "valid": false + } + ] +} diff --git a/test/schemas/ietf/geojson/7946/linear-ring-coordinates/v1.test.json b/test/schemas/ietf/geojson/7946/linear-ring-coordinates/v1.test.json new file mode 100644 index 00000000..d89d4e71 --- /dev/null +++ b/test/schemas/ietf/geojson/7946/linear-ring-coordinates/v1.test.json @@ -0,0 +1,120 @@ +{ + "target": "../../../../../../schemas/ietf/geojson/7946/linear-ring-coordinates/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "not an array", + "valid": false + }, + { + "description": "Invalid type - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Empty array - too few positions", + "data": [], + "valid": false + }, + { + "description": "One position - too few positions", + "data": [ + [ 0, 0 ] + ], + "valid": false + }, + { + "description": "Two positions - too few positions", + "data": [ + [ 0, 0 ], + [ 1, 1 ] + ], + "valid": false + }, + { + "description": "Three positions - too few positions", + "data": [ + [ 0, 0 ], + [ 1, 1 ], + [ 0, 1 ] + ], + "valid": false + }, + { + "description": "Valid linear ring with four positions (closed triangle)", + "data": [ + [ 0, 0 ], + [ 1, 0 ], + [ 0, 1 ], + [ 0, 0 ] + ], + "valid": true + }, + { + "description": "Valid linear ring with five positions (closed rectangle)", + "data": [ + [ 0, 0 ], + [ 1, 0 ], + [ 1, 1 ], + [ 0, 1 ], + [ 0, 0 ] + ], + "valid": true + }, + { + "description": "Valid linear ring with 3D positions", + "data": [ + [ 0, 0, 0 ], + [ 1, 0, 0 ], + [ 0, 1, 0 ], + [ 0, 0, 0 ] + ], + "valid": true + }, + { + "description": "Invalid - position has only one coordinate", + "data": [ + [ 0 ], + [ 1, 0 ], + [ 0, 1 ], + [ 0, 0 ] + ], + "valid": false + }, + { + "description": "Invalid - position contains string", + "data": [ + [ "0", 0 ], + [ 1, 0 ], + [ 0, 1 ], + [ 0, 0 ] + ], + "valid": false + }, + { + "description": "Invalid - position is not an array", + "data": [ + 0, + [ 1, 0 ], + [ 0, 1 ], + [ 0, 0 ] + ], + "valid": false + } + ] +} diff --git a/test/schemas/ietf/geojson/7946/multi-line-string/v1.test.json b/test/schemas/ietf/geojson/7946/multi-line-string/v1.test.json new file mode 100644 index 00000000..0d5bae1d --- /dev/null +++ b/test/schemas/ietf/geojson/7946/multi-line-string/v1.test.json @@ -0,0 +1,228 @@ +{ + "target": "../../../../../../schemas/ietf/geojson/7946/multi-line-string/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "not an object", + "valid": false + }, + { + "description": "Invalid type - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Empty object - missing required properties", + "data": {}, + "valid": false + }, + { + "description": "Missing coordinates property", + "data": { + "type": "MultiLineString" + }, + "valid": false + }, + { + "description": "Missing type property", + "data": { + "coordinates": [ + [ + [ 0, 0 ], + [ 1, 1 ] + ] + ] + }, + "valid": false + }, + { + "description": "Wrong type value", + "data": { + "type": "LineString", + "coordinates": [ + [ + [ 0, 0 ], + [ 1, 1 ] + ] + ] + }, + "valid": false + }, + { + "description": "Valid MultiLineString with empty coordinates", + "data": { + "type": "MultiLineString", + "coordinates": [] + }, + "valid": true + }, + { + "description": "Valid MultiLineString with one line", + "data": { + "type": "MultiLineString", + "coordinates": [ + [ + [ 0, 0 ], + [ 1, 1 ] + ] + ] + }, + "valid": true + }, + { + "description": "Valid MultiLineString with multiple lines", + "data": { + "type": "MultiLineString", + "coordinates": [ + [ + [ 0, 0 ], + [ 1, 1 ] + ], + [ + [ 2, 2 ], + [ 3, 3 ] + ] + ] + }, + "valid": true + }, + { + "description": "RFC 7946 Appendix A.5 - MultiLineString", + "data": { + "type": "MultiLineString", + "coordinates": [ + [ + [ 100.0, 0.0 ], + [ 101.0, 1.0 ] + ], + [ + [ 102.0, 2.0 ], + [ 103.0, 3.0 ] + ] + ] + }, + "valid": true + }, + { + "description": "RFC 7946 Section 3.1.9 - Antimeridian cutting", + "data": { + "type": "MultiLineString", + "coordinates": [ + [ + [ 170.0, 45.0 ], + [ 180.0, 45.0 ] + ], + [ + [ -180.0, 45.0 ], + [ -170.0, 45.0 ] + ] + ] + }, + "valid": true + }, + { + "description": "Valid MultiLineString with 3D coordinates", + "data": { + "type": "MultiLineString", + "coordinates": [ + [ + [ 0, 0, 0 ], + [ 1, 1, 10 ] + ] + ] + }, + "valid": true + }, + { + "description": "Valid MultiLineString with bbox", + "data": { + "type": "MultiLineString", + "coordinates": [ + [ + [ 0, 0 ], + [ 1, 1 ] + ] + ], + "bbox": [ 0, 0, 1, 1 ] + }, + "valid": true + }, + { + "description": "Invalid - LineString with only one position", + "data": { + "type": "MultiLineString", + "coordinates": [ + [ + [ 0, 0 ] + ] + ] + }, + "valid": false + }, + { + "description": "Invalid - coordinates is not an array", + "data": { + "type": "MultiLineString", + "coordinates": {} + }, + "valid": false + }, + { + "description": "Invalid - forbidden member geometry", + "data": { + "type": "MultiLineString", + "coordinates": [ + [ + [ 0, 0 ], + [ 1, 1 ] + ] + ], + "geometry": null + }, + "valid": false + }, + { + "description": "Invalid - forbidden member properties", + "data": { + "type": "MultiLineString", + "coordinates": [ + [ + [ 0, 0 ], + [ 1, 1 ] + ] + ], + "properties": null + }, + "valid": false + }, + { + "description": "Invalid - forbidden member features", + "data": { + "type": "MultiLineString", + "coordinates": [ + [ + [ 0, 0 ], + [ 1, 1 ] + ] + ], + "features": [] + }, + "valid": false + } + ] +} diff --git a/test/schemas/ietf/geojson/7946/multi-point/v1.test.json b/test/schemas/ietf/geojson/7946/multi-point/v1.test.json new file mode 100644 index 00000000..a51a51df --- /dev/null +++ b/test/schemas/ietf/geojson/7946/multi-point/v1.test.json @@ -0,0 +1,179 @@ +{ + "target": "../../../../../../schemas/ietf/geojson/7946/multi-point/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "not an object", + "valid": false + }, + { + "description": "Invalid type - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Empty object - missing required properties", + "data": {}, + "valid": false + }, + { + "description": "Missing coordinates property", + "data": { + "type": "MultiPoint" + }, + "valid": false + }, + { + "description": "Missing type property", + "data": { + "coordinates": [ + [ 0, 0 ], + [ 1, 1 ] + ] + }, + "valid": false + }, + { + "description": "Wrong type value", + "data": { + "type": "Point", + "coordinates": [ + [ 0, 0 ], + [ 1, 1 ] + ] + }, + "valid": false + }, + { + "description": "Valid MultiPoint with empty coordinates", + "data": { + "type": "MultiPoint", + "coordinates": [] + }, + "valid": true + }, + { + "description": "Valid MultiPoint with one point", + "data": { + "type": "MultiPoint", + "coordinates": [ + [ 0, 0 ] + ] + }, + "valid": true + }, + { + "description": "Valid MultiPoint with multiple points", + "data": { + "type": "MultiPoint", + "coordinates": [ + [ 0, 0 ], + [ 1, 1 ], + [ 2, 2 ] + ] + }, + "valid": true + }, + { + "description": "RFC 7946 Appendix A.4 - MultiPoint", + "data": { + "type": "MultiPoint", + "coordinates": [ + [ 100.0, 0.0 ], + [ 101.0, 1.0 ] + ] + }, + "valid": true + }, + { + "description": "Valid MultiPoint with 3D coordinates", + "data": { + "type": "MultiPoint", + "coordinates": [ + [ 0, 0, 0 ], + [ 1, 1, 10 ] + ] + }, + "valid": true + }, + { + "description": "Valid MultiPoint with bbox", + "data": { + "type": "MultiPoint", + "coordinates": [ + [ 0, 0 ], + [ 1, 1 ] + ], + "bbox": [ 0, 0, 1, 1 ] + }, + "valid": true + }, + { + "description": "Invalid - position has only one coordinate", + "data": { + "type": "MultiPoint", + "coordinates": [ + [ 0 ], + [ 1, 1 ] + ] + }, + "valid": false + }, + { + "description": "Invalid - coordinates is not an array", + "data": { + "type": "MultiPoint", + "coordinates": {} + }, + "valid": false + }, + { + "description": "Invalid - forbidden member geometry", + "data": { + "type": "MultiPoint", + "coordinates": [ + [ 0, 0 ] + ], + "geometry": null + }, + "valid": false + }, + { + "description": "Invalid - forbidden member properties", + "data": { + "type": "MultiPoint", + "coordinates": [ + [ 0, 0 ] + ], + "properties": null + }, + "valid": false + }, + { + "description": "Invalid - forbidden member features", + "data": { + "type": "MultiPoint", + "coordinates": [ + [ 0, 0 ] + ], + "features": [] + }, + "valid": false + } + ] +} diff --git a/test/schemas/ietf/geojson/7946/multi-polygon/v1.test.json b/test/schemas/ietf/geojson/7946/multi-polygon/v1.test.json new file mode 100644 index 00000000..fc3cac9c --- /dev/null +++ b/test/schemas/ietf/geojson/7946/multi-polygon/v1.test.json @@ -0,0 +1,299 @@ +{ + "target": "../../../../../../schemas/ietf/geojson/7946/multi-polygon/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "not an object", + "valid": false + }, + { + "description": "Invalid type - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Empty object - missing required properties", + "data": {}, + "valid": false + }, + { + "description": "Missing coordinates property", + "data": { + "type": "MultiPolygon" + }, + "valid": false + }, + { + "description": "Missing type property", + "data": { + "coordinates": [ + [ + [ + [ 0, 0 ], + [ 1, 0 ], + [ 1, 1 ], + [ 0, 0 ] + ] + ] + ] + }, + "valid": false + }, + { + "description": "Wrong type value", + "data": { + "type": "Polygon", + "coordinates": [ + [ + [ + [ 0, 0 ], + [ 1, 0 ], + [ 1, 1 ], + [ 0, 0 ] + ] + ] + ] + }, + "valid": false + }, + { + "description": "Valid MultiPolygon with empty coordinates", + "data": { + "type": "MultiPolygon", + "coordinates": [] + }, + "valid": true + }, + { + "description": "Valid MultiPolygon with one polygon", + "data": { + "type": "MultiPolygon", + "coordinates": [ + [ + [ + [ 0, 0 ], + [ 1, 0 ], + [ 1, 1 ], + [ 0, 0 ] + ] + ] + ] + }, + "valid": true + }, + { + "description": "Valid MultiPolygon with multiple polygons", + "data": { + "type": "MultiPolygon", + "coordinates": [ + [ + [ + [ 0, 0 ], + [ 1, 0 ], + [ 1, 1 ], + [ 0, 0 ] + ] + ], + [ + [ + [ 2, 2 ], + [ 3, 2 ], + [ 3, 3 ], + [ 2, 2 ] + ] + ] + ] + }, + "valid": true + }, + { + "description": "RFC 7946 Appendix A.6 - MultiPolygon", + "data": { + "type": "MultiPolygon", + "coordinates": [ + [ + [ + [ 102.0, 2.0 ], + [ 103.0, 2.0 ], + [ 103.0, 3.0 ], + [ 102.0, 3.0 ], + [ 102.0, 2.0 ] + ] + ], + [ + [ + [ 100.0, 0.0 ], + [ 101.0, 0.0 ], + [ 101.0, 1.0 ], + [ 100.0, 1.0 ], + [ 100.0, 0.0 ] + ], + [ + [ 100.2, 0.2 ], + [ 100.2, 0.8 ], + [ 100.8, 0.8 ], + [ 100.8, 0.2 ], + [ 100.2, 0.2 ] + ] + ] + ] + }, + "valid": true + }, + { + "description": "RFC 7946 Section 3.1.9 - Antimeridian crossing", + "data": { + "type": "MultiPolygon", + "coordinates": [ + [ + [ + [ 180.0, 40.0 ], + [ 180.0, 50.0 ], + [ 170.0, 50.0 ], + [ 170.0, 40.0 ], + [ 180.0, 40.0 ] + ] + ], + [ + [ + [ -170.0, 40.0 ], + [ -170.0, 50.0 ], + [ -180.0, 50.0 ], + [ -180.0, 40.0 ], + [ -170.0, 40.0 ] + ] + ] + ] + }, + "valid": true + }, + { + "description": "Valid MultiPolygon with 3D coordinates", + "data": { + "type": "MultiPolygon", + "coordinates": [ + [ + [ + [ 0, 0, 0 ], + [ 1, 0, 0 ], + [ 1, 1, 0 ], + [ 0, 0, 0 ] + ] + ] + ] + }, + "valid": true + }, + { + "description": "Valid MultiPolygon with bbox", + "data": { + "type": "MultiPolygon", + "coordinates": [ + [ + [ + [ 0, 0 ], + [ 1, 0 ], + [ 1, 1 ], + [ 0, 0 ] + ] + ] + ], + "bbox": [ 0, 0, 1, 1 ] + }, + "valid": true + }, + { + "description": "Invalid - linear ring with too few positions", + "data": { + "type": "MultiPolygon", + "coordinates": [ + [ + [ + [ 0, 0 ], + [ 1, 0 ], + [ 0, 0 ] + ] + ] + ] + }, + "valid": false + }, + { + "description": "Invalid - coordinates is not an array", + "data": { + "type": "MultiPolygon", + "coordinates": {} + }, + "valid": false + }, + { + "description": "Invalid - forbidden member geometry", + "data": { + "type": "MultiPolygon", + "coordinates": [ + [ + [ + [ 0, 0 ], + [ 1, 0 ], + [ 1, 1 ], + [ 0, 0 ] + ] + ] + ], + "geometry": null + }, + "valid": false + }, + { + "description": "Invalid - forbidden member properties", + "data": { + "type": "MultiPolygon", + "coordinates": [ + [ + [ + [ 0, 0 ], + [ 1, 0 ], + [ 1, 1 ], + [ 0, 0 ] + ] + ] + ], + "properties": null + }, + "valid": false + }, + { + "description": "Invalid - forbidden member features", + "data": { + "type": "MultiPolygon", + "coordinates": [ + [ + [ + [ 0, 0 ], + [ 1, 0 ], + [ 1, 1 ], + [ 0, 0 ] + ] + ] + ], + "features": [] + }, + "valid": false + } + ] +} diff --git a/test/schemas/ietf/geojson/7946/point-coordinates/v1.test.json b/test/schemas/ietf/geojson/7946/point-coordinates/v1.test.json new file mode 100644 index 00000000..e857bad0 --- /dev/null +++ b/test/schemas/ietf/geojson/7946/point-coordinates/v1.test.json @@ -0,0 +1,126 @@ +{ + "target": "../../../../../../schemas/ietf/geojson/7946/point-coordinates/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "not an array", + "valid": false + }, + { + "description": "Invalid type - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Empty array - too few items", + "data": [], + "valid": false + }, + { + "description": "One item - too few items", + "data": [ 0 ], + "valid": false + }, + { + "description": "Valid 2D position (longitude, latitude)", + "data": [ -122.419, 37.7749 ], + "valid": true + }, + { + "description": "Valid 3D position with altitude", + "data": [ -122.419, 37.7749, 10.5 ], + "valid": true + }, + { + "description": "Valid position with integer coordinates", + "data": [ 0, 0 ], + "valid": true + }, + { + "description": "Valid position with negative coordinates", + "data": [ -180, -90 ], + "valid": true + }, + { + "description": "Valid position at antimeridian", + "data": [ 180, 0 ], + "valid": true + }, + { + "description": "Invalid - contains string", + "data": [ "0", 0 ], + "valid": false + }, + { + "description": "Invalid - contains null", + "data": [ null, 0 ], + "valid": false + }, + { + "description": "Invalid - contains boolean", + "data": [ true, 0 ], + "valid": false + }, + { + "description": "Invalid - contains object", + "data": [ + {}, + 0 + ], + "valid": false + }, + { + "description": "Invalid - contains array", + "data": [ + [], + 0 + ], + "valid": false + }, + { + "description": "Valid position at south pole", + "data": [ 0, -90 ], + "valid": true + }, + { + "description": "Valid position at north pole", + "data": [ 0, 90 ], + "valid": true + }, + { + "description": "Invalid - latitude below -90", + "data": [ 0, -90.1 ], + "valid": false + }, + { + "description": "Invalid - latitude above 90", + "data": [ 0, 90.1 ], + "valid": false + }, + { + "description": "Invalid - latitude way out of range (positive)", + "data": [ 0, 100 ], + "valid": false + }, + { + "description": "Invalid - latitude way out of range (negative)", + "data": [ 0, -100 ], + "valid": false + } + ] +} diff --git a/test/schemas/ietf/geojson/7946/point/v1.test.json b/test/schemas/ietf/geojson/7946/point/v1.test.json new file mode 100644 index 00000000..78a03252 --- /dev/null +++ b/test/schemas/ietf/geojson/7946/point/v1.test.json @@ -0,0 +1,158 @@ +{ + "target": "../../../../../../schemas/ietf/geojson/7946/point/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "not an object", + "valid": false + }, + { + "description": "Invalid type - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Empty object - missing required properties", + "data": {}, + "valid": false + }, + { + "description": "Missing coordinates property", + "data": { + "type": "Point" + }, + "valid": false + }, + { + "description": "Missing type property", + "data": { + "coordinates": [ 0, 0 ] + }, + "valid": false + }, + { + "description": "Wrong type value", + "data": { + "type": "LineString", + "coordinates": [ 0, 0 ] + }, + "valid": false + }, + { + "description": "Valid Point with 2D coordinates", + "data": { + "type": "Point", + "coordinates": [ -122.419, 37.7749 ] + }, + "valid": true + }, + { + "description": "RFC 7946 Appendix A.1 - Point", + "data": { + "type": "Point", + "coordinates": [ 100.0, 0.0 ] + }, + "valid": true + }, + { + "description": "Valid Point with 3D coordinates", + "data": { + "type": "Point", + "coordinates": [ -122.419, 37.7749, 10 ] + }, + "valid": true + }, + { + "description": "Valid Point with bbox", + "data": { + "type": "Point", + "coordinates": [ 0, 0 ], + "bbox": [ -1, -1, 1, 1 ] + }, + "valid": true + }, + { + "description": "Invalid - coordinates has only one value", + "data": { + "type": "Point", + "coordinates": [ 0 ] + }, + "valid": false + }, + { + "description": "Invalid - coordinates contains string", + "data": { + "type": "Point", + "coordinates": [ "0", 0 ] + }, + "valid": false + }, + { + "description": "Invalid - coordinates is not an array", + "data": { + "type": "Point", + "coordinates": {} + }, + "valid": false + }, + { + "description": "Invalid - type is not a string", + "data": { + "type": 123, + "coordinates": [ 0, 0 ] + }, + "valid": false + }, + { + "description": "Invalid - bbox has too few items", + "data": { + "type": "Point", + "coordinates": [ 0, 0 ], + "bbox": [ 0, 0, 1 ] + }, + "valid": false + }, + { + "description": "Invalid - forbidden member geometry", + "data": { + "type": "Point", + "coordinates": [ 0, 0 ], + "geometry": null + }, + "valid": false + }, + { + "description": "Invalid - forbidden member properties", + "data": { + "type": "Point", + "coordinates": [ 0, 0 ], + "properties": null + }, + "valid": false + }, + { + "description": "Invalid - forbidden member features", + "data": { + "type": "Point", + "coordinates": [ 0, 0 ], + "features": [] + }, + "valid": false + } + ] +} diff --git a/test/schemas/ietf/geojson/7946/polygon-coordinates/v1.test.json b/test/schemas/ietf/geojson/7946/polygon-coordinates/v1.test.json new file mode 100644 index 00000000..1e6555be --- /dev/null +++ b/test/schemas/ietf/geojson/7946/polygon-coordinates/v1.test.json @@ -0,0 +1,119 @@ +{ + "target": "../../../../../../schemas/ietf/geojson/7946/polygon-coordinates/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "not an array", + "valid": false + }, + { + "description": "Invalid type - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Empty array - valid (no rings)", + "data": [], + "valid": true + }, + { + "description": "Valid polygon with exterior ring only", + "data": [ + [ + [ 0, 0 ], + [ 1, 0 ], + [ 1, 1 ], + [ 0, 0 ] + ] + ], + "valid": true + }, + { + "description": "Valid polygon with exterior and interior ring (hole)", + "data": [ + [ + [ 0, 0 ], + [ 10, 0 ], + [ 10, 10 ], + [ 0, 10 ], + [ 0, 0 ] + ], + [ + [ 2, 2 ], + [ 8, 2 ], + [ 8, 8 ], + [ 2, 8 ], + [ 2, 2 ] + ] + ], + "valid": true + }, + { + "description": "Valid polygon with 3D coordinates", + "data": [ + [ + [ 0, 0, 0 ], + [ 1, 0, 0 ], + [ 1, 1, 0 ], + [ 0, 0, 0 ] + ] + ], + "valid": true + }, + { + "description": "Invalid - linear ring with too few positions", + "data": [ + [ + [ 0, 0 ], + [ 1, 0 ], + [ 0, 0 ] + ] + ], + "valid": false + }, + { + "description": "Invalid - linear ring position has only one coordinate", + "data": [ + [ + [ 0 ], + [ 1, 0 ], + [ 1, 1 ], + [ 0, 0 ] + ] + ], + "valid": false + }, + { + "description": "Invalid - linear ring position contains string", + "data": [ + [ + [ "0", 0 ], + [ 1, 0 ], + [ 1, 1 ], + [ 0, 0 ] + ] + ], + "valid": false + }, + { + "description": "Invalid - linear ring is not an array", + "data": [ "not an array" ], + "valid": false + } + ] +} diff --git a/test/schemas/ietf/geojson/7946/polygon/v1.test.json b/test/schemas/ietf/geojson/7946/polygon/v1.test.json new file mode 100644 index 00000000..96eb5467 --- /dev/null +++ b/test/schemas/ietf/geojson/7946/polygon/v1.test.json @@ -0,0 +1,257 @@ +{ + "target": "../../../../../../schemas/ietf/geojson/7946/polygon/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "not an object", + "valid": false + }, + { + "description": "Invalid type - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Empty object - missing required properties", + "data": {}, + "valid": false + }, + { + "description": "Missing coordinates property", + "data": { + "type": "Polygon" + }, + "valid": false + }, + { + "description": "Missing type property", + "data": { + "coordinates": [ + [ + [ 0, 0 ], + [ 1, 0 ], + [ 1, 1 ], + [ 0, 0 ] + ] + ] + }, + "valid": false + }, + { + "description": "Wrong type value", + "data": { + "type": "Point", + "coordinates": [ + [ + [ 0, 0 ], + [ 1, 0 ], + [ 1, 1 ], + [ 0, 0 ] + ] + ] + }, + "valid": false + }, + { + "description": "Valid Polygon with exterior ring", + "data": { + "type": "Polygon", + "coordinates": [ + [ + [ 0, 0 ], + [ 1, 0 ], + [ 1, 1 ], + [ 0, 0 ] + ] + ] + }, + "valid": true + }, + { + "description": "RFC 7946 Appendix A.3 - Polygon without holes", + "data": { + "type": "Polygon", + "coordinates": [ + [ + [ 100.0, 0.0 ], + [ 101.0, 0.0 ], + [ 101.0, 1.0 ], + [ 100.0, 1.0 ], + [ 100.0, 0.0 ] + ] + ] + }, + "valid": true + }, + { + "description": "RFC 7946 Appendix A.3 - Polygon with holes", + "data": { + "type": "Polygon", + "coordinates": [ + [ + [ 100.0, 0.0 ], + [ 101.0, 0.0 ], + [ 101.0, 1.0 ], + [ 100.0, 1.0 ], + [ 100.0, 0.0 ] + ], + [ + [ 100.8, 0.8 ], + [ 100.8, 0.2 ], + [ 100.2, 0.2 ], + [ 100.2, 0.8 ], + [ 100.8, 0.8 ] + ] + ] + }, + "valid": true + }, + { + "description": "Valid Polygon with exterior and interior ring", + "data": { + "type": "Polygon", + "coordinates": [ + [ + [ 0, 0 ], + [ 10, 0 ], + [ 10, 10 ], + [ 0, 10 ], + [ 0, 0 ] + ], + [ + [ 2, 2 ], + [ 8, 2 ], + [ 8, 8 ], + [ 2, 8 ], + [ 2, 2 ] + ] + ] + }, + "valid": true + }, + { + "description": "Valid Polygon with 3D coordinates", + "data": { + "type": "Polygon", + "coordinates": [ + [ + [ 0, 0, 0 ], + [ 1, 0, 0 ], + [ 1, 1, 0 ], + [ 0, 0, 0 ] + ] + ] + }, + "valid": true + }, + { + "description": "Valid Polygon with bbox", + "data": { + "type": "Polygon", + "coordinates": [ + [ + [ 0, 0 ], + [ 1, 0 ], + [ 1, 1 ], + [ 0, 0 ] + ] + ], + "bbox": [ 0, 0, 1, 1 ] + }, + "valid": true + }, + { + "description": "Valid Polygon with empty coordinates", + "data": { + "type": "Polygon", + "coordinates": [] + }, + "valid": true + }, + { + "description": "Invalid - linear ring with too few positions", + "data": { + "type": "Polygon", + "coordinates": [ + [ + [ 0, 0 ], + [ 1, 0 ], + [ 0, 0 ] + ] + ] + }, + "valid": false + }, + { + "description": "Invalid - coordinates is not an array", + "data": { + "type": "Polygon", + "coordinates": {} + }, + "valid": false + }, + { + "description": "Invalid - forbidden member geometry", + "data": { + "type": "Polygon", + "coordinates": [ + [ + [ 0, 0 ], + [ 1, 0 ], + [ 1, 1 ], + [ 0, 0 ] + ] + ], + "geometry": null + }, + "valid": false + }, + { + "description": "Invalid - forbidden member properties", + "data": { + "type": "Polygon", + "coordinates": [ + [ + [ 0, 0 ], + [ 1, 0 ], + [ 1, 1 ], + [ 0, 0 ] + ] + ], + "properties": null + }, + "valid": false + }, + { + "description": "Invalid - forbidden member features", + "data": { + "type": "Polygon", + "coordinates": [ + [ + [ 0, 0 ], + [ 1, 0 ], + [ 1, 1 ], + [ 0, 0 ] + ] + ], + "features": [] + }, + "valid": false + } + ] +} diff --git a/test/schemas/ietf/geojson/7946/schema/v1.test.json b/test/schemas/ietf/geojson/7946/schema/v1.test.json new file mode 100644 index 00000000..f7ba34b4 --- /dev/null +++ b/test/schemas/ietf/geojson/7946/schema/v1.test.json @@ -0,0 +1,183 @@ +{ + "target": "../../../../../../schemas/ietf/geojson/7946/schema/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "not an object", + "valid": false + }, + { + "description": "Invalid type - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Empty object - missing required properties", + "data": {}, + "valid": false + }, + { + "description": "Valid Point", + "data": { + "type": "Point", + "coordinates": [ 0, 0 ] + }, + "valid": true + }, + { + "description": "Valid LineString", + "data": { + "type": "LineString", + "coordinates": [ + [ 0, 0 ], + [ 1, 1 ] + ] + }, + "valid": true + }, + { + "description": "Valid Polygon", + "data": { + "type": "Polygon", + "coordinates": [ + [ + [ 0, 0 ], + [ 1, 0 ], + [ 1, 1 ], + [ 0, 0 ] + ] + ] + }, + "valid": true + }, + { + "description": "Valid MultiPoint", + "data": { + "type": "MultiPoint", + "coordinates": [ + [ 0, 0 ], + [ 1, 1 ] + ] + }, + "valid": true + }, + { + "description": "Valid MultiLineString", + "data": { + "type": "MultiLineString", + "coordinates": [ + [ + [ 0, 0 ], + [ 1, 1 ] + ] + ] + }, + "valid": true + }, + { + "description": "Valid MultiPolygon", + "data": { + "type": "MultiPolygon", + "coordinates": [ + [ + [ + [ 0, 0 ], + [ 1, 0 ], + [ 1, 1 ], + [ 0, 0 ] + ] + ] + ] + }, + "valid": true + }, + { + "description": "Valid GeometryCollection", + "data": { + "type": "GeometryCollection", + "geometries": [ + { + "type": "Point", + "coordinates": [ 0, 0 ] + } + ] + }, + "valid": true + }, + { + "description": "Valid Feature with null geometry", + "data": { + "type": "Feature", + "geometry": null, + "properties": null + }, + "valid": true + }, + { + "description": "Valid Feature with Point geometry", + "data": { + "type": "Feature", + "geometry": { + "type": "Point", + "coordinates": [ 0, 0 ] + }, + "properties": { + "name": "Test" + } + }, + "valid": true + }, + { + "description": "Valid FeatureCollection", + "data": { + "type": "FeatureCollection", + "features": [ + { + "type": "Feature", + "geometry": null, + "properties": null + } + ] + }, + "valid": true + }, + { + "description": "Valid empty FeatureCollection", + "data": { + "type": "FeatureCollection", + "features": [] + }, + "valid": true + }, + { + "description": "Invalid - unknown type", + "data": { + "type": "Unknown", + "coordinates": [ 0, 0 ] + }, + "valid": false + }, + { + "description": "Invalid - missing type property", + "data": { + "coordinates": [ 0, 0 ] + }, + "valid": false + } + ] +} diff --git a/test/schemas/ietf/http/9110/etag-strong/v1.test.json b/test/schemas/ietf/http/9110/etag-strong/v1.test.json new file mode 100644 index 00000000..8684ffc8 --- /dev/null +++ b/test/schemas/ietf/http/9110/etag-strong/v1.test.json @@ -0,0 +1,260 @@ +{ + "target": "../../../../../../schemas/ietf/http/9110/etag-strong/v1.json", + "tests": [ + { + "description": "Invalid type - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - empty strong ETag", + "data": "\"\"", + "valid": true + }, + { + "description": "Valid - simple alphanumeric", + "data": "\"abc123\"", + "valid": true + }, + { + "description": "Valid - hex string", + "data": "\"686897696a7c876b7e\"", + "valid": true + }, + { + "description": "Valid - with hyphens", + "data": "\"abc-123-def\"", + "valid": true + }, + { + "description": "Valid - with underscores", + "data": "\"abc_123_def\"", + "valid": true + }, + { + "description": "Valid - with dots", + "data": "\"version.1.2.3\"", + "valid": true + }, + { + "description": "Valid - with exclamation mark", + "data": "\"abc!123\"", + "valid": true + }, + { + "description": "Valid - with hash", + "data": "\"#abc123\"", + "valid": true + }, + { + "description": "Valid - with dollar sign", + "data": "\"$abc123\"", + "valid": true + }, + { + "description": "Valid - with percent", + "data": "\"abc%123\"", + "valid": true + }, + { + "description": "Valid - with ampersand", + "data": "\"abc&123\"", + "valid": true + }, + { + "description": "Valid - with asterisk", + "data": "\"abc*123\"", + "valid": true + }, + { + "description": "Valid - with plus", + "data": "\"abc+123\"", + "valid": true + }, + { + "description": "Valid - with forward slash", + "data": "\"abc/123\"", + "valid": true + }, + { + "description": "Valid - with colon", + "data": "\"abc:123\"", + "valid": true + }, + { + "description": "Valid - with semicolon", + "data": "\"abc;123\"", + "valid": true + }, + { + "description": "Valid - with equals", + "data": "\"abc=123\"", + "valid": true + }, + { + "description": "Valid - with question mark", + "data": "\"abc?123\"", + "valid": true + }, + { + "description": "Valid - with at sign", + "data": "\"abc@123\"", + "valid": true + }, + { + "description": "Valid - with brackets", + "data": "\"[abc]123\"", + "valid": true + }, + { + "description": "Valid - with backslash", + "data": "\"abc\\123\"", + "valid": true + }, + { + "description": "Valid - with caret", + "data": "\"abc^123\"", + "valid": true + }, + { + "description": "Valid - with backtick", + "data": "`abc123`", + "valid": false + }, + { + "description": "Valid - with braces", + "data": "\"{abc}123\"", + "valid": true + }, + { + "description": "Valid - with pipe", + "data": "\"abc|123\"", + "valid": true + }, + { + "description": "Valid - with tilde", + "data": "\"abc~123\"", + "valid": true + }, + { + "description": "Valid - uppercase letters", + "data": "\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"", + "valid": true + }, + { + "description": "Valid - lowercase letters", + "data": "\"abcdefghijklmnopqrstuvwxyz\"", + "valid": true + }, + { + "description": "Valid - all digits", + "data": "\"0123456789\"", + "valid": true + }, + { + "description": "Valid - mixed case and symbols", + "data": "\"aBc-123_DeF.456\"", + "valid": true + }, + { + "description": "Valid - long value", + "data": "\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"", + "valid": true + }, + { + "description": "Invalid - missing opening quote", + "data": "abc123\"", + "valid": false + }, + { + "description": "Invalid - missing closing quote", + "data": "\"abc123", + "valid": false + }, + { + "description": "Invalid - no quotes", + "data": "abc123", + "valid": false + }, + { + "description": "Invalid - single quotes instead of double", + "data": "'abc123'", + "valid": false + }, + { + "description": "Invalid - weak ETag prefix (W/)", + "data": "W/\"abc123\"", + "valid": false + }, + { + "description": "Invalid - weak ETag prefix lowercase", + "data": "w/\"abc123\"", + "valid": false + }, + { + "description": "Invalid - space inside", + "data": "\"abc 123\"", + "valid": false + }, + { + "description": "Invalid - tab character", + "data": "\"abc\t123\"", + "valid": false + }, + { + "description": "Invalid - newline character", + "data": "\"abc\n123\"", + "valid": false + }, + { + "description": "Invalid - carriage return", + "data": "\"abc\r123\"", + "valid": false + }, + { + "description": "Invalid - null byte", + "data": "\"abc\u0000123\"", + "valid": false + }, + { + "description": "Invalid - control character", + "data": "\"abc\u0001123\"", + "valid": false + }, + { + "description": "Invalid - quote character (0x22) inside", + "data": "\"abc\"123\"", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - just quotes with space", + "data": "\" \"", + "valid": false + } + ] +} diff --git a/test/schemas/ietf/http/9110/etag-weak/v1.test.json b/test/schemas/ietf/http/9110/etag-weak/v1.test.json new file mode 100644 index 00000000..6aa2e060 --- /dev/null +++ b/test/schemas/ietf/http/9110/etag-weak/v1.test.json @@ -0,0 +1,190 @@ +{ + "target": "../../../../../../schemas/ietf/http/9110/etag-weak/v1.json", + "tests": [ + { + "description": "Invalid type - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - empty weak ETag", + "data": "W/\"\"", + "valid": true + }, + { + "description": "Valid - simple alphanumeric", + "data": "W/\"abc123\"", + "valid": true + }, + { + "description": "Valid - hex string", + "data": "W/\"686897696a7c876b7e\"", + "valid": true + }, + { + "description": "Valid - with hyphens", + "data": "W/\"abc-123-def\"", + "valid": true + }, + { + "description": "Valid - with underscores", + "data": "W/\"abc_123_def\"", + "valid": true + }, + { + "description": "Valid - with dots", + "data": "W/\"version.1.2.3\"", + "valid": true + }, + { + "description": "Valid - with exclamation mark", + "data": "W/\"abc!123\"", + "valid": true + }, + { + "description": "Valid - with various symbols", + "data": "W/\"#$%&*+:;=?@[]^{|}~\"", + "valid": true + }, + { + "description": "Valid - uppercase letters", + "data": "W/\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"", + "valid": true + }, + { + "description": "Valid - lowercase letters", + "data": "W/\"abcdefghijklmnopqrstuvwxyz\"", + "valid": true + }, + { + "description": "Valid - all digits", + "data": "W/\"0123456789\"", + "valid": true + }, + { + "description": "Valid - mixed case and symbols", + "data": "W/\"aBc-123_DeF.456\"", + "valid": true + }, + { + "description": "Valid - long value", + "data": "W/\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"", + "valid": true + }, + { + "description": "Invalid - strong ETag (missing W/ prefix)", + "data": "\"abc123\"", + "valid": false + }, + { + "description": "Invalid - lowercase w", + "data": "w/\"abc123\"", + "valid": false + }, + { + "description": "Invalid - missing slash after W", + "data": "W\"abc123\"", + "valid": false + }, + { + "description": "Invalid - space after W", + "data": "W /\"abc123\"", + "valid": false + }, + { + "description": "Invalid - space before W", + "data": " W/\"abc123\"", + "valid": false + }, + { + "description": "Invalid - missing opening quote", + "data": "W/abc123\"", + "valid": false + }, + { + "description": "Invalid - missing closing quote", + "data": "W/\"abc123", + "valid": false + }, + { + "description": "Invalid - no quotes", + "data": "W/abc123", + "valid": false + }, + { + "description": "Invalid - single quotes", + "data": "W/'abc123'", + "valid": false + }, + { + "description": "Invalid - space inside value", + "data": "W/\"abc 123\"", + "valid": false + }, + { + "description": "Invalid - tab character", + "data": "W/\"abc\t123\"", + "valid": false + }, + { + "description": "Invalid - newline character", + "data": "W/\"abc\n123\"", + "valid": false + }, + { + "description": "Invalid - carriage return", + "data": "W/\"abc\r123\"", + "valid": false + }, + { + "description": "Invalid - null byte", + "data": "W/\"abc\u0000123\"", + "valid": false + }, + { + "description": "Invalid - control character", + "data": "W/\"abc\u0001123\"", + "valid": false + }, + { + "description": "Invalid - quote inside value", + "data": "W/\"abc\"123\"", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - just W/", + "data": "W/", + "valid": false + }, + { + "description": "Invalid - W/ with space in quotes", + "data": "W/\" \"", + "valid": false + } + ] +} diff --git a/test/schemas/ietf/http/9110/etag/v1.test.json b/test/schemas/ietf/http/9110/etag/v1.test.json new file mode 100644 index 00000000..d5a97542 --- /dev/null +++ b/test/schemas/ietf/http/9110/etag/v1.test.json @@ -0,0 +1,150 @@ +{ + "target": "../../../../../../schemas/ietf/http/9110/etag/v1.json", + "tests": [ + { + "description": "Invalid type - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - strong ETag empty", + "data": "\"\"", + "valid": true + }, + { + "description": "Valid - strong ETag simple", + "data": "\"abc123\"", + "valid": true + }, + { + "description": "Valid - strong ETag hex", + "data": "\"686897696a7c876b7e\"", + "valid": true + }, + { + "description": "Valid - strong ETag with symbols", + "data": "\"abc-123_def.456\"", + "valid": true + }, + { + "description": "Valid - weak ETag empty", + "data": "W/\"\"", + "valid": true + }, + { + "description": "Valid - weak ETag simple", + "data": "W/\"abc123\"", + "valid": true + }, + { + "description": "Valid - weak ETag hex", + "data": "W/\"686897696a7c876b7e\"", + "valid": true + }, + { + "description": "Valid - weak ETag with symbols", + "data": "W/\"abc-123_def.456\"", + "valid": true + }, + { + "description": "Valid - strong ETag long value", + "data": "\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"", + "valid": true + }, + { + "description": "Valid - weak ETag long value", + "data": "W/\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"", + "valid": true + }, + { + "description": "Valid - strong ETag with all allowed symbols", + "data": "\"!#$%&*+:;=?@[]^{|}~\"", + "valid": true + }, + { + "description": "Valid - weak ETag with all allowed symbols", + "data": "W/\"!#$%&*+:;=?@[]^{|}~\"", + "valid": true + }, + { + "description": "Invalid - no quotes", + "data": "abc123", + "valid": false + }, + { + "description": "Invalid - single quotes", + "data": "'abc123'", + "valid": false + }, + { + "description": "Invalid - missing closing quote", + "data": "\"abc123", + "valid": false + }, + { + "description": "Invalid - space inside strong ETag", + "data": "\"abc 123\"", + "valid": false + }, + { + "description": "Invalid - space inside weak ETag", + "data": "W/\"abc 123\"", + "valid": false + }, + { + "description": "Invalid - tab character in strong ETag", + "data": "\"abc\t123\"", + "valid": false + }, + { + "description": "Invalid - newline in weak ETag", + "data": "W/\"abc\n123\"", + "valid": false + }, + { + "description": "Invalid - lowercase w in weak prefix", + "data": "w/\"abc123\"", + "valid": false + }, + { + "description": "Invalid - weak prefix without slash", + "data": "W\"abc123\"", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - just quotes with space", + "data": "\" \"", + "valid": false + }, + { + "description": "Invalid - W/ with space", + "data": "W/\" \"", + "valid": false + } + ] +} diff --git a/test/schemas/ietf/http/9110/http-url/v1.test.json b/test/schemas/ietf/http/9110/http-url/v1.test.json new file mode 100644 index 00000000..791b7509 --- /dev/null +++ b/test/schemas/ietf/http/9110/http-url/v1.test.json @@ -0,0 +1,165 @@ +{ + "target": "../../../../../../schemas/ietf/http/9110/http-url/v1.json", + "tests": [ + { + "description": "Invalid type - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - simple HTTP URL", + "data": "http://example.com", + "valid": true + }, + { + "description": "Valid - HTTP URL with path", + "data": "http://example.com/path/to/resource", + "valid": true + }, + { + "description": "Valid - HTTP URL with query", + "data": "http://example.com/path?query=value", + "valid": true + }, + { + "description": "Valid - HTTP URL with fragment", + "data": "http://example.com/path#section", + "valid": true + }, + { + "description": "Valid - HTTP URL with port", + "data": "http://example.com:8080/api", + "valid": true + }, + { + "description": "Valid - HTTP URL with userinfo", + "data": "http://user:pass@example.com/resource", + "valid": true + }, + { + "description": "Valid - HTTP URL with IPv4", + "data": "http://192.168.1.1/path", + "valid": true + }, + { + "description": "Valid - HTTP URL with IPv6", + "data": "http://[2001:db8::8a2e:370:7334]/path", + "valid": true + }, + { + "description": "Valid - HTTP scheme uppercase", + "data": "HTTP://example.com", + "valid": true + }, + { + "description": "Valid - HTTP scheme mixed case Http", + "data": "Http://example.com", + "valid": true + }, + { + "description": "Valid - HTTP scheme mixed case HtTp", + "data": "HtTp://example.com", + "valid": true + }, + { + "description": "Valid - HTTP scheme mixed case hTTP", + "data": "hTTP://example.com", + "valid": true + }, + { + "description": "Valid - HTTP URL with all components", + "data": "http://user:pass@example.com:8080/path/to/resource?query=value&foo=bar#section", + "valid": true + }, + { + "description": "Valid - HTTP URL with empty path", + "data": "http://example.com", + "valid": true + }, + { + "description": "Valid - HTTP URL with port 80", + "data": "http://example.com:80/", + "valid": true + }, + { + "description": "Invalid - HTTPS URL", + "data": "https://example.com", + "valid": false + }, + { + "description": "Invalid - FTP URL", + "data": "ftp://example.com", + "valid": false + }, + { + "description": "Invalid - file URL", + "data": "file:///path/to/file", + "valid": false + }, + { + "description": "Invalid - mailto URL", + "data": "mailto:user@example.com", + "valid": false + }, + { + "description": "Invalid - relative URL", + "data": "/path/to/resource", + "valid": false + }, + { + "description": "Invalid - missing scheme", + "data": "example.com/path", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - scheme only", + "data": "http:", + "valid": false + }, + { + "description": "Invalid - scheme with single slash", + "data": "http:/example.com", + "valid": false + }, + { + "description": "Invalid - HTTP URL with space", + "data": "http://example.com/path with space", + "valid": false + }, + { + "description": "Invalid - empty host", + "valid": false, + "data": "http:///path" + }, + { + "description": "Invalid - userinfo with empty host", + "valid": false, + "data": "http://user@/path" + } + ] +} diff --git a/test/schemas/ietf/http/9110/https-url/v1.test.json b/test/schemas/ietf/http/9110/https-url/v1.test.json new file mode 100644 index 00000000..ec51595b --- /dev/null +++ b/test/schemas/ietf/http/9110/https-url/v1.test.json @@ -0,0 +1,160 @@ +{ + "target": "../../../../../../schemas/ietf/http/9110/https-url/v1.json", + "tests": [ + { + "description": "Invalid type - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - simple HTTPS URL", + "data": "https://example.com", + "valid": true + }, + { + "description": "Valid - HTTPS URL with path", + "data": "https://example.com/path/to/resource", + "valid": true + }, + { + "description": "Valid - HTTPS URL with query", + "data": "https://example.com/path?query=value", + "valid": true + }, + { + "description": "Valid - HTTPS URL with fragment", + "data": "https://example.com/path#section", + "valid": true + }, + { + "description": "Valid - HTTPS URL with port", + "data": "https://example.com:8443/api", + "valid": true + }, + { + "description": "Valid - HTTPS URL with userinfo", + "data": "https://user:pass@example.com/resource", + "valid": true + }, + { + "description": "Valid - HTTPS URL with IPv4", + "data": "https://192.168.1.1/path", + "valid": true + }, + { + "description": "Valid - HTTPS URL with IPv6", + "data": "https://[2001:db8::8a2e:370:7334]/path", + "valid": true + }, + { + "description": "Valid - HTTPS scheme uppercase", + "data": "HTTPS://example.com", + "valid": true + }, + { + "description": "Valid - HTTPS scheme mixed case Https", + "data": "Https://example.com", + "valid": true + }, + { + "description": "Valid - HTTPS scheme mixed case HtTpS", + "data": "HtTpS://example.com", + "valid": true + }, + { + "description": "Valid - HTTPS scheme mixed case hTTPS", + "data": "hTTPS://example.com", + "valid": true + }, + { + "description": "Valid - HTTPS URL with all components", + "data": "https://user:pass@example.com:8443/path/to/resource?query=value&foo=bar#section", + "valid": true + }, + { + "description": "Valid - HTTPS URL with empty path", + "data": "https://example.com", + "valid": true + }, + { + "description": "Valid - HTTPS URL with port 443", + "data": "https://example.com:443/", + "valid": true + }, + { + "description": "Invalid - HTTP URL", + "data": "http://example.com", + "valid": false + }, + { + "description": "Invalid - FTP URL", + "data": "ftp://example.com", + "valid": false + }, + { + "description": "Invalid - file URL", + "data": "file:///path/to/file", + "valid": false + }, + { + "description": "Invalid - mailto URL", + "data": "mailto:user@example.com", + "valid": false + }, + { + "description": "Invalid - relative URL", + "data": "/path/to/resource", + "valid": false + }, + { + "description": "Invalid - missing scheme", + "data": "example.com/path", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - scheme only", + "data": "https:", + "valid": false + }, + { + "description": "Invalid - scheme with single slash", + "data": "https:/example.com", + "valid": false + }, + { + "description": "Invalid - HTTPS URL with space", + "data": "https://example.com/path with space", + "valid": false + }, + { + "description": "Invalid - empty host", + "valid": false, + "data": "https:///path" + } + ] +} diff --git a/test/schemas/ietf/http/9110/method-standard/v1.test.json b/test/schemas/ietf/http/9110/method-standard/v1.test.json new file mode 100644 index 00000000..dcf35b4d --- /dev/null +++ b/test/schemas/ietf/http/9110/method-standard/v1.test.json @@ -0,0 +1,200 @@ +{ + "target": "../../../../../../schemas/ietf/http/9110/method-standard/v1.json", + "tests": [ + { + "description": "Invalid type - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - GET", + "data": "GET", + "valid": true + }, + { + "description": "Valid - HEAD", + "data": "HEAD", + "valid": true + }, + { + "description": "Valid - POST", + "data": "POST", + "valid": true + }, + { + "description": "Valid - PUT", + "data": "PUT", + "valid": true + }, + { + "description": "Valid - DELETE", + "data": "DELETE", + "valid": true + }, + { + "description": "Valid - CONNECT", + "data": "CONNECT", + "valid": true + }, + { + "description": "Valid - OPTIONS", + "data": "OPTIONS", + "valid": true + }, + { + "description": "Valid - TRACE", + "data": "TRACE", + "valid": true + }, + { + "description": "Invalid - lowercase get", + "data": "get", + "valid": false + }, + { + "description": "Invalid - lowercase head", + "data": "head", + "valid": false + }, + { + "description": "Invalid - lowercase post", + "data": "post", + "valid": false + }, + { + "description": "Invalid - lowercase put", + "data": "put", + "valid": false + }, + { + "description": "Invalid - lowercase delete", + "data": "delete", + "valid": false + }, + { + "description": "Invalid - lowercase connect", + "data": "connect", + "valid": false + }, + { + "description": "Invalid - lowercase options", + "data": "options", + "valid": false + }, + { + "description": "Invalid - lowercase trace", + "data": "trace", + "valid": false + }, + { + "description": "Invalid - mixed case Get", + "data": "Get", + "valid": false + }, + { + "description": "Invalid - mixed case Post", + "data": "Post", + "valid": false + }, + { + "description": "Invalid - mixed case Put", + "data": "Put", + "valid": false + }, + { + "description": "Invalid - mixed case Delete", + "data": "Delete", + "valid": false + }, + { + "description": "Valid - PATCH (RFC 5789)", + "data": "PATCH", + "valid": true + }, + { + "description": "Valid - PROPFIND (RFC 4918)", + "data": "PROPFIND", + "valid": true + }, + { + "description": "Valid - PROPPATCH (RFC 4918)", + "data": "PROPPATCH", + "valid": true + }, + { + "description": "Valid - MKCOL (RFC 4918)", + "data": "MKCOL", + "valid": true + }, + { + "description": "Valid - COPY (RFC 4918)", + "data": "COPY", + "valid": true + }, + { + "description": "Valid - MOVE (RFC 4918)", + "data": "MOVE", + "valid": true + }, + { + "description": "Valid - LOCK (RFC 4918)", + "data": "LOCK", + "valid": true + }, + { + "description": "Valid - UNLOCK (RFC 4918)", + "data": "UNLOCK", + "valid": true + }, + { + "description": "Invalid - lowercase patch", + "data": "patch", + "valid": false + }, + { + "description": "Invalid - custom method", + "data": "CUSTOM", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - with space", + "data": "GET POST", + "valid": false + }, + { + "description": "Invalid - with leading space", + "data": " GET", + "valid": false + }, + { + "description": "Invalid - with trailing space", + "data": "GET ", + "valid": false + } + ] +} diff --git a/test/schemas/ietf/http/9110/method/v1.test.json b/test/schemas/ietf/http/9110/method/v1.test.json new file mode 100644 index 00000000..0022c98b --- /dev/null +++ b/test/schemas/ietf/http/9110/method/v1.test.json @@ -0,0 +1,335 @@ +{ + "target": "../../../../../../schemas/ietf/http/9110/method/v1.json", + "tests": [ + { + "description": "Invalid type - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - GET", + "data": "GET", + "valid": true + }, + { + "description": "Valid - HEAD", + "data": "HEAD", + "valid": true + }, + { + "description": "Valid - POST", + "data": "POST", + "valid": true + }, + { + "description": "Valid - PUT", + "data": "PUT", + "valid": true + }, + { + "description": "Valid - DELETE", + "data": "DELETE", + "valid": true + }, + { + "description": "Valid - CONNECT", + "data": "CONNECT", + "valid": true + }, + { + "description": "Valid - OPTIONS", + "data": "OPTIONS", + "valid": true + }, + { + "description": "Valid - TRACE", + "data": "TRACE", + "valid": true + }, + { + "description": "Valid - lowercase get", + "data": "get", + "valid": true + }, + { + "description": "Valid - mixed case Post", + "data": "Post", + "valid": true + }, + { + "description": "Valid - extension method PATCH", + "data": "PATCH", + "valid": true + }, + { + "description": "Valid - extension method PROPFIND", + "data": "PROPFIND", + "valid": true + }, + { + "description": "Valid - extension method PROPPATCH", + "data": "PROPPATCH", + "valid": true + }, + { + "description": "Valid - extension method MKCOL", + "data": "MKCOL", + "valid": true + }, + { + "description": "Valid - extension method COPY", + "data": "COPY", + "valid": true + }, + { + "description": "Valid - extension method MOVE", + "data": "MOVE", + "valid": true + }, + { + "description": "Valid - extension method LOCK", + "data": "LOCK", + "valid": true + }, + { + "description": "Valid - extension method UNLOCK", + "data": "UNLOCK", + "valid": true + }, + { + "description": "Valid - custom method with hyphen", + "data": "X-CUSTOM-METHOD", + "valid": true + }, + { + "description": "Valid - custom method with underscore", + "data": "CUSTOM_METHOD", + "valid": true + }, + { + "description": "Valid - custom method with dot", + "data": "CUSTOM.METHOD", + "valid": true + }, + { + "description": "Valid - method with exclamation", + "data": "METHOD!", + "valid": true + }, + { + "description": "Valid - method with hash", + "data": "METHOD#123", + "valid": true + }, + { + "description": "Valid - method with dollar", + "data": "METHOD$", + "valid": true + }, + { + "description": "Valid - method with percent", + "data": "METHOD%", + "valid": true + }, + { + "description": "Valid - method with ampersand", + "data": "METHOD&", + "valid": true + }, + { + "description": "Valid - method with apostrophe", + "data": "METHOD'", + "valid": true + }, + { + "description": "Valid - method with asterisk", + "data": "METHOD*", + "valid": true + }, + { + "description": "Valid - method with plus", + "data": "METHOD+", + "valid": true + }, + { + "description": "Valid - method with caret", + "data": "METHOD^", + "valid": true + }, + { + "description": "Valid - method with backtick", + "data": "METHOD`", + "valid": true + }, + { + "description": "Valid - method with pipe", + "data": "METHOD|", + "valid": true + }, + { + "description": "Valid - method with tilde", + "data": "METHOD~", + "valid": true + }, + { + "description": "Valid - method with digits", + "data": "METHOD123", + "valid": true + }, + { + "description": "Valid - all uppercase letters", + "data": "ABCDEFGHIJKLMNOPQRSTUVWXYZ", + "valid": true + }, + { + "description": "Valid - all lowercase letters", + "data": "abcdefghijklmnopqrstuvwxyz", + "valid": true + }, + { + "description": "Valid - all digits", + "data": "0123456789", + "valid": true + }, + { + "description": "Valid - all tchar symbols", + "data": "!#$%&'*+-.^_`|~", + "valid": true + }, + { + "description": "Valid - single character", + "data": "X", + "valid": true + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - space", + "data": "GET POST", + "valid": false + }, + { + "description": "Invalid - leading space", + "data": " GET", + "valid": false + }, + { + "description": "Invalid - trailing space", + "data": "GET ", + "valid": false + }, + { + "description": "Invalid - tab character", + "data": "GET\tPOST", + "valid": false + }, + { + "description": "Invalid - newline", + "data": "GET\n", + "valid": false + }, + { + "description": "Invalid - carriage return", + "data": "GET\r", + "valid": false + }, + { + "description": "Invalid - comma", + "data": "GET,POST", + "valid": false + }, + { + "description": "Invalid - semicolon", + "data": "GET;POST", + "valid": false + }, + { + "description": "Invalid - colon", + "data": "GET:POST", + "valid": false + }, + { + "description": "Invalid - forward slash", + "data": "GET/POST", + "valid": false + }, + { + "description": "Invalid - backslash", + "data": "GET\\POST", + "valid": false + }, + { + "description": "Invalid - question mark", + "data": "GET?", + "valid": false + }, + { + "description": "Invalid - at sign", + "data": "GET@", + "valid": false + }, + { + "description": "Invalid - brackets", + "data": "GET[POST]", + "valid": false + }, + { + "description": "Invalid - braces", + "data": "GET{POST}", + "valid": false + }, + { + "description": "Invalid - parentheses", + "data": "GET(POST)", + "valid": false + }, + { + "description": "Invalid - angle brackets", + "data": "", + "valid": false + }, + { + "description": "Invalid - equals", + "data": "GET=POST", + "valid": false + }, + { + "description": "Invalid - double quote", + "data": "\"GET\"", + "valid": false + }, + { + "description": "Invalid - null byte", + "data": "GET\u0000", + "valid": false + }, + { + "description": "Invalid - control character", + "data": "GET\u0001", + "valid": false + } + ] +} diff --git a/test/schemas/ietf/http/9110/status-client-error/v1.test.json b/test/schemas/ietf/http/9110/status-client-error/v1.test.json new file mode 100644 index 00000000..472b64c5 --- /dev/null +++ b/test/schemas/ietf/http/9110/status-client-error/v1.test.json @@ -0,0 +1,170 @@ +{ + "target": "../../../../../../schemas/ietf/http/9110/status-client-error/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "404", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Invalid type - float", + "data": 404.5, + "valid": false + }, + { + "description": "Below minimum (399)", + "data": 399, + "valid": false + }, + { + "description": "Above maximum (500)", + "data": 500, + "valid": false + }, + { + "description": "400 Bad Request", + "data": 400, + "valid": true + }, + { + "description": "401 Unauthorized", + "data": 401, + "valid": true + }, + { + "description": "402 Payment Required", + "data": 402, + "valid": true + }, + { + "description": "403 Forbidden", + "data": 403, + "valid": true + }, + { + "description": "404 Not Found", + "data": 404, + "valid": true + }, + { + "description": "405 Method Not Allowed", + "data": 405, + "valid": true + }, + { + "description": "406 Not Acceptable", + "data": 406, + "valid": true + }, + { + "description": "407 Proxy Authentication Required", + "data": 407, + "valid": true + }, + { + "description": "408 Request Timeout", + "data": 408, + "valid": true + }, + { + "description": "409 Conflict", + "data": 409, + "valid": true + }, + { + "description": "410 Gone", + "data": 410, + "valid": true + }, + { + "description": "411 Length Required", + "data": 411, + "valid": true + }, + { + "description": "412 Precondition Failed", + "data": 412, + "valid": true + }, + { + "description": "413 Content Too Large", + "data": 413, + "valid": true + }, + { + "description": "414 URI Too Long", + "data": 414, + "valid": true + }, + { + "description": "415 Unsupported Media Type", + "data": 415, + "valid": true + }, + { + "description": "416 Range Not Satisfiable", + "data": 416, + "valid": true + }, + { + "description": "417 Expectation Failed", + "data": 417, + "valid": true + }, + { + "description": "418 (Unused)", + "data": 418, + "valid": true + }, + { + "description": "421 Misdirected Request", + "data": 421, + "valid": true + }, + { + "description": "422 Unprocessable Content", + "data": 422, + "valid": true + }, + { + "description": "426 Upgrade Required", + "data": 426, + "valid": true + }, + { + "description": "Unassigned code (419)", + "data": 419, + "valid": true + }, + { + "description": "Unassigned code (450)", + "data": 450, + "valid": true + }, + { + "description": "Maximum valid (499)", + "data": 499, + "valid": true + } + ] +} diff --git a/test/schemas/ietf/http/9110/status-informational/v1.test.json b/test/schemas/ietf/http/9110/status-informational/v1.test.json new file mode 100644 index 00000000..9646b844 --- /dev/null +++ b/test/schemas/ietf/http/9110/status-informational/v1.test.json @@ -0,0 +1,70 @@ +{ + "target": "../../../../../../schemas/ietf/http/9110/status-informational/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Invalid type - float", + "data": 100.5, + "valid": false + }, + { + "description": "Below minimum (99)", + "data": 99, + "valid": false + }, + { + "description": "Above maximum (200)", + "data": 200, + "valid": false + }, + { + "description": "100 Continue", + "data": 100, + "valid": true + }, + { + "description": "101 Switching Protocols", + "data": 101, + "valid": true + }, + { + "description": "Unassigned code (102)", + "data": 102, + "valid": true + }, + { + "description": "Unassigned code (150)", + "data": 150, + "valid": true + }, + { + "description": "Maximum valid (199)", + "data": 199, + "valid": true + } + ] +} diff --git a/test/schemas/ietf/http/9110/status-redirection/v1.test.json b/test/schemas/ietf/http/9110/status-redirection/v1.test.json new file mode 100644 index 00000000..41d85ed5 --- /dev/null +++ b/test/schemas/ietf/http/9110/status-redirection/v1.test.json @@ -0,0 +1,105 @@ +{ + "target": "../../../../../../schemas/ietf/http/9110/status-redirection/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "301", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Invalid type - float", + "data": 301.5, + "valid": false + }, + { + "description": "Below minimum (299)", + "data": 299, + "valid": false + }, + { + "description": "Above maximum (400)", + "data": 400, + "valid": false + }, + { + "description": "300 Multiple Choices", + "data": 300, + "valid": true + }, + { + "description": "301 Moved Permanently", + "data": 301, + "valid": true + }, + { + "description": "302 Found", + "data": 302, + "valid": true + }, + { + "description": "303 See Other", + "data": 303, + "valid": true + }, + { + "description": "304 Not Modified", + "data": 304, + "valid": true + }, + { + "description": "305 Use Proxy", + "data": 305, + "valid": true + }, + { + "description": "306 (Unused)", + "data": 306, + "valid": true + }, + { + "description": "307 Temporary Redirect", + "data": 307, + "valid": true + }, + { + "description": "308 Permanent Redirect", + "data": 308, + "valid": true + }, + { + "description": "Unassigned code (309)", + "data": 309, + "valid": true + }, + { + "description": "Unassigned code (350)", + "data": 350, + "valid": true + }, + { + "description": "Maximum valid (399)", + "data": 399, + "valid": true + } + ] +} diff --git a/test/schemas/ietf/http/9110/status-server-error/v1.test.json b/test/schemas/ietf/http/9110/status-server-error/v1.test.json new file mode 100644 index 00000000..9b8c21fe --- /dev/null +++ b/test/schemas/ietf/http/9110/status-server-error/v1.test.json @@ -0,0 +1,90 @@ +{ + "target": "../../../../../../schemas/ietf/http/9110/status-server-error/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "500", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Invalid type - float", + "data": 500.5, + "valid": false + }, + { + "description": "Below minimum (499)", + "data": 499, + "valid": false + }, + { + "description": "Above maximum (600)", + "data": 600, + "valid": false + }, + { + "description": "500 Internal Server Error", + "data": 500, + "valid": true + }, + { + "description": "501 Not Implemented", + "data": 501, + "valid": true + }, + { + "description": "502 Bad Gateway", + "data": 502, + "valid": true + }, + { + "description": "503 Service Unavailable", + "data": 503, + "valid": true + }, + { + "description": "504 Gateway Timeout", + "data": 504, + "valid": true + }, + { + "description": "505 HTTP Version Not Supported", + "data": 505, + "valid": true + }, + { + "description": "Unassigned code (506)", + "data": 506, + "valid": true + }, + { + "description": "Unassigned code (550)", + "data": 550, + "valid": true + }, + { + "description": "Maximum valid (599)", + "data": 599, + "valid": true + } + ] +} diff --git a/test/schemas/ietf/http/9110/status-standard/v1.test.json b/test/schemas/ietf/http/9110/status-standard/v1.test.json new file mode 100644 index 00000000..b501971b --- /dev/null +++ b/test/schemas/ietf/http/9110/status-standard/v1.test.json @@ -0,0 +1,350 @@ +{ + "target": "../../../../../../schemas/ietf/http/9110/status-standard/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "200", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Invalid type - float", + "data": 200.5, + "valid": false + }, + { + "description": "Valid - 100 Continue", + "data": 100, + "valid": true + }, + { + "description": "Valid - 101 Switching Protocols", + "data": 101, + "valid": true + }, + { + "description": "Invalid - 102 (not in RFC 9110)", + "data": 102, + "valid": false + }, + { + "description": "Invalid - 199 (not in RFC 9110)", + "data": 199, + "valid": false + }, + { + "description": "Valid - 200 OK", + "data": 200, + "valid": true + }, + { + "description": "Valid - 201 Created", + "data": 201, + "valid": true + }, + { + "description": "Valid - 202 Accepted", + "data": 202, + "valid": true + }, + { + "description": "Valid - 203 Non-Authoritative Information", + "data": 203, + "valid": true + }, + { + "description": "Valid - 204 No Content", + "data": 204, + "valid": true + }, + { + "description": "Valid - 205 Reset Content", + "data": 205, + "valid": true + }, + { + "description": "Valid - 206 Partial Content", + "data": 206, + "valid": true + }, + { + "description": "Invalid - 207 (not in RFC 9110)", + "data": 207, + "valid": false + }, + { + "description": "Invalid - 299 (not in RFC 9110)", + "data": 299, + "valid": false + }, + { + "description": "Valid - 300 Multiple Choices", + "data": 300, + "valid": true + }, + { + "description": "Valid - 301 Moved Permanently", + "data": 301, + "valid": true + }, + { + "description": "Valid - 302 Found", + "data": 302, + "valid": true + }, + { + "description": "Valid - 303 See Other", + "data": 303, + "valid": true + }, + { + "description": "Valid - 304 Not Modified", + "data": 304, + "valid": true + }, + { + "description": "Valid - 305 Use Proxy", + "data": 305, + "valid": true + }, + { + "description": "Valid - 306 (Unused)", + "data": 306, + "valid": true + }, + { + "description": "Valid - 307 Temporary Redirect", + "data": 307, + "valid": true + }, + { + "description": "Valid - 308 Permanent Redirect", + "data": 308, + "valid": true + }, + { + "description": "Invalid - 309 (not in RFC 9110)", + "data": 309, + "valid": false + }, + { + "description": "Invalid - 399 (not in RFC 9110)", + "data": 399, + "valid": false + }, + { + "description": "Valid - 400 Bad Request", + "data": 400, + "valid": true + }, + { + "description": "Valid - 401 Unauthorized", + "data": 401, + "valid": true + }, + { + "description": "Valid - 402 Payment Required", + "data": 402, + "valid": true + }, + { + "description": "Valid - 403 Forbidden", + "data": 403, + "valid": true + }, + { + "description": "Valid - 404 Not Found", + "data": 404, + "valid": true + }, + { + "description": "Valid - 405 Method Not Allowed", + "data": 405, + "valid": true + }, + { + "description": "Valid - 406 Not Acceptable", + "data": 406, + "valid": true + }, + { + "description": "Valid - 407 Proxy Authentication Required", + "data": 407, + "valid": true + }, + { + "description": "Valid - 408 Request Timeout", + "data": 408, + "valid": true + }, + { + "description": "Valid - 409 Conflict", + "data": 409, + "valid": true + }, + { + "description": "Valid - 410 Gone", + "data": 410, + "valid": true + }, + { + "description": "Valid - 411 Length Required", + "data": 411, + "valid": true + }, + { + "description": "Valid - 412 Precondition Failed", + "data": 412, + "valid": true + }, + { + "description": "Valid - 413 Content Too Large", + "data": 413, + "valid": true + }, + { + "description": "Valid - 414 URI Too Long", + "data": 414, + "valid": true + }, + { + "description": "Valid - 415 Unsupported Media Type", + "data": 415, + "valid": true + }, + { + "description": "Valid - 416 Range Not Satisfiable", + "data": 416, + "valid": true + }, + { + "description": "Valid - 417 Expectation Failed", + "data": 417, + "valid": true + }, + { + "description": "Valid - 418 (Unused)", + "data": 418, + "valid": true + }, + { + "description": "Invalid - 419 (not in RFC 9110)", + "data": 419, + "valid": false + }, + { + "description": "Invalid - 420 (not in RFC 9110)", + "data": 420, + "valid": false + }, + { + "description": "Valid - 421 Misdirected Request", + "data": 421, + "valid": true + }, + { + "description": "Valid - 422 Unprocessable Content", + "data": 422, + "valid": true + }, + { + "description": "Invalid - 423 (not in RFC 9110)", + "data": 423, + "valid": false + }, + { + "description": "Invalid - 424 (not in RFC 9110)", + "data": 424, + "valid": false + }, + { + "description": "Invalid - 425 (not in RFC 9110)", + "data": 425, + "valid": false + }, + { + "description": "Valid - 426 Upgrade Required", + "data": 426, + "valid": true + }, + { + "description": "Invalid - 427 (not in RFC 9110)", + "data": 427, + "valid": false + }, + { + "description": "Invalid - 499 (not in RFC 9110)", + "data": 499, + "valid": false + }, + { + "description": "Valid - 500 Internal Server Error", + "data": 500, + "valid": true + }, + { + "description": "Valid - 501 Not Implemented", + "data": 501, + "valid": true + }, + { + "description": "Valid - 502 Bad Gateway", + "data": 502, + "valid": true + }, + { + "description": "Valid - 503 Service Unavailable", + "data": 503, + "valid": true + }, + { + "description": "Valid - 504 Gateway Timeout", + "data": 504, + "valid": true + }, + { + "description": "Valid - 505 HTTP Version Not Supported", + "data": 505, + "valid": true + }, + { + "description": "Invalid - 506 (not in RFC 9110)", + "data": 506, + "valid": false + }, + { + "description": "Invalid - 599 (not in RFC 9110)", + "data": 599, + "valid": false + }, + { + "description": "Invalid - below range (99)", + "data": 99, + "valid": false + }, + { + "description": "Invalid - above range (600)", + "data": 600, + "valid": false + } + ] +} diff --git a/test/schemas/ietf/http/9110/status-successful/v1.test.json b/test/schemas/ietf/http/9110/status-successful/v1.test.json new file mode 100644 index 00000000..caa8c4ff --- /dev/null +++ b/test/schemas/ietf/http/9110/status-successful/v1.test.json @@ -0,0 +1,95 @@ +{ + "target": "../../../../../../schemas/ietf/http/9110/status-successful/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "200", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Invalid type - float", + "data": 200.5, + "valid": false + }, + { + "description": "Below minimum (199)", + "data": 199, + "valid": false + }, + { + "description": "Above maximum (300)", + "data": 300, + "valid": false + }, + { + "description": "200 OK", + "data": 200, + "valid": true + }, + { + "description": "201 Created", + "data": 201, + "valid": true + }, + { + "description": "202 Accepted", + "data": 202, + "valid": true + }, + { + "description": "203 Non-Authoritative Information", + "data": 203, + "valid": true + }, + { + "description": "204 No Content", + "data": 204, + "valid": true + }, + { + "description": "205 Reset Content", + "data": 205, + "valid": true + }, + { + "description": "206 Partial Content", + "data": 206, + "valid": true + }, + { + "description": "Unassigned code (207)", + "data": 207, + "valid": true + }, + { + "description": "Unassigned code (250)", + "data": 250, + "valid": true + }, + { + "description": "Maximum valid (299)", + "data": 299, + "valid": true + } + ] +} diff --git a/test/schemas/ietf/http/9110/status/v1.test.json b/test/schemas/ietf/http/9110/status/v1.test.json new file mode 100644 index 00000000..bcdaf915 --- /dev/null +++ b/test/schemas/ietf/http/9110/status/v1.test.json @@ -0,0 +1,310 @@ +{ + "target": "../../../../../../schemas/ietf/http/9110/status/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "200", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Invalid type - float", + "data": 200.5, + "valid": false + }, + { + "description": "Below minimum (99)", + "data": 99, + "valid": false + }, + { + "description": "Above maximum (600)", + "data": 600, + "valid": false + }, + { + "description": "Informational - 100 Continue", + "data": 100, + "valid": true + }, + { + "description": "Informational - 101 Switching Protocols", + "data": 101, + "valid": true + }, + { + "description": "Successful - 200 OK", + "data": 200, + "valid": true + }, + { + "description": "Successful - 201 Created", + "data": 201, + "valid": true + }, + { + "description": "Successful - 202 Accepted", + "data": 202, + "valid": true + }, + { + "description": "Successful - 203 Non-Authoritative Information", + "data": 203, + "valid": true + }, + { + "description": "Successful - 204 No Content", + "data": 204, + "valid": true + }, + { + "description": "Successful - 205 Reset Content", + "data": 205, + "valid": true + }, + { + "description": "Successful - 206 Partial Content", + "data": 206, + "valid": true + }, + { + "description": "Redirection - 300 Multiple Choices", + "data": 300, + "valid": true + }, + { + "description": "Redirection - 301 Moved Permanently", + "data": 301, + "valid": true + }, + { + "description": "Redirection - 302 Found", + "data": 302, + "valid": true + }, + { + "description": "Redirection - 303 See Other", + "data": 303, + "valid": true + }, + { + "description": "Redirection - 304 Not Modified", + "data": 304, + "valid": true + }, + { + "description": "Redirection - 305 Use Proxy", + "data": 305, + "valid": true + }, + { + "description": "Redirection - 306 (Unused)", + "data": 306, + "valid": true + }, + { + "description": "Redirection - 307 Temporary Redirect", + "data": 307, + "valid": true + }, + { + "description": "Redirection - 308 Permanent Redirect", + "data": 308, + "valid": true + }, + { + "description": "Client Error - 400 Bad Request", + "data": 400, + "valid": true + }, + { + "description": "Client Error - 401 Unauthorized", + "data": 401, + "valid": true + }, + { + "description": "Client Error - 402 Payment Required", + "data": 402, + "valid": true + }, + { + "description": "Client Error - 403 Forbidden", + "data": 403, + "valid": true + }, + { + "description": "Client Error - 404 Not Found", + "data": 404, + "valid": true + }, + { + "description": "Client Error - 405 Method Not Allowed", + "data": 405, + "valid": true + }, + { + "description": "Client Error - 406 Not Acceptable", + "data": 406, + "valid": true + }, + { + "description": "Client Error - 407 Proxy Authentication Required", + "data": 407, + "valid": true + }, + { + "description": "Client Error - 408 Request Timeout", + "data": 408, + "valid": true + }, + { + "description": "Client Error - 409 Conflict", + "data": 409, + "valid": true + }, + { + "description": "Client Error - 410 Gone", + "data": 410, + "valid": true + }, + { + "description": "Client Error - 411 Length Required", + "data": 411, + "valid": true + }, + { + "description": "Client Error - 412 Precondition Failed", + "data": 412, + "valid": true + }, + { + "description": "Client Error - 413 Content Too Large", + "data": 413, + "valid": true + }, + { + "description": "Client Error - 414 URI Too Long", + "data": 414, + "valid": true + }, + { + "description": "Client Error - 415 Unsupported Media Type", + "data": 415, + "valid": true + }, + { + "description": "Client Error - 416 Range Not Satisfiable", + "data": 416, + "valid": true + }, + { + "description": "Client Error - 417 Expectation Failed", + "data": 417, + "valid": true + }, + { + "description": "Client Error - 418 (Unused)", + "data": 418, + "valid": true + }, + { + "description": "Client Error - 421 Misdirected Request", + "data": 421, + "valid": true + }, + { + "description": "Client Error - 422 Unprocessable Content", + "data": 422, + "valid": true + }, + { + "description": "Client Error - 426 Upgrade Required", + "data": 426, + "valid": true + }, + { + "description": "Server Error - 500 Internal Server Error", + "data": 500, + "valid": true + }, + { + "description": "Server Error - 501 Not Implemented", + "data": 501, + "valid": true + }, + { + "description": "Server Error - 502 Bad Gateway", + "data": 502, + "valid": true + }, + { + "description": "Server Error - 503 Service Unavailable", + "data": 503, + "valid": true + }, + { + "description": "Server Error - 504 Gateway Timeout", + "data": 504, + "valid": true + }, + { + "description": "Server Error - 505 HTTP Version Not Supported", + "data": 505, + "valid": true + }, + { + "description": "Unassigned informational code (102-199)", + "data": 102, + "valid": true + }, + { + "description": "Unassigned successful code (207-299)", + "data": 207, + "valid": true + }, + { + "description": "Unassigned redirection code (309-399)", + "data": 309, + "valid": true + }, + { + "description": "Unassigned client error code (419-420, 423-425, 427-499)", + "data": 419, + "valid": true + }, + { + "description": "Unassigned server error code (506-599)", + "data": 506, + "valid": true + }, + { + "description": "Boundary test - minimum valid (100)", + "data": 100, + "valid": true + }, + { + "description": "Boundary test - maximum valid (599)", + "data": 599, + "valid": true + } + ] +} diff --git a/test/schemas/ietf/ip/v4/address/v1.test.json b/test/schemas/ietf/ip/v4/address/v1.test.json new file mode 100644 index 00000000..e27fd955 --- /dev/null +++ b/test/schemas/ietf/ip/v4/address/v1.test.json @@ -0,0 +1,447 @@ +{ + "target": "../../../../../../schemas/ietf/ip/v4/address/v1.json", + "tests": [ + { + "data": "0.0.0.0", + "valid": true + }, + { + "data": "1.2.3.4", + "valid": true + }, + { + "data": "9.9.9.9", + "valid": true + }, + { + "data": "10.20.30.40", + "valid": true + }, + { + "data": "99.99.99.99", + "valid": true + }, + { + "data": "100.150.199.200", + "valid": true + }, + { + "data": "127.0.0.1", + "valid": true + }, + { + "data": "192.168.1.1", + "valid": true + }, + { + "data": "255.255.255.255", + "valid": true + }, + { + "data": "10.0.0.1", + "valid": true + }, + { + "data": "172.16.0.1", + "valid": true + }, + { + "data": "200.201.202.203", + "valid": true + }, + { + "data": "249.249.249.249", + "valid": true + }, + { + "data": "250.251.252.253", + "valid": true + }, + { + "data": "254.254.254.254", + "valid": true + }, + { + "data": "255.0.0.0", + "valid": true + }, + { + "data": "0.255.0.0", + "valid": true + }, + { + "data": "0.0.255.0", + "valid": true + }, + { + "data": "0.0.0.255", + "valid": true + }, + { + "data": "1.1.1.1", + "valid": true + }, + { + "data": "8.8.8.8", + "valid": true + }, + { + "data": "10.10.10.10", + "valid": true + }, + { + "data": "11.11.11.11", + "valid": true + }, + { + "data": "100.100.100.100", + "valid": true + }, + { + "data": "101.102.103.104", + "valid": true + }, + { + "data": "110.111.112.113", + "valid": true + }, + { + "data": "190.191.192.193", + "valid": true + }, + { + "data": "198.199.200.201", + "valid": true + }, + { + "data": "210.220.230.240", + "valid": true + }, + { + "data": "241.242.243.244", + "valid": true + }, + { + "data": "245.246.247.248", + "valid": true + }, + { + "data": "01.02.03.04", + "valid": false + }, + { + "data": "001.002.003.004", + "valid": false + }, + { + "data": "1.2.3.04", + "valid": false + }, + { + "data": "1.2.03.4", + "valid": false + }, + { + "data": "1.02.3.4", + "valid": false + }, + { + "data": "01.2.3.4", + "valid": false + }, + { + "data": "00.0.0.0", + "valid": false + }, + { + "data": "0.00.0.0", + "valid": false + }, + { + "data": "0.0.00.0", + "valid": false + }, + { + "data": "0.0.0.00", + "valid": false + }, + { + "data": "256.0.0.0", + "valid": false + }, + { + "data": "0.256.0.0", + "valid": false + }, + { + "data": "0.0.256.0", + "valid": false + }, + { + "data": "0.0.0.256", + "valid": false + }, + { + "data": "300.300.300.300", + "valid": false + }, + { + "data": "999.999.999.999", + "valid": false + }, + { + "data": "260.1.1.1", + "valid": false + }, + { + "data": "1.260.1.1", + "valid": false + }, + { + "data": "1.1.260.1", + "valid": false + }, + { + "data": "1.1.1.260", + "valid": false + }, + { + "data": "1.2.3", + "valid": false + }, + { + "data": "1.2", + "valid": false + }, + { + "data": "1", + "valid": false + }, + { + "data": "1.2.3.4.5", + "valid": false + }, + { + "data": "1.2.3.4.5.6", + "valid": false + }, + { + "data": "a.b.c.d", + "valid": false + }, + { + "data": "1a.2b.3c.4d", + "valid": false + }, + { + "data": "1.2.3.4a", + "valid": false + }, + { + "data": "-1.0.0.0", + "valid": false + }, + { + "data": "0.-1.0.0", + "valid": false + }, + { + "data": "0.0.-1.0", + "valid": false + }, + { + "data": "0.0.0.-1", + "valid": false + }, + { + "data": "1.2.3.4.", + "valid": false + }, + { + "data": ".1.2.3.4", + "valid": false + }, + { + "data": "1..2.3.4", + "valid": false + }, + { + "data": "1.2..3.4", + "valid": false + }, + { + "data": "1.2.3..4", + "valid": false + }, + { + "data": "1. 2. 3. 4", + "valid": false + }, + { + "data": "1 .2 .3 .4", + "valid": false + }, + { + "data": " 1.2.3.4", + "valid": false + }, + { + "data": "1.2.3.4 ", + "valid": false + }, + { + "data": "", + "valid": false + }, + { + "data": "...", + "valid": false + }, + { + "data": "1.2.3.4.5.6.7.8", + "valid": false + }, + { + "data": "192.168.1", + "valid": false + }, + { + "data": "192.168.1.", + "valid": false + }, + { + "data": "1.2.3.4:80", + "valid": false + }, + { + "data": "1.2.3.4/24", + "valid": false + }, + { + "data": "0x1.0x2.0x3.0x4", + "valid": false + }, + { + "data": "1.2.3.0x04", + "valid": false + }, + { + "data": "192.168.001.001", + "valid": false + }, + { + "data": "0.0.0.0.0", + "valid": false + }, + { + "data": "255.255.255.256", + "valid": false + }, + { + "data": "255.255.256.255", + "valid": false + }, + { + "data": "255.256.255.255", + "valid": false + }, + { + "data": "256.255.255.255", + "valid": false + }, + { + "data": "19.29.39.49", + "valid": true + }, + { + "data": "59.69.79.89", + "valid": true + }, + { + "data": "50.150.225.255", + "valid": true + }, + { + "data": "199.200.249.250", + "valid": true + }, + { + "data": "9.10.99.100", + "valid": true + }, + { + "data": "5.6.7.8", + "valid": true + }, + { + "data": "15.25.35.45", + "valid": true + }, + { + "data": "55.65.75.85", + "valid": true + }, + { + "data": "95.105.115.125", + "valid": true + }, + { + "data": "135.145.155.165", + "valid": true + }, + { + "data": "175.185.195.205", + "valid": true + }, + { + "data": "215.225.235.245", + "valid": true + }, + { + "data": "224.239.248.255", + "valid": true + }, + { + "data": null, + "valid": false + }, + { + "data": true, + "valid": false + }, + { + "data": false, + "valid": false + }, + { + "data": 192, + "valid": false + }, + { + "data": 192.168, + "valid": false + }, + { + "data": 3232235777, + "valid": false + }, + { + "data": [], + "valid": false + }, + { + "data": [ "192", "168", "1", "1" ], + "valid": false + }, + { + "data": {}, + "valid": false + }, + { + "data": { + "address": "192.168.1.1" + }, + "valid": false + } + ] +} diff --git a/test/schemas/ietf/ip/v6/address/v1.test.json b/test/schemas/ietf/ip/v6/address/v1.test.json new file mode 100644 index 00000000..9e8318de --- /dev/null +++ b/test/schemas/ietf/ip/v6/address/v1.test.json @@ -0,0 +1,713 @@ +{ + "target": "../../../../../../schemas/ietf/ip/v6/address/v1.json", + "tests": [ + { + "data": "2001:db8:85a3:0:0:8a2e:370:7334", + "valid": true + }, + { + "data": "2001:0db8:85a3:0000:0000:8a2e:0370:7334", + "valid": true + }, + { + "data": "2001:db8:85a3::8a2e:370:7334", + "valid": true + }, + { + "data": "::1", + "valid": true + }, + { + "data": "::", + "valid": true + }, + { + "data": "::ffff:192.0.2.1", + "valid": true + }, + { + "data": "2001:db8::192.0.2.1", + "valid": true + }, + { + "data": "::192.0.2.1", + "valid": true + }, + { + "data": "fe80::1", + "valid": true + }, + { + "data": "::ffff:0:0", + "valid": true + }, + { + "data": "2001:db8::", + "valid": true + }, + { + "data": "2001:db8::1", + "valid": true + }, + { + "data": "::2001:db8", + "valid": true + }, + { + "data": "ff01::101", + "valid": true + }, + { + "data": "ff02::1", + "valid": true + }, + { + "data": "ff02::2", + "valid": true + }, + { + "data": "2001:db8:a0b:12f0::1", + "valid": true + }, + { + "data": "fe80:0:0:0:204:61ff:fe9d:f156", + "valid": true + }, + { + "data": "fe80::204:61ff:fe9d:f156", + "valid": true + }, + { + "data": "fe80::204:61ff:254.157.241.86", + "valid": true + }, + { + "data": "::ffff:192.168.1.1", + "valid": true + }, + { + "data": "::ffff:c000:0280", + "valid": true + }, + { + "data": "2001:0:9d38:6abd:0:0:0:42", + "valid": true + }, + { + "data": "2001:0:9d38:6abd::42", + "valid": true + }, + { + "data": "1:2:3:4:5:6:7:8", + "valid": true + }, + { + "data": "1::8", + "valid": true + }, + { + "data": "1::7:8", + "valid": true + }, + { + "data": "1::6:7:8", + "valid": true + }, + { + "data": "1::5:6:7:8", + "valid": true + }, + { + "data": "1::4:5:6:7:8", + "valid": true + }, + { + "data": "1::3:4:5:6:7:8", + "valid": true + }, + { + "data": "1:2:3:4:5:6::8", + "valid": true + }, + { + "data": "1:2:3:4:5::8", + "valid": true + }, + { + "data": "1:2:3:4::8", + "valid": true + }, + { + "data": "1:2:3::8", + "valid": true + }, + { + "data": "1:2::8", + "valid": true + }, + { + "data": "1::2:3:4:5:6:7", + "valid": true + }, + { + "data": "::2:3:4:5:6:7:8", + "valid": true + }, + { + "data": "::8", + "valid": true + }, + { + "data": "1:2:3:4:5:6:7::", + "valid": true + }, + { + "data": "1:2:3:4:5:6::7:8", + "valid": false + }, + { + "data": "1:2:3:4:5:6:1.2.3.4", + "valid": true + }, + { + "data": "1:2:3:4:5::1.2.3.4", + "valid": true + }, + { + "data": "1:2:3:4::1.2.3.4", + "valid": true + }, + { + "data": "1:2:3::1.2.3.4", + "valid": true + }, + { + "data": "1:2::1.2.3.4", + "valid": true + }, + { + "data": "1::1.2.3.4", + "valid": true + }, + { + "data": "::1.2.3.4", + "valid": true + }, + { + "data": "1:2:3:4:5:6:7", + "valid": false + }, + { + "data": "1:2:3:4:5:6:7:8:9", + "valid": false + }, + { + "data": "1:2:3:4:5:6:7:8:", + "valid": false + }, + { + "data": ":1:2:3:4:5:6:7:8", + "valid": false + }, + { + "data": "::1:2:3:4:5:6:7:8", + "valid": false + }, + { + "data": "1:2:3:4:5:6:7:8::", + "valid": false + }, + { + "data": "1::2::3", + "valid": false + }, + { + "data": "::1::2", + "valid": false + }, + { + "data": "1:::2", + "valid": false + }, + { + "data": ":::1", + "valid": false + }, + { + "data": "1:::", + "valid": false + }, + { + "data": ":::", + "valid": false + }, + { + "data": "g001:db8::1", + "valid": false + }, + { + "data": "2001:db8::xyz", + "valid": false + }, + { + "data": "2001:db8:85a3::8a2e:370k:7334", + "valid": false + }, + { + "data": "02001:db8::1", + "valid": false + }, + { + "data": "2001:0db8:85a3::8a2e:037g:7334", + "valid": false + }, + { + "data": "2001:db8::8a2e::7334", + "valid": false + }, + { + "data": "::ffff:999.0.0.1", + "valid": false + }, + { + "data": "::ffff:1.2.3.256", + "valid": false + }, + { + "data": "::ffff:1.2.3", + "valid": false + }, + { + "data": "::ffff:1.2.3.4.5", + "valid": false + }, + { + "data": "2001:db8::192.168.1.1.1", + "valid": false + }, + { + "data": "2001:db8::192.168.1", + "valid": false + }, + { + "data": "", + "valid": false + }, + { + "data": ":", + "valid": false + }, + { + "data": "::", + "valid": true + }, + { + "data": ":::", + "valid": false + }, + { + "data": "2001:db8", + "valid": false + }, + { + "data": "2001:db8:85a3", + "valid": false + }, + { + "data": "2001:db8:85a3:0:0:8a2e:370", + "valid": false + }, + { + "data": " 2001:db8::1", + "valid": false + }, + { + "data": "2001:db8::1 ", + "valid": false + }, + { + "data": "2001: db8::1", + "valid": false + }, + { + "data": "2001 :db8::1", + "valid": false + }, + { + "data": null, + "valid": false + }, + { + "data": true, + "valid": false + }, + { + "data": false, + "valid": false + }, + { + "data": 2001, + "valid": false + }, + { + "data": [], + "valid": false + }, + { + "data": {}, + "valid": false + }, + { + "data": "ABCD:EF01:2345:6789:ABCD:EF01:2345:6789", + "valid": true + }, + { + "data": "abcd:ef01:2345:6789:abcd:ef01:2345:6789", + "valid": true + }, + { + "data": "AbCd:eF01:2345:6789:aBcD:Ef01:2345:6789", + "valid": true + }, + { + "data": "2001:DB8:0:0:8:800:200C:417A", + "valid": true + }, + { + "data": "2001:db8:0:0:8:800:200c:417a", + "valid": true + }, + { + "data": "FF01:0:0:0:0:0:0:101", + "valid": true + }, + { + "data": "ff01::101", + "valid": true + }, + { + "data": "0:0:0:0:0:0:0:1", + "valid": true + }, + { + "data": "0:0:0:0:0:0:0:0", + "valid": true + }, + { + "data": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", + "valid": true + }, + { + "data": "1:2:3:4:5:6:255.255.255.255", + "valid": true + }, + { + "data": "1:2:3:4:5:6:0.0.0.0", + "valid": true + }, + { + "data": "::255.255.255.255", + "valid": true + }, + { + "data": "::0.0.0.0", + "valid": true + }, + { + "data": "1::2:3:4:5:6:7", + "valid": true + }, + { + "data": "1:2::3:4:5:6:7", + "valid": true + }, + { + "data": "1:2:3::4:5:6:7", + "valid": true + }, + { + "data": "1:2:3:4::5:6:7", + "valid": true + }, + { + "data": "1:2:3:4:5::6:7", + "valid": true + }, + { + "data": "1:2:3:4:5:6::7", + "valid": true + }, + { + "data": "a:b:c:d:e:f:1.2.3.4", + "valid": true + }, + { + "data": "12AB:0:0:CD30::1", + "valid": true + }, + { + "data": "12ab:0:0:cd30::1", + "valid": true + }, + { + "data": "12345::1", + "valid": false + }, + { + "data": "1:2:3:4:5:6:7:12345", + "valid": false + }, + { + "data": "::12345", + "valid": false + }, + { + "data": "1:2:3:4:5:6::7:8", + "valid": false + }, + { + "data": "::1:2:3:4:5:6:7:8", + "valid": false + }, + { + "data": "1:2:3:4:5:6:7:8::", + "valid": false + }, + { + "data": "1:2:3:4:5:6:7", + "valid": false + }, + { + "data": ":1:2:3:4:5:6:7", + "valid": false + }, + { + "data": "1:2:3:4:5:6:7:", + "valid": false + }, + { + "data": "1:2:3::4:5:6:7:8", + "valid": false + }, + { + "data": "::1:2:3:4:5:6:7", + "valid": true + }, + { + "data": "1:2:3:4:5:6:7::", + "valid": true + }, + { + "data": "1::2:3:4:5:6:7", + "valid": true + }, + { + "data": "::ffff:999.999.999.999", + "valid": false + }, + { + "data": "::ffff:1.2.3.4.5", + "valid": false + }, + { + "data": "::ffff:01.02.03.04", + "valid": false + }, + { + "data": "2001:db8::8a2e::7334", + "valid": false + }, + { + "data": "1:2:3:4:5:6:1.2.3", + "valid": false + }, + { + "data": "1:2:3:4:5:1.2.3.4", + "valid": false + }, + { + "data": "::1:2:3:4:5:1.2.3.4", + "valid": true + }, + { + "data": "1:2:3:4::1.2.3.4", + "valid": true + }, + { + "data": "0:0:0:0:0:0:0:1", + "valid": true + }, + { + "data": "0000:0000:0000:0000:0000:0000:0000:0001", + "valid": true + }, + { + "data": "00001:2:3:4:5:6:7:8", + "valid": false + }, + { + "data": "::g", + "valid": false + }, + { + "data": "::ffff:g.0.0.0", + "valid": false + }, + { + "data": "2001:db8:::1", + "valid": false + }, + { + "data": "2001:db8::::1", + "valid": false + }, + { + "data": "::::", + "valid": false + }, + { + "data": "2001:0:0:0:0:0:0:1", + "valid": true + }, + { + "data": "2001:0:0:0:0:0:0:0", + "valid": true + }, + { + "data": "ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255", + "valid": true + }, + { + "data": "::ffff:0:192.0.2.1", + "valid": true + }, + { + "data": "64:ff9b::192.0.2.33", + "valid": true + }, + { + "data": "::1234:5678:1.2.3.4", + "valid": true + }, + { + "data": "2001:db8::1234:5678:1.2.3.4", + "valid": true + }, + { + "data": "::1234:5678:91.123.4.56", + "valid": true + }, + { + "data": "::1234:5678:9.12.3.4", + "valid": true + }, + { + "data": "2001:db8:85a3::8a2e:370:7334:extra", + "valid": false + }, + { + "data": "2001.db8::1", + "valid": false + }, + { + "data": "2001;db8::1", + "valid": false + }, + { + "data": "[2001:db8::1]", + "valid": false + }, + { + "data": "2001:db8::1/64", + "valid": false + }, + { + "data": "2001:db8::1%eth0", + "valid": false + }, + { + "data": "::ffff:192.0.2.01", + "valid": false + }, + { + "data": "::ffff:192.0.002.1", + "valid": false + }, + { + "data": "1:2:3:4:5:6:7:8:9:10", + "valid": false + }, + { + "data": "1:2:3:4:5::6:7:8:9", + "valid": false + }, + { + "data": ":::", + "valid": false + }, + { + "data": " ::1", + "valid": false + }, + { + "data": "::1 ", + "valid": false + }, + { + "data": "2001 :db8::1", + "valid": false + }, + { + "data": "2001: db8::1", + "valid": false + }, + { + "data": "2001:db8: :1", + "valid": false + }, + { + "data": "2001:db8:: 1", + "valid": false + }, + { + "data": "a:b:c:d:e:f:0.0.0.0", + "valid": true + }, + { + "data": "a:b:c:d:e:f:10.0.0.1", + "valid": true + }, + { + "data": "a:b:c:d:e:f:255.255.255.255", + "valid": true + }, + { + "data": "::a:b:c:d:e:f:0", + "valid": true + }, + { + "data": "0::a:b:c:d:e:f", + "valid": true + }, + { + "data": "::a:b:c:d:e:f", + "valid": true + }, + { + "data": "a:b:c:d:e:f::", + "valid": true + }, + { + "data": "::a:b:c:d:e:0", + "valid": true + }, + { + "data": "a:0:0:0:0:0:0::", + "valid": true + }, + { + "data": "::0:0:0:0:0:0:a", + "valid": true + } + ] +} diff --git a/test/schemas/ietf/iri/3987/iri-reference/v1.test.json b/test/schemas/ietf/iri/3987/iri-reference/v1.test.json new file mode 100644 index 00000000..24f23f43 --- /dev/null +++ b/test/schemas/ietf/iri/3987/iri-reference/v1.test.json @@ -0,0 +1,100 @@ +{ + "target": "../../../../../../schemas/ietf/iri/3987/iri-reference/v1.json", + "tests": [ + { + "description": "Plain ASCII absolute URI", + "data": "https://example.com/path?query=value#fragment", + "valid": true + }, + { + "description": "Absolute IRI with non-ASCII host and path", + "data": "https://例え.jp/パス", + "valid": true + }, + { + "description": "Relative path with non-ASCII characters", + "data": "../parent/fichier-é.html", + "valid": true + }, + { + "description": "Network-path reference with non-ASCII host", + "data": "//пример.рф/путь", + "valid": true + }, + { + "description": "Relative path without dot segments", + "data": "относительный/путь", + "valid": true + }, + { + "description": "Query and fragment only", + "data": "?query=é#fragment", + "valid": true + }, + { + "description": "Empty string (same-document reference)", + "data": "", + "valid": true + }, + { + "description": "Absolute path reference", + "data": "/absolute/path/to/resource", + "valid": true + }, + { + "description": "Colon allowed after the first segment", + "data": "./foo:bar", + "valid": true + }, + { + "description": "Space in path", + "data": "with space", + "valid": false + }, + { + "description": "Malformed percent-encoding", + "data": "%ZZ", + "valid": false + }, + { + "description": "Path starting with colon (first segment must not contain a colon)", + "data": ":path", + "valid": false + }, + { + "description": "Path with brackets (gen-delims must be percent-encoded)", + "data": "path[with]brackets", + "valid": false + }, + { + "description": "Fragment with hash in value (hash not allowed within a fragment)", + "data": "#fragment#with#hashes", + "valid": false + }, + { + "description": "Number is not an IRI reference", + "data": 123, + "valid": false + }, + { + "description": "Boolean is not an IRI reference", + "data": true, + "valid": false + }, + { + "description": "Null is not an IRI reference", + "data": null, + "valid": false + }, + { + "description": "Object is not an IRI reference", + "data": {}, + "valid": false + }, + { + "description": "Array is not an IRI reference", + "data": [], + "valid": false + } + ] +} diff --git a/test/schemas/ietf/iri/3987/iri/v1.test.json b/test/schemas/ietf/iri/3987/iri/v1.test.json new file mode 100644 index 00000000..87746dad --- /dev/null +++ b/test/schemas/ietf/iri/3987/iri/v1.test.json @@ -0,0 +1,120 @@ +{ + "target": "../../../../../../schemas/ietf/iri/3987/iri/v1.json", + "tests": [ + { + "description": "Plain ASCII absolute URI", + "data": "https://example.com/path?query=value#fragment", + "valid": true + }, + { + "description": "URN as an IRI", + "data": "urn:example:foo", + "valid": true + }, + { + "description": "Mailto URI", + "data": "mailto:user@example.com", + "valid": true + }, + { + "description": "Latin accented character in path", + "data": "http://www.example.com/édition.html", + "valid": true + }, + { + "description": "Japanese host, path, query, and fragment", + "data": "https://例え.jp/パス?クエリ=値#フラグメント", + "valid": true + }, + { + "description": "Cyrillic host and path", + "data": "https://пример.рф/путь", + "valid": true + }, + { + "description": "Non-ASCII characters in a URN namespace specific string", + "data": "urn:example:héllo", + "valid": true + }, + { + "description": "Non-ASCII characters in a mailto local part", + "data": "mailto:usér@example.com", + "valid": true + }, + { + "description": "Supplementary plane character (emoji) in path", + "data": "https://example.com/emoji/😀", + "valid": true + }, + { + "description": "Private-use character in query (iprivate)", + "data": "http://example.com/?x=", + "valid": true + }, + { + "description": "Private-use character in path (iprivate is query-only)", + "data": "http://example.com/", + "valid": false + }, + { + "description": "Relative reference (scheme is required)", + "data": "../relative/path", + "valid": false + }, + { + "description": "Absolute path without scheme", + "data": "/absolute/path", + "valid": false + }, + { + "description": "Bare word without scheme", + "data": "foo", + "valid": false + }, + { + "description": "Empty string", + "data": "", + "valid": false + }, + { + "description": "Space in path", + "data": "http://example.com/with space", + "valid": false + }, + { + "description": "Malformed percent-encoding", + "data": "http://example.com/%ZZ", + "valid": false + }, + { + "description": "Scheme starting with a digit", + "data": "1http://example.com", + "valid": false + }, + { + "description": "Number is not an IRI", + "data": 123, + "valid": false + }, + { + "description": "Boolean is not an IRI", + "data": true, + "valid": false + }, + { + "description": "Null is not an IRI", + "data": null, + "valid": false + }, + { + "description": "Object is not an IRI", + "data": {}, + "valid": false + }, + { + "description": "Array is not an IRI", + "data": [], + "valid": false + } + ] +} diff --git a/test/schemas/ietf/jsonpointer/6901/pointer/v1.test.json b/test/schemas/ietf/jsonpointer/6901/pointer/v1.test.json new file mode 100644 index 00000000..8166ccd0 --- /dev/null +++ b/test/schemas/ietf/jsonpointer/6901/pointer/v1.test.json @@ -0,0 +1,500 @@ +{ + "target": "../../../../../../schemas/ietf/jsonpointer/6901/pointer/v1.json", + "tests": [ + { + "description": "Invalid type - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - empty string (root document)", + "data": "", + "valid": true + }, + { + "description": "Valid - single slash (empty key)", + "data": "/", + "valid": true + }, + { + "description": "Valid - simple key", + "data": "/foo", + "valid": true + }, + { + "description": "Valid - nested keys", + "data": "/foo/bar", + "valid": true + }, + { + "description": "Valid - array index", + "data": "/0", + "valid": true + }, + { + "description": "Valid - array append marker", + "data": "/-", + "valid": true + }, + { + "description": "Valid - mixed path", + "data": "/foo/0/bar", + "valid": true + }, + { + "description": "Valid - multiple array indices", + "data": "/0/1/2", + "valid": true + }, + { + "description": "Valid - escaped tilde ~0 represents ~", + "data": "/~0", + "valid": true + }, + { + "description": "Valid - escaped slash ~1 represents /", + "data": "/~1", + "valid": true + }, + { + "description": "Valid - multiple escapes", + "data": "/~0~1", + "valid": true + }, + { + "description": "Valid - escape in middle of key", + "data": "/foo~0bar", + "valid": true + }, + { + "description": "Valid - escaped slash in middle", + "data": "/foo~1bar", + "valid": true + }, + { + "description": "Valid - consecutive escaped tildes", + "data": "/~0~0", + "valid": true + }, + { + "description": "Valid - consecutive escaped slashes", + "data": "/~1~1", + "valid": true + }, + { + "description": "Valid - mixed escapes in key", + "data": "/a~1b~0c", + "valid": true + }, + { + "description": "Valid - ~0 followed by literal 1", + "data": "/~01", + "valid": true + }, + { + "description": "Valid - ~1 followed by literal 0", + "data": "/~10", + "valid": true + }, + { + "description": "Valid - key with space", + "data": "/foo bar", + "valid": true + }, + { + "description": "Valid - key with hyphen", + "data": "/foo-bar", + "valid": true + }, + { + "description": "Valid - key with underscore", + "data": "/foo_bar", + "valid": true + }, + { + "description": "Valid - key with dot", + "data": "/foo.bar", + "valid": true + }, + { + "description": "Valid - key with colon", + "data": "/foo:bar", + "valid": true + }, + { + "description": "Valid - key with at sign", + "data": "/foo@bar", + "valid": true + }, + { + "description": "Valid - key with exclamation", + "data": "/foo!bar", + "valid": true + }, + { + "description": "Valid - key with hash", + "data": "/foo#bar", + "valid": true + }, + { + "description": "Valid - key with dollar", + "data": "/foo$bar", + "valid": true + }, + { + "description": "Valid - key with percent", + "data": "/foo%bar", + "valid": true + }, + { + "description": "Valid - key with ampersand", + "data": "/foo&bar", + "valid": true + }, + { + "description": "Valid - key with asterisk", + "data": "/foo*bar", + "valid": true + }, + { + "description": "Valid - key with plus", + "data": "/foo+bar", + "valid": true + }, + { + "description": "Valid - key with equals", + "data": "/foo=bar", + "valid": true + }, + { + "description": "Valid - key with question mark", + "data": "/foo?bar", + "valid": true + }, + { + "description": "Valid - key with brackets", + "data": "/foo[bar]", + "valid": true + }, + { + "description": "Valid - key with braces", + "data": "/foo{bar}", + "valid": true + }, + { + "description": "Valid - key with parentheses", + "data": "/foo(bar)", + "valid": true + }, + { + "description": "Valid - key with angle brackets", + "data": "/foo", + "valid": true + }, + { + "description": "Valid - key with apostrophe", + "data": "/foo'bar", + "valid": true + }, + { + "description": "Valid - key with semicolon", + "data": "/foo;bar", + "valid": true + }, + { + "description": "Valid - key with comma", + "data": "/foo,bar", + "valid": true + }, + { + "description": "Valid - key with pipe", + "data": "/foo|bar", + "valid": true + }, + { + "description": "Valid - key with backslash", + "data": "/foo\\bar", + "valid": true + }, + { + "description": "Valid - two consecutive slashes (two empty keys)", + "data": "//", + "valid": true + }, + { + "description": "Valid - three consecutive slashes", + "data": "///", + "valid": true + }, + { + "description": "Valid - alphanumeric key", + "data": "/abc123", + "valid": true + }, + { + "description": "Valid - key starting with number", + "data": "/123abc", + "valid": true + }, + { + "description": "Valid - single space as key", + "data": "/ ", + "valid": true + }, + { + "description": "Valid - tab character in key", + "data": "/\t", + "valid": true + }, + { + "description": "Valid - newline in key", + "data": "/\n", + "valid": true + }, + { + "description": "Valid - carriage return in key", + "data": "/\r", + "valid": true + }, + { + "description": "Valid - null byte in key", + "data": "/\u0000", + "valid": true + }, + { + "description": "Valid - accented character", + "data": "/café", + "valid": true + }, + { + "description": "Valid - Japanese characters", + "data": "/日本語", + "valid": true + }, + { + "description": "Valid - emoji", + "data": "/emoji😀", + "valid": true + }, + { + "description": "Valid - Unicode character", + "data": "/é", + "valid": true + }, + { + "description": "Valid - multiple levels deep", + "data": "/a/b/c/d/e/f/g", + "valid": true + }, + { + "description": "Valid - long key", + "data": "/verylongkeynamethatgoesonforsometime", + "valid": true + }, + { + "description": "Valid - number with leading zero", + "data": "/01", + "valid": true + }, + { + "description": "Valid - negative number", + "data": "/-1", + "valid": true + }, + { + "description": "Valid - decimal number", + "data": "/3.14", + "valid": true + }, + { + "description": "Valid - key with quote", + "data": "/foo\"bar", + "valid": true + }, + { + "description": "Valid - all special chars except / and ~", + "data": "/!#$%&'()*+,-.0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}", + "valid": true + }, + { + "description": "Valid - escape at start", + "data": "/~0foo", + "valid": true + }, + { + "description": "Valid - escape at end", + "data": "/foo~0", + "valid": true + }, + { + "description": "Valid - only escapes", + "data": "/~0~1~0~1", + "valid": true + }, + { + "description": "Invalid - no leading slash", + "data": "foo", + "valid": false + }, + { + "description": "Invalid - path without leading slash", + "data": "foo/bar", + "valid": false + }, + { + "description": "Invalid - lone tilde", + "data": "/~", + "valid": false + }, + { + "description": "Invalid - tilde followed by 2", + "data": "/~2", + "valid": false + }, + { + "description": "Invalid - tilde followed by 3", + "data": "/~3", + "valid": false + }, + { + "description": "Invalid - tilde followed by 4", + "data": "/~4", + "valid": false + }, + { + "description": "Invalid - tilde followed by 5", + "data": "/~5", + "valid": false + }, + { + "description": "Invalid - tilde followed by 6", + "data": "/~6", + "valid": false + }, + { + "description": "Invalid - tilde followed by 7", + "data": "/~7", + "valid": false + }, + { + "description": "Invalid - tilde followed by 8", + "data": "/~8", + "valid": false + }, + { + "description": "Invalid - tilde followed by 9", + "data": "/~9", + "valid": false + }, + { + "description": "Invalid - tilde followed by letter a", + "data": "/~a", + "valid": false + }, + { + "description": "Invalid - tilde followed by letter b", + "data": "/~b", + "valid": false + }, + { + "description": "Invalid - tilde followed by uppercase A", + "data": "/~A", + "valid": false + }, + { + "description": "Invalid - tilde at end of key", + "data": "/foo~", + "valid": false + }, + { + "description": "Invalid - tilde with invalid escape in middle", + "data": "/foo~2bar", + "valid": false + }, + { + "description": "Invalid - tilde at end of path component", + "data": "/foo~/bar", + "valid": false + }, + { + "description": "Invalid - tilde without slash prefix", + "data": "~0", + "valid": false + }, + { + "description": "Invalid - escaped slash without leading slash", + "data": "~1", + "valid": false + }, + { + "description": "Invalid - tilde at end after slash", + "data": "/foo/~", + "valid": false + }, + { + "description": "Invalid - multiple keys without leading slash", + "data": "foo/bar/baz", + "valid": false + }, + { + "description": "Invalid - tilde followed by space", + "data": "/~ ", + "valid": false + }, + { + "description": "Invalid - tilde followed by slash", + "data": "/~//", + "valid": false + }, + { + "description": "Invalid - tilde followed by tilde", + "data": "/~~", + "valid": false + }, + { + "description": "Invalid - incomplete escape at end", + "data": "/foo/bar~", + "valid": false + }, + { + "description": "Invalid - tilde in middle of path", + "data": "/foo~bar", + "valid": false + }, + { + "description": "Invalid - double tilde without digits", + "data": "/~~0", + "valid": false + }, + { + "description": "Invalid - tilde followed by hash", + "data": "/~#", + "valid": false + }, + { + "description": "Invalid - tilde followed by newline", + "data": "/~\n", + "valid": false + } + ] +} diff --git a/test/schemas/ietf/jsonschema/2020-12/dialect/format-assertion/v1.test.json b/test/schemas/ietf/jsonschema/2020-12/dialect/format-assertion/v1.test.json new file mode 100644 index 00000000..63312bbf --- /dev/null +++ b/test/schemas/ietf/jsonschema/2020-12/dialect/format-assertion/v1.test.json @@ -0,0 +1,77 @@ +{ + "target": "../../../../../../../schemas/ietf/jsonschema/2020-12/dialect/format-assertion/v1.json", + "tests": [ + { + "description": "Schema with an asserted format", + "data": { + "type": "string", + "format": "email" + }, + "valid": true + }, + { + "description": "Schema with a format inside properties", + "data": { + "type": "object", + "properties": { + "website": { + "type": "string", + "format": "uri" + } + } + }, + "valid": true + }, + { + "description": "Empty schema", + "data": {}, + "valid": true + }, + { + "description": "Boolean true schema", + "data": true, + "valid": true + }, + { + "description": "Boolean false schema", + "data": false, + "valid": true + }, + { + "description": "Format must be a string", + "data": { + "format": 123 + }, + "valid": false + }, + { + "description": "Type must be a string or an array of strings", + "data": { + "type": 123 + }, + "valid": false + }, + { + "description": "Properties must be an object", + "data": { + "properties": 123 + }, + "valid": false + }, + { + "description": "String is not a schema", + "data": "not-a-schema", + "valid": false + }, + { + "description": "Number is not a schema", + "data": 123, + "valid": false + }, + { + "description": "Null is not a schema", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/ietf/language/3066/tag-syntax/v1.test.json b/test/schemas/ietf/language/3066/tag-syntax/v1.test.json new file mode 100644 index 00000000..cda3ae45 --- /dev/null +++ b/test/schemas/ietf/language/3066/tag-syntax/v1.test.json @@ -0,0 +1,473 @@ +{ + "target": "../../../../../../schemas/ietf/language/3066/tag-syntax/v1.json", + "tests": [ + { + "description": "Valid - two letter primary tag", + "data": "en", + "valid": true + }, + { + "description": "Valid - three letter primary tag", + "data": "eng", + "valid": true + }, + { + "description": "Valid - single letter primary tag", + "data": "x", + "valid": true + }, + { + "description": "Valid - four letter primary tag", + "data": "abcd", + "valid": true + }, + { + "description": "Valid - five letter primary tag", + "data": "abcde", + "valid": true + }, + { + "description": "Valid - six letter primary tag", + "data": "abcdef", + "valid": true + }, + { + "description": "Valid - seven letter primary tag", + "data": "abcdefg", + "valid": true + }, + { + "description": "Valid - eight letter primary tag (maximum)", + "data": "abcdefgh", + "valid": true + }, + { + "description": "Valid - primary tag with region subtag", + "data": "en-US", + "valid": true + }, + { + "description": "Valid - primary tag with two letter subtag", + "data": "de-DE", + "valid": true + }, + { + "description": "Valid - primary tag with three letter subtag", + "data": "zh-CHN", + "valid": true + }, + { + "description": "Valid - primary tag with numeric subtag", + "data": "de-1996", + "valid": true + }, + { + "description": "Valid - primary tag with alphanumeric subtag", + "data": "en-GB-oed", + "valid": true + }, + { + "description": "Valid - primary tag with single letter subtag", + "data": "en-a", + "valid": true + }, + { + "description": "Valid - primary tag with single digit subtag", + "data": "en-1", + "valid": true + }, + { + "description": "Valid - primary tag with eight character subtag", + "data": "en-12345678", + "valid": true + }, + { + "description": "Valid - multiple subtags", + "data": "en-US-x-twain", + "valid": true + }, + { + "description": "Valid - three subtags", + "data": "zh-Hans-CN", + "valid": true + }, + { + "description": "Valid - four subtags", + "data": "en-Latn-US-variant", + "valid": true + }, + { + "description": "Valid - many subtags", + "data": "x-a-b-c-d-e-f", + "valid": true + }, + { + "description": "Valid - i-navajo (grandfathered)", + "data": "i-navajo", + "valid": true + }, + { + "description": "Valid - i-prefix", + "data": "i-klingon", + "valid": true + }, + { + "description": "Valid - x-private", + "data": "x-private", + "valid": true + }, + { + "description": "Valid - x-prefix with extension", + "data": "x-test-123", + "valid": true + }, + { + "description": "Valid - uppercase primary", + "data": "EN", + "valid": true + }, + { + "description": "Valid - uppercase subtag", + "data": "en-US", + "valid": true + }, + { + "description": "Valid - mixed case primary", + "data": "eN", + "valid": true + }, + { + "description": "Valid - mixed case subtag", + "data": "en-Us", + "valid": true + }, + { + "description": "Valid - all uppercase", + "data": "EN-US-X-TEST", + "valid": true + }, + { + "description": "Valid - lowercase", + "data": "en-us-x-test", + "valid": true + }, + { + "description": "Valid - common language codes", + "data": "fr", + "valid": true + }, + { + "description": "Valid - common language with region", + "data": "fr-FR", + "valid": true + }, + { + "description": "Valid - Spanish Mexico", + "data": "es-MX", + "valid": true + }, + { + "description": "Valid - Portuguese Brazil", + "data": "pt-BR", + "valid": true + }, + { + "description": "Valid - Chinese simplified", + "data": "zh-CN", + "valid": true + }, + { + "description": "Valid - Chinese traditional", + "data": "zh-TW", + "valid": true + }, + { + "description": "Valid - Japanese", + "data": "ja", + "valid": true + }, + { + "description": "Valid - Korean", + "data": "ko", + "valid": true + }, + { + "description": "Valid - Arabic", + "data": "ar", + "valid": true + }, + { + "description": "Valid - Russian", + "data": "ru", + "valid": true + }, + { + "description": "Valid - German Germany", + "data": "de-DE", + "valid": true + }, + { + "description": "Valid - German Austria", + "data": "de-AT", + "valid": true + }, + { + "description": "Valid - German Switzerland", + "data": "de-CH", + "valid": true + }, + { + "description": "Valid - English UK", + "data": "en-GB", + "valid": true + }, + { + "description": "Valid - English Australia", + "data": "en-AU", + "valid": true + }, + { + "description": "Valid - English Canada", + "data": "en-CA", + "valid": true + }, + { + "description": "Valid - French Canada", + "data": "fr-CA", + "valid": true + }, + { + "description": "Valid - Spanish Spain", + "data": "es-ES", + "valid": true + }, + { + "description": "Valid - Italian", + "data": "it", + "valid": true + }, + { + "description": "Valid - Dutch", + "data": "nl", + "valid": true + }, + { + "description": "Invalid: empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid: nine letter primary tag (too long)", + "data": "abcdefghi", + "valid": false + }, + { + "description": "Invalid: ten letter primary tag", + "data": "abcdefghij", + "valid": false + }, + { + "description": "Invalid: subtag too long (9 characters)", + "data": "en-123456789", + "valid": false + }, + { + "description": "Invalid: subtag too long (10 characters)", + "data": "en-1234567890", + "valid": false + }, + { + "description": "Invalid: starts with hyphen", + "data": "-en", + "valid": false + }, + { + "description": "Invalid: ends with hyphen", + "data": "en-", + "valid": false + }, + { + "description": "Invalid: double hyphen", + "data": "en--US", + "valid": false + }, + { + "description": "Invalid: triple hyphen", + "data": "en---US", + "valid": false + }, + { + "description": "Invalid: only hyphen", + "data": "-", + "valid": false + }, + { + "description": "Invalid: multiple hyphens", + "data": "---", + "valid": false + }, + { + "description": "Invalid: primary tag with digit", + "data": "e1", + "valid": false + }, + { + "description": "Invalid: primary tag starts with digit", + "data": "1en", + "valid": false + }, + { + "description": "Invalid: primary tag only digits", + "data": "123", + "valid": false + }, + { + "description": "Invalid: primary tag with special character", + "data": "e@n", + "valid": false + }, + { + "description": "Invalid: subtag with special character", + "data": "en-U$", + "valid": false + }, + { + "description": "Invalid: contains space", + "data": "en US", + "valid": false + }, + { + "description": "Invalid: contains space in subtag", + "data": "en-U S", + "valid": false + }, + { + "description": "Invalid: contains underscore", + "data": "en_US", + "valid": false + }, + { + "description": "Invalid: contains period", + "data": "en.US", + "valid": false + }, + { + "description": "Invalid: contains slash", + "data": "en/US", + "valid": false + }, + { + "description": "Invalid: contains backslash", + "data": "en\\US", + "valid": false + }, + { + "description": "Invalid: contains comma", + "data": "en,US", + "valid": false + }, + { + "description": "Invalid: contains semicolon", + "data": "en;US", + "valid": false + }, + { + "description": "Invalid: contains colon", + "data": "en:US", + "valid": false + }, + { + "description": "Invalid: contains parenthesis", + "data": "en(US)", + "valid": false + }, + { + "description": "Invalid: contains bracket", + "data": "en[US]", + "valid": false + }, + { + "description": "Invalid: contains brace", + "data": "en{US}", + "valid": false + }, + { + "description": "Invalid: contains quote", + "data": "en\"US", + "valid": false + }, + { + "description": "Invalid: contains apostrophe", + "data": "en'US", + "valid": false + }, + { + "description": "Invalid: contains newline", + "data": "en\nUS", + "valid": false + }, + { + "description": "Invalid: contains tab", + "data": "en\tUS", + "valid": false + }, + { + "description": "Invalid: contains carriage return", + "data": "en\rUS", + "valid": false + }, + { + "description": "Invalid: leading space", + "data": " en", + "valid": false + }, + { + "description": "Invalid: trailing space", + "data": "en ", + "valid": false + }, + { + "description": "Invalid: leading space before subtag", + "data": "en- US", + "valid": false + }, + { + "description": "Invalid: trailing space after primary", + "data": "en -US", + "valid": false + }, + { + "description": "Invalid: empty subtag", + "data": "en--US", + "valid": false + }, + { + "description": "Type validation: not a string (number)", + "data": 123, + "valid": false + }, + { + "description": "Type validation: not a string (boolean)", + "data": true, + "valid": false + }, + { + "description": "Type validation: not a string (null)", + "data": null, + "valid": false + }, + { + "description": "Type validation: not a string (array)", + "data": [ "en", "US" ], + "valid": false + }, + { + "description": "Type validation: not a string (object)", + "data": { + "language": "en", + "region": "US" + }, + "valid": false + } + ] +} diff --git a/test/schemas/ietf/language/5646/tag-syntax/v1.test.json b/test/schemas/ietf/language/5646/tag-syntax/v1.test.json new file mode 100644 index 00000000..dea40d66 --- /dev/null +++ b/test/schemas/ietf/language/5646/tag-syntax/v1.test.json @@ -0,0 +1,430 @@ +{ + "target": "../../../../../../schemas/ietf/language/5646/tag-syntax/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 2-letter language", + "data": "en", + "valid": true + }, + { + "description": "Valid - 3-letter language", + "data": "eng", + "valid": true + }, + { + "description": "Valid - 4-letter language (reserved)", + "data": "abcd", + "valid": true + }, + { + "description": "Valid - 5-letter language", + "data": "abcde", + "valid": true + }, + { + "description": "Valid - 8-letter language", + "data": "abcdefgh", + "valid": true + }, + { + "description": "Invalid - 1-letter language", + "data": "e", + "valid": false + }, + { + "description": "Invalid - 9-letter language", + "data": "abcdefghi", + "valid": false + }, + { + "description": "Valid - language + region (alpha-2)", + "data": "en-US", + "valid": true + }, + { + "description": "Valid - language + region (alpha-2)", + "data": "fr-FR", + "valid": true + }, + { + "description": "Valid - language + region (numeric)", + "data": "es-419", + "valid": true + }, + { + "description": "Valid - language + region (numeric 001)", + "data": "en-001", + "valid": true + }, + { + "description": "Invalid - region too short (1 digit)", + "data": "en-1", + "valid": false + }, + { + "description": "Valid - 3 letters after language (extlang, not region)", + "data": "en-USA", + "valid": true + }, + { + "description": "Valid - variant (digit + 3 alphanum, looks like 4-digit region)", + "data": "en-1234", + "valid": true + }, + { + "description": "Valid - language + script", + "data": "sr-Latn", + "valid": true + }, + { + "description": "Valid - language + script (Hans)", + "data": "zh-Hans", + "valid": true + }, + { + "description": "Valid - language + script (Hant)", + "data": "zh-Hant", + "valid": true + }, + { + "description": "Valid - script lowercase", + "data": "sr-latn", + "valid": true + }, + { + "description": "Valid - script uppercase", + "data": "sr-LATN", + "valid": true + }, + { + "description": "Valid - script mixed case", + "data": "sr-lATN", + "valid": true + }, + { + "description": "Valid - 3 letters after language (extlang, not script)", + "data": "sr-Lat", + "valid": true + }, + { + "description": "Valid - variant (5 chars, looks like script but too long for script pattern)", + "data": "sr-Latin", + "valid": true + }, + { + "description": "Valid - language + script + region", + "data": "sr-Latn-RS", + "valid": true + }, + { + "description": "Valid - language + script + region", + "data": "zh-Hans-CN", + "valid": true + }, + { + "description": "Valid - language + script + region (numeric)", + "data": "zh-Hans-419", + "valid": true + }, + { + "description": "Valid - extlang (1)", + "data": "zh-yue", + "valid": true + }, + { + "description": "Valid - extlang (2)", + "data": "zh-yue-cmn", + "valid": true + }, + { + "description": "Valid - extlang (3)", + "data": "zh-yue-cmn-hak", + "valid": true + }, + { + "description": "Invalid - extlang (4)", + "data": "zh-yue-cmn-hak-abc", + "valid": false + }, + { + "description": "Valid - extlang + script + region", + "data": "zh-cmn-Hans-CN", + "valid": true + }, + { + "description": "Valid - variant (digit + 3 alphanum)", + "data": "de-CH-1996", + "valid": true + }, + { + "description": "Valid - variant (5 alphanum)", + "data": "sl-nedis", + "valid": true + }, + { + "description": "Valid - variant (8 alphanum)", + "data": "de-CH-abcdefgh", + "valid": true + }, + { + "description": "Valid - 4 letters after language (script)", + "data": "de-abcd", + "valid": true + }, + { + "description": "Valid - extlang (3 chars, looks like short variant but matches extlang)", + "data": "de-abc", + "valid": true + }, + { + "description": "Invalid - variant (9 alphanum)", + "data": "de-abcdefghi", + "valid": false + }, + { + "description": "Valid - multiple variants", + "data": "de-Latn-DE-1996-x-foo", + "valid": true + }, + { + "description": "Valid - extension (u-)", + "data": "en-US-u-ca-gregory", + "valid": true + }, + { + "description": "Valid - extension (t-)", + "data": "en-US-t-en-latn", + "valid": true + }, + { + "description": "Valid - extension with multiple subtags", + "data": "en-US-u-ca-gregory-nu-latn", + "valid": true + }, + { + "description": "Valid - multiple extensions", + "data": "en-US-u-ca-gregory-t-en-latn", + "valid": true + }, + { + "description": "Valid - extension singleton (digit)", + "data": "en-0-foo", + "valid": true + }, + { + "description": "Valid - extension singleton (letter a-w)", + "data": "en-a-foo", + "valid": true + }, + { + "description": "Valid - extension singleton (letter y-z)", + "data": "en-y-foo", + "valid": true + }, + { + "description": "Invalid - extension singleton x (reserved for private use)", + "data": "en-x-extension", + "valid": false + }, + { + "description": "Invalid - extension subtag too short (1 char)", + "data": "en-u-a", + "valid": false + }, + { + "description": "Invalid - extension subtag too long (9 chars)", + "data": "en-u-abcdefghi", + "valid": false + }, + { + "description": "Valid - private use at end", + "data": "en-US-x-twain", + "valid": true + }, + { + "description": "Valid - private use with multiple subtags", + "data": "en-x-foo-bar-baz", + "valid": true + }, + { + "description": "Valid - private use standalone", + "data": "x-private", + "valid": true + }, + { + "description": "Valid - private use standalone (multiple subtags)", + "data": "x-foo-bar-baz", + "valid": true + }, + { + "description": "Invalid - private use subtag too long", + "data": "x-abcdefghi", + "valid": false + }, + { + "description": "Invalid - private use subtag empty", + "data": "x-", + "valid": false + }, + { + "description": "Valid - complex tag with all components", + "data": "zh-cmn-Hans-CN-1996-u-ca-buddhist-x-private", + "valid": true + }, + { + "description": "Valid - grandfathered tag (irregular)", + "data": "en-GB-oed", + "valid": true + }, + { + "description": "Valid - grandfathered tag (i-)", + "data": "i-klingon", + "valid": true + }, + { + "description": "Valid - grandfathered tag (sgn-)", + "data": "sgn-BE-FR", + "valid": true + }, + { + "description": "Valid - uppercase language", + "data": "EN", + "valid": true + }, + { + "description": "Valid - mixed case language", + "data": "En", + "valid": true + }, + { + "description": "Valid - lowercase region", + "data": "en-us", + "valid": true + }, + { + "description": "Valid - mixed case region", + "data": "en-Us", + "valid": true + }, + { + "description": "Invalid - underscore separator", + "data": "en_US", + "valid": false + }, + { + "description": "Invalid - dot separator", + "data": "en.US", + "valid": false + }, + { + "description": "Invalid - space separator", + "data": "en US", + "valid": false + }, + { + "description": "Invalid - double hyphen", + "data": "en--US", + "valid": false + }, + { + "description": "Invalid - leading hyphen", + "data": "-en", + "valid": false + }, + { + "description": "Invalid - trailing hyphen", + "data": "en-", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Valid - 3-letter language + region", + "data": "eng-US", + "valid": true + }, + { + "description": "Valid - 3-letter language + script + region", + "data": "eng-Latn-US", + "valid": true + }, + { + "description": "Valid - script without region", + "data": "zh-Hant", + "valid": true + }, + { + "description": "Valid - 2 letters (language code)", + "data": "US", + "valid": true + }, + { + "description": "Valid - 4 letters (language code)", + "data": "Latn", + "valid": true + }, + { + "description": "Valid - variant digit-starting (0xxx)", + "data": "en-0abc", + "valid": true + }, + { + "description": "Valid - variant digit-starting (9xxx)", + "data": "en-9xyz", + "valid": true + }, + { + "description": "Invalid - variant starting with digit but only 3 chars total", + "data": "en-1ab", + "valid": false + }, + { + "description": "Valid - extension with 2-char subtag", + "data": "en-u-ab", + "valid": true + }, + { + "description": "Valid - extension with 8-char subtag", + "data": "en-u-abcdefgh", + "valid": true + }, + { + "description": "Valid - grandfathered tag in uppercase", + "valid": true, + "data": "I-KLINGON" + }, + { + "description": "Valid - grandfathered tag in mixed case", + "valid": true, + "data": "En-GB-Oed" + } + ] +} diff --git a/test/schemas/ietf/problem-details/9457/problem/v1.test.json b/test/schemas/ietf/problem-details/9457/problem/v1.test.json new file mode 100644 index 00000000..6d1baae7 --- /dev/null +++ b/test/schemas/ietf/problem-details/9457/problem/v1.test.json @@ -0,0 +1,457 @@ +{ + "target": "../../../../../../schemas/ietf/problem-details/9457/problem/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "not an object", + "valid": false + }, + { + "description": "Invalid type - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Empty object is valid", + "data": {}, + "valid": true + }, + { + "description": "Valid minimal problem with type only", + "data": { + "type": "https://example.com/probs/out-of-credit" + }, + "valid": true + }, + { + "description": "Valid minimal problem with title only", + "data": { + "title": "You do not have enough credit." + }, + "valid": true + }, + { + "description": "Valid minimal problem with status only", + "data": { + "status": 400 + }, + "valid": true + }, + { + "description": "Valid minimal problem with detail only", + "data": { + "detail": "Your current balance is 30, but that costs 50." + }, + "valid": true + }, + { + "description": "Valid minimal problem with instance only", + "data": { + "instance": "/account/12345/msgs/abc" + }, + "valid": true + }, + { + "description": "Valid problem with all standard fields", + "data": { + "title": "You do not have enough credit.", + "type": "https://example.com/probs/out-of-credit", + "detail": "Your current balance is 30, but that costs 50.", + "instance": "/account/12345/msgs/abc", + "status": 403 + }, + "valid": true + }, + { + "description": "Valid problem with extension properties", + "data": { + "title": "You do not have enough credit.", + "type": "https://example.com/probs/out-of-credit", + "accounts": [ "/account/12345", "/account/67890" ], + "balance": 30 + }, + "valid": true + }, + { + "description": "Valid problem with about:blank type", + "data": { + "title": "Internal Server Error", + "type": "about:blank", + "status": 500 + }, + "valid": true + }, + { + "description": "Valid problem with relative URI type", + "data": { + "title": "Validation Error", + "type": "/probs/validation-error" + }, + "valid": true + }, + { + "description": "Valid problem with fragment-only type", + "data": { + "title": "Validation Error", + "type": "#validation-error" + }, + "valid": true + }, + { + "description": "Valid problem with query-only type", + "data": { + "title": "Validation Error", + "type": "?type=validation" + }, + "valid": true + }, + { + "description": "Valid problem with relative instance", + "data": { + "instance": "../orders/12345" + }, + "valid": true + }, + { + "description": "Valid problem with absolute instance", + "data": { + "instance": "https://example.com/orders/12345" + }, + "valid": true + }, + { + "description": "Valid problem with minimum status code", + "data": { + "status": 100 + }, + "valid": true + }, + { + "description": "Valid problem with maximum status code", + "data": { + "status": 599 + }, + "valid": true + }, + { + "description": "Valid problem with common 4xx status", + "data": { + "title": "Not Found", + "status": 404 + }, + "valid": true + }, + { + "description": "Valid problem with common 5xx status", + "data": { + "title": "Internal Server Error", + "status": 500 + }, + "valid": true + }, + { + "description": "Invalid type field - number", + "data": { + "type": 123 + }, + "valid": false + }, + { + "description": "Invalid type field - boolean", + "data": { + "type": true + }, + "valid": false + }, + { + "description": "Invalid type field - object", + "data": { + "type": {} + }, + "valid": false + }, + { + "description": "Invalid type field - array", + "data": { + "type": [] + }, + "valid": false + }, + { + "description": "Invalid title field - number", + "data": { + "title": 123 + }, + "valid": false + }, + { + "description": "Invalid title field - boolean", + "data": { + "title": false + }, + "valid": false + }, + { + "description": "Invalid title field - object", + "data": { + "title": {} + }, + "valid": false + }, + { + "description": "Invalid title field - array", + "data": { + "title": [] + }, + "valid": false + }, + { + "description": "Invalid status field - string", + "data": { + "status": "400" + }, + "valid": false + }, + { + "description": "Invalid status field - boolean", + "data": { + "status": true + }, + "valid": false + }, + { + "description": "Invalid status field - object", + "data": { + "status": {} + }, + "valid": false + }, + { + "description": "Invalid status field - array", + "data": { + "status": [] + }, + "valid": false + }, + { + "description": "Invalid status field - too low", + "data": { + "status": 99 + }, + "valid": false + }, + { + "description": "Invalid status field - too high", + "data": { + "status": 600 + }, + "valid": false + }, + { + "description": "Invalid status field - negative", + "data": { + "status": -1 + }, + "valid": false + }, + { + "description": "Invalid status field - float", + "data": { + "status": 400.5 + }, + "valid": false + }, + { + "description": "Invalid detail field - number", + "data": { + "detail": 123 + }, + "valid": false + }, + { + "description": "Invalid detail field - boolean", + "data": { + "detail": true + }, + "valid": false + }, + { + "description": "Invalid detail field - object", + "data": { + "detail": {} + }, + "valid": false + }, + { + "description": "Invalid detail field - array", + "data": { + "detail": [] + }, + "valid": false + }, + { + "description": "Invalid instance field - number", + "data": { + "instance": 123 + }, + "valid": false + }, + { + "description": "Invalid instance field - boolean", + "data": { + "instance": false + }, + "valid": false + }, + { + "description": "Invalid instance field - object", + "data": { + "instance": {} + }, + "valid": false + }, + { + "description": "Invalid instance field - array", + "data": { + "instance": [] + }, + "valid": false + }, + { + "description": "Valid empty string type", + "data": { + "type": "" + }, + "valid": true + }, + { + "description": "Valid empty string title", + "data": { + "title": "" + }, + "valid": true + }, + { + "description": "Valid empty string detail", + "data": { + "detail": "" + }, + "valid": true + }, + { + "description": "Valid empty string instance", + "data": { + "instance": "" + }, + "valid": true + }, + { + "description": "Valid problem with complex extension object", + "data": { + "title": "Your request parameters didn't validate.", + "type": "https://example.net/validation-error", + "invalid-params": [ + { + "name": "age", + "reason": "must be a positive integer" + }, + { + "name": "color", + "reason": "must be 'green', 'red' or 'blue'" + } + ] + }, + "valid": true + }, + { + "description": "Valid problem with numeric extension property", + "data": { + "type": "https://example.com/probs/out-of-credit", + "balance": 30, + "cost": 50 + }, + "valid": true + }, + { + "description": "Valid problem with boolean extension property", + "data": { + "type": "https://example.com/probs/maintenance", + "scheduled": true + }, + "valid": true + }, + { + "description": "Valid problem with null extension property", + "data": { + "type": "https://example.com/probs/user-error", + "user": null + }, + "valid": true + }, + { + "description": "Valid problem with mixed extension properties", + "data": { + "title": "Complex Problem", + "type": "https://example.com/probs/complex", + "arrayProp": [ 1, 2, 3 ], + "booleanProp": false, + "nullProp": null, + "numberProp": 42, + "objectProp": { + "nested": "value" + }, + "stringProp": "value" + }, + "valid": true + }, + { + "description": "Valid problem with Unicode characters in strings", + "data": { + "title": "Unicode Problem: 你好世界", + "type": "https://example.com/probs/unicode", + "custom": "Ñoño: αβγδε", + "detail": "Error with émojis: 🚨❌" + }, + "valid": true + }, + { + "description": "Valid problem with percent-encoded URI type", + "data": { + "title": "Credit Problem", + "type": "https://example.com/probs/out%20of%20credit" + }, + "valid": true + }, + { + "description": "Valid problem with percent-encoded URI instance", + "data": { + "instance": "/users/john%20doe/orders/123" + }, + "valid": true + }, + { + "description": "Valid problem with long strings", + "data": { + "title": "A very long title that goes on and on and on and on and on and on and on and on", + "type": "https://example.com/probs/long-description", + "detail": "A very long detail message that provides extensive information about what went wrong in the system and how the user might be able to fix it by following these very detailed instructions that go on for quite a while to test string length handling" + }, + "valid": true + } + ] +} diff --git a/test/schemas/ietf/uri/3986/uri-reference/v1.test.json b/test/schemas/ietf/uri/3986/uri-reference/v1.test.json new file mode 100644 index 00000000..072cc320 --- /dev/null +++ b/test/schemas/ietf/uri/3986/uri-reference/v1.test.json @@ -0,0 +1,715 @@ +{ + "target": "../../../../../../schemas/ietf/uri/3986/uri-reference/v1.json", + "tests": [ + { + "description": "Invalid type - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Empty string is valid URI reference", + "data": "", + "valid": true + }, + { + "description": "Basic HTTP URI", + "data": "http://example.com", + "valid": true + }, + { + "description": "HTTPS URI with path", + "data": "https://example.com/path/to/resource", + "valid": true + }, + { + "description": "FTP URI", + "data": "ftp://ftp.example.com/file.txt", + "valid": true + }, + { + "description": "File URI", + "data": "file:///path/to/file", + "valid": true + }, + { + "description": "Mailto URI", + "data": "mailto:user@example.com", + "valid": true + }, + { + "description": "Tel URI", + "data": "tel:+1-800-555-0123", + "valid": true + }, + { + "description": "URN with ISBN", + "data": "urn:isbn:0451450523", + "valid": true + }, + { + "description": "URN with UUID", + "data": "urn:uuid:12345678-1234-5678-1234-123456789abc", + "valid": true + }, + { + "description": "Custom scheme", + "data": "custom://example.com/resource", + "valid": true + }, + { + "description": "Scheme with numbers", + "data": "h2tp://example.com", + "valid": true + }, + { + "description": "Scheme with plus", + "data": "git+ssh://user@host/repo.git", + "valid": true + }, + { + "description": "Scheme with period", + "data": "x.400://example.com", + "valid": true + }, + { + "description": "Scheme with hyphen", + "data": "my-scheme://example.com", + "valid": true + }, + { + "description": "URI with userinfo", + "data": "https://user:password@example.com/path", + "valid": true + }, + { + "description": "URI with userinfo without password", + "data": "https://user@example.com/path", + "valid": true + }, + { + "description": "URI with empty userinfo", + "data": "https://@example.com/path", + "valid": true + }, + { + "description": "URI with IPv4 address", + "data": "http://192.168.1.1/path", + "valid": true + }, + { + "description": "URI with IPv6 address", + "data": "http://[2001:db8::1]/path", + "valid": true + }, + { + "description": "URI with IPv6 and port", + "data": "http://[::1]:8080/path", + "valid": true + }, + { + "description": "URI with port number", + "data": "https://example.com:443/path", + "valid": true + }, + { + "description": "URI with high port number", + "data": "http://example.com:65535/path", + "valid": true + }, + { + "description": "URI with international domain name", + "data": "http://xn--nxasmq6b.example.com/path", + "valid": true + }, + { + "description": "URI with empty path", + "data": "http://example.com", + "valid": true + }, + { + "description": "URI with root path", + "data": "http://example.com/", + "valid": true + }, + { + "description": "URI with complex path", + "data": "http://example.com/path/to/resource.html", + "valid": true + }, + { + "description": "URI with path containing dot segments", + "data": "http://example.com/path/../other/./file", + "valid": true + }, + { + "description": "URI with percent-encoded path", + "data": "http://example.com/path%20with%20spaces", + "valid": true + }, + { + "description": "URI with unreserved characters in path", + "data": "http://example.com/ABCabc123-._~", + "valid": true + }, + { + "description": "URI with sub-delims in path", + "data": "http://example.com/!$&'()*+,;=", + "valid": true + }, + { + "description": "URI with simple query", + "data": "http://example.com/path?query=value", + "valid": true + }, + { + "description": "URI with multiple query parameters", + "data": "http://example.com/path?a=1&b=2&c=3", + "valid": true + }, + { + "description": "URI with empty query", + "data": "http://example.com/path?", + "valid": true + }, + { + "description": "URI with query containing special characters", + "data": "http://example.com/path?q=hello%20world&x=a+b", + "valid": true + }, + { + "description": "URI with query containing question marks", + "data": "http://example.com/path?q=what?is?this", + "valid": true + }, + { + "description": "URI with fragment", + "data": "http://example.com/path#section", + "valid": true + }, + { + "description": "URI with empty fragment", + "data": "http://example.com/path#", + "valid": true + }, + { + "description": "URI with query and fragment", + "data": "http://example.com/path?q=v#section", + "valid": true + }, + { + "description": "URI with percent-encoded fragment", + "data": "http://example.com/path#section%201", + "valid": true + }, + { + "description": "URI with fragment containing hash (hash not allowed within a fragment)", + "data": "http://example.com/path#hash#in#fragment", + "valid": false + }, + { + "description": "Single slash path", + "data": "/", + "valid": true + }, + { + "description": "Path with single segment", + "data": "file.txt", + "valid": true + }, + { + "description": "Path with multiple segments", + "data": "path/to/resource", + "valid": true + }, + { + "description": "Absolute path", + "data": "/absolute/path/to/file", + "valid": true + }, + { + "description": "Current directory reference", + "data": ".", + "valid": true + }, + { + "description": "Parent directory reference", + "data": "..", + "valid": true + }, + { + "description": "Path with dot segments", + "data": "../../../relative/path", + "valid": true + }, + { + "description": "Network path reference", + "data": "//example.com/path", + "valid": true + }, + { + "description": "Network path with userinfo", + "data": "//user:pass@example.com/path", + "valid": true + }, + { + "description": "Network path with port", + "data": "//example.com:8080/path", + "valid": true + }, + { + "description": "Query only", + "data": "?query=value", + "valid": true + }, + { + "description": "Fragment only", + "data": "#fragment", + "valid": true + }, + { + "description": "Path with query", + "data": "path/to/file?query=value", + "valid": true + }, + { + "description": "Path with fragment", + "data": "path/to/file#section", + "valid": true + }, + { + "description": "Path with query and fragment", + "data": "path/to/file?query=value#section", + "valid": true + }, + { + "description": "Relative path that looks like scheme starting with number", + "data": "9scheme", + "valid": true + }, + { + "description": "Relative path that looks like scheme starting with hyphen", + "data": "-scheme", + "valid": true + }, + { + "description": "Relative path that looks like scheme starting with period", + "data": ".scheme", + "valid": true + }, + { + "description": "Relative path with invalid scheme character", + "data": "sch@me", + "valid": true + }, + { + "description": "Opaque URI (scheme:path)", + "data": "mailto:user@example.com", + "valid": true + }, + { + "description": "Opaque URI with query", + "data": "mailto:user@example.com?subject=test", + "valid": true + }, + { + "description": "Scheme with colon only", + "data": "scheme:", + "valid": true + }, + { + "description": "URI with all components", + "data": "https://user:pass@example.com:8080/path/to/resource?query=value&other=123#section", + "valid": true + }, + { + "description": "Data URI", + "data": "data:text/plain;base64,SGVsbG8gV29ybGQ=", + "valid": true + }, + { + "description": "Data URI with percent encoding", + "data": "data:text/plain,Hello%20World", + "valid": true + }, + { + "description": "Out-of-range IPv4-like host (a legal reg-name for a generic URI)", + "data": "http://256.256.256.256/path", + "valid": true + }, + { + "description": "IPv6 without brackets", + "data": "http://2001:db8::1/path", + "valid": false + }, + { + "description": "Authority with space", + "data": "http://exa mple.com/path", + "valid": false + }, + { + "description": "Invalid percent encoding - single digit", + "data": "http://example.com/path%2", + "valid": false + }, + { + "description": "Invalid percent encoding - non-hex", + "data": "http://example.com/path%ZZ", + "valid": false + }, + { + "description": "Percent sign without encoding", + "data": "http://example.com/path%/file", + "valid": false + }, + { + "description": "URI with unencoded space", + "data": "http://example.com/path with space", + "valid": false + }, + { + "description": "URI with newline", + "data": "http://example.com/path\nwith\nnewline", + "valid": false + }, + { + "description": "URI with tab character", + "data": "http://example.com/path\twith\ttab", + "valid": false + }, + { + "description": "URI with carriage return", + "data": "http://example.com/path\rwith\rreturn", + "valid": false + }, + { + "description": "URI with null character", + "data": "http://example.com/path\u0000with\u0000null", + "valid": false + }, + { + "description": "URI with control character", + "data": "http://example.com/path\u0001control", + "valid": false + }, + { + "description": "Single character scheme", + "data": "x://example.com", + "valid": true + }, + { + "description": "Long scheme name", + "data": "verylongschemenamethatisallowed://example.com", + "valid": true + }, + { + "description": "URI with only authority", + "data": "//example.com", + "valid": true + }, + { + "description": "Relative path with colon not at start", + "data": "file:name", + "valid": true + }, + { + "description": "Path with consecutive slashes", + "data": "http://example.com/path//to///resource", + "valid": true + }, + { + "description": "Path with brackets (gen-delims must be percent-encoded outside of IP literals)", + "data": "http://example.com/path[with]brackets", + "valid": false + }, + { + "description": "Query with equals but no value", + "data": "http://example.com/path?key=", + "valid": true + }, + { + "description": "Query with ampersand but no value", + "data": "http://example.com/path?key&other=value", + "valid": true + }, + { + "description": "Path with percent-encoded characters", + "data": "path%20with%20spaces/file%2Ename", + "valid": true + }, + { + "description": "Network path with IPv4", + "data": "//192.168.1.1/path", + "valid": true + }, + { + "description": "Network path with IPv6", + "data": "//[2001:db8::1]/path", + "valid": true + }, + { + "description": "Query and fragment without path", + "data": "?query#fragment", + "valid": true + }, + { + "description": "Path with colon (valid in relative path)", + "data": "path:with:colons", + "valid": true + }, + { + "description": "Path starting with colon (first segment must not contain a colon)", + "data": ":path", + "valid": false + }, + { + "description": "Path with unreserved characters", + "data": "ABCabc123-._~", + "valid": true + }, + { + "description": "Path with sub-delims", + "data": "!$&'()*+,;=", + "valid": true + }, + { + "description": "Path with at sign", + "data": "path@file", + "valid": true + }, + { + "description": "Query with various characters", + "data": "?query=a+b&c=d%20e", + "valid": true + }, + { + "description": "Fragment with various characters", + "data": "#fragment%20with%20spaces", + "valid": true + }, + { + "description": "Complex relative path", + "data": "./this:that/other.html", + "valid": true + }, + { + "description": "Path segment with colon not at start", + "data": "g:x", + "valid": true + }, + { + "description": "Path with brackets (gen-delims must be percent-encoded)", + "data": "path[with]brackets", + "valid": false + }, + { + "description": "Network path with reg-name containing dash", + "data": "//sub-domain.example.com/path", + "valid": true + }, + { + "description": "Network path with reg-name containing underscore", + "data": "//sub_domain.example.com/path", + "valid": true + }, + { + "description": "Relative path that looks like scheme but isn't", + "data": "http", + "valid": true + }, + { + "description": "Relative path with file extension", + "data": "document.pdf", + "valid": true + }, + { + "description": "Path with multiple consecutive slashes", + "data": "path//to///resource", + "valid": true + }, + { + "description": "Query with question mark in value", + "data": "?query=value?with?marks", + "valid": true + }, + { + "description": "Fragment with hash in value (hash not allowed within a fragment)", + "data": "#fragment#with#hashes", + "valid": false + }, + { + "description": "URL with fragment without path", + "data": "http://example.com#fragment", + "valid": true + }, + { + "description": "URL with query without path", + "data": "http://example.com?query=value", + "valid": true + }, + { + "description": "URL with query and fragment without path", + "data": "http://example.com?query=value#fragment", + "valid": true + }, + { + "description": "URL with empty fragment without path", + "data": "http://example.com#", + "valid": true + }, + { + "description": "URL with empty query without path", + "data": "http://example.com?", + "valid": true + }, + { + "description": "HTTPS with fragment without path", + "data": "https://secure.example.com#section", + "valid": true + }, + { + "description": "HTTPS with query without path", + "data": "https://secure.example.com?token=abc123", + "valid": true + }, + { + "description": "FTP with fragment without path", + "data": "ftp://ftp.example.com#readme", + "valid": true + }, + { + "description": "FTP with query without path", + "data": "ftp://ftp.example.com?mode=binary", + "valid": true + }, + { + "description": "Network path with query without path", + "data": "//example.com?search=test", + "valid": true + }, + { + "description": "Network path with fragment without path", + "data": "//example.com#top", + "valid": true + }, + { + "description": "Network path with query and fragment without path", + "data": "//example.com?q=1#section", + "valid": true + }, + { + "description": "IPv4 URL with fragment without path", + "data": "http://192.168.1.1#section", + "valid": true + }, + { + "description": "IPv4 URL with query without path", + "data": "http://192.168.1.1?param=value", + "valid": true + }, + { + "description": "IPv6 URL with fragment without path", + "data": "http://[::1]#anchor", + "valid": true + }, + { + "description": "IPv6 URL with query without path", + "data": "http://[::1]?key=val", + "valid": true + }, + { + "description": "URL with port and fragment without path", + "data": "http://example.com:8080#section", + "valid": true + }, + { + "description": "URL with port and query without path", + "data": "http://example.com:8080?search=term", + "valid": true + }, + { + "description": "URL with userinfo and fragment without path", + "data": "http://user@example.com#top", + "valid": true + }, + { + "description": "URL with userinfo and query without path", + "data": "http://user@example.com?q=test", + "valid": true + }, + { + "description": "URL with full userinfo and query without path", + "data": "http://user:pass@example.com?param=value", + "valid": true + }, + { + "description": "URL with full userinfo and fragment without path", + "data": "http://user:pass@example.com#anchor", + "valid": true + }, + { + "description": "Complex URL with all authority components and query without path", + "data": "http://user:pass@example.com:8080?key=value", + "valid": true + }, + { + "description": "Complex URL with all authority components and fragment without path", + "data": "http://user:pass@example.com:8080#section", + "valid": true + }, + { + "description": "URL with multiple query parameters without path", + "data": "http://example.com?a=1&b=2&c=3", + "valid": true + }, + { + "description": "URL with percent-encoded query without path", + "data": "http://example.com?key=value%20here", + "valid": true + }, + { + "description": "URL with complex query encoding without path", + "data": "http://example.com?a=b&c=%2Fd%2Fe", + "valid": true + }, + { + "description": "URL with fragment containing special characters without path", + "data": "http://example.com#section-1.2", + "valid": true + }, + { + "description": "URL with empty query and non-empty fragment without path", + "data": "http://example.com?#fragment", + "valid": true + }, + { + "description": "Custom scheme with fragment without path", + "data": "custom://example.com#section", + "valid": true + }, + { + "description": "Custom scheme with query without path", + "data": "custom://example.com?param=value", + "valid": true + } + ] +} diff --git a/test/schemas/ietf/uri/3986/uri-relative/v1.test.json b/test/schemas/ietf/uri/3986/uri-relative/v1.test.json new file mode 100644 index 00000000..9e691373 --- /dev/null +++ b/test/schemas/ietf/uri/3986/uri-relative/v1.test.json @@ -0,0 +1,295 @@ +{ + "target": "../../../../../../schemas/ietf/uri/3986/uri-relative/v1.json", + "tests": [ + { + "description": "Invalid type - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Empty string is valid relative reference", + "data": "", + "valid": true + }, + { + "description": "Single slash path", + "data": "/", + "valid": true + }, + { + "description": "Path with single segment", + "data": "file.txt", + "valid": true + }, + { + "description": "Path with multiple segments", + "data": "path/to/resource", + "valid": true + }, + { + "description": "Absolute path", + "data": "/absolute/path/to/file", + "valid": true + }, + { + "description": "Current directory reference", + "data": ".", + "valid": true + }, + { + "description": "Parent directory reference", + "data": "..", + "valid": true + }, + { + "description": "Path with dot segments", + "data": "../../../relative/path", + "valid": true + }, + { + "description": "Network path reference (starts with //)", + "data": "//example.com/path", + "valid": true + }, + { + "description": "Network path with userinfo", + "data": "//user:pass@example.com/path", + "valid": true + }, + { + "description": "Network path with port", + "data": "//example.com:8080/path", + "valid": true + }, + { + "description": "Network path with IPv4", + "data": "//192.168.1.1/path", + "valid": true + }, + { + "description": "Network path with IPv6", + "data": "//[2001:db8::1]/path", + "valid": true + }, + { + "description": "Query only", + "data": "?query=value", + "valid": true + }, + { + "description": "Fragment only", + "data": "#fragment", + "valid": true + }, + { + "description": "Path with query", + "data": "path/to/file?query=value&other=123", + "valid": true + }, + { + "description": "Path with fragment", + "data": "path/to/file#section", + "valid": true + }, + { + "description": "Path with query and fragment", + "data": "path/to/file?query=value#section", + "valid": true + }, + { + "description": "Query and fragment without path", + "data": "?query#fragment", + "valid": true + }, + { + "description": "Path with percent-encoded characters", + "data": "path%20with%20spaces/file%2Ename", + "valid": true + }, + { + "description": "Invalid percent-encoding (single digit)", + "data": "path%2/file", + "valid": false + }, + { + "description": "Invalid percent-encoding (non-hex)", + "data": "path%ZZ/file", + "valid": false + }, + { + "description": "Path with colon in first segment (parses as an absolute URI)", + "data": "path:with:colons", + "valid": false + }, + { + "description": "Path starting with colon (first segment must not contain a colon)", + "data": ":path", + "valid": false + }, + { + "description": "Absolute URI with scheme (not relative)", + "data": "http://example.com/path", + "valid": false + }, + { + "description": "HTTPS absolute URI (not relative)", + "data": "https://example.com/path", + "valid": false + }, + { + "description": "FTP absolute URI (not relative)", + "data": "ftp://example.com/path", + "valid": false + }, + { + "description": "Mailto URI (not relative)", + "data": "mailto:user@example.com", + "valid": false + }, + { + "description": "URN (not relative)", + "data": "urn:isbn:0451450523", + "valid": false + }, + { + "description": "Custom scheme (not relative)", + "data": "custom://example.com", + "valid": false + }, + { + "description": "Path with spaces (invalid)", + "data": "path with spaces/file", + "valid": false + }, + { + "description": "Path with control characters (invalid)", + "data": "path\nwith\nnewlines", + "valid": false + }, + { + "description": "Path with tab character (invalid)", + "data": "path\twith\ttabs", + "valid": false + }, + { + "description": "Network path with IPv4-like reg-name (first-match-wins makes it a valid reg-name)", + "data": "//256.256.256.256/path", + "valid": true + }, + { + "description": "Network path with IPv6 without brackets", + "data": "//2001:db8::1/path", + "valid": false + }, + { + "description": "Network path with empty port (port is *DIGIT)", + "data": "//example.com:/path", + "valid": true + }, + { + "description": "Network path with empty host (reg-name may be empty)", + "data": "//:8080/path", + "valid": true + }, + { + "description": "Path with unreserved characters", + "data": "ABCabc123-._~", + "valid": true + }, + { + "description": "Path with sub-delims", + "data": "!$&'()*+,;=", + "valid": true + }, + { + "description": "Path with at sign", + "data": "path@file", + "valid": true + }, + { + "description": "Query with various characters", + "data": "?query=a+b&c=d%20e", + "valid": true + }, + { + "description": "Fragment with various characters", + "data": "#fragment%20with%20spaces", + "valid": true + }, + { + "description": "Complex relative path", + "data": "./this:that/other.html", + "valid": true + }, + { + "description": "Colon in first path segment (parses as an absolute URI, see RFC 3986 section 4.2)", + "data": "g:x", + "valid": false + }, + { + "description": "Path with brackets (gen-delims must be percent-encoded)", + "data": "path[with]brackets", + "valid": false + }, + { + "description": "Network path with reg-name containing dash", + "data": "//sub-domain.example.com/path", + "valid": true + }, + { + "description": "Network path with reg-name containing underscore", + "data": "//sub_domain.example.com/path", + "valid": true + }, + { + "description": "Relative path that looks like scheme but isn't", + "data": "http", + "valid": true + }, + { + "description": "Relative path with file extension", + "data": "document.pdf", + "valid": true + }, + { + "description": "Path with multiple consecutive slashes", + "data": "path//to///resource", + "valid": true + }, + { + "description": "Query with question mark in value", + "data": "?query=value?with?marks", + "valid": true + }, + { + "description": "Fragment with hash in value (hash not allowed within a fragment)", + "data": "#fragment#with#hashes", + "valid": false + }, + { + "description": "Colon in first path segment (parses as an absolute URI)", + "data": "foo:bar/baz", + "valid": false + }, + { + "description": "Colon in first path segment with non-scheme characters", + "data": "1foo:bar", + "valid": false + }, + { + "description": "Colon allowed after the first segment", + "data": "./foo:bar", + "valid": true + } + ] +} diff --git a/test/schemas/ietf/uri/3986/uri/v1.test.json b/test/schemas/ietf/uri/3986/uri/v1.test.json new file mode 100644 index 00000000..a9f40e04 --- /dev/null +++ b/test/schemas/ietf/uri/3986/uri/v1.test.json @@ -0,0 +1,420 @@ +{ + "target": "../../../../../../schemas/ietf/uri/3986/uri/v1.json", + "tests": [ + { + "description": "Invalid type - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Empty string (not an absolute URI)", + "data": "", + "valid": false + }, + { + "description": "URL: HTTP with authority", + "data": "http://example.com", + "valid": true + }, + { + "description": "URL: HTTPS with path and query", + "data": "https://example.com/path?query=value", + "valid": true + }, + { + "description": "URL: FTP with userinfo and port", + "data": "ftp://user:pass@ftp.example.com:21/file.txt", + "valid": true + }, + { + "description": "URL: File URI with absolute path", + "data": "file:///home/user/document.pdf", + "valid": true + }, + { + "description": "URL: File URI without authority", + "data": "file:/home/user/document.pdf", + "valid": true + }, + { + "description": "URL: HTTP with IPv4", + "data": "http://192.168.1.1/resource", + "valid": true + }, + { + "description": "URL: HTTP with IPv6", + "data": "http://[2001:db8::8a2e:370:7334]/resource", + "valid": true + }, + { + "description": "URN: ISBN example", + "data": "urn:isbn:0451450523", + "valid": true + }, + { + "description": "URN: UUID example", + "data": "urn:uuid:6e8bc430-9c3a-11d9-9669-0800200c9a66", + "valid": true + }, + { + "description": "URN: IETF RFC example", + "data": "urn:ietf:rfc:3986", + "valid": true + }, + { + "description": "URN: With percent-encoding", + "data": "urn:example:a%20b", + "valid": true + }, + { + "description": "URN: With r-component and q-component", + "data": "urn:example:foo-bar-baz?+CCResolve:cc=uk", + "valid": true + }, + { + "description": "URN: With fragment", + "data": "urn:example:foo-bar-baz#section", + "valid": true + }, + { + "description": "Mailto: Simple email", + "data": "mailto:user@example.com", + "valid": true + }, + { + "description": "Mailto: Multiple recipients", + "data": "mailto:user1@example.com,user2@example.com", + "valid": true + }, + { + "description": "Mailto: With subject", + "data": "mailto:user@example.com?subject=Hello%20World", + "valid": true + }, + { + "description": "Mailto: With multiple query parameters", + "data": "mailto:user@example.com?subject=Test&body=Message", + "valid": true + }, + { + "description": "Mailto: No recipient specified", + "data": "mailto:?to=user@example.com&subject=Test", + "valid": true + }, + { + "description": "Tel: International format", + "data": "tel:+1-555-555-5555", + "valid": true + }, + { + "description": "Tel: With extension", + "data": "tel:+1-555-555-5555;ext=123", + "valid": true + }, + { + "description": "Tel: Local number", + "data": "tel:555-5555", + "valid": true + }, + { + "description": "Tel: With special characters", + "data": "tel:+1(555)555-5555", + "valid": true + }, + { + "description": "Data: Plain text", + "data": "data:text/plain;charset=utf-8,Hello%20World", + "valid": true + }, + { + "description": "Data: Base64 encoded", + "data": "data:text/plain;base64,SGVsbG8gV29ybGQh", + "valid": true + }, + { + "description": "Data: HTML content", + "data": "data:text/html,%3Ch1%3EHello%3C%2Fh1%3E", + "valid": true + }, + { + "description": "Data: Image with base64", + "data": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==", + "valid": true + }, + { + "description": "Data: Without parameters", + "data": "data:,Hello%20World", + "valid": true + }, + { + "description": "News: Newsgroup", + "data": "news:comp.lang.javascript", + "valid": true + }, + { + "description": "News: Message ID", + "data": "news:1234567890@example.com", + "valid": true + }, + { + "description": "News: Wildcard", + "data": "news:*", + "valid": true + }, + { + "description": "NNTP: With server and group", + "data": "nntp://news.example.com/comp.lang.javascript", + "valid": true + }, + { + "description": "SIP: Basic address", + "data": "sip:alice@atlanta.com", + "valid": true + }, + { + "description": "SIP: With port", + "data": "sip:alice@atlanta.com:5060", + "valid": true + }, + { + "description": "SIPS: Secure SIP", + "data": "sips:alice@atlanta.com", + "valid": true + }, + { + "description": "SIP: With parameters", + "data": "sip:alice@atlanta.com;transport=tcp", + "valid": true + }, + { + "description": "Geo: Coordinates", + "data": "geo:37.786971,-122.399677", + "valid": true + }, + { + "description": "Geo: With altitude", + "data": "geo:37.786971,-122.399677,250", + "valid": true + }, + { + "description": "Geo: With uncertainty", + "data": "geo:37.786971,-122.399677;u=35", + "valid": true + }, + { + "description": "Magnet: BitTorrent hash", + "data": "magnet:?xt=urn:btih:c12fe1c06bba254a9dc9f519b335aa7c1367a88a", + "valid": true + }, + { + "description": "Magnet: With display name", + "data": "magnet:?xt=urn:btih:c12fe1c06bba254a9dc9f519b335aa7c1367a88a&dn=Test", + "valid": true + }, + { + "description": "LDAP: Search", + "data": "ldap://ldap.example.com/cn=John%20Doe,dc=example,dc=com", + "valid": true + }, + { + "description": "LDAP: With port and attributes", + "data": "ldap://ldap.example.com:389/dc=example,dc=com?cn,mail?sub?(cn=*)", + "valid": true + }, + { + "description": "SSH: With user and host", + "data": "ssh://user@example.com:22", + "valid": true + }, + { + "description": "Git: Repository URL", + "data": "git://github.com/user/repo.git", + "valid": true + }, + { + "description": "Bitcoin: Address", + "data": "bitcoin:1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa", + "valid": true + }, + { + "description": "Bitcoin: With amount", + "data": "bitcoin:1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa?amount=0.001", + "valid": true + }, + { + "description": "Custom scheme: Single letter", + "data": "x:something", + "valid": true + }, + { + "description": "Custom scheme: With plus", + "data": "custom+scheme:data", + "valid": true + }, + { + "description": "Custom scheme: With dot", + "data": "custom.scheme:data", + "valid": true + }, + { + "description": "Custom scheme: With hyphen", + "data": "custom-scheme:data", + "valid": true + }, + { + "description": "Scheme must start with letter", + "data": "9scheme:data", + "valid": false + }, + { + "description": "Scheme with invalid character underscore", + "data": "custom_scheme:data", + "valid": false + }, + { + "description": "Scheme with invalid character at sign", + "data": "cust@m:data", + "valid": false + }, + { + "description": "Missing scheme", + "data": "//example.com/path", + "valid": false + }, + { + "description": "Missing colon after scheme", + "data": "http//example.com", + "valid": false + }, + { + "description": "Empty scheme", + "data": ":data", + "valid": false + }, + { + "description": "Space in URI", + "data": "http://example.com/path with spaces", + "valid": false + }, + { + "description": "Tab character in URI", + "data": "http://example.com/path\twith\ttabs", + "valid": false + }, + { + "description": "Newline in URI", + "data": "http://example.com/path\nwith\nnewlines", + "valid": false + }, + { + "description": "Invalid percent-encoding (single digit)", + "data": "http://example.com/path%2", + "valid": false + }, + { + "description": "Invalid percent-encoding (non-hex)", + "data": "http://example.com/path%GG", + "valid": false + }, + { + "description": "Out-of-range IPv4-like host (a legal reg-name for a generic URI)", + "data": "http://256.256.256.256/", + "valid": true + }, + { + "description": "IPv6 without brackets in URL", + "data": "http://2001:db8::1/", + "valid": false + }, + { + "description": "Empty port in URL", + "data": "http://example.com:/", + "valid": true + }, + { + "description": "Empty host with port (grammatically legal for a generic URI)", + "data": "http://:8080/", + "valid": true + }, + { + "description": "Relative path (not absolute)", + "data": "path/to/resource", + "valid": false + }, + { + "description": "Network-path reference (not absolute)", + "data": "//example.com/path", + "valid": false + }, + { + "description": "Query only (not absolute)", + "data": "?query=value", + "valid": false + }, + { + "description": "Fragment only (not absolute)", + "data": "#fragment", + "valid": false + }, + { + "description": "Scheme with only hierarchical part", + "data": "scheme://", + "valid": true + }, + { + "description": "Scheme with empty path", + "data": "scheme:", + "valid": true + }, + { + "description": "Complex URI with all components", + "data": "scheme://user:pass@host.com:8080/path?query=value#fragment", + "valid": true + }, + { + "description": "URI with encoded reserved characters", + "data": "http://example.com/%2F%3F%23%5B%5D%40", + "valid": true + }, + { + "description": "URI with unreserved characters", + "data": "http://example.com/ABCabc123-._~", + "valid": true + }, + { + "description": "URI with sub-delims in path", + "data": "http://example.com/!$&'()*+,;=", + "valid": true + }, + { + "description": "Minimum valid absolute URI", + "data": "a:", + "valid": true + }, + { + "description": "Scheme with 63 characters (valid)", + "data": "abcdefghijklmnopqrstuvwxyz0123456789.plus-minus.dots.hyphens01:data", + "valid": true + }, + { + "description": "Space in a non-URL absolute URI", + "data": "mailto:hello world", + "valid": false + }, + { + "description": "Malformed percent-encoding in a non-URL absolute URI", + "data": "tel:%ZZ", + "valid": false + } + ] +} diff --git a/test/schemas/ietf/uri/3986/url/v1.test.json b/test/schemas/ietf/uri/3986/url/v1.test.json new file mode 100644 index 00000000..b34cf4f6 --- /dev/null +++ b/test/schemas/ietf/uri/3986/url/v1.test.json @@ -0,0 +1,320 @@ +{ + "target": "../../../../../../schemas/ietf/uri/3986/url/v1.json", + "tests": [ + { + "description": "Invalid type", + "data": 123, + "valid": false + }, + { + "description": "Simple HTTP URL", + "data": "http://example.com", + "valid": true + }, + { + "description": "HTTPS with path", + "data": "https://example.com/path/to/resource", + "valid": true + }, + { + "description": "FTP with userinfo and port", + "data": "ftp://user:pass@example.com:21/resource", + "valid": true + }, + { + "description": "URN is valid absolute URI", + "data": "urn:isbn:0451450523", + "valid": false + }, + { + "description": "Custom scheme with plus sign", + "data": "my+scheme://host/resource", + "valid": true + }, + { + "description": "Custom scheme with dot and dash", + "data": "a.b-c://example.org/", + "valid": true + }, + { + "description": "Scheme must start with a letter", + "data": "1abc://example.com", + "valid": false + }, + { + "description": "Scheme with invalid character", + "data": "te@st://example.com", + "valid": false + }, + { + "description": "Authority with IPv4", + "data": "http://192.168.1.1/", + "valid": true + }, + { + "description": "Authority with IPv4-like reg-name (first-match-wins makes it a valid reg-name)", + "data": "http://256.256.256.256/", + "valid": true + }, + { + "description": "Authority with IPv6", + "data": "http://[2001:db8::1]/", + "valid": true + }, + { + "description": "Authority with IPv6 and port", + "data": "http://[2001:db8::1]:8080/", + "valid": true + }, + { + "description": "IPv6 without brackets", + "data": "http://2001:db8::1/", + "valid": false + }, + { + "description": "Authority with reg-name and port", + "data": "http://example.com:8080/", + "valid": true + }, + { + "description": "URI with empty port", + "data": "http://example.com:/path", + "valid": true + }, + { + "description": "Authority with userinfo", + "data": "http://user@example.com/", + "valid": true + }, + { + "description": "Authority with userinfo and password", + "data": "http://user:pass@example.com/", + "valid": true + }, + { + "description": "Authority with empty userinfo", + "data": "http://@example.com/", + "valid": true + }, + { + "description": "Authority with empty host (allowed by RFC 3986 for generic URIs)", + "data": "http://:80/", + "valid": true + }, + { + "description": "Path with multiple segments", + "data": "http://example.com/a/b/c", + "valid": true + }, + { + "description": "Path with percent-encoded reserved characters", + "data": "http://example.com/a%20b%2Fc", + "valid": true + }, + { + "description": "Percent-encoding with invalid hex", + "data": "http://example.com/a%ZZb", + "valid": false + }, + { + "description": "Query component", + "data": "http://example.com/path?query=value&other=123", + "valid": true + }, + { + "description": "Fragment component", + "data": "http://example.com/path#fragment", + "valid": true + }, + { + "description": "Query and fragment together", + "data": "http://example.com/path?query=yes#frag", + "valid": true + }, + { + "description": "Empty path allowed", + "data": "http://example.com", + "valid": true + }, + { + "description": "Absolute path without authority", + "data": "mailto:user@example.com", + "valid": false + }, + { + "description": "Scheme without hierarchical part (URN)", + "data": "news:comp.infosystems.www.servers.unix", + "valid": false + }, + { + "description": "Invalid characters in host", + "data": "http://exa mple.com/", + "valid": false + }, + { + "description": "Host with uppercase letters", + "data": "http://EXAMPLE.com/", + "valid": true + }, + { + "description": "Scheme case insensitive", + "data": "HTTP://example.com/", + "valid": true + }, + { + "description": "Fragment with percent-encoding", + "data": "http://example.com/#frag%20ment", + "valid": true + }, + { + "description": "Path with unencoded space (invalid)", + "data": "http://example.com/a b", + "valid": false + }, + { + "description": "Minimal valid URL with only scheme and path", + "data": "foo:/bar", + "valid": true + }, + { + "description": "Missing scheme", + "data": "//example.com/path", + "valid": false + }, + { + "description": "Path-only URI (relative, not absolute)", + "data": "/relative/path", + "valid": false + }, + { + "description": "File URI with empty authority (three slashes)", + "data": "file:///home/user/document.pdf", + "valid": true + }, + { + "description": "File URI with empty authority and Windows path", + "data": "file:///C:/Users/document.pdf", + "valid": true + }, + { + "description": "File URI with localhost authority", + "data": "file://localhost/home/user/document.pdf", + "valid": true + }, + { + "description": "File URI with host", + "data": "file://server.example.com/share/document.pdf", + "valid": true + }, + { + "description": "URI with empty authority", + "data": "scheme://", + "valid": true + }, + { + "description": "URI with empty authority and path", + "data": "scheme:///path", + "valid": true + }, + { + "description": "Fragment without path", + "data": "http://example.com#fragment", + "valid": true + }, + { + "description": "Query without path", + "data": "http://example.com?query=value", + "valid": true + }, + { + "description": "Query and fragment without path", + "data": "http://example.com?query=value#fragment", + "valid": true + }, + { + "description": "Empty fragment without path", + "data": "http://example.com#", + "valid": true + }, + { + "description": "Empty query without path", + "data": "http://example.com?", + "valid": true + }, + { + "description": "Multiple query parameters without path", + "data": "http://example.com?a=1&b=2&c=3", + "valid": true + }, + { + "description": "Query with percent-encoding without path", + "data": "http://example.com?key=value%20here", + "valid": true + }, + { + "description": "Complex query without path", + "data": "http://example.com?a=b&c=%2Fd%2Fe", + "valid": true + }, + { + "description": "Fragment with special characters without path", + "data": "http://example.com#section-1.2", + "valid": true + }, + { + "description": "IPv4 with fragment without path", + "data": "http://192.168.1.1#anchor", + "valid": true + }, + { + "description": "IPv4 with query without path", + "data": "http://192.168.1.1?param=value", + "valid": true + }, + { + "description": "IPv6 with fragment without path", + "data": "http://[2001:db8::1]#section", + "valid": true + }, + { + "description": "IPv6 with query without path", + "data": "http://[2001:db8::1]?key=val", + "valid": true + }, + { + "description": "Port with fragment without path", + "data": "http://example.com:8080#top", + "valid": true + }, + { + "description": "Port with query without path", + "data": "http://example.com:8080?search=term", + "valid": true + }, + { + "description": "Userinfo with fragment without path", + "data": "http://user@example.com#section", + "valid": true + }, + { + "description": "Userinfo with query without path", + "data": "http://user@example.com?q=test", + "valid": true + }, + { + "description": "Complex authority with query without path", + "data": "http://user:pass@example.com:8080?param=value", + "valid": true + }, + { + "description": "Complex authority with fragment without path", + "data": "http://user:pass@example.com:8080#anchor", + "valid": true + }, + { + "description": "Complex authority with query and fragment without path", + "data": "http://user:pass@example.com:8080?q=1#top", + "valid": true + } + ] +} diff --git a/test/schemas/ietf/urn/8141/urn/v1.test.json b/test/schemas/ietf/urn/8141/urn/v1.test.json new file mode 100644 index 00000000..75b43441 --- /dev/null +++ b/test/schemas/ietf/urn/8141/urn/v1.test.json @@ -0,0 +1,215 @@ +{ + "target": "../../../../../../schemas/ietf/urn/8141/urn/v1.json", + "tests": [ + { + "description": "Invalid type (non-string)", + "data": 1, + "valid": false + }, + { + "description": "Missing URN scheme prefix", + "data": "example:foo", + "valid": false + }, + { + "description": "Wrong URI scheme (not urn)", + "data": "mailto:123", + "valid": false + }, + { + "description": "URN scheme uppercase (case-insensitive)", + "data": "URN:example:foo", + "valid": true + }, + { + "description": "Mixed-case URN scheme and NID", + "data": "UrN:ExAmPlE:nSs", + "valid": true + }, + { + "description": "Single-character NID (RFC 8141 requires at least two characters)", + "data": "urn:a:b", + "valid": false + }, + { + "description": "Numeric NID (all digits)", + "data": "urn:12345:abcde", + "valid": true + }, + { + "description": "NID with digit and hyphen", + "data": "urn:1-234:foo", + "valid": true + }, + { + "description": "NID with uppercase letters", + "data": "urn:IsBn:2000", + "valid": true + }, + { + "description": "NID starting with hyphen (disallowed)", + "data": "urn:-nid:foo", + "valid": false + }, + { + "description": "NID ending with hyphen (disallowed)", + "data": "urn:nid-:foo", + "valid": false + }, + { + "description": "NID with invalid character (underscore)", + "data": "urn:bad_nid:foo", + "valid": false + }, + { + "description": "NID reserved 'urn' (disallowed)", + "data": "urn:urn:foo", + "valid": false + }, + { + "description": "NID too long (33 characters)", + "data": "urn:123456789012345678901234567890123:abc", + "valid": false + }, + { + "description": "NID at maximum length (32 characters)", + "data": "urn:12345678901234567890123456789012:abc", + "valid": true + }, + { + "description": "Empty NSS (no characters after NID)", + "data": "urn:example:", + "valid": false + }, + { + "description": "NSS with slash (allowed)", + "data": "urn:example:foo/bar", + "valid": true + }, + { + "description": "NSS with underscore (allowed)", + "data": "urn:example:under_score", + "valid": true + }, + { + "description": "NSS with various allowed punctuation characters", + "data": "urn:ex:!*'();:@&=+$,.-", + "valid": true + }, + { + "description": "NSS with tilde (allowed)", + "data": "urn:example:foo~bar", + "valid": true + }, + { + "description": "NSS with valid percent-encoding", + "data": "urn:example:hello%20world", + "valid": true + }, + { + "description": "Percent-encoding with uppercase hex letters", + "data": "urn:example:%3A%41", + "valid": true + }, + { + "description": "NSS with invalid percent-encoding", + "data": "urn:example:bad%2Gcase", + "valid": false + }, + { + "description": "Lone percent sign in NSS (invalid)", + "data": "urn:example:50%off", + "valid": false + }, + { + "description": "Space in NSS not percent-encoded (invalid)", + "data": "urn:example:hello world", + "valid": false + }, + { + "description": "Raw non-ASCII in NSS (invalid)", + "data": "urn:example:niço", + "valid": false + }, + { + "description": "Double colon (empty NID)", + "data": "urn::foo", + "valid": false + }, + { + "description": "Multiple colons in NSS (allowed)", + "data": "urn:example:foo:bar:baz", + "valid": true + }, + { + "description": "Trailing slash in NSS (allowed)", + "data": "urn:example:foo/bar/", + "valid": true + }, + { + "description": "URN with r-component (resolution)", + "data": "urn:example:foo-bar-baz?+CCResolve:cc=uk", + "valid": true + }, + { + "description": "URN with q-component (query)", + "data": "urn:example:foo-bar-baz?=querystring", + "valid": true + }, + { + "description": "URN with fragment", + "data": "urn:example:foo-bar-baz#section", + "valid": true + }, + { + "description": "URN with both r-component and fragment", + "data": "urn:isbn:0451450523?+res:format=pdf#page=10", + "valid": true + }, + { + "description": "URN with multiple resolution parameters", + "data": "urn:example:foo?+res:format=xml&+res:lang=en", + "valid": true + }, + { + "description": "Empty r-component (RFC 8141 requires at least one pchar)", + "data": "urn:example:foo?", + "valid": false + }, + { + "description": "URN with empty fragment", + "data": "urn:example:foo#", + "valid": true + }, + { + "description": "Invalid - NSS cannot start with a slash", + "valid": false, + "data": "urn:example:/foo" + }, + { + "description": "Valid - question mark inside an r-component", + "valid": true, + "data": "urn:example:foo?+a?b" + }, + { + "description": "Invalid - empty r-component", + "valid": false, + "data": "urn:example:foo?+" + }, + { + "description": "Invalid - empty q-component", + "valid": false, + "data": "urn:example:foo?=" + }, + { + "description": "Valid - two character NID", + "valid": true, + "data": "urn:ab:x" + }, + { + "description": "Invalid - thirty-three character NID", + "valid": false, + "data": "urn:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:x" + } + ] +} diff --git a/test/schemas/iso/c/2024/bool/v1.test.json b/test/schemas/iso/c/2024/bool/v1.test.json new file mode 100644 index 00000000..73ef096c --- /dev/null +++ b/test/schemas/iso/c/2024/bool/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../schemas/iso/c/2024/bool/v1.json", + "tests": [ + { + "description": "Valid - 0 (false)", + "data": 0, + "valid": true + }, + { + "description": "Valid - 1 (true)", + "data": 1, + "valid": true + }, + { + "description": "Invalid - 2", + "data": 2, + "valid": false + }, + { + "description": "Invalid - negative number", + "data": -1, + "valid": false + }, + { + "description": "Invalid - large positive number", + "data": 100, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "true", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Invalid type - float", + "data": 0.5, + "valid": false + } + ] +} diff --git a/test/schemas/iso/c/2024/double/v1.test.json b/test/schemas/iso/c/2024/double/v1.test.json new file mode 100644 index 00000000..286d8870 --- /dev/null +++ b/test/schemas/iso/c/2024/double/v1.test.json @@ -0,0 +1,115 @@ +{ + "target": "../../../../../../schemas/iso/c/2024/double/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0.0, + "valid": true + }, + { + "description": "Valid - positive value", + "data": 1.5, + "valid": true + }, + { + "description": "Valid - negative value", + "data": -3.14159, + "valid": true + }, + { + "description": "Valid - scientific notation", + "data": 299800000.0, + "valid": true + }, + { + "description": "Valid - maximum value", + "data": 1.797693134862315708145274237317043567980705675258449965989174768031572607800285387605895586327668781715404589535143824642343213268894641827684675467035375169860499105765512820762454900903893289440758685084551339423045832369032229481658085593321233482747978262041447231687381771809192998812504040261841248583680e+308, + "valid": true + }, + { + "description": "Valid - minimum value", + "data": -1.797693134862315708145274237317043567980705675258449965989174768031572607800285387605895586327668781715404589535143824642343213268894641827684675467035375169860499105765512820762454900903893289440758685084551339423045832369032229481658085593321233482747978262041447231687381771809192998812504040261841248583680e+308, + "valid": true + }, + { + "description": "Valid - special value NAN", + "data": "NAN", + "valid": true + }, + { + "description": "Valid - special value INFINITY", + "data": "INFINITY", + "valid": true + }, + { + "description": "Valid - special value -INFINITY", + "data": "-INFINITY", + "valid": true + }, + { + "description": "Invalid - string with wrong case", + "data": "nan", + "valid": false + }, + { + "description": "Invalid - string with wrong case", + "data": "infinity", + "valid": false + }, + { + "description": "Invalid - JavaScript style", + "data": "Infinity", + "valid": false + }, + { + "description": "Invalid - wrong special value string", + "data": "inf", + "valid": false + }, + { + "description": "Invalid - numeric string", + "data": "1.5", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - integer value", + "data": 42, + "valid": true + }, + { + "description": "Valid - negative integer value", + "data": -100, + "valid": true + }, + { + "description": "Valid - large value within range", + "data": 1.00000000000000001590289110975991804683608085639452813897813275577478387721703810608134699858568151040e+100, + "valid": true + }, + { + "description": "Valid - small negative value within range", + "data": -1.00000000000000001590289110975991804683608085639452813897813275577478387721703810608134699858568151040e+100, + "valid": true + } + ] +} diff --git a/test/schemas/iso/c/2024/float-special/v1.test.json b/test/schemas/iso/c/2024/float-special/v1.test.json new file mode 100644 index 00000000..3ea0e617 --- /dev/null +++ b/test/schemas/iso/c/2024/float-special/v1.test.json @@ -0,0 +1,80 @@ +{ + "target": "../../../../../../schemas/iso/c/2024/float-special/v1.json", + "tests": [ + { + "description": "Valid - NAN", + "data": "NAN", + "valid": true + }, + { + "description": "Valid - INFINITY", + "data": "INFINITY", + "valid": true + }, + { + "description": "Valid - -INFINITY", + "data": "-INFINITY", + "valid": true + }, + { + "description": "Invalid - lowercase nan", + "data": "nan", + "valid": false + }, + { + "description": "Invalid - lowercase infinity", + "data": "infinity", + "valid": false + }, + { + "description": "Invalid - JavaScript style Infinity", + "data": "Infinity", + "valid": false + }, + { + "description": "Invalid - wrong special value string", + "data": "inf", + "valid": false + }, + { + "description": "Invalid - abbreviation INF", + "data": "INF", + "valid": false + }, + { + "description": "Invalid - arbitrary string", + "data": "not-a-number", + "valid": false + }, + { + "description": "Invalid type - number zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid type - floating point number", + "data": 1.5, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/iso/c/2024/float/v1.test.json b/test/schemas/iso/c/2024/float/v1.test.json new file mode 100644 index 00000000..e62eb772 --- /dev/null +++ b/test/schemas/iso/c/2024/float/v1.test.json @@ -0,0 +1,120 @@ +{ + "target": "../../../../../../schemas/iso/c/2024/float/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0.0, + "valid": true + }, + { + "description": "Valid - positive value", + "data": 1.5, + "valid": true + }, + { + "description": "Valid - negative value", + "data": -3.14, + "valid": true + }, + { + "description": "Valid - maximum value", + "data": 3.402823466385288598117041834845169254400e+38, + "valid": true + }, + { + "description": "Valid - minimum value", + "data": -3.402823466385288598117041834845169254400e+38, + "valid": true + }, + { + "description": "Valid - special value NAN", + "data": "NAN", + "valid": true + }, + { + "description": "Valid - special value INFINITY", + "data": "INFINITY", + "valid": true + }, + { + "description": "Valid - special value -INFINITY", + "data": "-INFINITY", + "valid": true + }, + { + "description": "Invalid - above maximum", + "data": 3.500000000000000015655673478354095308800e+38, + "valid": false + }, + { + "description": "Invalid - below minimum", + "data": -3.500000000000000015655673478354095308800e+38, + "valid": false + }, + { + "description": "Invalid - far above maximum", + "data": 1.00000000000000001590289110975991804683608085639452813897813275577478387721703810608134699858568151040e+100, + "valid": false + }, + { + "description": "Invalid - far below minimum", + "data": -1.00000000000000001590289110975991804683608085639452813897813275577478387721703810608134699858568151040e+100, + "valid": false + }, + { + "description": "Invalid - string with wrong case", + "data": "nan", + "valid": false + }, + { + "description": "Invalid - string with wrong case", + "data": "infinity", + "valid": false + }, + { + "description": "Invalid - JavaScript style", + "data": "Infinity", + "valid": false + }, + { + "description": "Invalid - wrong special value string", + "data": "inf", + "valid": false + }, + { + "description": "Invalid - numeric string", + "data": "1.5", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - integer value", + "data": 42, + "valid": true + }, + { + "description": "Valid - negative integer value", + "data": -100, + "valid": true + } + ] +} diff --git a/test/schemas/iso/c/2024/int16/v1.test.json b/test/schemas/iso/c/2024/int16/v1.test.json new file mode 100644 index 00000000..c9f08dc9 --- /dev/null +++ b/test/schemas/iso/c/2024/int16/v1.test.json @@ -0,0 +1,80 @@ +{ + "target": "../../../../../../schemas/iso/c/2024/int16/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - minimum value", + "data": -32768, + "valid": true + }, + { + "description": "Valid - maximum value", + "data": 32767, + "valid": true + }, + { + "description": "Valid - positive value", + "data": 1000, + "valid": true + }, + { + "description": "Valid - negative value", + "data": -1000, + "valid": true + }, + { + "description": "Invalid - below minimum", + "data": -32769, + "valid": false + }, + { + "description": "Invalid - above maximum", + "data": 32768, + "valid": false + }, + { + "description": "Invalid - large positive value", + "data": 100000, + "valid": false + }, + { + "description": "Invalid - large negative value", + "data": -100000, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "1000", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Invalid type - float", + "data": 100.5, + "valid": false + } + ] +} diff --git a/test/schemas/iso/c/2024/int32/v1.test.json b/test/schemas/iso/c/2024/int32/v1.test.json new file mode 100644 index 00000000..f8c63d87 --- /dev/null +++ b/test/schemas/iso/c/2024/int32/v1.test.json @@ -0,0 +1,80 @@ +{ + "target": "../../../../../../schemas/iso/c/2024/int32/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - minimum value", + "data": -2147483648, + "valid": true + }, + { + "description": "Valid - maximum value", + "data": 2147483647, + "valid": true + }, + { + "description": "Valid - positive value", + "data": 42, + "valid": true + }, + { + "description": "Valid - negative value", + "data": -999, + "valid": true + }, + { + "description": "Invalid - below minimum", + "data": -2147483649, + "valid": false + }, + { + "description": "Invalid - above maximum", + "data": 2147483648, + "valid": false + }, + { + "description": "Invalid - large positive value", + "data": 10000000000, + "valid": false + }, + { + "description": "Invalid - large negative value", + "data": -10000000000, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "42", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Invalid type - float", + "data": 42.5, + "valid": false + } + ] +} diff --git a/test/schemas/iso/c/2024/int64/v1.test.json b/test/schemas/iso/c/2024/int64/v1.test.json new file mode 100644 index 00000000..75964816 --- /dev/null +++ b/test/schemas/iso/c/2024/int64/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../schemas/iso/c/2024/int64/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - minimum value", + "data": -9223372036854775808, + "valid": true + }, + { + "description": "Valid - maximum value", + "data": 9223372036854775807, + "valid": true + }, + { + "description": "Valid - positive value", + "data": 1000000000, + "valid": true + }, + { + "description": "Valid - negative value", + "data": -1000000000, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "1000000000", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Invalid type - float", + "data": 1000.5, + "valid": false + } + ] +} diff --git a/test/schemas/iso/c/2024/int8/v1.test.json b/test/schemas/iso/c/2024/int8/v1.test.json new file mode 100644 index 00000000..ef8ceb7f --- /dev/null +++ b/test/schemas/iso/c/2024/int8/v1.test.json @@ -0,0 +1,80 @@ +{ + "target": "../../../../../../schemas/iso/c/2024/int8/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - minimum value", + "data": -128, + "valid": true + }, + { + "description": "Valid - maximum value", + "data": 127, + "valid": true + }, + { + "description": "Valid - positive value", + "data": 42, + "valid": true + }, + { + "description": "Valid - negative value", + "data": -99, + "valid": true + }, + { + "description": "Invalid - below minimum", + "data": -129, + "valid": false + }, + { + "description": "Invalid - above maximum", + "data": 128, + "valid": false + }, + { + "description": "Invalid - large positive value", + "data": 1000, + "valid": false + }, + { + "description": "Invalid - large negative value", + "data": -1000, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "42", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Invalid type - float", + "data": 1.5, + "valid": false + } + ] +} diff --git a/test/schemas/iso/c/2024/uint16/v1.test.json b/test/schemas/iso/c/2024/uint16/v1.test.json new file mode 100644 index 00000000..a491f778 --- /dev/null +++ b/test/schemas/iso/c/2024/uint16/v1.test.json @@ -0,0 +1,80 @@ +{ + "target": "../../../../../../schemas/iso/c/2024/uint16/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - minimum value", + "data": 0, + "valid": true + }, + { + "description": "Valid - maximum value", + "data": 65535, + "valid": true + }, + { + "description": "Valid - mid-range value", + "data": 32768, + "valid": true + }, + { + "description": "Valid - positive value", + "data": 1000, + "valid": true + }, + { + "description": "Invalid - negative value", + "data": -1, + "valid": false + }, + { + "description": "Invalid - above maximum", + "data": 65536, + "valid": false + }, + { + "description": "Invalid - large positive value", + "data": 100000, + "valid": false + }, + { + "description": "Invalid - large negative value", + "data": -1000, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "1000", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Invalid type - float", + "data": 100.5, + "valid": false + } + ] +} diff --git a/test/schemas/iso/c/2024/uint32/v1.test.json b/test/schemas/iso/c/2024/uint32/v1.test.json new file mode 100644 index 00000000..e123bf7c --- /dev/null +++ b/test/schemas/iso/c/2024/uint32/v1.test.json @@ -0,0 +1,80 @@ +{ + "target": "../../../../../../schemas/iso/c/2024/uint32/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - minimum value", + "data": 0, + "valid": true + }, + { + "description": "Valid - maximum value", + "data": 4294967295, + "valid": true + }, + { + "description": "Valid - mid-range value", + "data": 2147483648, + "valid": true + }, + { + "description": "Valid - positive value", + "data": 42, + "valid": true + }, + { + "description": "Invalid - negative value", + "data": -1, + "valid": false + }, + { + "description": "Invalid - above maximum", + "data": 4294967296, + "valid": false + }, + { + "description": "Invalid - large positive value", + "data": 10000000000, + "valid": false + }, + { + "description": "Invalid - large negative value", + "data": -1000, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "42", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Invalid type - float", + "data": 42.5, + "valid": false + } + ] +} diff --git a/test/schemas/iso/c/2024/uint64/v1.test.json b/test/schemas/iso/c/2024/uint64/v1.test.json new file mode 100644 index 00000000..0f0b9471 --- /dev/null +++ b/test/schemas/iso/c/2024/uint64/v1.test.json @@ -0,0 +1,85 @@ +{ + "target": "../../../../../../schemas/iso/c/2024/uint64/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - minimum value", + "data": 0, + "valid": true + }, + { + "description": "Valid - maximum value", + "data": 1.8446744073709551615e+19, + "valid": true + }, + { + "description": "Valid - mid-range value", + "data": 9.223372036854775808e+18, + "valid": true + }, + { + "description": "Valid - positive value", + "data": 42, + "valid": true + }, + { + "description": "Valid - large value", + "data": 1.0000000000000000000e+19, + "valid": true + }, + { + "description": "Invalid - negative value", + "data": -1, + "valid": false + }, + { + "description": "Invalid - above maximum", + "data": 1.8446744073709551616e+19, + "valid": false + }, + { + "description": "Invalid - large above maximum", + "data": 2.0000000000000000000e+19, + "valid": false + }, + { + "description": "Invalid - large negative value", + "data": -1000, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "42", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Invalid type - float", + "data": 42.5, + "valid": false + } + ] +} diff --git a/test/schemas/iso/c/2024/uint8/v1.test.json b/test/schemas/iso/c/2024/uint8/v1.test.json new file mode 100644 index 00000000..e44bb61a --- /dev/null +++ b/test/schemas/iso/c/2024/uint8/v1.test.json @@ -0,0 +1,80 @@ +{ + "target": "../../../../../../schemas/iso/c/2024/uint8/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - minimum value", + "data": 0, + "valid": true + }, + { + "description": "Valid - maximum value", + "data": 255, + "valid": true + }, + { + "description": "Valid - mid-range value", + "data": 128, + "valid": true + }, + { + "description": "Valid - positive value", + "data": 42, + "valid": true + }, + { + "description": "Invalid - negative value", + "data": -1, + "valid": false + }, + { + "description": "Invalid - above maximum", + "data": 256, + "valid": false + }, + { + "description": "Invalid - large positive value", + "data": 1000, + "valid": false + }, + { + "description": "Invalid - large negative value", + "data": -100, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "42", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Invalid type - float", + "data": 1.5, + "valid": false + } + ] +} diff --git a/test/schemas/iso/coordinate/2022/altitude/v1.test.json b/test/schemas/iso/coordinate/2022/altitude/v1.test.json new file mode 100644 index 00000000..325c02ae --- /dev/null +++ b/test/schemas/iso/coordinate/2022/altitude/v1.test.json @@ -0,0 +1,65 @@ +{ + "target": "../../../../../../schemas/iso/coordinate/2022/altitude/v1.json", + "tests": [ + { + "description": "Valid - sea level", + "data": 0, + "valid": true + }, + { + "description": "Valid - Mount Everest summit", + "data": 8848.86, + "valid": true + }, + { + "description": "Valid - Mariana Trench", + "data": -10994, + "valid": true + }, + { + "description": "Valid - positive integer", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -50.5, + "valid": true + }, + { + "description": "Valid - very high altitude", + "data": 100000, + "valid": true + }, + { + "description": "Valid - very deep", + "data": -100000, + "valid": true + }, + { + "description": "Invalid type - string", + "data": "100", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/iso/coordinate/2022/latitude/v1.test.json b/test/schemas/iso/coordinate/2022/latitude/v1.test.json new file mode 100644 index 00000000..21f4f6a0 --- /dev/null +++ b/test/schemas/iso/coordinate/2022/latitude/v1.test.json @@ -0,0 +1,75 @@ +{ + "target": "../../../../../../schemas/iso/coordinate/2022/latitude/v1.json", + "tests": [ + { + "description": "Valid - equator", + "data": 0, + "valid": true + }, + { + "description": "Valid - north pole", + "data": 90, + "valid": true + }, + { + "description": "Valid - south pole", + "data": -90, + "valid": true + }, + { + "description": "Valid - positive decimal", + "data": 37.7749, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -33.8688, + "valid": true + }, + { + "description": "Invalid - above north pole", + "data": 90.1, + "valid": false + }, + { + "description": "Invalid - below south pole", + "data": -90.1, + "valid": false + }, + { + "description": "Invalid - way above range", + "data": 180, + "valid": false + }, + { + "description": "Invalid - way below range", + "data": -180, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "37.7749", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/iso/coordinate/2022/longitude/v1.test.json b/test/schemas/iso/coordinate/2022/longitude/v1.test.json new file mode 100644 index 00000000..d9f733c9 --- /dev/null +++ b/test/schemas/iso/coordinate/2022/longitude/v1.test.json @@ -0,0 +1,75 @@ +{ + "target": "../../../../../../schemas/iso/coordinate/2022/longitude/v1.json", + "tests": [ + { + "description": "Valid - prime meridian", + "data": 0, + "valid": true + }, + { + "description": "Valid - antimeridian east", + "data": 180, + "valid": true + }, + { + "description": "Valid - antimeridian west", + "data": -180, + "valid": true + }, + { + "description": "Valid - positive decimal", + "data": 151.209, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -122.419, + "valid": true + }, + { + "description": "Invalid - above east limit", + "data": 180.1, + "valid": false + }, + { + "description": "Invalid - below west limit", + "data": -180.1, + "valid": false + }, + { + "description": "Invalid - way above range", + "data": 360, + "valid": false + }, + { + "description": "Invalid - way below range", + "data": -360, + "valid": false + }, + { + "description": "Invalid type - string", + "data": "-122.419", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/iso/country/2020/alpha-2/v1.test.json b/test/schemas/iso/country/2020/alpha-2/v1.test.json new file mode 100644 index 00000000..baab7c62 --- /dev/null +++ b/test/schemas/iso/country/2020/alpha-2/v1.test.json @@ -0,0 +1,120 @@ +{ + "target": "../../../../../../schemas/iso/country/2020/alpha-2/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 840, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - United States", + "data": "US", + "valid": true + }, + { + "description": "Valid - United Kingdom", + "data": "GB", + "valid": true + }, + { + "description": "Valid - France", + "data": "FR", + "valid": true + }, + { + "description": "Valid - Germany", + "data": "DE", + "valid": true + }, + { + "description": "Valid - Japan", + "data": "JP", + "valid": true + }, + { + "description": "Valid - Canada", + "data": "CA", + "valid": true + }, + { + "description": "Valid - Australia", + "data": "AU", + "valid": true + }, + { + "description": "Valid - China", + "data": "CN", + "valid": true + }, + { + "description": "Valid - India", + "data": "IN", + "valid": true + }, + { + "description": "Invalid - lowercase", + "data": "us", + "valid": false + }, + { + "description": "Invalid - mixed case", + "data": "Us", + "valid": false + }, + { + "description": "Invalid - too short", + "data": "U", + "valid": false + }, + { + "description": "Invalid - too long", + "data": "USA", + "valid": false + }, + { + "description": "Invalid - non-existent code", + "data": "XX", + "valid": false + }, + { + "description": "Invalid - contains numbers", + "data": "U1", + "valid": false + }, + { + "description": "Invalid - contains special characters", + "data": "U$", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - spaces", + "data": "U S", + "valid": false + } + ] +} diff --git a/test/schemas/iso/country/2020/alpha-3/v1.test.json b/test/schemas/iso/country/2020/alpha-3/v1.test.json new file mode 100644 index 00000000..016b5eec --- /dev/null +++ b/test/schemas/iso/country/2020/alpha-3/v1.test.json @@ -0,0 +1,120 @@ +{ + "target": "../../../../../../schemas/iso/country/2020/alpha-3/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 840, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - United States", + "data": "USA", + "valid": true + }, + { + "description": "Valid - United Kingdom", + "data": "GBR", + "valid": true + }, + { + "description": "Valid - France", + "data": "FRA", + "valid": true + }, + { + "description": "Valid - Germany", + "data": "DEU", + "valid": true + }, + { + "description": "Valid - Japan", + "data": "JPN", + "valid": true + }, + { + "description": "Valid - Canada", + "data": "CAN", + "valid": true + }, + { + "description": "Valid - Australia", + "data": "AUS", + "valid": true + }, + { + "description": "Valid - China", + "data": "CHN", + "valid": true + }, + { + "description": "Valid - India", + "data": "IND", + "valid": true + }, + { + "description": "Invalid - lowercase", + "data": "usa", + "valid": false + }, + { + "description": "Invalid - mixed case", + "data": "UsA", + "valid": false + }, + { + "description": "Invalid - too short", + "data": "US", + "valid": false + }, + { + "description": "Invalid - too long", + "data": "USAA", + "valid": false + }, + { + "description": "Invalid - non-existent code", + "data": "XXX", + "valid": false + }, + { + "description": "Invalid - contains numbers", + "data": "US1", + "valid": false + }, + { + "description": "Invalid - contains special characters", + "data": "US$", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - spaces", + "data": "U S A", + "valid": false + } + ] +} diff --git a/test/schemas/iso/country/2020/alpha-all/v1.test.json b/test/schemas/iso/country/2020/alpha-all/v1.test.json new file mode 100644 index 00000000..64868670 --- /dev/null +++ b/test/schemas/iso/country/2020/alpha-all/v1.test.json @@ -0,0 +1,135 @@ +{ + "target": "../../../../../../schemas/iso/country/2020/alpha-all/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 840, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - United States (alpha-2)", + "data": "US", + "valid": true + }, + { + "description": "Valid - United States (alpha-3)", + "data": "USA", + "valid": true + }, + { + "description": "Valid - United Kingdom (alpha-2)", + "data": "GB", + "valid": true + }, + { + "description": "Valid - United Kingdom (alpha-3)", + "data": "GBR", + "valid": true + }, + { + "description": "Valid - France (alpha-2)", + "data": "FR", + "valid": true + }, + { + "description": "Valid - France (alpha-3)", + "data": "FRA", + "valid": true + }, + { + "description": "Valid - Germany (alpha-2)", + "data": "DE", + "valid": true + }, + { + "description": "Valid - Germany (alpha-3)", + "data": "DEU", + "valid": true + }, + { + "description": "Valid - Japan (alpha-2)", + "data": "JP", + "valid": true + }, + { + "description": "Valid - Japan (alpha-3)", + "data": "JPN", + "valid": true + }, + { + "description": "Invalid - lowercase alpha-2", + "data": "us", + "valid": false + }, + { + "description": "Invalid - lowercase alpha-3", + "data": "usa", + "valid": false + }, + { + "description": "Invalid - mixed case alpha-2", + "data": "Us", + "valid": false + }, + { + "description": "Invalid - mixed case alpha-3", + "data": "UsA", + "valid": false + }, + { + "description": "Invalid - too short", + "data": "U", + "valid": false + }, + { + "description": "Invalid - too long", + "data": "USAA", + "valid": false + }, + { + "description": "Invalid - non-existent alpha-2", + "data": "XX", + "valid": false + }, + { + "description": "Invalid - non-existent alpha-3", + "data": "XXX", + "valid": false + }, + { + "description": "Invalid - contains numbers", + "data": "US1", + "valid": false + }, + { + "description": "Invalid - contains special characters", + "data": "US$", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + } + ] +} diff --git a/test/schemas/iso/country/2020/numeric/v1.test.json b/test/schemas/iso/country/2020/numeric/v1.test.json new file mode 100644 index 00000000..4e2b445f --- /dev/null +++ b/test/schemas/iso/country/2020/numeric/v1.test.json @@ -0,0 +1,100 @@ +{ + "target": "../../../../../../schemas/iso/country/2020/numeric/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "840", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - United States (840)", + "data": 840, + "valid": true + }, + { + "description": "Valid - United Kingdom (826)", + "data": 826, + "valid": true + }, + { + "description": "Valid - France (250)", + "data": 250, + "valid": true + }, + { + "description": "Valid - Germany (276)", + "data": 276, + "valid": true + }, + { + "description": "Valid - Japan (392)", + "data": 392, + "valid": true + }, + { + "description": "Valid - Canada (124)", + "data": 124, + "valid": true + }, + { + "description": "Valid - Australia (036)", + "data": 36, + "valid": true + }, + { + "description": "Valid - China (156)", + "data": 156, + "valid": true + }, + { + "description": "Valid - India (356)", + "data": 356, + "valid": true + }, + { + "description": "Valid - Afghanistan (004)", + "data": 4, + "valid": true + }, + { + "description": "Invalid - non-existent code", + "data": 999, + "valid": false + }, + { + "description": "Invalid - negative number", + "data": -1, + "valid": false + }, + { + "description": "Invalid - decimal", + "data": 840.5, + "valid": false + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + } + ] +} diff --git a/test/schemas/iso/currency/2015/alpha-code/v1.test.json b/test/schemas/iso/currency/2015/alpha-code/v1.test.json new file mode 100644 index 00000000..a41179ee --- /dev/null +++ b/test/schemas/iso/currency/2015/alpha-code/v1.test.json @@ -0,0 +1,95 @@ +{ + "target": "../../../../../../schemas/iso/currency/2015/alpha-code/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 840, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - US Dollar", + "data": "USD", + "valid": true + }, + { + "description": "Valid - Euro", + "data": "EUR", + "valid": true + }, + { + "description": "Valid - Japanese Yen", + "data": "JPY", + "valid": true + }, + { + "description": "Valid - British Pound", + "data": "GBP", + "valid": true + }, + { + "description": "Valid - Swiss Franc", + "data": "CHF", + "valid": true + }, + { + "description": "Valid - fund code (Mvdol)", + "data": "BOV", + "valid": true + }, + { + "description": "Valid - fund code (Unidad de Fomento)", + "data": "CLF", + "valid": true + }, + { + "description": "Valid - fund code (Mexican UDI)", + "data": "MXV", + "valid": true + }, + { + "description": "Valid - fund code (WIR Euro)", + "data": "CHE", + "valid": true + }, + { + "description": "Valid - XXX is a List One member (the no-currency code)", + "data": "XXX", + "valid": true + }, + { + "description": "Invalid - lowercase", + "data": "usd", + "valid": false + }, + { + "description": "Invalid - mixed case", + "data": "UsD", + "valid": false + }, + { + "description": "Invalid - non-existent code", + "data": "XXY", + "valid": false + } + ] +} diff --git a/test/schemas/iso/currency/2015/alpha-currency/v1.test.json b/test/schemas/iso/currency/2015/alpha-currency/v1.test.json new file mode 100644 index 00000000..1f9aa538 --- /dev/null +++ b/test/schemas/iso/currency/2015/alpha-currency/v1.test.json @@ -0,0 +1,140 @@ +{ + "target": "../../../../../../schemas/iso/currency/2015/alpha-currency/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 840, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - US Dollar", + "data": "USD", + "valid": true + }, + { + "description": "Valid - Euro", + "data": "EUR", + "valid": true + }, + { + "description": "Valid - Japanese Yen", + "data": "JPY", + "valid": true + }, + { + "description": "Valid - British Pound", + "data": "GBP", + "valid": true + }, + { + "description": "Valid - Swiss Franc", + "data": "CHF", + "valid": true + }, + { + "description": "Valid - Canadian Dollar", + "data": "CAD", + "valid": true + }, + { + "description": "Valid - Australian Dollar", + "data": "AUD", + "valid": true + }, + { + "description": "Valid - Chinese Yuan", + "data": "CNY", + "valid": true + }, + { + "description": "Valid - Indian Rupee", + "data": "INR", + "valid": true + }, + { + "description": "Invalid - lowercase", + "data": "usd", + "valid": false + }, + { + "description": "Invalid - mixed case", + "data": "UsD", + "valid": false + }, + { + "description": "Invalid - too short", + "data": "US", + "valid": false + }, + { + "description": "Invalid - too long", + "data": "USDD", + "valid": false + }, + { + "description": "Invalid - non-existent code", + "data": "XXY", + "valid": false + }, + { + "description": "Invalid - contains numbers", + "data": "US1", + "valid": false + }, + { + "description": "Invalid - contains special characters", + "data": "US$", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - spaces", + "data": "U S", + "valid": false + }, + { + "description": "Invalid - fund code (Mvdol)", + "data": "BOV", + "valid": false + }, + { + "description": "Invalid - fund code (Unidad de Fomento)", + "data": "CLF", + "valid": false + }, + { + "description": "Invalid - fund code (Mexican UDI)", + "data": "MXV", + "valid": false + }, + { + "description": "Invalid - fund code (WIR Euro)", + "data": "CHE", + "valid": false + } + ] +} diff --git a/test/schemas/iso/currency/2015/alpha-fund/v1.test.json b/test/schemas/iso/currency/2015/alpha-fund/v1.test.json new file mode 100644 index 00000000..cfe05aa9 --- /dev/null +++ b/test/schemas/iso/currency/2015/alpha-fund/v1.test.json @@ -0,0 +1,50 @@ +{ + "target": "../../../../../../schemas/iso/currency/2015/alpha-fund/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 840, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - Mvdol (Bolivia)", + "data": "BOV", + "valid": true + }, + { + "description": "Valid - Unidad de Fomento (Chile)", + "data": "CLF", + "valid": true + }, + { + "description": "Valid - WIR Euro (Switzerland)", + "data": "CHE", + "valid": true + }, + { + "description": "Invalid - regular currency (US Dollar)", + "data": "USD", + "valid": false + }, + { + "description": "Invalid - unknown code (XXX)", + "data": "XXX", + "valid": false + }, + { + "description": "Invalid - lowercase", + "data": "bov", + "valid": false + } + ] +} diff --git a/test/schemas/iso/currency/2015/alpha-precious-metal/v1.test.json b/test/schemas/iso/currency/2015/alpha-precious-metal/v1.test.json new file mode 100644 index 00000000..f2d53c0b --- /dev/null +++ b/test/schemas/iso/currency/2015/alpha-precious-metal/v1.test.json @@ -0,0 +1,65 @@ +{ + "target": "../../../../../../schemas/iso/currency/2015/alpha-precious-metal/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 959, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - Gold", + "data": "XAU", + "valid": true + }, + { + "description": "Valid - Silver", + "data": "XAG", + "valid": true + }, + { + "description": "Valid - Platinum", + "data": "XPT", + "valid": true + }, + { + "description": "Valid - Palladium", + "data": "XPD", + "valid": true + }, + { + "description": "Invalid - Regular currency USD", + "data": "USD", + "valid": false + }, + { + "description": "Invalid - Unknown code XXX", + "data": "XXX", + "valid": false + }, + { + "description": "Invalid - Test code XTS", + "data": "XTS", + "valid": false + } + ] +} diff --git a/test/schemas/iso/currency/2015/alpha-test/v1.test.json b/test/schemas/iso/currency/2015/alpha-test/v1.test.json new file mode 100644 index 00000000..40f6faf6 --- /dev/null +++ b/test/schemas/iso/currency/2015/alpha-test/v1.test.json @@ -0,0 +1,70 @@ +{ + "target": "../../../../../../schemas/iso/currency/2015/alpha-test/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 963, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - XTS (test code)", + "data": "XTS", + "valid": true + }, + { + "description": "Invalid - US Dollar", + "data": "USD", + "valid": false + }, + { + "description": "Invalid - Euro", + "data": "EUR", + "valid": false + }, + { + "description": "Invalid - fund code (Mvdol)", + "data": "BOV", + "valid": false + }, + { + "description": "Invalid - unknown code (XXX)", + "data": "XXX", + "valid": false + }, + { + "description": "Invalid - lowercase xts", + "data": "xts", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - non-existent code", + "data": "XTT", + "valid": false + } + ] +} diff --git a/test/schemas/iso/currency/2015/alpha-unknown/v1.test.json b/test/schemas/iso/currency/2015/alpha-unknown/v1.test.json new file mode 100644 index 00000000..1859f904 --- /dev/null +++ b/test/schemas/iso/currency/2015/alpha-unknown/v1.test.json @@ -0,0 +1,65 @@ +{ + "target": "../../../../../../schemas/iso/currency/2015/alpha-unknown/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 999, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - XXX (no currency)", + "data": "XXX", + "valid": true + }, + { + "description": "Invalid - US Dollar", + "data": "USD", + "valid": false + }, + { + "description": "Invalid - Euro", + "data": "EUR", + "valid": false + }, + { + "description": "Invalid - fund code (Mvdol)", + "data": "BOV", + "valid": false + }, + { + "description": "Invalid - lowercase xxx", + "data": "xxx", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - non-existent code", + "data": "XXY", + "valid": false + } + ] +} diff --git a/test/schemas/iso/currency/2015/historical/alpha-code/v1.test.json b/test/schemas/iso/currency/2015/historical/alpha-code/v1.test.json new file mode 100644 index 00000000..533208fa --- /dev/null +++ b/test/schemas/iso/currency/2015/historical/alpha-code/v1.test.json @@ -0,0 +1,65 @@ +{ + "target": "../../../../../../../schemas/iso/currency/2015/historical/alpha-code/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 840, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - Andorran Peseta", + "data": "ADP", + "valid": true + }, + { + "description": "Valid - Afghani", + "data": "AFA", + "valid": true + }, + { + "description": "Invalid - current currency (USD)", + "data": "USD", + "valid": false + }, + { + "description": "Invalid - current currency (JPY)", + "data": "JPY", + "valid": false + }, + { + "description": "Invalid - lowercase", + "data": "adp", + "valid": false + }, + { + "description": "Invalid - non-existent code", + "data": "XXY", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + } + ] +} diff --git a/test/schemas/iso/currency/2015/historical/alpha-currency/v1.test.json b/test/schemas/iso/currency/2015/historical/alpha-currency/v1.test.json new file mode 100644 index 00000000..44405f9f --- /dev/null +++ b/test/schemas/iso/currency/2015/historical/alpha-currency/v1.test.json @@ -0,0 +1,85 @@ +{ + "target": "../../../../../../../schemas/iso/currency/2015/historical/alpha-currency/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 840, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - Andorran Peseta", + "data": "ADP", + "valid": true + }, + { + "description": "Valid - Afghani", + "data": "AFA", + "valid": true + }, + { + "description": "Valid - German Mark", + "data": "DEM", + "valid": true + }, + { + "description": "Valid - French Franc", + "data": "FRF", + "valid": true + }, + { + "description": "Invalid - current currency (USD)", + "data": "USD", + "valid": false + }, + { + "description": "Invalid - current currency (JPY)", + "data": "JPY", + "valid": false + }, + { + "description": "Invalid - lowercase", + "data": "adp", + "valid": false + }, + { + "description": "Invalid - too short", + "data": "AD", + "valid": false + }, + { + "description": "Invalid - too long", + "data": "ADPD", + "valid": false + }, + { + "description": "Invalid - non-existent code", + "data": "XXY", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + } + ] +} diff --git a/test/schemas/iso/currency/2015/historical/numeric-code/v1.test.json b/test/schemas/iso/currency/2015/historical/numeric-code/v1.test.json new file mode 100644 index 00000000..c3be46bd --- /dev/null +++ b/test/schemas/iso/currency/2015/historical/numeric-code/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../schemas/iso/currency/2015/historical/numeric-code/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "840", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - Afghani (4)", + "data": 4, + "valid": true + }, + { + "description": "Valid - Lek (8)", + "data": 8, + "valid": true + }, + { + "description": "Invalid - current currency (840 - USD)", + "data": 840, + "valid": false + }, + { + "description": "Invalid - current currency (392 - JPY)", + "data": 392, + "valid": false + }, + { + "description": "Invalid - non-existent code", + "data": 1, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -1, + "valid": false + } + ] +} diff --git a/test/schemas/iso/currency/2015/historical/numeric-currency/v1.test.json b/test/schemas/iso/currency/2015/historical/numeric-currency/v1.test.json new file mode 100644 index 00000000..edace8af --- /dev/null +++ b/test/schemas/iso/currency/2015/historical/numeric-currency/v1.test.json @@ -0,0 +1,70 @@ +{ + "target": "../../../../../../../schemas/iso/currency/2015/historical/numeric-currency/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "840", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - Afghani (4)", + "data": 4, + "valid": true + }, + { + "description": "Valid - Lek (8)", + "data": 8, + "valid": true + }, + { + "description": "Valid - Andorran Peseta (20)", + "data": 20, + "valid": true + }, + { + "description": "Invalid - current currency (840 - USD)", + "data": 840, + "valid": false + }, + { + "description": "Invalid - current currency (392 - JPY)", + "data": 392, + "valid": false + }, + { + "description": "Invalid - non-existent code", + "data": 1, + "valid": false + }, + { + "description": "Invalid - negative", + "data": -1, + "valid": false + }, + { + "description": "Invalid - decimal", + "data": 4.5, + "valid": false + } + ] +} diff --git a/test/schemas/iso/currency/2015/numeric-code-additional/v1.test.json b/test/schemas/iso/currency/2015/numeric-code-additional/v1.test.json new file mode 100644 index 00000000..5956b195 --- /dev/null +++ b/test/schemas/iso/currency/2015/numeric-code-additional/v1.test.json @@ -0,0 +1,65 @@ +{ + "target": "../../../../../../schemas/iso/currency/2015/numeric-code-additional/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "900", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - minimum value 900", + "data": 900, + "valid": true + }, + { + "description": "Valid - middle value 950", + "data": 950, + "valid": true + }, + { + "description": "Valid - maximum value 998", + "data": 998, + "valid": true + }, + { + "description": "Invalid - below minimum (899)", + "data": 899, + "valid": false + }, + { + "description": "Invalid - above maximum (999)", + "data": 999, + "valid": false + }, + { + "description": "Invalid - test code (963)", + "data": 963, + "valid": true + }, + { + "description": "Invalid - precious metal Gold (959)", + "data": 959, + "valid": true + } + ] +} diff --git a/test/schemas/iso/currency/2015/numeric-code/v1.test.json b/test/schemas/iso/currency/2015/numeric-code/v1.test.json new file mode 100644 index 00000000..3829ea97 --- /dev/null +++ b/test/schemas/iso/currency/2015/numeric-code/v1.test.json @@ -0,0 +1,85 @@ +{ + "target": "../../../../../../schemas/iso/currency/2015/numeric-code/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "840", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - US Dollar (840)", + "data": 840, + "valid": true + }, + { + "description": "Valid - Euro (978)", + "data": 978, + "valid": true + }, + { + "description": "Valid - Japanese Yen (392)", + "data": 392, + "valid": true + }, + { + "description": "Valid - British Pound (826)", + "data": 826, + "valid": true + }, + { + "description": "Valid - Swiss Franc (756)", + "data": 756, + "valid": true + }, + { + "description": "Valid - fund code (984 - Mvdol)", + "data": 984, + "valid": true + }, + { + "description": "Valid - fund code (990 - Unidad de Fomento)", + "data": 990, + "valid": true + }, + { + "description": "Valid - fund code (979 - Mexican UDI)", + "data": 979, + "valid": true + }, + { + "description": "Valid - fund code (947 - WIR Euro)", + "data": 947, + "valid": true + }, + { + "description": "Valid - 999 is a List One member (the no-currency code)", + "data": 999, + "valid": true + }, + { + "description": "Invalid - non-existent code", + "data": 123, + "valid": false + } + ] +} diff --git a/test/schemas/iso/currency/2015/numeric-currency/v1.test.json b/test/schemas/iso/currency/2015/numeric-currency/v1.test.json new file mode 100644 index 00000000..1f756ec5 --- /dev/null +++ b/test/schemas/iso/currency/2015/numeric-currency/v1.test.json @@ -0,0 +1,100 @@ +{ + "target": "../../../../../../schemas/iso/currency/2015/numeric-currency/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "840", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - US Dollar (840)", + "data": 840, + "valid": true + }, + { + "description": "Valid - Euro (978)", + "data": 978, + "valid": true + }, + { + "description": "Valid - Japanese Yen (392)", + "data": 392, + "valid": true + }, + { + "description": "Valid - British Pound (826)", + "data": 826, + "valid": true + }, + { + "description": "Valid - Swiss Franc (756)", + "data": 756, + "valid": true + }, + { + "description": "Valid - Canadian Dollar (124)", + "data": 124, + "valid": true + }, + { + "description": "Valid - Australian Dollar (36)", + "data": 36, + "valid": true + }, + { + "description": "Valid - Chinese Yuan (156)", + "data": 156, + "valid": true + }, + { + "description": "Valid - Indian Rupee (356)", + "data": 356, + "valid": true + }, + { + "description": "Invalid - non-existent code", + "data": 123, + "valid": false + }, + { + "description": "Invalid - fund code (984 - Mvdol)", + "data": 984, + "valid": false + }, + { + "description": "Invalid - fund code (990 - Unidad de Fomento)", + "data": 990, + "valid": false + }, + { + "description": "Invalid - fund code (979 - Mexican UDI)", + "data": 979, + "valid": false + }, + { + "description": "Invalid - fund code (947 - WIR Euro)", + "data": 947, + "valid": false + } + ] +} diff --git a/test/schemas/iso/currency/2015/numeric-fund/v1.test.json b/test/schemas/iso/currency/2015/numeric-fund/v1.test.json new file mode 100644 index 00000000..fa098b58 --- /dev/null +++ b/test/schemas/iso/currency/2015/numeric-fund/v1.test.json @@ -0,0 +1,50 @@ +{ + "target": "../../../../../../schemas/iso/currency/2015/numeric-fund/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "984", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - Mvdol (984 - Bolivia)", + "data": 984, + "valid": true + }, + { + "description": "Valid - Unidad de Fomento (990 - Chile)", + "data": 990, + "valid": true + }, + { + "description": "Valid - WIR Euro (947 - Switzerland)", + "data": 947, + "valid": true + }, + { + "description": "Invalid - regular currency (840 - US Dollar)", + "data": 840, + "valid": false + }, + { + "description": "Invalid - unknown code (999)", + "data": 999, + "valid": false + }, + { + "description": "Invalid - non-existent code", + "data": 123, + "valid": false + } + ] +} diff --git a/test/schemas/iso/currency/2015/numeric-precious-metal/v1.test.json b/test/schemas/iso/currency/2015/numeric-precious-metal/v1.test.json new file mode 100644 index 00000000..74e767af --- /dev/null +++ b/test/schemas/iso/currency/2015/numeric-precious-metal/v1.test.json @@ -0,0 +1,65 @@ +{ + "target": "../../../../../../schemas/iso/currency/2015/numeric-precious-metal/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "XAU", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - Gold (959)", + "data": 959, + "valid": true + }, + { + "description": "Valid - Silver (961)", + "data": 961, + "valid": true + }, + { + "description": "Valid - Platinum (962)", + "data": 962, + "valid": true + }, + { + "description": "Valid - Palladium (964)", + "data": 964, + "valid": true + }, + { + "description": "Invalid - Regular currency USD (840)", + "data": 840, + "valid": false + }, + { + "description": "Invalid - Unknown code (999)", + "data": 999, + "valid": false + }, + { + "description": "Invalid - Test code (963)", + "data": 963, + "valid": false + } + ] +} diff --git a/test/schemas/iso/currency/2015/numeric-test/v1.test.json b/test/schemas/iso/currency/2015/numeric-test/v1.test.json new file mode 100644 index 00000000..b4162fe7 --- /dev/null +++ b/test/schemas/iso/currency/2015/numeric-test/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../schemas/iso/currency/2015/numeric-test/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "963", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 963 (test code)", + "data": 963, + "valid": true + }, + { + "description": "Invalid - US Dollar (840)", + "data": 840, + "valid": false + }, + { + "description": "Invalid - Euro (978)", + "data": 978, + "valid": false + }, + { + "description": "Invalid - fund code (984 - Mvdol)", + "data": 984, + "valid": false + }, + { + "description": "Invalid - unknown code (999)", + "data": 999, + "valid": false + }, + { + "description": "Invalid - non-existent code", + "data": 123, + "valid": false + } + ] +} diff --git a/test/schemas/iso/currency/2015/numeric-unknown/v1.test.json b/test/schemas/iso/currency/2015/numeric-unknown/v1.test.json new file mode 100644 index 00000000..ce386742 --- /dev/null +++ b/test/schemas/iso/currency/2015/numeric-unknown/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../schemas/iso/currency/2015/numeric-unknown/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "999", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 999 (no currency)", + "data": 999, + "valid": true + }, + { + "description": "Invalid - US Dollar (840)", + "data": 840, + "valid": false + }, + { + "description": "Invalid - Euro (978)", + "data": 978, + "valid": false + }, + { + "description": "Invalid - fund code (984 - Mvdol)", + "data": 984, + "valid": false + }, + { + "description": "Invalid - non-existent code", + "data": 123, + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/date/calendar-basic/v1.test.json b/test/schemas/iso/datetime/2019/date/calendar-basic/v1.test.json new file mode 100644 index 00000000..fbee2185 --- /dev/null +++ b/test/schemas/iso/datetime/2019/date/calendar-basic/v1.test.json @@ -0,0 +1,260 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/date/calendar-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 19850412, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 12 April 1985", + "data": "19850412", + "valid": true + }, + { + "description": "Valid - 1 January 2000", + "data": "20000101", + "valid": true + }, + { + "description": "Valid - 31 December 2023", + "data": "20231231", + "valid": true + }, + { + "description": "Valid - 1 January year 0000", + "data": "00000101", + "valid": true + }, + { + "description": "Valid - 31 December year 9999", + "data": "99991231", + "valid": true + }, + { + "description": "Valid - 29 February 2000 (leap year)", + "data": "20000229", + "valid": true + }, + { + "description": "Valid - 29 February 2004 (leap year)", + "data": "20040229", + "valid": true + }, + { + "description": "Valid - 28 February 2001 (non-leap year)", + "data": "20010228", + "valid": true + }, + { + "description": "Valid - 31 January 2023", + "data": "20230131", + "valid": true + }, + { + "description": "Valid - 30 April 2023", + "data": "20230430", + "valid": true + }, + { + "description": "Valid - 31 May 2023", + "data": "20230531", + "valid": true + }, + { + "description": "Valid - 30 June 2023", + "data": "20230630", + "valid": true + }, + { + "description": "Valid - 31 July 2023", + "data": "20230731", + "valid": true + }, + { + "description": "Valid - 31 August 2023", + "data": "20230831", + "valid": true + }, + { + "description": "Valid - 30 September 2023", + "data": "20230930", + "valid": true + }, + { + "description": "Valid - 31 October 2023", + "data": "20231031", + "valid": true + }, + { + "description": "Valid - 30 November 2023", + "data": "20231130", + "valid": true + }, + { + "description": "Invalid - missing hyphen (extended format)", + "data": "1985-04-12", + "valid": false + }, + { + "description": "Invalid - month 00", + "data": "19850012", + "valid": false + }, + { + "description": "Invalid - month 13", + "data": "19851312", + "valid": false + }, + { + "description": "Invalid - day 00", + "data": "19850400", + "valid": false + }, + { + "description": "Invalid - day 32", + "data": "19850432", + "valid": false + }, + { + "description": "Invalid - too few digits", + "data": "1985041", + "valid": false + }, + { + "description": "Invalid - too many digits", + "data": "198504122", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - spaces in date", + "data": "1985 04 12", + "valid": false + }, + { + "description": "Invalid - letters in year", + "data": "ABCD0412", + "valid": false + }, + { + "description": "Invalid - letters in month", + "data": "1985AB12", + "valid": false + }, + { + "description": "Invalid - letters in day", + "data": "198504AB", + "valid": false + }, + { + "description": "Invalid - negative year (requires expanded format)", + "data": "-0011231", + "valid": false + }, + { + "description": "Invalid - plus sign (requires expanded format)", + "data": "+0011231", + "valid": false + }, + { + "description": "Invalid - 30 February (any year)", + "data": "20230230", + "valid": false + }, + { + "description": "Invalid - 31 February (any year)", + "data": "20230231", + "valid": false + }, + { + "description": "Invalid - 31 April", + "data": "20230431", + "valid": false + }, + { + "description": "Invalid - 31 June", + "data": "20230631", + "valid": false + }, + { + "description": "Invalid - 31 September", + "data": "20230931", + "valid": false + }, + { + "description": "Invalid - 31 November", + "data": "20231131", + "valid": false + }, + { + "description": "Invalid - 32 January", + "data": "20230132", + "valid": false + }, + { + "description": "Invalid - 32 March", + "data": "20230332", + "valid": false + }, + { + "description": "Invalid - 32 May", + "data": "20230532", + "valid": false + }, + { + "description": "Invalid - 32 July", + "data": "20230732", + "valid": false + }, + { + "description": "Invalid - 32 August", + "data": "20230832", + "valid": false + }, + { + "description": "Invalid - 32 October", + "data": "20231032", + "valid": false + }, + { + "description": "Invalid - 32 December", + "data": "20231232", + "valid": false + }, + { + "description": "Valid - 29 February (leap year validation is consumer responsibility)", + "data": "20230229", + "valid": true + }, + { + "description": "Valid - 28 February", + "data": "21000228", + "valid": true + } + ] +} diff --git a/test/schemas/iso/datetime/2019/date/calendar-century/v1.test.json b/test/schemas/iso/datetime/2019/date/calendar-century/v1.test.json new file mode 100644 index 00000000..6cf2df73 --- /dev/null +++ b/test/schemas/iso/datetime/2019/date/calendar-century/v1.test.json @@ -0,0 +1,70 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/date/calendar-century/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 19, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - century 19 (20th century)", + "data": "19", + "valid": true + }, + { + "description": "Valid - century 20 (21st century)", + "data": "20", + "valid": true + }, + { + "description": "Valid - century 00", + "data": "00", + "valid": true + }, + { + "description": "Valid - century 99", + "data": "99", + "valid": true + }, + { + "description": "Invalid - single digit", + "data": "1", + "valid": false + }, + { + "description": "Invalid - three digits", + "data": "198", + "valid": false + }, + { + "description": "Invalid - with hyphen", + "data": "19-", + "valid": false + }, + { + "description": "Invalid - negative sign (requires expanded format)", + "data": "-19", + "valid": false + }, + { + "description": "Invalid - plus sign (requires expanded format)", + "data": "+19", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/date/calendar-decade/v1.test.json b/test/schemas/iso/datetime/2019/date/calendar-decade/v1.test.json new file mode 100644 index 00000000..5c793e9c --- /dev/null +++ b/test/schemas/iso/datetime/2019/date/calendar-decade/v1.test.json @@ -0,0 +1,75 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/date/calendar-decade/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 198, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - decade 198 (1980s)", + "data": "198", + "valid": true + }, + { + "description": "Valid - decade 200 (2000s)", + "data": "200", + "valid": true + }, + { + "description": "Valid - decade 202 (2020s)", + "data": "202", + "valid": true + }, + { + "description": "Valid - decade 000", + "data": "000", + "valid": true + }, + { + "description": "Valid - decade 999", + "data": "999", + "valid": true + }, + { + "description": "Invalid - two digits", + "data": "19", + "valid": false + }, + { + "description": "Invalid - four digits", + "data": "1985", + "valid": false + }, + { + "description": "Invalid - with hyphen", + "data": "198-", + "valid": false + }, + { + "description": "Invalid - negative sign (requires expanded format)", + "data": "-198", + "valid": false + }, + { + "description": "Invalid - plus sign (requires expanded format)", + "data": "+198", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/date/calendar-expanded-basic/v1.test.json b/test/schemas/iso/datetime/2019/date/calendar-expanded-basic/v1.test.json new file mode 100644 index 00000000..8dd35dcf --- /dev/null +++ b/test/schemas/iso/datetime/2019/date/calendar-expanded-basic/v1.test.json @@ -0,0 +1,150 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/date/calendar-expanded-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 19850412, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - April 12, 1985 with positive sign", + "data": "+0019850412", + "valid": true + }, + { + "description": "Valid - January 1, year 1 BCE with negative sign", + "data": "-0000010101", + "valid": true + }, + { + "description": "Valid - December 31, year 999999 with positive sign", + "data": "+9999991231", + "valid": true + }, + { + "description": "Valid - January 1, year 0 with positive sign", + "data": "+0000000101", + "valid": true + }, + { + "description": "Valid - January 1, year 10000 BCE with negative sign", + "data": "-0100000101", + "valid": true + }, + { + "description": "Valid - February 29, leap year 2000", + "data": "+0020000229", + "valid": true + }, + { + "description": "Invalid - month 00", + "data": "+0019850012", + "valid": false + }, + { + "description": "Invalid - month 13", + "data": "+0019851312", + "valid": false + }, + { + "description": "Invalid - day 00", + "data": "+0019850400", + "valid": false + }, + { + "description": "Invalid - day 32", + "data": "+0019850432", + "valid": false + }, + { + "description": "Invalid - missing sign", + "data": "0019850412", + "valid": false + }, + { + "description": "Invalid - five digit year", + "data": "+001985041", + "valid": false + }, + { + "description": "Invalid - seven digit year", + "data": "+00198504122", + "valid": false + }, + { + "description": "Invalid - extended format (with hyphens)", + "data": "+001985-04-12", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - 30 February (any year)", + "data": "+0020230230", + "valid": false + }, + { + "description": "Invalid - 31 February (any year)", + "data": "+0020230231", + "valid": false + }, + { + "description": "Invalid - 31 April", + "data": "+0020230431", + "valid": false + }, + { + "description": "Invalid - 31 June", + "data": "+0020230631", + "valid": false + }, + { + "description": "Invalid - 31 September", + "data": "+0020230931", + "valid": false + }, + { + "description": "Invalid - 31 November", + "data": "+0020231131", + "valid": false + }, + { + "description": "Valid - 30 April 2023", + "data": "+0020230430", + "valid": true + }, + { + "description": "Valid - 29 February (leap year validation is consumer responsibility)", + "data": "+0024000229", + "valid": true + }, + { + "description": "Valid - 28 February", + "data": "+0021000228", + "valid": true + }, + { + "description": "Invalid - 30 February with negative year", + "data": "-0020230230", + "valid": false + }, + { + "description": "Invalid - 31 April with negative year", + "data": "-0020230431", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/date/calendar-expanded-century/v1.test.json b/test/schemas/iso/datetime/2019/date/calendar-expanded-century/v1.test.json new file mode 100644 index 00000000..b9de86f4 --- /dev/null +++ b/test/schemas/iso/datetime/2019/date/calendar-expanded-century/v1.test.json @@ -0,0 +1,65 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/date/calendar-expanded-century/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 19, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - century 19 (20th century) with positive sign", + "data": "+0019", + "valid": true + }, + { + "description": "Valid - century 0 BCE with negative sign", + "data": "-0000", + "valid": true + }, + { + "description": "Valid - century 9999 with positive sign", + "data": "+9999", + "valid": true + }, + { + "description": "Valid - century 0 with positive sign", + "data": "+0000", + "valid": true + }, + { + "description": "Valid - century 100 BCE with negative sign", + "data": "-0100", + "valid": true + }, + { + "description": "Invalid - missing sign", + "data": "0019", + "valid": false + }, + { + "description": "Invalid - three digits", + "data": "+001", + "valid": false + }, + { + "description": "Invalid - five digits", + "data": "+00198", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/date/calendar-expanded-decade/v1.test.json b/test/schemas/iso/datetime/2019/date/calendar-expanded-decade/v1.test.json new file mode 100644 index 00000000..63b4ecb2 --- /dev/null +++ b/test/schemas/iso/datetime/2019/date/calendar-expanded-decade/v1.test.json @@ -0,0 +1,65 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/date/calendar-expanded-decade/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 198, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - decade 198 (1980s) with positive sign", + "data": "+00198", + "valid": true + }, + { + "description": "Valid - decade 0 BCE with negative sign", + "data": "-00000", + "valid": true + }, + { + "description": "Valid - decade 99999 with positive sign", + "data": "+99999", + "valid": true + }, + { + "description": "Valid - decade 0 with positive sign", + "data": "+00000", + "valid": true + }, + { + "description": "Valid - decade 1000 BCE with negative sign", + "data": "-01000", + "valid": true + }, + { + "description": "Invalid - missing sign", + "data": "00198", + "valid": false + }, + { + "description": "Invalid - four digits", + "data": "+0019", + "valid": false + }, + { + "description": "Invalid - six digits", + "data": "+001985", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/date/calendar-expanded-extended/v1.test.json b/test/schemas/iso/datetime/2019/date/calendar-expanded-extended/v1.test.json new file mode 100644 index 00000000..0552fcee --- /dev/null +++ b/test/schemas/iso/datetime/2019/date/calendar-expanded-extended/v1.test.json @@ -0,0 +1,150 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/date/calendar-expanded-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 19850412, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - April 12, 1985 with positive sign", + "data": "+001985-04-12", + "valid": true + }, + { + "description": "Valid - January 1, year 1 BCE with negative sign", + "data": "-000001-01-01", + "valid": true + }, + { + "description": "Valid - December 31, year 999999 with positive sign", + "data": "+999999-12-31", + "valid": true + }, + { + "description": "Valid - January 1, year 0 with positive sign", + "data": "+000000-01-01", + "valid": true + }, + { + "description": "Valid - January 1, year 10000 BCE with negative sign", + "data": "-010000-01-01", + "valid": true + }, + { + "description": "Valid - February 29, leap year 2000", + "data": "+002000-02-29", + "valid": true + }, + { + "description": "Invalid - month 00", + "data": "+001985-00-12", + "valid": false + }, + { + "description": "Invalid - month 13", + "data": "+001985-13-12", + "valid": false + }, + { + "description": "Invalid - day 00", + "data": "+001985-04-00", + "valid": false + }, + { + "description": "Invalid - day 32", + "data": "+001985-04-32", + "valid": false + }, + { + "description": "Invalid - missing sign", + "data": "001985-04-12", + "valid": false + }, + { + "description": "Invalid - basic format (no hyphens)", + "data": "+0019850412", + "valid": false + }, + { + "description": "Invalid - missing first hyphen", + "data": "+00198504-12", + "valid": false + }, + { + "description": "Invalid - missing second hyphen", + "data": "+001985-0412", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - 30 February (any year)", + "data": "+002023-02-30", + "valid": false + }, + { + "description": "Invalid - 31 February (any year)", + "data": "+002023-02-31", + "valid": false + }, + { + "description": "Invalid - 31 April", + "data": "+002023-04-31", + "valid": false + }, + { + "description": "Invalid - 31 June", + "data": "+002023-06-31", + "valid": false + }, + { + "description": "Invalid - 31 September", + "data": "+002023-09-31", + "valid": false + }, + { + "description": "Invalid - 31 November", + "data": "+002023-11-31", + "valid": false + }, + { + "description": "Valid - 30 April 2023", + "data": "+002023-04-30", + "valid": true + }, + { + "description": "Valid - 29 February (leap year validation is consumer responsibility)", + "data": "+002400-02-29", + "valid": true + }, + { + "description": "Valid - 28 February", + "data": "+002100-02-28", + "valid": true + }, + { + "description": "Invalid - 30 February with negative year", + "data": "-002023-02-30", + "valid": false + }, + { + "description": "Invalid - 31 April with negative year", + "data": "-002023-04-31", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/date/calendar-expanded-month/v1.test.json b/test/schemas/iso/datetime/2019/date/calendar-expanded-month/v1.test.json new file mode 100644 index 00000000..3afaf172 --- /dev/null +++ b/test/schemas/iso/datetime/2019/date/calendar-expanded-month/v1.test.json @@ -0,0 +1,75 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/date/calendar-expanded-month/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 198504, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - April 1985 with positive sign", + "data": "+001985-04", + "valid": true + }, + { + "description": "Valid - January year 1 BCE with negative sign", + "data": "-000001-01", + "valid": true + }, + { + "description": "Valid - December year 999999 with positive sign", + "data": "+999999-12", + "valid": true + }, + { + "description": "Valid - January year 0 with positive sign", + "data": "+000000-01", + "valid": true + }, + { + "description": "Valid - December year 10000 BCE with negative sign", + "data": "-010000-12", + "valid": true + }, + { + "description": "Invalid - month 00", + "data": "+001985-00", + "valid": false + }, + { + "description": "Invalid - month 13", + "data": "+001985-13", + "valid": false + }, + { + "description": "Invalid - missing sign", + "data": "001985-04", + "valid": false + }, + { + "description": "Invalid - with day component", + "data": "+001985-04-12", + "valid": false + }, + { + "description": "Invalid - missing hyphen", + "data": "+00198504", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/date/calendar-expanded-year/v1.test.json b/test/schemas/iso/datetime/2019/date/calendar-expanded-year/v1.test.json new file mode 100644 index 00000000..346f2973 --- /dev/null +++ b/test/schemas/iso/datetime/2019/date/calendar-expanded-year/v1.test.json @@ -0,0 +1,70 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/date/calendar-expanded-year/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - year 1985 with positive sign", + "data": "+001985", + "valid": true + }, + { + "description": "Valid - year 1 BCE with negative sign", + "data": "-000001", + "valid": true + }, + { + "description": "Valid - year 999999 with positive sign", + "data": "+999999", + "valid": true + }, + { + "description": "Valid - year 0 with positive sign", + "data": "+000000", + "valid": true + }, + { + "description": "Valid - year 10000 BCE with negative sign", + "data": "-010000", + "valid": true + }, + { + "description": "Invalid - missing sign", + "data": "001985", + "valid": false + }, + { + "description": "Invalid - five digits", + "data": "+00198", + "valid": false + }, + { + "description": "Invalid - seven digits", + "data": "+0019850", + "valid": false + }, + { + "description": "Invalid - with month component", + "data": "+001985-04", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/date/calendar-extended/v1.test.json b/test/schemas/iso/datetime/2019/date/calendar-extended/v1.test.json new file mode 100644 index 00000000..cd678c3e --- /dev/null +++ b/test/schemas/iso/datetime/2019/date/calendar-extended/v1.test.json @@ -0,0 +1,265 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/date/calendar-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 19850412, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 12 April 1985", + "data": "1985-04-12", + "valid": true + }, + { + "description": "Valid - 1 January 2000", + "data": "2000-01-01", + "valid": true + }, + { + "description": "Valid - 31 December 2023", + "data": "2023-12-31", + "valid": true + }, + { + "description": "Valid - 1 January year 0000", + "data": "0000-01-01", + "valid": true + }, + { + "description": "Valid - 31 December year 9999", + "data": "9999-12-31", + "valid": true + }, + { + "description": "Valid - 29 February 2000 (leap year)", + "data": "2000-02-29", + "valid": true + }, + { + "description": "Valid - 29 February 2004 (leap year)", + "data": "2004-02-29", + "valid": true + }, + { + "description": "Valid - 28 February 2001 (non-leap year)", + "data": "2001-02-28", + "valid": true + }, + { + "description": "Invalid - basic format (no hyphens)", + "data": "19850412", + "valid": false + }, + { + "description": "Invalid - month 00", + "data": "1985-00-12", + "valid": false + }, + { + "description": "Invalid - month 13", + "data": "1985-13-12", + "valid": false + }, + { + "description": "Invalid - day 00", + "data": "1985-04-00", + "valid": false + }, + { + "description": "Invalid - day 32", + "data": "1985-04-32", + "valid": false + }, + { + "description": "Invalid - missing first hyphen", + "data": "198504-12", + "valid": false + }, + { + "description": "Invalid - missing second hyphen", + "data": "1985-0412", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - spaces instead of hyphens", + "data": "1985 04 12", + "valid": false + }, + { + "description": "Invalid - 30 February (any year)", + "data": "2023-02-30", + "valid": false + }, + { + "description": "Invalid - 31 February (any year)", + "data": "2023-02-31", + "valid": false + }, + { + "description": "Invalid - 31 April", + "data": "2023-04-31", + "valid": false + }, + { + "description": "Invalid - 31 June", + "data": "2023-06-31", + "valid": false + }, + { + "description": "Invalid - 31 September", + "data": "2023-09-31", + "valid": false + }, + { + "description": "Invalid - 31 November", + "data": "2023-11-31", + "valid": false + }, + { + "description": "Invalid - 32 January", + "data": "2023-01-32", + "valid": false + }, + { + "description": "Invalid - 32 March", + "data": "2023-03-32", + "valid": false + }, + { + "description": "Invalid - 32 May", + "data": "2023-05-32", + "valid": false + }, + { + "description": "Invalid - 32 July", + "data": "2023-07-32", + "valid": false + }, + { + "description": "Invalid - 32 August", + "data": "2023-08-32", + "valid": false + }, + { + "description": "Invalid - 32 October", + "data": "2023-10-32", + "valid": false + }, + { + "description": "Invalid - 32 December", + "data": "2023-12-32", + "valid": false + }, + { + "description": "Valid - 29 February (leap year validation is consumer responsibility)", + "data": "2400-02-29", + "valid": true + }, + { + "description": "Valid - 28 February", + "data": "2100-02-28", + "valid": true + }, + { + "description": "Valid - 30 April 2023", + "data": "2023-04-30", + "valid": true + }, + { + "description": "Valid - 30 June 2023", + "data": "2023-06-30", + "valid": true + }, + { + "description": "Valid - 30 September 2023", + "data": "2023-09-30", + "valid": true + }, + { + "description": "Valid - 30 November 2023", + "data": "2023-11-30", + "valid": true + }, + { + "description": "Valid - 31 January 2023", + "data": "2023-01-31", + "valid": true + }, + { + "description": "Valid - 31 March 2023", + "data": "2023-03-31", + "valid": true + }, + { + "description": "Valid - 31 May 2023", + "data": "2023-05-31", + "valid": true + }, + { + "description": "Valid - 31 July 2023", + "data": "2023-07-31", + "valid": true + }, + { + "description": "Valid - 31 August 2023", + "data": "2023-08-31", + "valid": true + }, + { + "description": "Valid - 31 October 2023", + "data": "2023-10-31", + "valid": true + }, + { + "description": "Valid - 31 December 2023", + "data": "2023-12-31", + "valid": true + }, + { + "description": "Valid - leap day in a leap year", + "valid": true, + "data": "2020-02-29" + }, + { + "description": "Valid - leap day in a century leap year", + "valid": true, + "data": "2000-02-29" + }, + { + "description": "Invalid - leap day in a common year", + "valid": false, + "data": "2021-02-29" + }, + { + "description": "Invalid - leap day in a century common year", + "valid": false, + "data": "2100-02-29" + } + ] +} diff --git a/test/schemas/iso/datetime/2019/date/calendar-month/v1.test.json b/test/schemas/iso/datetime/2019/date/calendar-month/v1.test.json new file mode 100644 index 00000000..399b9b0d --- /dev/null +++ b/test/schemas/iso/datetime/2019/date/calendar-month/v1.test.json @@ -0,0 +1,70 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/date/calendar-month/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 198504, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - April 1985", + "data": "1985-04", + "valid": true + }, + { + "description": "Valid - January 2000", + "data": "2000-01", + "valid": true + }, + { + "description": "Valid - December 2023", + "data": "2023-12", + "valid": true + }, + { + "description": "Valid - January year 0000", + "data": "0000-01", + "valid": true + }, + { + "description": "Valid - December year 9999", + "data": "9999-12", + "valid": true + }, + { + "description": "Invalid - month 00", + "data": "1985-00", + "valid": false + }, + { + "description": "Invalid - month 13", + "data": "1985-13", + "valid": false + }, + { + "description": "Invalid - basic format (no hyphen)", + "data": "198504", + "valid": false + }, + { + "description": "Invalid - with day component", + "data": "1985-04-12", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/date/calendar-year/v1.test.json b/test/schemas/iso/datetime/2019/date/calendar-year/v1.test.json new file mode 100644 index 00000000..2fca95e7 --- /dev/null +++ b/test/schemas/iso/datetime/2019/date/calendar-year/v1.test.json @@ -0,0 +1,75 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/date/calendar-year/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - year 1985", + "data": "1985", + "valid": true + }, + { + "description": "Valid - year 2000", + "data": "2000", + "valid": true + }, + { + "description": "Valid - year 2023", + "data": "2023", + "valid": true + }, + { + "description": "Valid - year 0000", + "data": "0000", + "valid": true + }, + { + "description": "Valid - year 9999", + "data": "9999", + "valid": true + }, + { + "description": "Invalid - three digits", + "data": "198", + "valid": false + }, + { + "description": "Invalid - five digits", + "data": "19850", + "valid": false + }, + { + "description": "Invalid - with month component", + "data": "1985-04", + "valid": false + }, + { + "description": "Invalid - negative sign (requires expanded format)", + "data": "-1985", + "valid": false + }, + { + "description": "Invalid - plus sign (requires expanded format)", + "data": "+1985", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/date/ordinal-basic/v1.test.json b/test/schemas/iso/datetime/2019/date/ordinal-basic/v1.test.json new file mode 100644 index 00000000..9da45661 --- /dev/null +++ b/test/schemas/iso/datetime/2019/date/ordinal-basic/v1.test.json @@ -0,0 +1,190 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/date/ordinal-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985102, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - 102nd day of 1985", + "data": "1985102", + "valid": true + }, + { + "description": "Valid - 1st day of 2000", + "data": "2000001", + "valid": true + }, + { + "description": "Valid - 366th day of 2000 (leap year)", + "data": "2000366", + "valid": true + }, + { + "description": "Valid - 365th day of 2023 (non-leap year)", + "data": "2023365", + "valid": true + }, + { + "description": "Valid - 1st day of year 0000", + "data": "0000001", + "valid": true + }, + { + "description": "Valid - 365th day of year 9999", + "data": "9999365", + "valid": true + }, + { + "description": "Valid - 60th day of 2004 (29 Feb in leap year)", + "data": "2004060", + "valid": true + }, + { + "description": "Valid - 59th day of 2003 (28 Feb in non-leap year)", + "data": "2003059", + "valid": true + }, + { + "description": "Valid - 180th day (around end of June)", + "data": "2023180", + "valid": true + }, + { + "description": "Valid - 270th day (around end of September)", + "data": "2023270", + "valid": true + }, + { + "description": "Invalid - day 000", + "data": "1985000", + "valid": false + }, + { + "description": "Invalid - day 367", + "data": "1985367", + "valid": false + }, + { + "description": "Invalid - day 999", + "data": "1985999", + "valid": false + }, + { + "description": "Invalid - extended format (with hyphen)", + "data": "1985-102", + "valid": false + }, + { + "description": "Invalid - too few digits", + "data": "198510", + "valid": false + }, + { + "description": "Invalid - too many digits", + "data": "19851022", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - spaces in date", + "data": "1985 102", + "valid": false + }, + { + "description": "Invalid - letters in ordinal day", + "data": "1985ABC", + "valid": false + }, + { + "description": "Valid - 366th day of 2004 (leap year)", + "data": "2004366", + "valid": true + }, + { + "description": "Valid - 366th day of 2400 (leap year, divisible by 400)", + "data": "2400366", + "valid": true + }, + { + "description": "Valid - 365th day of 2100 (non-leap year, century exception)", + "data": "2100365", + "valid": true + }, + { + "description": "Valid - Day 001 (January 1st)", + "data": "2023001", + "valid": true + }, + { + "description": "Valid - Day 032 (February 1st in non-leap year)", + "data": "2023032", + "valid": true + }, + { + "description": "Valid - Day 060 (March 1st in leap year)", + "data": "2000060", + "valid": true + }, + { + "description": "Valid - Day 091 (April 1st in non-leap year)", + "data": "2023091", + "valid": true + }, + { + "description": "Invalid - Day 368", + "data": "2023368", + "valid": false + }, + { + "description": "Invalid - Day 400", + "data": "2023400", + "valid": false + }, + { + "description": "Invalid - Day 500", + "data": "2023500", + "valid": false + }, + { + "description": "Invalid - Missing leading zeros (day 1)", + "data": "20231", + "valid": false + }, + { + "description": "Invalid - Missing leading zeros (day 01)", + "data": "202301", + "valid": false + }, + { + "description": "Invalid - Missing leading zeros (day 10)", + "data": "202310", + "valid": false + }, + { + "description": "Invalid - negative year (requires expanded format)", + "data": "-0001001", + "valid": false + }, + { + "description": "Invalid - plus sign (requires expanded format)", + "data": "+0001001", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/date/ordinal-expanded-basic/v1.test.json b/test/schemas/iso/datetime/2019/date/ordinal-expanded-basic/v1.test.json new file mode 100644 index 00000000..5f85fe60 --- /dev/null +++ b/test/schemas/iso/datetime/2019/date/ordinal-expanded-basic/v1.test.json @@ -0,0 +1,115 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/date/ordinal-expanded-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985102, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - day 102 of 1985 with positive sign", + "data": "+001985102", + "valid": true + }, + { + "description": "Valid - day 1 of year 1 BCE with negative sign", + "data": "-000001001", + "valid": true + }, + { + "description": "Valid - day 366 of year 999999 with positive sign", + "data": "+999999366", + "valid": true + }, + { + "description": "Valid - day 1 of year 0 with positive sign", + "data": "+000000001", + "valid": true + }, + { + "description": "Valid - day 365 of year 10000 BCE with negative sign", + "data": "-010000365", + "valid": true + }, + { + "description": "Valid - day 001 (first day)", + "data": "+001985001", + "valid": true + }, + { + "description": "Valid - day 200", + "data": "+001985200", + "valid": true + }, + { + "description": "Valid - day 299", + "data": "+001985299", + "valid": true + }, + { + "description": "Invalid - day 000", + "data": "+001985000", + "valid": false + }, + { + "description": "Invalid - day 367", + "data": "+001985367", + "valid": false + }, + { + "description": "Invalid - missing sign", + "data": "001985102", + "valid": false + }, + { + "description": "Invalid - extended format (with hyphen)", + "data": "+001985-102", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Valid - 366th day of leap year 2004", + "data": "+002004366", + "valid": true + }, + { + "description": "Valid - 365th day of non-leap year 2100", + "data": "+002100365", + "valid": true + }, + { + "description": "Invalid - Day 368", + "data": "+002023368", + "valid": false + }, + { + "description": "Invalid - Day 400", + "data": "+002023400", + "valid": false + }, + { + "description": "Invalid - Day 500 with negative year", + "data": "-002023500", + "valid": false + }, + { + "description": "Invalid - Day 999", + "data": "+002023999", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/date/ordinal-expanded-extended/v1.test.json b/test/schemas/iso/datetime/2019/date/ordinal-expanded-extended/v1.test.json new file mode 100644 index 00000000..724e3b09 --- /dev/null +++ b/test/schemas/iso/datetime/2019/date/ordinal-expanded-extended/v1.test.json @@ -0,0 +1,115 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/date/ordinal-expanded-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985102, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - day 102 of 1985 with positive sign", + "data": "+001985-102", + "valid": true + }, + { + "description": "Valid - day 1 of year 1 BCE with negative sign", + "data": "-000001-001", + "valid": true + }, + { + "description": "Valid - day 366 of year 999999 with positive sign", + "data": "+999999-366", + "valid": true + }, + { + "description": "Valid - day 1 of year 0 with positive sign", + "data": "+000000-001", + "valid": true + }, + { + "description": "Valid - day 365 of year 10000 BCE with negative sign", + "data": "-010000-365", + "valid": true + }, + { + "description": "Valid - day 001 (first day)", + "data": "+001985-001", + "valid": true + }, + { + "description": "Valid - day 200", + "data": "+001985-200", + "valid": true + }, + { + "description": "Valid - day 299", + "data": "+001985-299", + "valid": true + }, + { + "description": "Invalid - day 000", + "data": "+001985-000", + "valid": false + }, + { + "description": "Invalid - day 367", + "data": "+001985-367", + "valid": false + }, + { + "description": "Invalid - missing sign", + "data": "001985-102", + "valid": false + }, + { + "description": "Invalid - basic format (no hyphen)", + "data": "+001985102", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Valid - 366th day of leap year 2004", + "data": "+002004-366", + "valid": true + }, + { + "description": "Valid - 365th day of non-leap year 2100", + "data": "+002100-365", + "valid": true + }, + { + "description": "Invalid - Day 368", + "data": "+002023-368", + "valid": false + }, + { + "description": "Invalid - Day 400", + "data": "+002023-400", + "valid": false + }, + { + "description": "Invalid - Day 500 with negative year", + "data": "-002023-500", + "valid": false + }, + { + "description": "Invalid - Day 999", + "data": "+002023-999", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/date/ordinal-extended/v1.test.json b/test/schemas/iso/datetime/2019/date/ordinal-extended/v1.test.json new file mode 100644 index 00000000..3b84296a --- /dev/null +++ b/test/schemas/iso/datetime/2019/date/ordinal-extended/v1.test.json @@ -0,0 +1,130 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/date/ordinal-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985102, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - 102nd day of 1985", + "data": "1985-102", + "valid": true + }, + { + "description": "Valid - 1st day of 2000", + "data": "2000-001", + "valid": true + }, + { + "description": "Valid - 366th day of 2000 (leap year)", + "data": "2000-366", + "valid": true + }, + { + "description": "Valid - 365th day of 2023 (non-leap year)", + "data": "2023-365", + "valid": true + }, + { + "description": "Valid - 1st day of year 0000", + "data": "0000-001", + "valid": true + }, + { + "description": "Invalid - day 000", + "data": "1985-000", + "valid": false + }, + { + "description": "Invalid - day 367", + "data": "1985-367", + "valid": false + }, + { + "description": "Invalid - day 999", + "data": "1985-999", + "valid": false + }, + { + "description": "Invalid - basic format (no hyphen)", + "data": "1985102", + "valid": false + }, + { + "description": "Invalid - missing hyphen", + "data": "1985102", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Valid - 366th day of 2004 (leap year)", + "data": "2004-366", + "valid": true + }, + { + "description": "Valid - 366th day of 2400 (leap year, divisible by 400)", + "data": "2400-366", + "valid": true + }, + { + "description": "Valid - 365th day of 2100 (non-leap year, century exception)", + "data": "2100-365", + "valid": true + }, + { + "description": "Valid - Day 032 (February 1st in non-leap year)", + "data": "2023-032", + "valid": true + }, + { + "description": "Valid - Day 060 (March 1st in leap year)", + "data": "2000-060", + "valid": true + }, + { + "description": "Invalid - Day 368", + "data": "2023-368", + "valid": false + }, + { + "description": "Invalid - Day 400", + "data": "2023-400", + "valid": false + }, + { + "description": "Invalid - Day 500", + "data": "2023-500", + "valid": false + }, + { + "description": "Invalid - Missing leading zeros (day 1)", + "data": "2023-1", + "valid": false + }, + { + "description": "Invalid - Missing leading zeros (day 01)", + "data": "2023-01", + "valid": false + }, + { + "description": "Invalid - Missing leading zeros (day 10)", + "data": "2023-10", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/date/week-basic/v1.test.json b/test/schemas/iso/datetime/2019/date/week-basic/v1.test.json new file mode 100644 index 00000000..4e45098a --- /dev/null +++ b/test/schemas/iso/datetime/2019/date/week-basic/v1.test.json @@ -0,0 +1,185 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/date/week-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985155, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - Friday of week 15, 1985 (day 5)", + "data": "1985W155", + "valid": true + }, + { + "description": "Valid - Monday of week 1, 2000 (day 1)", + "data": "2000W011", + "valid": true + }, + { + "description": "Valid - Sunday of week 52, 2023 (day 7)", + "data": "2023W527", + "valid": true + }, + { + "description": "Valid - Monday of week 1, year 0000 (day 1)", + "data": "0000W011", + "valid": true + }, + { + "description": "Valid - Sunday of week 53, year 9999 (day 7)", + "data": "9999W537", + "valid": true + }, + { + "description": "Valid - Tuesday of week 26, 2023 (day 2)", + "data": "2023W262", + "valid": true + }, + { + "description": "Valid - Wednesday of week 1, 2023 (day 3)", + "data": "2023W013", + "valid": true + }, + { + "description": "Valid - Thursday of week 40, 2023 (day 4)", + "data": "2023W404", + "valid": true + }, + { + "description": "Valid - Friday of week 10, 2023 (day 5)", + "data": "2023W105", + "valid": true + }, + { + "description": "Valid - Saturday of week 30, 2023 (day 6)", + "data": "2023W306", + "valid": true + }, + { + "description": "Invalid - week 00", + "data": "1985W005", + "valid": false + }, + { + "description": "Invalid - week 54", + "data": "1985W545", + "valid": false + }, + { + "description": "Invalid - day 0", + "data": "1985W150", + "valid": false + }, + { + "description": "Invalid - day 8", + "data": "1985W158", + "valid": false + }, + { + "description": "Invalid - missing W designator", + "data": "1985155", + "valid": false + }, + { + "description": "Invalid - lowercase w", + "data": "1985w155", + "valid": false + }, + { + "description": "Invalid - extended format (with hyphens)", + "data": "1985-W15-5", + "valid": false + }, + { + "description": "Invalid - too few digits", + "data": "1985W15", + "valid": false + }, + { + "description": "Invalid - too many digits", + "data": "1985W1555", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - spaces in date", + "data": "1985 W15 5", + "valid": false + }, + { + "description": "Valid - Week 53 day 1 (years with 53 weeks exist)", + "data": "2020W531", + "valid": true + }, + { + "description": "Valid - Week 53 day 7", + "data": "2015W537", + "valid": true + }, + { + "description": "Valid - Week 01 day 1", + "data": "2023W011", + "valid": true + }, + { + "description": "Valid - Week 52 day 7", + "data": "2022W527", + "valid": true + }, + { + "description": "Invalid - Week 54 day 1", + "data": "2023W541", + "valid": false + }, + { + "description": "Invalid - Week 55 day 1", + "data": "2023W551", + "valid": false + }, + { + "description": "Invalid - Week 99 day 1", + "data": "2023W991", + "valid": false + }, + { + "description": "Invalid - Week 01 day 0", + "data": "2023W010", + "valid": false + }, + { + "description": "Invalid - Week 01 day 9", + "data": "2023W019", + "valid": false + }, + { + "description": "Invalid - Missing leading zero in week (W1)", + "data": "2023W15", + "valid": false + }, + { + "description": "Invalid - negative year (requires expanded format)", + "data": "-001W011", + "valid": false + }, + { + "description": "Invalid - plus sign (requires expanded format)", + "data": "+001W011", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/date/week-expanded-basic/v1.test.json b/test/schemas/iso/datetime/2019/date/week-expanded-basic/v1.test.json new file mode 100644 index 00000000..f1143487 --- /dev/null +++ b/test/schemas/iso/datetime/2019/date/week-expanded-basic/v1.test.json @@ -0,0 +1,90 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/date/week-expanded-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985155, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - Friday (day 5) of week 15, 1985 with positive sign", + "data": "+001985W155", + "valid": true + }, + { + "description": "Valid - Monday (day 1) of week 1, year 1 BCE with negative sign", + "data": "-000001W011", + "valid": true + }, + { + "description": "Valid - Sunday (day 7) of week 53, year 999999 with positive sign", + "data": "+999999W537", + "valid": true + }, + { + "description": "Valid - Monday (day 1) of week 1, year 0 with positive sign", + "data": "+000000W011", + "valid": true + }, + { + "description": "Valid - Sunday (day 7) of week 52, year 10000 BCE with negative sign", + "data": "-010000W527", + "valid": true + }, + { + "description": "Invalid - week 00", + "data": "+001985W005", + "valid": false + }, + { + "description": "Invalid - week 54", + "data": "+001985W545", + "valid": false + }, + { + "description": "Invalid - day 0", + "data": "+001985W150", + "valid": false + }, + { + "description": "Invalid - day 8", + "data": "+001985W158", + "valid": false + }, + { + "description": "Invalid - missing sign", + "data": "001985W155", + "valid": false + }, + { + "description": "Invalid - missing W designator", + "data": "+001985155", + "valid": false + }, + { + "description": "Invalid - lowercase w", + "data": "+001985w155", + "valid": false + }, + { + "description": "Invalid - extended format (with hyphens)", + "data": "+001985-W15-5", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/date/week-expanded-extended/v1.test.json b/test/schemas/iso/datetime/2019/date/week-expanded-extended/v1.test.json new file mode 100644 index 00000000..ec3dcaf6 --- /dev/null +++ b/test/schemas/iso/datetime/2019/date/week-expanded-extended/v1.test.json @@ -0,0 +1,100 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/date/week-expanded-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985155, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - Friday (day 5) of week 15, 1985 with positive sign", + "data": "+001985-W15-5", + "valid": true + }, + { + "description": "Valid - Monday (day 1) of week 1, year 1 BCE with negative sign", + "data": "-000001-W01-1", + "valid": true + }, + { + "description": "Valid - Sunday (day 7) of week 53, year 999999 with positive sign", + "data": "+999999-W53-7", + "valid": true + }, + { + "description": "Valid - Monday (day 1) of week 1, year 0 with positive sign", + "data": "+000000-W01-1", + "valid": true + }, + { + "description": "Valid - Sunday (day 7) of week 52, year 10000 BCE with negative sign", + "data": "-010000-W52-7", + "valid": true + }, + { + "description": "Invalid - week 00", + "data": "+001985-W00-5", + "valid": false + }, + { + "description": "Invalid - week 54", + "data": "+001985-W54-5", + "valid": false + }, + { + "description": "Invalid - day 0", + "data": "+001985-W15-0", + "valid": false + }, + { + "description": "Invalid - day 8", + "data": "+001985-W15-8", + "valid": false + }, + { + "description": "Invalid - missing sign", + "data": "001985-W15-5", + "valid": false + }, + { + "description": "Invalid - missing W designator", + "data": "+001985-15-5", + "valid": false + }, + { + "description": "Invalid - lowercase w", + "data": "+001985-w15-5", + "valid": false + }, + { + "description": "Invalid - basic format (no hyphens)", + "data": "+001985W155", + "valid": false + }, + { + "description": "Invalid - missing first hyphen", + "data": "+001985W15-5", + "valid": false + }, + { + "description": "Invalid - missing second hyphen", + "data": "+001985-W155", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/date/week-expanded-reduced-basic/v1.test.json b/test/schemas/iso/datetime/2019/date/week-expanded-reduced-basic/v1.test.json new file mode 100644 index 00000000..214d1097 --- /dev/null +++ b/test/schemas/iso/datetime/2019/date/week-expanded-reduced-basic/v1.test.json @@ -0,0 +1,85 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/date/week-expanded-reduced-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985155, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - week 15 of 1985 with positive sign", + "data": "+001985W15", + "valid": true + }, + { + "description": "Valid - week 1 of year 1 BCE with negative sign", + "data": "-000001W01", + "valid": true + }, + { + "description": "Valid - week 53 of year 999999 with positive sign", + "data": "+999999W53", + "valid": true + }, + { + "description": "Valid - week 1 of year 0 with positive sign", + "data": "+000000W01", + "valid": true + }, + { + "description": "Valid - week 52 of year 10000 BCE with negative sign", + "data": "-010000W52", + "valid": true + }, + { + "description": "Invalid - week 00", + "data": "+001985W00", + "valid": false + }, + { + "description": "Invalid - week 54", + "data": "+001985W54", + "valid": false + }, + { + "description": "Invalid - missing sign", + "data": "001985W15", + "valid": false + }, + { + "description": "Invalid - missing W designator", + "data": "+00198515", + "valid": false + }, + { + "description": "Invalid - lowercase w", + "data": "+001985w15", + "valid": false + }, + { + "description": "Invalid - extended format (with hyphen)", + "data": "+001985-W15", + "valid": false + }, + { + "description": "Invalid - with day component", + "data": "+001985W155", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/date/week-expanded-reduced-extended/v1.test.json b/test/schemas/iso/datetime/2019/date/week-expanded-reduced-extended/v1.test.json new file mode 100644 index 00000000..5c299590 --- /dev/null +++ b/test/schemas/iso/datetime/2019/date/week-expanded-reduced-extended/v1.test.json @@ -0,0 +1,85 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/date/week-expanded-reduced-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985155, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - week 15 of 1985 with positive sign", + "data": "+001985-W15", + "valid": true + }, + { + "description": "Valid - week 1 of year 1 BCE with negative sign", + "data": "-000001-W01", + "valid": true + }, + { + "description": "Valid - week 53 of year 999999 with positive sign", + "data": "+999999-W53", + "valid": true + }, + { + "description": "Valid - week 1 of year 0 with positive sign", + "data": "+000000-W01", + "valid": true + }, + { + "description": "Valid - week 52 of year 10000 BCE with negative sign", + "data": "-010000-W52", + "valid": true + }, + { + "description": "Invalid - week 00", + "data": "+001985-W00", + "valid": false + }, + { + "description": "Invalid - week 54", + "data": "+001985-W54", + "valid": false + }, + { + "description": "Invalid - missing sign", + "data": "001985-W15", + "valid": false + }, + { + "description": "Invalid - missing W designator", + "data": "+001985-15", + "valid": false + }, + { + "description": "Invalid - lowercase w", + "data": "+001985-w15", + "valid": false + }, + { + "description": "Invalid - basic format (no hyphen)", + "data": "+001985W15", + "valid": false + }, + { + "description": "Invalid - with day component", + "data": "+001985-W15-5", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/date/week-extended/v1.test.json b/test/schemas/iso/datetime/2019/date/week-extended/v1.test.json new file mode 100644 index 00000000..3ea56126 --- /dev/null +++ b/test/schemas/iso/datetime/2019/date/week-extended/v1.test.json @@ -0,0 +1,125 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/date/week-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985155, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - Friday of week 15, 1985 (day 5)", + "data": "1985-W15-5", + "valid": true + }, + { + "description": "Valid - Monday of week 1, 2000 (day 1)", + "data": "2000-W01-1", + "valid": true + }, + { + "description": "Valid - Sunday of week 52, 2023 (day 7)", + "data": "2023-W52-7", + "valid": true + }, + { + "description": "Valid - Monday of week 1, year 0000 (day 1)", + "data": "0000-W01-1", + "valid": true + }, + { + "description": "Valid - Sunday of week 53, year 9999 (day 7)", + "data": "9999-W53-7", + "valid": true + }, + { + "description": "Invalid - week 00", + "data": "1985-W00-5", + "valid": false + }, + { + "description": "Invalid - week 54", + "data": "1985-W54-5", + "valid": false + }, + { + "description": "Invalid - day 0", + "data": "1985-W15-0", + "valid": false + }, + { + "description": "Invalid - day 8", + "data": "1985-W15-8", + "valid": false + }, + { + "description": "Invalid - missing W designator", + "data": "1985-15-5", + "valid": false + }, + { + "description": "Invalid - lowercase w", + "data": "1985-w15-5", + "valid": false + }, + { + "description": "Invalid - basic format (no hyphens)", + "data": "1985W155", + "valid": false + }, + { + "description": "Invalid - missing first hyphen", + "data": "1985W15-5", + "valid": false + }, + { + "description": "Invalid - missing second hyphen", + "data": "1985-W155", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Valid - Week 53 day 1 (years with 53 weeks exist)", + "data": "2020-W53-1", + "valid": true + }, + { + "description": "Valid - Week 53 day 7", + "data": "2015-W53-7", + "valid": true + }, + { + "description": "Invalid - Week 54 day 1", + "data": "2023-W54-1", + "valid": false + }, + { + "description": "Invalid - Week 55 day 1", + "data": "2023-W55-1", + "valid": false + }, + { + "description": "Invalid - Week 99 day 1", + "data": "2023-W99-1", + "valid": false + }, + { + "description": "Invalid - Week 01 day 9", + "data": "2023-W01-9", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/date/week-reduced-basic/v1.test.json b/test/schemas/iso/datetime/2019/date/week-reduced-basic/v1.test.json new file mode 100644 index 00000000..bc77b53f --- /dev/null +++ b/test/schemas/iso/datetime/2019/date/week-reduced-basic/v1.test.json @@ -0,0 +1,100 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/date/week-reduced-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985155, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - week 15 of 1985", + "data": "1985W15", + "valid": true + }, + { + "description": "Valid - week 1 of 2000", + "data": "2000W01", + "valid": true + }, + { + "description": "Valid - week 52 of 2023", + "data": "2023W52", + "valid": true + }, + { + "description": "Valid - week 1 of year 0000", + "data": "0000W01", + "valid": true + }, + { + "description": "Valid - week 53 of year 9999", + "data": "9999W53", + "valid": true + }, + { + "description": "Invalid - week 00", + "data": "1985W00", + "valid": false + }, + { + "description": "Invalid - week 54", + "data": "1985W54", + "valid": false + }, + { + "description": "Invalid - missing W designator", + "data": "198515", + "valid": false + }, + { + "description": "Invalid - lowercase w", + "data": "1985w15", + "valid": false + }, + { + "description": "Invalid - extended format (with hyphen)", + "data": "1985-W15", + "valid": false + }, + { + "description": "Invalid - with day component", + "data": "1985W155", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Valid - Week 53 (years with 53 weeks exist)", + "data": "2020W53", + "valid": true + }, + { + "description": "Invalid - Week 54", + "data": "2023W54", + "valid": false + }, + { + "description": "Invalid - Week 55", + "data": "2023W55", + "valid": false + }, + { + "description": "Invalid - Week 99", + "data": "2023W99", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/date/week-reduced-extended/v1.test.json b/test/schemas/iso/datetime/2019/date/week-reduced-extended/v1.test.json new file mode 100644 index 00000000..538c6899 --- /dev/null +++ b/test/schemas/iso/datetime/2019/date/week-reduced-extended/v1.test.json @@ -0,0 +1,80 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/date/week-reduced-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985155, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - week 15 of 1985", + "data": "1985-W15", + "valid": true + }, + { + "description": "Valid - week 1 of 2000", + "data": "2000-W01", + "valid": true + }, + { + "description": "Valid - week 52 of 2023", + "data": "2023-W52", + "valid": true + }, + { + "description": "Valid - week 1 of year 0000", + "data": "0000-W01", + "valid": true + }, + { + "description": "Valid - week 53 of year 9999", + "data": "9999-W53", + "valid": true + }, + { + "description": "Invalid - week 00", + "data": "1985-W00", + "valid": false + }, + { + "description": "Invalid - week 54", + "data": "1985-W54", + "valid": false + }, + { + "description": "Invalid - missing W designator", + "data": "1985-15", + "valid": false + }, + { + "description": "Invalid - lowercase w", + "data": "1985-w15", + "valid": false + }, + { + "description": "Invalid - basic format (no hyphen)", + "data": "1985W15", + "valid": false + }, + { + "description": "Invalid - with day component", + "data": "1985-W15-5", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/datetime/calendar-basic/v1.test.json b/test/schemas/iso/datetime/2019/datetime/calendar-basic/v1.test.json new file mode 100644 index 00000000..e2b23440 --- /dev/null +++ b/test/schemas/iso/datetime/2019/datetime/calendar-basic/v1.test.json @@ -0,0 +1,430 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/datetime/calendar-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 20180101120000, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 1985-04-12 23:20:50", + "data": "19850412T232050", + "valid": true + }, + { + "description": "Valid - midnight 2000-01-01 00:00:00", + "data": "20000101T000000", + "valid": true + }, + { + "description": "Valid - leap second 2023-12-31 23:59:60", + "data": "20231231T235960", + "valid": true + }, + { + "description": "Valid - leap day 2020-02-29 12:00:00", + "data": "20200229T120000", + "valid": true + }, + { + "description": "Valid - end of year 2023-12-31 23:59:59", + "data": "20231231T235959", + "valid": true + }, + { + "description": "Valid - start of year 2024-01-01 00:00:00", + "data": "20240101T000000", + "valid": true + }, + { + "description": "Valid - historical date 1900-03-15 06:30:45", + "data": "19000315T063045", + "valid": true + }, + { + "description": "Valid - future date 2100-08-20 18:45:30", + "data": "21000820T184530", + "valid": true + }, + { + "description": "Invalid - missing T designator", + "data": "19850412232050", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "19850412t232050", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - extended format (has hyphens and colons)", + "data": "1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - month 00", + "data": "20230012T120000", + "valid": false + }, + { + "description": "Invalid - month 13", + "data": "20231312T120000", + "valid": false + }, + { + "description": "Invalid - month 99", + "data": "20239912T120000", + "valid": false + }, + { + "description": "Invalid - day 00", + "data": "20230100T120000", + "valid": false + }, + { + "description": "Invalid - day 32", + "data": "20230132T120000", + "valid": false + }, + { + "description": "Invalid - day 99", + "data": "20230199T120000", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "20230115T240000", + "valid": false + }, + { + "description": "Invalid - hour 25", + "data": "20230115T250000", + "valid": false + }, + { + "description": "Invalid - hour 99", + "data": "20230115T990000", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "20230115T126000", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "20230115T129900", + "valid": false + }, + { + "description": "Invalid - second 61", + "data": "20230115T120061", + "valid": false + }, + { + "description": "Invalid - second 99", + "data": "20230115T120099", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "20230115T000000", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "20230115T230000", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "20230115T120000", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "20230115T125900", + "valid": true + }, + { + "description": "Valid - second 00 (minimum)", + "data": "20230115T120000", + "valid": true + }, + { + "description": "Valid - second 59", + "data": "20230115T120059", + "valid": true + }, + { + "description": "Valid - second 60 (leap second)", + "data": "20230630T235960", + "valid": true + }, + { + "description": "Invalid - too short", + "data": "2023011512000", + "valid": false + }, + { + "description": "Invalid - too long", + "data": "20230115T1200000", + "valid": false + }, + { + "description": "Invalid - with Z designator", + "data": "20230115T120000Z", + "valid": false + }, + { + "description": "Invalid - with time shift", + "data": "20230115T120000+0100", + "valid": false + }, + { + "description": "Invalid - with decimal seconds", + "data": "20230115T120000.5", + "valid": false + }, + { + "description": "Invalid - partial time (hour and minute only)", + "data": "20230115T1200", + "valid": false + }, + { + "description": "Invalid - partial time (hour only)", + "data": "20230115T12", + "valid": false + }, + { + "description": "Invalid - date only", + "data": "20230115", + "valid": false + }, + { + "description": "Invalid - time only", + "data": "T120000", + "valid": false + }, + { + "description": "Valid - January (month 01)", + "data": "20230115T120000", + "valid": true + }, + { + "description": "Valid - December (month 12)", + "data": "20231231T120000", + "valid": true + }, + { + "description": "Invalid - spaces in datetime", + "data": "2023 01 15T12 00 00", + "valid": false + }, + { + "description": "Invalid - missing year digits", + "data": "230115T120000", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "20230115T120000X", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning", + "data": "X20230115T120000", + "valid": false + }, + { + "description": "Valid - year 0000", + "data": "00000101T120000", + "valid": true + }, + { + "description": "Valid - year 9999", + "data": "99991231T235959", + "valid": true + }, + { + "description": "Invalid - 30 February", + "data": "20230230T120000", + "valid": false + }, + { + "description": "Invalid - 31 February", + "data": "20230231T120000", + "valid": false + }, + { + "description": "Valid - 29 February (leap year validation is consumer responsibility)", + "data": "20230229T120000", + "valid": true + }, + { + "description": "Invalid - 31 April", + "data": "20230431T120000", + "valid": false + }, + { + "description": "Invalid - 31 June", + "data": "20230631T120000", + "valid": false + }, + { + "description": "Invalid - 31 September", + "data": "20230931T120000", + "valid": false + }, + { + "description": "Invalid - 31 November", + "data": "20231131T120000", + "valid": false + }, + { + "description": "Invalid - 32 January", + "data": "20230132T120000", + "valid": false + }, + { + "description": "Invalid - 32 March", + "data": "20230332T120000", + "valid": false + }, + { + "description": "Invalid - 32 May", + "data": "20230532T120000", + "valid": false + }, + { + "description": "Invalid - 32 July", + "data": "20230732T120000", + "valid": false + }, + { + "description": "Invalid - 32 August", + "data": "20230832T120000", + "valid": false + }, + { + "description": "Invalid - 32 October", + "data": "20231032T120000", + "valid": false + }, + { + "description": "Invalid - 32 December", + "data": "20231232T120000", + "valid": false + }, + { + "description": "Invalid - letter in year", + "data": "2O230115T120000", + "valid": false + }, + { + "description": "Invalid - letter in month", + "data": "2023O115T120000", + "valid": false + }, + { + "description": "Invalid - letter in day", + "data": "202301O5T120000", + "valid": false + }, + { + "description": "Invalid - letter in hour", + "data": "20230115TO20000", + "valid": false + }, + { + "description": "Invalid - letter in minute", + "data": "20230115T12O000", + "valid": false + }, + { + "description": "Invalid - letter in second", + "data": "20230115T1200O0", + "valid": false + }, + { + "description": "Valid - 30 April (30-day month)", + "data": "20230430T120000", + "valid": true + }, + { + "description": "Valid - 30 June (30-day month)", + "data": "20230630T120000", + "valid": true + }, + { + "description": "Valid - 30 September (30-day month)", + "data": "20230930T120000", + "valid": true + }, + { + "description": "Valid - 30 November (30-day month)", + "data": "20231130T120000", + "valid": true + }, + { + "description": "Valid - 31 January (31-day month)", + "data": "20230131T120000", + "valid": true + }, + { + "description": "Valid - 31 March (31-day month)", + "data": "20230331T120000", + "valid": true + }, + { + "description": "Valid - 31 May (31-day month)", + "data": "20230531T120000", + "valid": true + }, + { + "description": "Valid - 31 July (31-day month)", + "data": "20230731T120000", + "valid": true + }, + { + "description": "Valid - 31 August (31-day month)", + "data": "20230831T120000", + "valid": true + }, + { + "description": "Valid - 31 October (31-day month)", + "data": "20231031T120000", + "valid": true + }, + { + "description": "Valid - 31 December (31-day month)", + "data": "20231231T120000", + "valid": true + } + ] +} diff --git a/test/schemas/iso/datetime/2019/datetime/calendar-extended/v1.test.json b/test/schemas/iso/datetime/2019/datetime/calendar-extended/v1.test.json new file mode 100644 index 00000000..4e126ccd --- /dev/null +++ b/test/schemas/iso/datetime/2019/datetime/calendar-extended/v1.test.json @@ -0,0 +1,440 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/datetime/calendar-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 20180101120000, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 1985-04-12 23:20:50", + "data": "1985-04-12T23:20:50", + "valid": true + }, + { + "description": "Valid - midnight 2000-01-01 00:00:00", + "data": "2000-01-01T00:00:00", + "valid": true + }, + { + "description": "Valid - leap second 2023-12-31 23:59:60", + "data": "2023-12-31T23:59:60", + "valid": true + }, + { + "description": "Valid - leap day 2020-02-29 12:00:00", + "data": "2020-02-29T12:00:00", + "valid": true + }, + { + "description": "Valid - end of year 2023-12-31 23:59:59", + "data": "2023-12-31T23:59:59", + "valid": true + }, + { + "description": "Valid - start of year 2024-01-01 00:00:00", + "data": "2024-01-01T00:00:00", + "valid": true + }, + { + "description": "Valid - historical date 1900-03-15 06:30:45", + "data": "1900-03-15T06:30:45", + "valid": true + }, + { + "description": "Valid - future date 2100-08-20 18:45:30", + "data": "2100-08-20T18:45:30", + "valid": true + }, + { + "description": "Invalid - missing T designator", + "data": "1985-04-1223:20:50", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "1985-04-12t23:20:50", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - basic format (no hyphens or colons)", + "data": "19850412T232050", + "valid": false + }, + { + "description": "Invalid - month 00", + "data": "2023-00-12T12:00:00", + "valid": false + }, + { + "description": "Invalid - month 13", + "data": "2023-13-12T12:00:00", + "valid": false + }, + { + "description": "Invalid - month 99", + "data": "2023-99-12T12:00:00", + "valid": false + }, + { + "description": "Invalid - day 00", + "data": "2023-01-00T12:00:00", + "valid": false + }, + { + "description": "Invalid - day 32", + "data": "2023-01-32T12:00:00", + "valid": false + }, + { + "description": "Invalid - day 99", + "data": "2023-01-99T12:00:00", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "2023-01-15T24:00:00", + "valid": false + }, + { + "description": "Invalid - hour 25", + "data": "2023-01-15T25:00:00", + "valid": false + }, + { + "description": "Invalid - hour 99", + "data": "2023-01-15T99:00:00", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "2023-01-15T12:60:00", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "2023-01-15T12:99:00", + "valid": false + }, + { + "description": "Invalid - second 61", + "data": "2023-01-15T12:00:61", + "valid": false + }, + { + "description": "Invalid - second 99", + "data": "2023-01-15T12:00:99", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "2023-01-15T00:00:00", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "2023-01-15T23:00:00", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "2023-01-15T12:00:00", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "2023-01-15T12:59:00", + "valid": true + }, + { + "description": "Valid - second 00 (minimum)", + "data": "2023-01-15T12:00:00", + "valid": true + }, + { + "description": "Valid - second 59", + "data": "2023-01-15T12:00:59", + "valid": true + }, + { + "description": "Valid - second 60 (leap second)", + "data": "2023-06-30T23:59:60", + "valid": true + }, + { + "description": "Invalid - missing hyphens in date", + "data": "20230115T12:00:00", + "valid": false + }, + { + "description": "Invalid - missing colons in time", + "data": "2023-01-15T120000", + "valid": false + }, + { + "description": "Invalid - with Z designator", + "data": "2023-01-15T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - with time shift", + "data": "2023-01-15T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - with decimal seconds", + "data": "2023-01-15T12:00:00.5", + "valid": false + }, + { + "description": "Invalid - partial time (hour and minute only)", + "data": "2023-01-15T12:00", + "valid": false + }, + { + "description": "Invalid - partial time (hour only)", + "data": "2023-01-15T12", + "valid": false + }, + { + "description": "Invalid - date only", + "data": "2023-01-15", + "valid": false + }, + { + "description": "Invalid - time only", + "data": "T12:00:00", + "valid": false + }, + { + "description": "Valid - January (month 01)", + "data": "2023-01-15T12:00:00", + "valid": true + }, + { + "description": "Valid - December (month 12)", + "data": "2023-12-31T12:00:00", + "valid": true + }, + { + "description": "Invalid - spaces in datetime", + "data": "2023-01-15 T 12:00:00", + "valid": false + }, + { + "description": "Invalid - extra hyphen in date", + "data": "2023--01-15T12:00:00", + "valid": false + }, + { + "description": "Invalid - extra colon in time", + "data": "2023-01-15T12::00:00", + "valid": false + }, + { + "description": "Invalid - missing year digits", + "data": "23-01-15T12:00:00", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "2023-01-15T12:00:00X", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning", + "data": "X2023-01-15T12:00:00", + "valid": false + }, + { + "description": "Valid - year 0000", + "data": "0000-01-01T12:00:00", + "valid": true + }, + { + "description": "Valid - year 9999", + "data": "9999-12-31T23:59:59", + "valid": true + }, + { + "description": "Invalid - 30 February", + "data": "2023-02-30T12:00:00", + "valid": false + }, + { + "description": "Invalid - 31 February", + "data": "2023-02-31T12:00:00", + "valid": false + }, + { + "description": "Valid - 29 February (leap year validation is consumer responsibility)", + "data": "2023-02-29T12:00:00", + "valid": true + }, + { + "description": "Invalid - 31 April", + "data": "2023-04-31T12:00:00", + "valid": false + }, + { + "description": "Invalid - 31 June", + "data": "2023-06-31T12:00:00", + "valid": false + }, + { + "description": "Invalid - 31 September", + "data": "2023-09-31T12:00:00", + "valid": false + }, + { + "description": "Invalid - 31 November", + "data": "2023-11-31T12:00:00", + "valid": false + }, + { + "description": "Invalid - 32 January", + "data": "2023-01-32T12:00:00", + "valid": false + }, + { + "description": "Invalid - 32 March", + "data": "2023-03-32T12:00:00", + "valid": false + }, + { + "description": "Invalid - 32 May", + "data": "2023-05-32T12:00:00", + "valid": false + }, + { + "description": "Invalid - 32 July", + "data": "2023-07-32T12:00:00", + "valid": false + }, + { + "description": "Invalid - 32 August", + "data": "2023-08-32T12:00:00", + "valid": false + }, + { + "description": "Invalid - 32 October", + "data": "2023-10-32T12:00:00", + "valid": false + }, + { + "description": "Invalid - 32 December", + "data": "2023-12-32T12:00:00", + "valid": false + }, + { + "description": "Invalid - letter in year", + "data": "2O23-01-15T12:00:00", + "valid": false + }, + { + "description": "Invalid - letter in month", + "data": "2023-O1-15T12:00:00", + "valid": false + }, + { + "description": "Invalid - letter in day", + "data": "2023-01-O5T12:00:00", + "valid": false + }, + { + "description": "Invalid - letter in hour", + "data": "2023-01-15TO2:00:00", + "valid": false + }, + { + "description": "Invalid - letter in minute", + "data": "2023-01-15T12:O0:00", + "valid": false + }, + { + "description": "Invalid - letter in second", + "data": "2023-01-15T12:00:O0", + "valid": false + }, + { + "description": "Valid - 30 April (30-day month)", + "data": "2023-04-30T12:00:00", + "valid": true + }, + { + "description": "Valid - 30 June (30-day month)", + "data": "2023-06-30T12:00:00", + "valid": true + }, + { + "description": "Valid - 30 September (30-day month)", + "data": "2023-09-30T12:00:00", + "valid": true + }, + { + "description": "Valid - 30 November (30-day month)", + "data": "2023-11-30T12:00:00", + "valid": true + }, + { + "description": "Valid - 31 January (31-day month)", + "data": "2023-01-31T12:00:00", + "valid": true + }, + { + "description": "Valid - 31 March (31-day month)", + "data": "2023-03-31T12:00:00", + "valid": true + }, + { + "description": "Valid - 31 May (31-day month)", + "data": "2023-05-31T12:00:00", + "valid": true + }, + { + "description": "Valid - 31 July (31-day month)", + "data": "2023-07-31T12:00:00", + "valid": true + }, + { + "description": "Valid - 31 August (31-day month)", + "data": "2023-08-31T12:00:00", + "valid": true + }, + { + "description": "Valid - 31 October (31-day month)", + "data": "2023-10-31T12:00:00", + "valid": true + }, + { + "description": "Valid - 31 December (31-day month)", + "data": "2023-12-31T12:00:00", + "valid": true + } + ] +} diff --git a/test/schemas/iso/datetime/2019/datetime/calendar-minute-basic/v1.test.json b/test/schemas/iso/datetime/2019/datetime/calendar-minute-basic/v1.test.json new file mode 100644 index 00000000..6ff0aa28 --- /dev/null +++ b/test/schemas/iso/datetime/2019/datetime/calendar-minute-basic/v1.test.json @@ -0,0 +1,395 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/datetime/calendar-minute-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 201801011200, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 1985-04-12 10:15", + "data": "19850412T1015", + "valid": true + }, + { + "description": "Valid - midnight 2000-01-01 00:00", + "data": "20000101T0000", + "valid": true + }, + { + "description": "Valid - end of day 2023-12-31 23:59", + "data": "20231231T2359", + "valid": true + }, + { + "description": "Valid - leap day 2020-02-29 12:00", + "data": "20200229T1200", + "valid": true + }, + { + "description": "Valid - start of year 2024-01-01 00:00", + "data": "20240101T0000", + "valid": true + }, + { + "description": "Valid - historical date 1900-03-15 06:30", + "data": "19000315T0630", + "valid": true + }, + { + "description": "Valid - future date 2100-08-20 18:45", + "data": "21000820T1845", + "valid": true + }, + { + "description": "Invalid - missing T designator", + "data": "198504121015", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "19850412t1015", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - extended format (has hyphens and colons)", + "data": "1985-04-12T10:15", + "valid": false + }, + { + "description": "Invalid - month 00", + "data": "20230012T1200", + "valid": false + }, + { + "description": "Invalid - month 13", + "data": "20231312T1200", + "valid": false + }, + { + "description": "Invalid - month 99", + "data": "20239912T1200", + "valid": false + }, + { + "description": "Invalid - day 00", + "data": "20230100T1200", + "valid": false + }, + { + "description": "Invalid - day 32", + "data": "20230132T1200", + "valid": false + }, + { + "description": "Invalid - day 99", + "data": "20230199T1200", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "20230115T2400", + "valid": false + }, + { + "description": "Invalid - hour 25", + "data": "20230115T2500", + "valid": false + }, + { + "description": "Invalid - hour 99", + "data": "20230115T9900", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "20230115T1260", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "20230115T1299", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "20230115T0000", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "20230115T2300", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "20230115T1200", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "20230115T1259", + "valid": true + }, + { + "description": "Invalid - with seconds", + "data": "20230115T120000", + "valid": false + }, + { + "description": "Invalid - with Z designator", + "data": "20230115T1200Z", + "valid": false + }, + { + "description": "Invalid - with time shift", + "data": "20230115T1200+0100", + "valid": false + }, + { + "description": "Invalid - with decimal minutes", + "data": "20230115T1200.5", + "valid": false + }, + { + "description": "Invalid - partial time (hour only)", + "data": "20230115T12", + "valid": false + }, + { + "description": "Invalid - date only", + "data": "20230115", + "valid": false + }, + { + "description": "Invalid - time only", + "data": "T1200", + "valid": false + }, + { + "description": "Valid - January (month 01)", + "data": "20230115T1200", + "valid": true + }, + { + "description": "Valid - December (month 12)", + "data": "20231231T1200", + "valid": true + }, + { + "description": "Invalid - spaces in datetime", + "data": "2023 01 15T12 00", + "valid": false + }, + { + "description": "Invalid - missing year digits", + "data": "230115T1200", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "20230115T1200X", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning", + "data": "X20230115T1200", + "valid": false + }, + { + "description": "Invalid - too short (missing time digits)", + "data": "20230115T120", + "valid": false + }, + { + "description": "Invalid - too long", + "data": "20230115T12000", + "valid": false + }, + { + "description": "Valid - year 0000", + "data": "00000101T1200", + "valid": true + }, + { + "description": "Valid - year 9999", + "data": "99991231T2359", + "valid": true + }, + { + "description": "Invalid - 30 February", + "data": "20230230T1200", + "valid": false + }, + { + "description": "Invalid - 31 February", + "data": "20230231T1200", + "valid": false + }, + { + "description": "Valid - 29 February (leap year validation is consumer responsibility)", + "data": "20230229T1200", + "valid": true + }, + { + "description": "Invalid - 31 April", + "data": "20230431T1200", + "valid": false + }, + { + "description": "Invalid - 31 June", + "data": "20230631T1200", + "valid": false + }, + { + "description": "Invalid - 31 September", + "data": "20230931T1200", + "valid": false + }, + { + "description": "Invalid - 31 November", + "data": "20231131T1200", + "valid": false + }, + { + "description": "Invalid - 32 January", + "data": "20230132T1200", + "valid": false + }, + { + "description": "Invalid - 32 March", + "data": "20230332T1200", + "valid": false + }, + { + "description": "Invalid - 32 May", + "data": "20230532T1200", + "valid": false + }, + { + "description": "Invalid - 32 July", + "data": "20230732T1200", + "valid": false + }, + { + "description": "Invalid - 32 August", + "data": "20230832T1200", + "valid": false + }, + { + "description": "Invalid - 32 October", + "data": "20231032T1200", + "valid": false + }, + { + "description": "Invalid - 32 December", + "data": "20231232T1200", + "valid": false + }, + { + "description": "Invalid - letter in year", + "data": "2O230115T1200", + "valid": false + }, + { + "description": "Invalid - letter in month", + "data": "2023O115T1200", + "valid": false + }, + { + "description": "Invalid - letter in day", + "data": "202301O5T1200", + "valid": false + }, + { + "description": "Invalid - letter in hour", + "data": "20230115T1O00", + "valid": false + }, + { + "description": "Invalid - letter in minute", + "data": "20230115T12O0", + "valid": false + }, + { + "description": "Valid - 30 April (30-day month)", + "data": "20230430T1200", + "valid": true + }, + { + "description": "Valid - 30 June (30-day month)", + "data": "20230630T1200", + "valid": true + }, + { + "description": "Valid - 30 September (30-day month)", + "data": "20230930T1200", + "valid": true + }, + { + "description": "Valid - 30 November (30-day month)", + "data": "20231130T1200", + "valid": true + }, + { + "description": "Valid - 31 January (31-day month)", + "data": "20230131T1200", + "valid": true + }, + { + "description": "Valid - 31 March (31-day month)", + "data": "20230331T1200", + "valid": true + }, + { + "description": "Valid - 31 May (31-day month)", + "data": "20230531T1200", + "valid": true + }, + { + "description": "Valid - 31 July (31-day month)", + "data": "20230731T1200", + "valid": true + }, + { + "description": "Valid - 31 August (31-day month)", + "data": "20230831T1200", + "valid": true + }, + { + "description": "Valid - 31 October (31-day month)", + "data": "20231031T1200", + "valid": true + }, + { + "description": "Valid - 31 December (31-day month)", + "data": "20231231T1200", + "valid": true + } + ] +} diff --git a/test/schemas/iso/datetime/2019/datetime/calendar-minute-extended/v1.test.json b/test/schemas/iso/datetime/2019/datetime/calendar-minute-extended/v1.test.json new file mode 100644 index 00000000..95ac124a --- /dev/null +++ b/test/schemas/iso/datetime/2019/datetime/calendar-minute-extended/v1.test.json @@ -0,0 +1,405 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/datetime/calendar-minute-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 201801011200, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 1985-04-12 10:15", + "data": "1985-04-12T10:15", + "valid": true + }, + { + "description": "Valid - midnight 2000-01-01 00:00", + "data": "2000-01-01T00:00", + "valid": true + }, + { + "description": "Valid - end of day 2023-12-31 23:59", + "data": "2023-12-31T23:59", + "valid": true + }, + { + "description": "Valid - leap day 2020-02-29 12:00", + "data": "2020-02-29T12:00", + "valid": true + }, + { + "description": "Valid - start of year 2024-01-01 00:00", + "data": "2024-01-01T00:00", + "valid": true + }, + { + "description": "Valid - historical date 1900-03-15 06:30", + "data": "1900-03-15T06:30", + "valid": true + }, + { + "description": "Valid - future date 2100-08-20 18:45", + "data": "2100-08-20T18:45", + "valid": true + }, + { + "description": "Invalid - missing T designator", + "data": "1985-04-1210:15", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "1985-04-12t10:15", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - basic format (no hyphens or colons)", + "data": "19850412T1015", + "valid": false + }, + { + "description": "Invalid - month 00", + "data": "2023-00-12T12:00", + "valid": false + }, + { + "description": "Invalid - month 13", + "data": "2023-13-12T12:00", + "valid": false + }, + { + "description": "Invalid - month 99", + "data": "2023-99-12T12:00", + "valid": false + }, + { + "description": "Invalid - day 00", + "data": "2023-01-00T12:00", + "valid": false + }, + { + "description": "Invalid - day 32", + "data": "2023-01-32T12:00", + "valid": false + }, + { + "description": "Invalid - day 99", + "data": "2023-01-99T12:00", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "2023-01-15T24:00", + "valid": false + }, + { + "description": "Invalid - hour 25", + "data": "2023-01-15T25:00", + "valid": false + }, + { + "description": "Invalid - hour 99", + "data": "2023-01-15T99:00", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "2023-01-15T12:60", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "2023-01-15T12:99", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "2023-01-15T00:00", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "2023-01-15T23:00", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "2023-01-15T12:00", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "2023-01-15T12:59", + "valid": true + }, + { + "description": "Invalid - missing hyphens in date", + "data": "20230115T12:00", + "valid": false + }, + { + "description": "Invalid - missing colon in time", + "data": "2023-01-15T1200", + "valid": false + }, + { + "description": "Invalid - with seconds", + "data": "2023-01-15T12:00:00", + "valid": false + }, + { + "description": "Invalid - with Z designator", + "data": "2023-01-15T12:00Z", + "valid": false + }, + { + "description": "Invalid - with time shift", + "data": "2023-01-15T12:00+01:00", + "valid": false + }, + { + "description": "Invalid - with decimal minutes", + "data": "2023-01-15T12:00.5", + "valid": false + }, + { + "description": "Invalid - partial time (hour only)", + "data": "2023-01-15T12", + "valid": false + }, + { + "description": "Invalid - date only", + "data": "2023-01-15", + "valid": false + }, + { + "description": "Invalid - time only", + "data": "T12:00", + "valid": false + }, + { + "description": "Valid - January (month 01)", + "data": "2023-01-15T12:00", + "valid": true + }, + { + "description": "Valid - December (month 12)", + "data": "2023-12-31T12:00", + "valid": true + }, + { + "description": "Invalid - spaces in datetime", + "data": "2023-01-15 T 12:00", + "valid": false + }, + { + "description": "Invalid - extra hyphen in date", + "data": "2023--01-15T12:00", + "valid": false + }, + { + "description": "Invalid - extra colon in time", + "data": "2023-01-15T12::00", + "valid": false + }, + { + "description": "Invalid - missing year digits", + "data": "23-01-15T12:00", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "2023-01-15T12:00X", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning", + "data": "X2023-01-15T12:00", + "valid": false + }, + { + "description": "Valid - year 0000", + "data": "0000-01-01T12:00", + "valid": true + }, + { + "description": "Valid - year 9999", + "data": "9999-12-31T23:59", + "valid": true + }, + { + "description": "Invalid - 30 February", + "data": "2023-02-30T12:00", + "valid": false + }, + { + "description": "Invalid - 31 February", + "data": "2023-02-31T12:00", + "valid": false + }, + { + "description": "Valid - 29 February (leap year validation is consumer responsibility)", + "data": "2023-02-29T12:00", + "valid": true + }, + { + "description": "Invalid - 31 April", + "data": "2023-04-31T12:00", + "valid": false + }, + { + "description": "Invalid - 31 June", + "data": "2023-06-31T12:00", + "valid": false + }, + { + "description": "Invalid - 31 September", + "data": "2023-09-31T12:00", + "valid": false + }, + { + "description": "Invalid - 31 November", + "data": "2023-11-31T12:00", + "valid": false + }, + { + "description": "Invalid - 32 January", + "data": "2023-01-32T12:00", + "valid": false + }, + { + "description": "Invalid - 32 March", + "data": "2023-03-32T12:00", + "valid": false + }, + { + "description": "Invalid - 32 May", + "data": "2023-05-32T12:00", + "valid": false + }, + { + "description": "Invalid - 32 July", + "data": "2023-07-32T12:00", + "valid": false + }, + { + "description": "Invalid - 32 August", + "data": "2023-08-32T12:00", + "valid": false + }, + { + "description": "Invalid - 32 October", + "data": "2023-10-32T12:00", + "valid": false + }, + { + "description": "Invalid - 32 December", + "data": "2023-12-32T12:00", + "valid": false + }, + { + "description": "Invalid - letter in year", + "data": "2O23-01-15T12:00", + "valid": false + }, + { + "description": "Invalid - letter in month", + "data": "2023-O1-15T12:00", + "valid": false + }, + { + "description": "Invalid - letter in day", + "data": "2023-01-O5T12:00", + "valid": false + }, + { + "description": "Invalid - letter in hour", + "data": "2023-01-15T1O:00", + "valid": false + }, + { + "description": "Invalid - letter in minute", + "data": "2023-01-15T12:O0", + "valid": false + }, + { + "description": "Valid - 30 April (30-day month)", + "data": "2023-04-30T12:00", + "valid": true + }, + { + "description": "Valid - 30 June (30-day month)", + "data": "2023-06-30T12:00", + "valid": true + }, + { + "description": "Valid - 30 September (30-day month)", + "data": "2023-09-30T12:00", + "valid": true + }, + { + "description": "Valid - 30 November (30-day month)", + "data": "2023-11-30T12:00", + "valid": true + }, + { + "description": "Valid - 31 January (31-day month)", + "data": "2023-01-31T12:00", + "valid": true + }, + { + "description": "Valid - 31 March (31-day month)", + "data": "2023-03-31T12:00", + "valid": true + }, + { + "description": "Valid - 31 May (31-day month)", + "data": "2023-05-31T12:00", + "valid": true + }, + { + "description": "Valid - 31 July (31-day month)", + "data": "2023-07-31T12:00", + "valid": true + }, + { + "description": "Valid - 31 August (31-day month)", + "data": "2023-08-31T12:00", + "valid": true + }, + { + "description": "Valid - 31 October (31-day month)", + "data": "2023-10-31T12:00", + "valid": true + }, + { + "description": "Valid - 31 December (31-day month)", + "data": "2023-12-31T12:00", + "valid": true + } + ] +} diff --git a/test/schemas/iso/datetime/2019/datetime/calendar-shift-basic/v1.test.json b/test/schemas/iso/datetime/2019/datetime/calendar-shift-basic/v1.test.json new file mode 100644 index 00000000..71ab321d --- /dev/null +++ b/test/schemas/iso/datetime/2019/datetime/calendar-shift-basic/v1.test.json @@ -0,0 +1,445 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/datetime/calendar-shift-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 20180101120000, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 1985-04-12 23:20:50 +04:00", + "data": "19850412T232050+0400", + "valid": true + }, + { + "description": "Valid - midnight 2000-01-01 00:00:00 -05:00", + "data": "20000101T000000-0500", + "valid": true + }, + { + "description": "Valid - leap second 2023-12-31 23:59:60 +00:00", + "data": "20231231T235960+0000", + "valid": true + }, + { + "description": "Valid - leap day 2020-02-29 12:00:00 +05:30", + "data": "20200229T120000+0530", + "valid": true + }, + { + "description": "Valid - positive shift +01:00", + "data": "20230115T120000+0100", + "valid": true + }, + { + "description": "Valid - negative shift -08:00", + "data": "20230115T120000-0800", + "valid": true + }, + { + "description": "Valid - maximum positive shift +23:59", + "data": "20230115T120000+2359", + "valid": true + }, + { + "description": "Valid - maximum negative shift -23:59", + "data": "20230115T120000-2359", + "valid": true + }, + { + "description": "Valid - zero shift +00:00", + "data": "20230115T120000+0000", + "valid": true + }, + { + "description": "Invalid - negative zero shift -00:00", + "data": "20230115T120000-0000", + "valid": false + }, + { + "description": "Valid - historical date 1900-03-15 06:30:45 +02:00", + "data": "19000315T063045+0200", + "valid": true + }, + { + "description": "Valid - future date 2100-08-20 18:45:30 -12:00", + "data": "21000820T184530-1200", + "valid": true + }, + { + "description": "Invalid - missing T designator", + "data": "19850412232050+0400", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "19850412t232050+0400", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - extended format", + "data": "1985-04-12T23:20:50+04:00", + "valid": false + }, + { + "description": "Invalid - missing time shift", + "data": "19850412T232050", + "valid": false + }, + { + "description": "Invalid - with Z instead of shift", + "data": "19850412T232050Z", + "valid": false + }, + { + "description": "Invalid - shift hour 24", + "data": "20230115T120000+2400", + "valid": false + }, + { + "description": "Invalid - shift hour 25", + "data": "20230115T120000+2500", + "valid": false + }, + { + "description": "Invalid - shift minute 60", + "data": "20230115T120000+0160", + "valid": false + }, + { + "description": "Invalid - shift minute 99", + "data": "20230115T120000+0199", + "valid": false + }, + { + "description": "Invalid - missing shift sign", + "data": "20230115T1200000400", + "valid": false + }, + { + "description": "Invalid - colon in shift (extended format shift)", + "data": "19850412T232050+04:00", + "valid": false + }, + { + "description": "Invalid - hourly shift only", + "data": "19850412T232050+04", + "valid": false + }, + { + "description": "Invalid - month 00", + "data": "20230012T120000+0100", + "valid": false + }, + { + "description": "Invalid - month 13", + "data": "20231312T120000+0100", + "valid": false + }, + { + "description": "Invalid - day 00", + "data": "20230100T120000+0100", + "valid": false + }, + { + "description": "Invalid - day 32", + "data": "20230132T120000+0100", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "20230115T240000+0100", + "valid": false + }, + { + "description": "Invalid - hour 25", + "data": "20230115T250000+0100", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "20230115T126000+0100", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "20230115T129900+0100", + "valid": false + }, + { + "description": "Invalid - second 61", + "data": "20230115T120061+0100", + "valid": false + }, + { + "description": "Invalid - second 99", + "data": "20230115T120099+0100", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "20230115T000000+0100", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "20230115T230000+0100", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "20230115T120000+0100", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "20230115T125900+0100", + "valid": true + }, + { + "description": "Valid - second 00 (minimum)", + "data": "20230115T120000+0100", + "valid": true + }, + { + "description": "Valid - second 59", + "data": "20230115T120059+0100", + "valid": true + }, + { + "description": "Valid - second 60 (leap second)", + "data": "20230630T235960+0100", + "valid": true + }, + { + "description": "Invalid - with decimal seconds", + "data": "20230115T120000.5+0100", + "valid": false + }, + { + "description": "Invalid - partial time (hour and minute only)", + "data": "20230115T1200+0100", + "valid": false + }, + { + "description": "Invalid - date only", + "data": "20230115+0100", + "valid": false + }, + { + "description": "Valid - January (month 01)", + "data": "20230115T120000+0100", + "valid": true + }, + { + "description": "Valid - December (month 12)", + "data": "20231231T120000+0100", + "valid": true + }, + { + "description": "Invalid - spaces in datetime", + "data": "2023 01 15T12 00 00+01 00", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "20230115T120000+0100X", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning", + "data": "X20230115T120000+0100", + "valid": false + }, + { + "description": "Valid - year 0000", + "data": "00000101T120000+0000", + "valid": true + }, + { + "description": "Valid - year 9999", + "data": "99991231T235959+0000", + "valid": true + }, + { + "description": "Invalid - 30 February", + "data": "20230230T120000+0100", + "valid": false + }, + { + "description": "Invalid - 31 February", + "data": "20230231T120000+0100", + "valid": false + }, + { + "description": "Valid - 29 February (leap year validation is consumer responsibility)", + "data": "20230229T120000+0100", + "valid": true + }, + { + "description": "Invalid - 31 April", + "data": "20230431T120000+0100", + "valid": false + }, + { + "description": "Invalid - 31 June", + "data": "20230631T120000+0100", + "valid": false + }, + { + "description": "Invalid - 31 September", + "data": "20230931T120000+0100", + "valid": false + }, + { + "description": "Invalid - 31 November", + "data": "20231131T120000+0100", + "valid": false + }, + { + "description": "Invalid - 32 January", + "data": "20230132T120000+0100", + "valid": false + }, + { + "description": "Invalid - 32 March", + "data": "20230332T120000+0100", + "valid": false + }, + { + "description": "Invalid - 32 May", + "data": "20230532T120000+0100", + "valid": false + }, + { + "description": "Invalid - 32 July", + "data": "20230732T120000+0100", + "valid": false + }, + { + "description": "Invalid - 32 August", + "data": "20230832T120000+0100", + "valid": false + }, + { + "description": "Invalid - 32 October", + "data": "20231032T120000+0100", + "valid": false + }, + { + "description": "Invalid - 32 December", + "data": "20231232T120000+0100", + "valid": false + }, + { + "description": "Invalid - letter in year", + "data": "2O230115T120000+0100", + "valid": false + }, + { + "description": "Invalid - letter in month", + "data": "2023O115T120000+0100", + "valid": false + }, + { + "description": "Invalid - letter in day", + "data": "202301O5T120000+0100", + "valid": false + }, + { + "description": "Invalid - letter in hour", + "data": "20230115T1O0000+0100", + "valid": false + }, + { + "description": "Invalid - letter in minute", + "data": "20230115T12O000+0100", + "valid": false + }, + { + "description": "Invalid - letter in second", + "data": "20230115T1200O0+0100", + "valid": false + }, + { + "description": "Valid - 30 April (30-day month)", + "data": "20230430T120000+0100", + "valid": true + }, + { + "description": "Valid - 30 June (30-day month)", + "data": "20230630T120000+0100", + "valid": true + }, + { + "description": "Valid - 30 September (30-day month)", + "data": "20230930T120000+0100", + "valid": true + }, + { + "description": "Valid - 30 November (30-day month)", + "data": "20231130T120000+0100", + "valid": true + }, + { + "description": "Valid - 31 January (31-day month)", + "data": "20230131T120000+0100", + "valid": true + }, + { + "description": "Valid - 31 March (31-day month)", + "data": "20230331T120000+0100", + "valid": true + }, + { + "description": "Valid - 31 May (31-day month)", + "data": "20230531T120000+0100", + "valid": true + }, + { + "description": "Valid - 31 July (31-day month)", + "data": "20230731T120000+0100", + "valid": true + }, + { + "description": "Valid - 31 August (31-day month)", + "data": "20230831T120000+0100", + "valid": true + }, + { + "description": "Valid - 31 October (31-day month)", + "data": "20231031T120000+0100", + "valid": true + }, + { + "description": "Valid - 31 December (31-day month)", + "data": "20231231T120000+0100", + "valid": true + } + ] +} diff --git a/test/schemas/iso/datetime/2019/datetime/calendar-shift-extended/v1.test.json b/test/schemas/iso/datetime/2019/datetime/calendar-shift-extended/v1.test.json new file mode 100644 index 00000000..6dca44b5 --- /dev/null +++ b/test/schemas/iso/datetime/2019/datetime/calendar-shift-extended/v1.test.json @@ -0,0 +1,455 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/datetime/calendar-shift-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 20180101120000, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 1985-04-12 23:20:50 +04:00", + "data": "1985-04-12T23:20:50+04:00", + "valid": true + }, + { + "description": "Valid - midnight 2000-01-01 00:00:00 -05:00", + "data": "2000-01-01T00:00:00-05:00", + "valid": true + }, + { + "description": "Valid - leap second 2023-12-31 23:59:60 +00:00", + "data": "2023-12-31T23:59:60+00:00", + "valid": true + }, + { + "description": "Valid - leap day 2020-02-29 12:00:00 +05:30", + "data": "2020-02-29T12:00:00+05:30", + "valid": true + }, + { + "description": "Valid - positive shift +01:00", + "data": "2023-01-15T12:00:00+01:00", + "valid": true + }, + { + "description": "Valid - negative shift -08:00", + "data": "2023-01-15T12:00:00-08:00", + "valid": true + }, + { + "description": "Valid - maximum positive shift +23:59", + "data": "2023-01-15T12:00:00+23:59", + "valid": true + }, + { + "description": "Valid - maximum negative shift -23:59", + "data": "2023-01-15T12:00:00-23:59", + "valid": true + }, + { + "description": "Valid - zero shift +00:00", + "data": "2023-01-15T12:00:00+00:00", + "valid": true + }, + { + "description": "Invalid - negative zero shift -00:00", + "data": "2023-01-15T12:00:00-00:00", + "valid": false + }, + { + "description": "Valid - historical date 1900-03-15 06:30:45 +02:00", + "data": "1900-03-15T06:30:45+02:00", + "valid": true + }, + { + "description": "Valid - future date 2100-08-20 18:45:30 -12:00", + "data": "2100-08-20T18:45:30-12:00", + "valid": true + }, + { + "description": "Invalid - missing T designator", + "data": "1985-04-1223:20:50+04:00", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "1985-04-12t23:20:50+04:00", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - basic format", + "data": "19850412T232050+0400", + "valid": false + }, + { + "description": "Invalid - missing time shift", + "data": "1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - with Z instead of shift", + "data": "1985-04-12T23:20:50Z", + "valid": false + }, + { + "description": "Invalid - shift hour 24", + "data": "2023-01-15T12:00:00+24:00", + "valid": false + }, + { + "description": "Invalid - shift hour 25", + "data": "2023-01-15T12:00:00+25:00", + "valid": false + }, + { + "description": "Invalid - shift minute 60", + "data": "2023-01-15T12:00:00+01:60", + "valid": false + }, + { + "description": "Invalid - shift minute 99", + "data": "2023-01-15T12:00:00+01:99", + "valid": false + }, + { + "description": "Invalid - missing shift sign", + "data": "2023-01-15T12:00:0004:00", + "valid": false + }, + { + "description": "Invalid - missing colon in shift (basic format shift)", + "data": "1985-04-12T23:20:50+0400", + "valid": false + }, + { + "description": "Invalid - hourly shift only", + "data": "1985-04-12T23:20:50+04", + "valid": false + }, + { + "description": "Invalid - month 00", + "data": "2023-00-12T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - month 13", + "data": "2023-13-12T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - day 00", + "data": "2023-01-00T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - day 32", + "data": "2023-01-32T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "2023-01-15T24:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - hour 25", + "data": "2023-01-15T25:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "2023-01-15T12:60:00+01:00", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "2023-01-15T12:99:00+01:00", + "valid": false + }, + { + "description": "Invalid - second 61", + "data": "2023-01-15T12:00:61+01:00", + "valid": false + }, + { + "description": "Invalid - second 99", + "data": "2023-01-15T12:00:99+01:00", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "2023-01-15T00:00:00+01:00", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "2023-01-15T23:00:00+01:00", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "2023-01-15T12:00:00+01:00", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "2023-01-15T12:59:00+01:00", + "valid": true + }, + { + "description": "Valid - second 00 (minimum)", + "data": "2023-01-15T12:00:00+01:00", + "valid": true + }, + { + "description": "Valid - second 59", + "data": "2023-01-15T12:00:59+01:00", + "valid": true + }, + { + "description": "Valid - second 60 (leap second)", + "data": "2023-06-30T23:59:60+01:00", + "valid": true + }, + { + "description": "Invalid - missing hyphens in date", + "data": "20230115T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - missing colons in time", + "data": "2023-01-15T120000+01:00", + "valid": false + }, + { + "description": "Invalid - with decimal seconds", + "data": "2023-01-15T12:00:00.5+01:00", + "valid": false + }, + { + "description": "Invalid - partial time (hour and minute only)", + "data": "2023-01-15T12:00+01:00", + "valid": false + }, + { + "description": "Invalid - date only", + "data": "2023-01-15+01:00", + "valid": false + }, + { + "description": "Valid - January (month 01)", + "data": "2023-01-15T12:00:00+01:00", + "valid": true + }, + { + "description": "Valid - December (month 12)", + "data": "2023-12-31T12:00:00+01:00", + "valid": true + }, + { + "description": "Invalid - spaces in datetime", + "data": "2023-01-15 T 12:00:00 + 01:00", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "2023-01-15T12:00:00+01:00X", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning", + "data": "X2023-01-15T12:00:00+01:00", + "valid": false + }, + { + "description": "Valid - year 0000", + "data": "0000-01-01T12:00:00+00:00", + "valid": true + }, + { + "description": "Valid - year 9999", + "data": "9999-12-31T23:59:59+00:00", + "valid": true + }, + { + "description": "Invalid - 30 February", + "data": "2023-02-30T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - 31 February", + "data": "2023-02-31T12:00:00+01:00", + "valid": false + }, + { + "description": "Valid - 29 February (leap year validation is consumer responsibility)", + "data": "2023-02-29T12:00:00+01:00", + "valid": true + }, + { + "description": "Invalid - 31 April", + "data": "2023-04-31T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - 31 June", + "data": "2023-06-31T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - 31 September", + "data": "2023-09-31T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - 31 November", + "data": "2023-11-31T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - 32 January", + "data": "2023-01-32T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - 32 March", + "data": "2023-03-32T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - 32 May", + "data": "2023-05-32T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - 32 July", + "data": "2023-07-32T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - 32 August", + "data": "2023-08-32T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - 32 October", + "data": "2023-10-32T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - 32 December", + "data": "2023-12-32T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - letter in year", + "data": "2O23-01-15T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - letter in month", + "data": "2023-O1-15T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - letter in day", + "data": "2023-01-O5T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - letter in hour", + "data": "2023-01-15T1O:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - letter in minute", + "data": "2023-01-15T12:O0:00+01:00", + "valid": false + }, + { + "description": "Invalid - letter in second", + "data": "2023-01-15T12:00:O0+01:00", + "valid": false + }, + { + "description": "Valid - 30 April (30-day month)", + "data": "2023-04-30T12:00:00+01:00", + "valid": true + }, + { + "description": "Valid - 30 June (30-day month)", + "data": "2023-06-30T12:00:00+01:00", + "valid": true + }, + { + "description": "Valid - 30 September (30-day month)", + "data": "2023-09-30T12:00:00+01:00", + "valid": true + }, + { + "description": "Valid - 30 November (30-day month)", + "data": "2023-11-30T12:00:00+01:00", + "valid": true + }, + { + "description": "Valid - 31 January (31-day month)", + "data": "2023-01-31T12:00:00+01:00", + "valid": true + }, + { + "description": "Valid - 31 March (31-day month)", + "data": "2023-03-31T12:00:00+01:00", + "valid": true + }, + { + "description": "Valid - 31 May (31-day month)", + "data": "2023-05-31T12:00:00+01:00", + "valid": true + }, + { + "description": "Valid - 31 July (31-day month)", + "data": "2023-07-31T12:00:00+01:00", + "valid": true + }, + { + "description": "Valid - 31 August (31-day month)", + "data": "2023-08-31T12:00:00+01:00", + "valid": true + }, + { + "description": "Valid - 31 October (31-day month)", + "data": "2023-10-31T12:00:00+01:00", + "valid": true + }, + { + "description": "Valid - 31 December (31-day month)", + "data": "2023-12-31T12:00:00+01:00", + "valid": true + } + ] +} diff --git a/test/schemas/iso/datetime/2019/datetime/calendar-shifthour-basic/v1.test.json b/test/schemas/iso/datetime/2019/datetime/calendar-shifthour-basic/v1.test.json new file mode 100644 index 00000000..39e942dd --- /dev/null +++ b/test/schemas/iso/datetime/2019/datetime/calendar-shifthour-basic/v1.test.json @@ -0,0 +1,450 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/datetime/calendar-shifthour-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 20180101120000, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 1985-04-12 23:20:50 +04", + "data": "19850412T232050+04", + "valid": true + }, + { + "description": "Valid - midnight 2000-01-01 00:00:00 -05", + "data": "20000101T000000-05", + "valid": true + }, + { + "description": "Valid - leap second 2023-12-31 23:59:60 +00", + "data": "20231231T235960+00", + "valid": true + }, + { + "description": "Valid - leap day 2020-02-29 12:00:00 +05", + "data": "20200229T120000+05", + "valid": true + }, + { + "description": "Valid - positive shift +01", + "data": "20230115T120000+01", + "valid": true + }, + { + "description": "Valid - negative shift -08", + "data": "20230115T120000-08", + "valid": true + }, + { + "description": "Valid - maximum positive shift +23", + "data": "20230115T120000+23", + "valid": true + }, + { + "description": "Valid - maximum negative shift -23", + "data": "20230115T120000-23", + "valid": true + }, + { + "description": "Valid - zero shift +00", + "data": "20230115T120000+00", + "valid": true + }, + { + "description": "Invalid - negative zero shift -00", + "data": "20230115T120000-00", + "valid": false + }, + { + "description": "Valid - historical date 1900-03-15 06:30:45 +02", + "data": "19000315T063045+02", + "valid": true + }, + { + "description": "Valid - future date 2100-08-20 18:45:30 -12", + "data": "21000820T184530-12", + "valid": true + }, + { + "description": "Invalid - missing T designator", + "data": "19850412232050+04", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "19850412t232050+04", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - extended format", + "data": "1985-04-12T23:20:50+04", + "valid": false + }, + { + "description": "Invalid - missing time shift", + "data": "19850412T232050", + "valid": false + }, + { + "description": "Invalid - with Z instead of shift", + "data": "19850412T232050Z", + "valid": false + }, + { + "description": "Invalid - shift hour 24", + "data": "20230115T120000+24", + "valid": false + }, + { + "description": "Invalid - shift hour 25", + "data": "20230115T120000+25", + "valid": false + }, + { + "description": "Invalid - shift hour 99", + "data": "20230115T120000+99", + "valid": false + }, + { + "description": "Invalid - missing shift sign", + "data": "20230115T12000004", + "valid": false + }, + { + "description": "Invalid - shift with minutes (full shift)", + "data": "19850412T232050+0400", + "valid": false + }, + { + "description": "Invalid - shift with colon", + "data": "19850412T232050+04:00", + "valid": false + }, + { + "description": "Invalid - single digit shift", + "data": "19850412T232050+4", + "valid": false + }, + { + "description": "Invalid - three digit shift", + "data": "19850412T232050+004", + "valid": false + }, + { + "description": "Invalid - month 00", + "data": "20230012T120000+01", + "valid": false + }, + { + "description": "Invalid - month 13", + "data": "20231312T120000+01", + "valid": false + }, + { + "description": "Invalid - day 00", + "data": "20230100T120000+01", + "valid": false + }, + { + "description": "Invalid - day 32", + "data": "20230132T120000+01", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "20230115T240000+01", + "valid": false + }, + { + "description": "Invalid - hour 25", + "data": "20230115T250000+01", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "20230115T126000+01", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "20230115T129900+01", + "valid": false + }, + { + "description": "Invalid - second 61", + "data": "20230115T120061+01", + "valid": false + }, + { + "description": "Invalid - second 99", + "data": "20230115T120099+01", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "20230115T000000+01", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "20230115T230000+01", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "20230115T120000+01", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "20230115T125900+01", + "valid": true + }, + { + "description": "Valid - second 00 (minimum)", + "data": "20230115T120000+01", + "valid": true + }, + { + "description": "Valid - second 59", + "data": "20230115T120059+01", + "valid": true + }, + { + "description": "Valid - second 60 (leap second)", + "data": "20230630T235960+01", + "valid": true + }, + { + "description": "Invalid - with decimal seconds", + "data": "20230115T120000.5+01", + "valid": false + }, + { + "description": "Invalid - partial time (hour and minute only)", + "data": "20230115T1200+01", + "valid": false + }, + { + "description": "Invalid - date only", + "data": "20230115+01", + "valid": false + }, + { + "description": "Valid - January (month 01)", + "data": "20230115T120000+01", + "valid": true + }, + { + "description": "Valid - December (month 12)", + "data": "20231231T120000+01", + "valid": true + }, + { + "description": "Invalid - spaces in datetime", + "data": "2023 01 15T12 00 00+01", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "20230115T120000+01X", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning", + "data": "X20230115T120000+01", + "valid": false + }, + { + "description": "Valid - year 0000", + "data": "00000101T120000+00", + "valid": true + }, + { + "description": "Valid - year 9999", + "data": "99991231T235959+00", + "valid": true + }, + { + "description": "Invalid - 30 February", + "data": "20230230T120000+01", + "valid": false + }, + { + "description": "Invalid - 31 February", + "data": "20230231T120000+01", + "valid": false + }, + { + "description": "Valid - 29 February (leap year validation is consumer responsibility)", + "data": "20230229T120000+01", + "valid": true + }, + { + "description": "Invalid - 31 April", + "data": "20230431T120000+01", + "valid": false + }, + { + "description": "Invalid - 31 June", + "data": "20230631T120000+01", + "valid": false + }, + { + "description": "Invalid - 31 September", + "data": "20230931T120000+01", + "valid": false + }, + { + "description": "Invalid - 31 November", + "data": "20231131T120000+01", + "valid": false + }, + { + "description": "Invalid - 32 January", + "data": "20230132T120000+01", + "valid": false + }, + { + "description": "Invalid - 32 March", + "data": "20230332T120000+01", + "valid": false + }, + { + "description": "Invalid - 32 May", + "data": "20230532T120000+01", + "valid": false + }, + { + "description": "Invalid - 32 July", + "data": "20230732T120000+01", + "valid": false + }, + { + "description": "Invalid - 32 August", + "data": "20230832T120000+01", + "valid": false + }, + { + "description": "Invalid - 32 October", + "data": "20231032T120000+01", + "valid": false + }, + { + "description": "Invalid - 32 December", + "data": "20231232T120000+01", + "valid": false + }, + { + "description": "Invalid - letter in year", + "data": "2O230115T120000+01", + "valid": false + }, + { + "description": "Invalid - letter in month", + "data": "2023O115T120000+01", + "valid": false + }, + { + "description": "Invalid - letter in day", + "data": "202301O5T120000+01", + "valid": false + }, + { + "description": "Invalid - letter in hour", + "data": "20230115T1O0000+01", + "valid": false + }, + { + "description": "Invalid - letter in minute", + "data": "20230115T12O000+01", + "valid": false + }, + { + "description": "Invalid - letter in second", + "data": "20230115T1200O0+01", + "valid": false + }, + { + "description": "Valid - 30 April (30-day month)", + "data": "20230430T120000+01", + "valid": true + }, + { + "description": "Valid - 30 June (30-day month)", + "data": "20230630T120000+01", + "valid": true + }, + { + "description": "Valid - 30 September (30-day month)", + "data": "20230930T120000+01", + "valid": true + }, + { + "description": "Valid - 30 November (30-day month)", + "data": "20231130T120000+01", + "valid": true + }, + { + "description": "Valid - 31 January (31-day month)", + "data": "20230131T120000+01", + "valid": true + }, + { + "description": "Valid - 31 March (31-day month)", + "data": "20230331T120000+01", + "valid": true + }, + { + "description": "Valid - 31 May (31-day month)", + "data": "20230531T120000+01", + "valid": true + }, + { + "description": "Valid - 31 July (31-day month)", + "data": "20230731T120000+01", + "valid": true + }, + { + "description": "Valid - 31 August (31-day month)", + "data": "20230831T120000+01", + "valid": true + }, + { + "description": "Valid - 31 October (31-day month)", + "data": "20231031T120000+01", + "valid": true + }, + { + "description": "Valid - 31 December (31-day month)", + "data": "20231231T120000+01", + "valid": true + } + ] +} diff --git a/test/schemas/iso/datetime/2019/datetime/calendar-shifthour-extended/v1.test.json b/test/schemas/iso/datetime/2019/datetime/calendar-shifthour-extended/v1.test.json new file mode 100644 index 00000000..1ab83dd2 --- /dev/null +++ b/test/schemas/iso/datetime/2019/datetime/calendar-shifthour-extended/v1.test.json @@ -0,0 +1,460 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/datetime/calendar-shifthour-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 20180101120000, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 1985-04-12 23:20:50 +04", + "data": "1985-04-12T23:20:50+04", + "valid": true + }, + { + "description": "Valid - midnight 2000-01-01 00:00:00 -05", + "data": "2000-01-01T00:00:00-05", + "valid": true + }, + { + "description": "Valid - leap second 2023-12-31 23:59:60 +00", + "data": "2023-12-31T23:59:60+00", + "valid": true + }, + { + "description": "Valid - leap day 2020-02-29 12:00:00 +05", + "data": "2020-02-29T12:00:00+05", + "valid": true + }, + { + "description": "Valid - positive shift +01", + "data": "2023-01-15T12:00:00+01", + "valid": true + }, + { + "description": "Valid - negative shift -08", + "data": "2023-01-15T12:00:00-08", + "valid": true + }, + { + "description": "Valid - maximum positive shift +23", + "data": "2023-01-15T12:00:00+23", + "valid": true + }, + { + "description": "Valid - maximum negative shift -23", + "data": "2023-01-15T12:00:00-23", + "valid": true + }, + { + "description": "Valid - zero shift +00", + "data": "2023-01-15T12:00:00+00", + "valid": true + }, + { + "description": "Invalid - negative zero shift -00", + "data": "2023-01-15T12:00:00-00", + "valid": false + }, + { + "description": "Valid - historical date 1900-03-15 06:30:45 +02", + "data": "1900-03-15T06:30:45+02", + "valid": true + }, + { + "description": "Valid - future date 2100-08-20 18:45:30 -12", + "data": "2100-08-20T18:45:30-12", + "valid": true + }, + { + "description": "Invalid - missing T designator", + "data": "1985-04-1223:20:50+04", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "1985-04-12t23:20:50+04", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - basic format", + "data": "19850412T232050+04", + "valid": false + }, + { + "description": "Invalid - missing time shift", + "data": "1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - with Z instead of shift", + "data": "1985-04-12T23:20:50Z", + "valid": false + }, + { + "description": "Invalid - shift hour 24", + "data": "2023-01-15T12:00:00+24", + "valid": false + }, + { + "description": "Invalid - shift hour 25", + "data": "2023-01-15T12:00:00+25", + "valid": false + }, + { + "description": "Invalid - shift hour 99", + "data": "2023-01-15T12:00:00+99", + "valid": false + }, + { + "description": "Invalid - missing shift sign", + "data": "2023-01-15T12:00:0004", + "valid": false + }, + { + "description": "Invalid - shift with minutes (full shift)", + "data": "1985-04-12T23:20:50+04:00", + "valid": false + }, + { + "description": "Invalid - shift without colon (basic format shift)", + "data": "1985-04-12T23:20:50+0400", + "valid": false + }, + { + "description": "Invalid - single digit shift", + "data": "1985-04-12T23:20:50+4", + "valid": false + }, + { + "description": "Invalid - three digit shift", + "data": "1985-04-12T23:20:50+004", + "valid": false + }, + { + "description": "Invalid - month 00", + "data": "2023-00-12T12:00:00+01", + "valid": false + }, + { + "description": "Invalid - month 13", + "data": "2023-13-12T12:00:00+01", + "valid": false + }, + { + "description": "Invalid - day 00", + "data": "2023-01-00T12:00:00+01", + "valid": false + }, + { + "description": "Invalid - day 32", + "data": "2023-01-32T12:00:00+01", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "2023-01-15T24:00:00+01", + "valid": false + }, + { + "description": "Invalid - hour 25", + "data": "2023-01-15T25:00:00+01", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "2023-01-15T12:60:00+01", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "2023-01-15T12:99:00+01", + "valid": false + }, + { + "description": "Invalid - second 61", + "data": "2023-01-15T12:00:61+01", + "valid": false + }, + { + "description": "Invalid - second 99", + "data": "2023-01-15T12:00:99+01", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "2023-01-15T00:00:00+01", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "2023-01-15T23:00:00+01", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "2023-01-15T12:00:00+01", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "2023-01-15T12:59:00+01", + "valid": true + }, + { + "description": "Valid - second 00 (minimum)", + "data": "2023-01-15T12:00:00+01", + "valid": true + }, + { + "description": "Valid - second 59", + "data": "2023-01-15T12:00:59+01", + "valid": true + }, + { + "description": "Valid - second 60 (leap second)", + "data": "2023-06-30T23:59:60+01", + "valid": true + }, + { + "description": "Invalid - missing hyphens in date", + "data": "20230115T12:00:00+01", + "valid": false + }, + { + "description": "Invalid - missing colons in time", + "data": "2023-01-15T120000+01", + "valid": false + }, + { + "description": "Invalid - with decimal seconds", + "data": "2023-01-15T12:00:00.5+01", + "valid": false + }, + { + "description": "Invalid - partial time (hour and minute only)", + "data": "2023-01-15T12:00+01", + "valid": false + }, + { + "description": "Invalid - date only", + "data": "2023-01-15+01", + "valid": false + }, + { + "description": "Valid - January (month 01)", + "data": "2023-01-15T12:00:00+01", + "valid": true + }, + { + "description": "Valid - December (month 12)", + "data": "2023-12-31T12:00:00+01", + "valid": true + }, + { + "description": "Invalid - spaces in datetime", + "data": "2023-01-15 T 12:00:00 + 01", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "2023-01-15T12:00:00+01X", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning", + "data": "X2023-01-15T12:00:00+01", + "valid": false + }, + { + "description": "Valid - year 0000", + "data": "0000-01-01T12:00:00+00", + "valid": true + }, + { + "description": "Valid - year 9999", + "data": "9999-12-31T23:59:59+00", + "valid": true + }, + { + "description": "Invalid - 30 February", + "data": "2023-02-30T12:00:00+01", + "valid": false + }, + { + "description": "Invalid - 31 February", + "data": "2023-02-31T12:00:00+01", + "valid": false + }, + { + "description": "Valid - 29 February (leap year validation is consumer responsibility)", + "data": "2023-02-29T12:00:00+01", + "valid": true + }, + { + "description": "Invalid - 31 April", + "data": "2023-04-31T12:00:00+01", + "valid": false + }, + { + "description": "Invalid - 31 June", + "data": "2023-06-31T12:00:00+01", + "valid": false + }, + { + "description": "Invalid - 31 September", + "data": "2023-09-31T12:00:00+01", + "valid": false + }, + { + "description": "Invalid - 31 November", + "data": "2023-11-31T12:00:00+01", + "valid": false + }, + { + "description": "Invalid - 32 January", + "data": "2023-01-32T12:00:00+01", + "valid": false + }, + { + "description": "Invalid - 32 March", + "data": "2023-03-32T12:00:00+01", + "valid": false + }, + { + "description": "Invalid - 32 May", + "data": "2023-05-32T12:00:00+01", + "valid": false + }, + { + "description": "Invalid - 32 July", + "data": "2023-07-32T12:00:00+01", + "valid": false + }, + { + "description": "Invalid - 32 August", + "data": "2023-08-32T12:00:00+01", + "valid": false + }, + { + "description": "Invalid - 32 October", + "data": "2023-10-32T12:00:00+01", + "valid": false + }, + { + "description": "Invalid - 32 December", + "data": "2023-12-32T12:00:00+01", + "valid": false + }, + { + "description": "Invalid - letter in year", + "data": "2O23-01-15T12:00:00+01", + "valid": false + }, + { + "description": "Invalid - letter in month", + "data": "2023-O1-15T12:00:00+01", + "valid": false + }, + { + "description": "Invalid - letter in day", + "data": "2023-01-O5T12:00:00+01", + "valid": false + }, + { + "description": "Invalid - letter in hour", + "data": "2023-01-15T1O:00:00+01", + "valid": false + }, + { + "description": "Invalid - letter in minute", + "data": "2023-01-15T12:O0:00+01", + "valid": false + }, + { + "description": "Invalid - letter in second", + "data": "2023-01-15T12:00:O0+01", + "valid": false + }, + { + "description": "Valid - 30 April (30-day month)", + "data": "2023-04-30T12:00:00+01", + "valid": true + }, + { + "description": "Valid - 30 June (30-day month)", + "data": "2023-06-30T12:00:00+01", + "valid": true + }, + { + "description": "Valid - 30 September (30-day month)", + "data": "2023-09-30T12:00:00+01", + "valid": true + }, + { + "description": "Valid - 30 November (30-day month)", + "data": "2023-11-30T12:00:00+01", + "valid": true + }, + { + "description": "Valid - 31 January (31-day month)", + "data": "2023-01-31T12:00:00+01", + "valid": true + }, + { + "description": "Valid - 31 March (31-day month)", + "data": "2023-03-31T12:00:00+01", + "valid": true + }, + { + "description": "Valid - 31 May (31-day month)", + "data": "2023-05-31T12:00:00+01", + "valid": true + }, + { + "description": "Valid - 31 July (31-day month)", + "data": "2023-07-31T12:00:00+01", + "valid": true + }, + { + "description": "Valid - 31 August (31-day month)", + "data": "2023-08-31T12:00:00+01", + "valid": true + }, + { + "description": "Valid - 31 October (31-day month)", + "data": "2023-10-31T12:00:00+01", + "valid": true + }, + { + "description": "Valid - 31 December (31-day month)", + "data": "2023-12-31T12:00:00+01", + "valid": true + } + ] +} diff --git a/test/schemas/iso/datetime/2019/datetime/calendar-utc-basic/v1.test.json b/test/schemas/iso/datetime/2019/datetime/calendar-utc-basic/v1.test.json new file mode 100644 index 00000000..5a6a23fc --- /dev/null +++ b/test/schemas/iso/datetime/2019/datetime/calendar-utc-basic/v1.test.json @@ -0,0 +1,440 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/datetime/calendar-utc-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 20180101120000, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 1985-04-12 23:20:50 UTC", + "data": "19850412T232050Z", + "valid": true + }, + { + "description": "Valid - midnight 2000-01-01 00:00:00 UTC", + "data": "20000101T000000Z", + "valid": true + }, + { + "description": "Valid - leap second 2023-12-31 23:59:60 UTC", + "data": "20231231T235960Z", + "valid": true + }, + { + "description": "Valid - leap day 2020-02-29 12:00:00 UTC", + "data": "20200229T120000Z", + "valid": true + }, + { + "description": "Valid - end of year 2023-12-31 23:59:59 UTC", + "data": "20231231T235959Z", + "valid": true + }, + { + "description": "Valid - start of year 2024-01-01 00:00:00 UTC", + "data": "20240101T000000Z", + "valid": true + }, + { + "description": "Valid - historical date 1900-03-15 06:30:45 UTC", + "data": "19000315T063045Z", + "valid": true + }, + { + "description": "Valid - future date 2100-08-20 18:45:30 UTC", + "data": "21000820T184530Z", + "valid": true + }, + { + "description": "Invalid - missing T designator", + "data": "19850412232050Z", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "19850412t232050Z", + "valid": false + }, + { + "description": "Invalid - lowercase z", + "data": "19850412T232050z", + "valid": false + }, + { + "description": "Invalid - missing Z designator", + "data": "19850412T232050", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - extended format", + "data": "1985-04-12T23:20:50Z", + "valid": false + }, + { + "description": "Invalid - month 00", + "data": "20230012T120000Z", + "valid": false + }, + { + "description": "Invalid - month 13", + "data": "20231312T120000Z", + "valid": false + }, + { + "description": "Invalid - month 99", + "data": "20239912T120000Z", + "valid": false + }, + { + "description": "Invalid - day 00", + "data": "20230100T120000Z", + "valid": false + }, + { + "description": "Invalid - day 32", + "data": "20230132T120000Z", + "valid": false + }, + { + "description": "Invalid - day 99", + "data": "20230199T120000Z", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "20230115T240000Z", + "valid": false + }, + { + "description": "Invalid - hour 25", + "data": "20230115T250000Z", + "valid": false + }, + { + "description": "Invalid - hour 99", + "data": "20230115T990000Z", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "20230115T126000Z", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "20230115T129900Z", + "valid": false + }, + { + "description": "Invalid - second 61", + "data": "20230115T120061Z", + "valid": false + }, + { + "description": "Invalid - second 99", + "data": "20230115T120099Z", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "20230115T000000Z", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "20230115T230000Z", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "20230115T120000Z", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "20230115T125900Z", + "valid": true + }, + { + "description": "Valid - second 00 (minimum)", + "data": "20230115T120000Z", + "valid": true + }, + { + "description": "Valid - second 59", + "data": "20230115T120059Z", + "valid": true + }, + { + "description": "Valid - second 60 (leap second)", + "data": "20230630T235960Z", + "valid": true + }, + { + "description": "Invalid - with time shift instead of Z", + "data": "20230115T120000+0100", + "valid": false + }, + { + "description": "Invalid - with hourly time shift", + "data": "20230115T120000+01", + "valid": false + }, + { + "description": "Invalid - with decimal seconds", + "data": "20230115T120000.5Z", + "valid": false + }, + { + "description": "Invalid - partial time (hour and minute only)", + "data": "20230115T1200Z", + "valid": false + }, + { + "description": "Invalid - partial time (hour only)", + "data": "20230115T12Z", + "valid": false + }, + { + "description": "Invalid - date only", + "data": "20230115Z", + "valid": false + }, + { + "description": "Invalid - time only", + "data": "T120000Z", + "valid": false + }, + { + "description": "Valid - January (month 01)", + "data": "20230115T120000Z", + "valid": true + }, + { + "description": "Valid - December (month 12)", + "data": "20231231T120000Z", + "valid": true + }, + { + "description": "Invalid - spaces in datetime", + "data": "2023 01 15T12 00 00Z", + "valid": false + }, + { + "description": "Invalid - missing year digits", + "data": "230115T120000Z", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "20230115T120000ZX", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning", + "data": "X20230115T120000Z", + "valid": false + }, + { + "description": "Invalid - double Z", + "data": "20230115T120000ZZ", + "valid": false + }, + { + "description": "Invalid - Z before time", + "data": "20230115TZ120000", + "valid": false + }, + { + "description": "Valid - year 0000", + "data": "00000101T120000Z", + "valid": true + }, + { + "description": "Valid - year 9999", + "data": "99991231T235959Z", + "valid": true + }, + { + "description": "Invalid - 30 February", + "data": "20230230T120000Z", + "valid": false + }, + { + "description": "Invalid - 31 February", + "data": "20230231T120000Z", + "valid": false + }, + { + "description": "Valid - 29 February (leap year validation is consumer responsibility)", + "data": "20230229T120000Z", + "valid": true + }, + { + "description": "Invalid - 31 April", + "data": "20230431T120000Z", + "valid": false + }, + { + "description": "Invalid - 31 June", + "data": "20230631T120000Z", + "valid": false + }, + { + "description": "Invalid - 31 September", + "data": "20230931T120000Z", + "valid": false + }, + { + "description": "Invalid - 31 November", + "data": "20231131T120000Z", + "valid": false + }, + { + "description": "Invalid - 32 January", + "data": "20230132T120000Z", + "valid": false + }, + { + "description": "Invalid - 32 March", + "data": "20230332T120000Z", + "valid": false + }, + { + "description": "Invalid - 32 May", + "data": "20230532T120000Z", + "valid": false + }, + { + "description": "Invalid - 32 July", + "data": "20230732T120000Z", + "valid": false + }, + { + "description": "Invalid - 32 August", + "data": "20230832T120000Z", + "valid": false + }, + { + "description": "Invalid - 32 October", + "data": "20231032T120000Z", + "valid": false + }, + { + "description": "Invalid - 32 December", + "data": "20231232T120000Z", + "valid": false + }, + { + "description": "Invalid - letter in year", + "data": "2O230115T120000Z", + "valid": false + }, + { + "description": "Invalid - letter in month", + "data": "2023O115T120000Z", + "valid": false + }, + { + "description": "Invalid - letter in day", + "data": "202301O5T120000Z", + "valid": false + }, + { + "description": "Invalid - letter in hour", + "data": "20230115T1O0000Z", + "valid": false + }, + { + "description": "Invalid - letter in minute", + "data": "20230115T12O000Z", + "valid": false + }, + { + "description": "Invalid - letter in second", + "data": "20230115T1200O0Z", + "valid": false + }, + { + "description": "Valid - 30 April (30-day month)", + "data": "20230430T120000Z", + "valid": true + }, + { + "description": "Valid - 30 June (30-day month)", + "data": "20230630T120000Z", + "valid": true + }, + { + "description": "Valid - 30 September (30-day month)", + "data": "20230930T120000Z", + "valid": true + }, + { + "description": "Valid - 30 November (30-day month)", + "data": "20231130T120000Z", + "valid": true + }, + { + "description": "Valid - 31 January (31-day month)", + "data": "20230131T120000Z", + "valid": true + }, + { + "description": "Valid - 31 March (31-day month)", + "data": "20230331T120000Z", + "valid": true + }, + { + "description": "Valid - 31 May (31-day month)", + "data": "20230531T120000Z", + "valid": true + }, + { + "description": "Valid - 31 July (31-day month)", + "data": "20230731T120000Z", + "valid": true + }, + { + "description": "Valid - 31 August (31-day month)", + "data": "20230831T120000Z", + "valid": true + }, + { + "description": "Valid - 31 October (31-day month)", + "data": "20231031T120000Z", + "valid": true + }, + { + "description": "Valid - 31 December (31-day month)", + "data": "20231231T120000Z", + "valid": true + } + ] +} diff --git a/test/schemas/iso/datetime/2019/datetime/calendar-utc-extended/v1.test.json b/test/schemas/iso/datetime/2019/datetime/calendar-utc-extended/v1.test.json new file mode 100644 index 00000000..1b8cfec8 --- /dev/null +++ b/test/schemas/iso/datetime/2019/datetime/calendar-utc-extended/v1.test.json @@ -0,0 +1,455 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/datetime/calendar-utc-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 20180101120000, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 1985-04-12 23:20:50 UTC", + "data": "1985-04-12T23:20:50Z", + "valid": true + }, + { + "description": "Valid - midnight 2000-01-01 00:00:00 UTC", + "data": "2000-01-01T00:00:00Z", + "valid": true + }, + { + "description": "Valid - leap second 2023-12-31 23:59:60 UTC", + "data": "2023-12-31T23:59:60Z", + "valid": true + }, + { + "description": "Valid - leap day 2020-02-29 12:00:00 UTC", + "data": "2020-02-29T12:00:00Z", + "valid": true + }, + { + "description": "Valid - end of year 2023-12-31 23:59:59 UTC", + "data": "2023-12-31T23:59:59Z", + "valid": true + }, + { + "description": "Valid - start of year 2024-01-01 00:00:00 UTC", + "data": "2024-01-01T00:00:00Z", + "valid": true + }, + { + "description": "Valid - historical date 1900-03-15 06:30:45 UTC", + "data": "1900-03-15T06:30:45Z", + "valid": true + }, + { + "description": "Valid - future date 2100-08-20 18:45:30 UTC", + "data": "2100-08-20T18:45:30Z", + "valid": true + }, + { + "description": "Invalid - missing T designator", + "data": "1985-04-1223:20:50Z", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "1985-04-12t23:20:50Z", + "valid": false + }, + { + "description": "Invalid - lowercase z", + "data": "1985-04-12T23:20:50z", + "valid": false + }, + { + "description": "Invalid - missing Z designator", + "data": "1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - basic format", + "data": "19850412T232050Z", + "valid": false + }, + { + "description": "Invalid - month 00", + "data": "2023-00-12T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - month 13", + "data": "2023-13-12T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - month 99", + "data": "2023-99-12T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - day 00", + "data": "2023-01-00T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - day 32", + "data": "2023-01-32T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - day 99", + "data": "2023-01-99T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "2023-01-15T24:00:00Z", + "valid": false + }, + { + "description": "Invalid - hour 25", + "data": "2023-01-15T25:00:00Z", + "valid": false + }, + { + "description": "Invalid - hour 99", + "data": "2023-01-15T99:00:00Z", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "2023-01-15T12:60:00Z", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "2023-01-15T12:99:00Z", + "valid": false + }, + { + "description": "Invalid - second 61", + "data": "2023-01-15T12:00:61Z", + "valid": false + }, + { + "description": "Invalid - second 99", + "data": "2023-01-15T12:00:99Z", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "2023-01-15T00:00:00Z", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "2023-01-15T23:00:00Z", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "2023-01-15T12:00:00Z", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "2023-01-15T12:59:00Z", + "valid": true + }, + { + "description": "Valid - second 00 (minimum)", + "data": "2023-01-15T12:00:00Z", + "valid": true + }, + { + "description": "Valid - second 59", + "data": "2023-01-15T12:00:59Z", + "valid": true + }, + { + "description": "Valid - second 60 (leap second)", + "data": "2023-06-30T23:59:60Z", + "valid": true + }, + { + "description": "Invalid - missing hyphens in date", + "data": "20230115T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - missing colons in time", + "data": "2023-01-15T120000Z", + "valid": false + }, + { + "description": "Invalid - with time shift instead of Z", + "data": "2023-01-15T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - with hourly time shift", + "data": "2023-01-15T12:00:00+01", + "valid": false + }, + { + "description": "Invalid - with decimal seconds", + "data": "2023-01-15T12:00:00.5Z", + "valid": false + }, + { + "description": "Invalid - partial time (hour and minute only)", + "data": "2023-01-15T12:00Z", + "valid": false + }, + { + "description": "Invalid - partial time (hour only)", + "data": "2023-01-15T12Z", + "valid": false + }, + { + "description": "Invalid - date only", + "data": "2023-01-15Z", + "valid": false + }, + { + "description": "Invalid - time only", + "data": "T12:00:00Z", + "valid": false + }, + { + "description": "Valid - January (month 01)", + "data": "2023-01-15T12:00:00Z", + "valid": true + }, + { + "description": "Valid - December (month 12)", + "data": "2023-12-31T12:00:00Z", + "valid": true + }, + { + "description": "Invalid - spaces in datetime", + "data": "2023-01-15 T 12:00:00Z", + "valid": false + }, + { + "description": "Invalid - extra hyphen in date", + "data": "2023--01-15T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - extra colon in time", + "data": "2023-01-15T12::00:00Z", + "valid": false + }, + { + "description": "Invalid - missing year digits", + "data": "23-01-15T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "2023-01-15T12:00:00ZX", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning", + "data": "X2023-01-15T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - double Z", + "data": "2023-01-15T12:00:00ZZ", + "valid": false + }, + { + "description": "Valid - year 0000", + "data": "0000-01-01T12:00:00Z", + "valid": true + }, + { + "description": "Valid - year 9999", + "data": "9999-12-31T23:59:59Z", + "valid": true + }, + { + "description": "Invalid - 30 February", + "data": "2023-02-30T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - 31 February", + "data": "2023-02-31T12:00:00Z", + "valid": false + }, + { + "description": "Valid - 29 February (leap year validation is consumer responsibility)", + "data": "2023-02-29T12:00:00Z", + "valid": true + }, + { + "description": "Invalid - 31 April", + "data": "2023-04-31T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - 31 June", + "data": "2023-06-31T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - 31 September", + "data": "2023-09-31T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - 31 November", + "data": "2023-11-31T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - 32 January", + "data": "2023-01-32T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - 32 March", + "data": "2023-03-32T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - 32 May", + "data": "2023-05-32T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - 32 July", + "data": "2023-07-32T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - 32 August", + "data": "2023-08-32T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - 32 October", + "data": "2023-10-32T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - 32 December", + "data": "2023-12-32T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - letter in year", + "data": "2O23-01-15T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - letter in month", + "data": "2023-O1-15T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - letter in day", + "data": "2023-01-O5T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - letter in hour", + "data": "2023-01-15T1O:00:00Z", + "valid": false + }, + { + "description": "Invalid - letter in minute", + "data": "2023-01-15T12:O0:00Z", + "valid": false + }, + { + "description": "Invalid - letter in second", + "data": "2023-01-15T12:00:O0Z", + "valid": false + }, + { + "description": "Valid - 30 April (30-day month)", + "data": "2023-04-30T12:00:00Z", + "valid": true + }, + { + "description": "Valid - 30 June (30-day month)", + "data": "2023-06-30T12:00:00Z", + "valid": true + }, + { + "description": "Valid - 30 September (30-day month)", + "data": "2023-09-30T12:00:00Z", + "valid": true + }, + { + "description": "Valid - 30 November (30-day month)", + "data": "2023-11-30T12:00:00Z", + "valid": true + }, + { + "description": "Valid - 31 January (31-day month)", + "data": "2023-01-31T12:00:00Z", + "valid": true + }, + { + "description": "Valid - 31 March (31-day month)", + "data": "2023-03-31T12:00:00Z", + "valid": true + }, + { + "description": "Valid - 31 May (31-day month)", + "data": "2023-05-31T12:00:00Z", + "valid": true + }, + { + "description": "Valid - 31 July (31-day month)", + "data": "2023-07-31T12:00:00Z", + "valid": true + }, + { + "description": "Valid - 31 August (31-day month)", + "data": "2023-08-31T12:00:00Z", + "valid": true + }, + { + "description": "Valid - 31 October (31-day month)", + "data": "2023-10-31T12:00:00Z", + "valid": true + }, + { + "description": "Valid - 31 December (31-day month)", + "data": "2023-12-31T12:00:00Z", + "valid": true + } + ] +} diff --git a/test/schemas/iso/datetime/2019/datetime/ordinal-basic/v1.test.json b/test/schemas/iso/datetime/2019/datetime/ordinal-basic/v1.test.json new file mode 100644 index 00000000..82b61311 --- /dev/null +++ b/test/schemas/iso/datetime/2019/datetime/ordinal-basic/v1.test.json @@ -0,0 +1,260 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/datetime/ordinal-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 2018001120000, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 1985-102 (Apr 12) 23:20:50", + "data": "1985102T232050", + "valid": true + }, + { + "description": "Valid - 2000-001 (Jan 1) 00:00:00", + "data": "2000001T000000", + "valid": true + }, + { + "description": "Valid - leap second 2023-365 23:59:60", + "data": "2023365T235960", + "valid": true + }, + { + "description": "Valid - leap day 2020-060 (Feb 29) 12:00:00", + "data": "2020060T120000", + "valid": true + }, + { + "description": "Valid - end of year 2023-365 23:59:59", + "data": "2023365T235959", + "valid": true + }, + { + "description": "Valid - start of year 2024-001 00:00:00", + "data": "2024001T000000", + "valid": true + }, + { + "description": "Valid - historical date 1900-074 (Mar 15) 06:30:45", + "data": "1900074T063045", + "valid": true + }, + { + "description": "Valid - future date 2100-232 (Aug 20) 18:45:30", + "data": "2100232T184530", + "valid": true + }, + { + "description": "Valid - leap year day 366 (2020-366)", + "data": "2020366T120000", + "valid": true + }, + { + "description": "Invalid - missing T designator", + "data": "1985102232050", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "1985102t232050", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - extended format (has hyphen)", + "data": "1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - day 000", + "data": "2023000T120000", + "valid": false + }, + { + "description": "Invalid - day 367", + "data": "2023367T120000", + "valid": false + }, + { + "description": "Invalid - day 999", + "data": "2023999T120000", + "valid": false + }, + { + "description": "Invalid - day with leading zeros 0001", + "data": "20230001T120000", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "2023100T240000", + "valid": false + }, + { + "description": "Invalid - hour 25", + "data": "2023100T250000", + "valid": false + }, + { + "description": "Invalid - hour 99", + "data": "2023100T990000", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "2023100T126000", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "2023100T129900", + "valid": false + }, + { + "description": "Invalid - second 61", + "data": "2023100T120061", + "valid": false + }, + { + "description": "Invalid - second 99", + "data": "2023100T120099", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "2023100T000000", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "2023100T230000", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "2023100T120000", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "2023100T125900", + "valid": true + }, + { + "description": "Valid - second 00 (minimum)", + "data": "2023100T120000", + "valid": true + }, + { + "description": "Valid - second 59", + "data": "2023100T120059", + "valid": true + }, + { + "description": "Valid - second 60 (leap second)", + "data": "2023181T235960", + "valid": true + }, + { + "description": "Invalid - with Z designator", + "data": "2023100T120000Z", + "valid": false + }, + { + "description": "Invalid - with time shift", + "data": "2023100T120000+0100", + "valid": false + }, + { + "description": "Invalid - with decimal seconds", + "data": "2023100T120000.5", + "valid": false + }, + { + "description": "Invalid - partial time (hour and minute only)", + "data": "2023100T1200", + "valid": false + }, + { + "description": "Invalid - partial time (hour only)", + "data": "2023100T12", + "valid": false + }, + { + "description": "Invalid - date only", + "data": "2023100", + "valid": false + }, + { + "description": "Invalid - time only", + "data": "T120000", + "valid": false + }, + { + "description": "Valid - day 001 (Jan 1)", + "data": "2023001T120000", + "valid": true + }, + { + "description": "Valid - day 365 (non-leap year last day)", + "data": "2023365T120000", + "valid": true + }, + { + "description": "Valid - day 366 (leap year last day)", + "data": "2020366T120000", + "valid": true + }, + { + "description": "Invalid - spaces in datetime", + "data": "2023 100T12 00 00", + "valid": false + }, + { + "description": "Invalid - too short day (2 digits)", + "data": "202310T120000", + "valid": false + }, + { + "description": "Invalid - missing year digits", + "data": "23100T120000", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "2023100T120000X", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning", + "data": "X2023100T120000", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/datetime/ordinal-extended/v1.test.json b/test/schemas/iso/datetime/2019/datetime/ordinal-extended/v1.test.json new file mode 100644 index 00000000..a10f4dca --- /dev/null +++ b/test/schemas/iso/datetime/2019/datetime/ordinal-extended/v1.test.json @@ -0,0 +1,265 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/datetime/ordinal-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 2018001120000, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 1985-102 (Apr 12) 23:20:50", + "data": "1985-102T23:20:50", + "valid": true + }, + { + "description": "Valid - 2000-001 (Jan 1) 00:00:00", + "data": "2000-001T00:00:00", + "valid": true + }, + { + "description": "Valid - leap second 2023-365 23:59:60", + "data": "2023-365T23:59:60", + "valid": true + }, + { + "description": "Valid - leap day 2020-060 (Feb 29) 12:00:00", + "data": "2020-060T12:00:00", + "valid": true + }, + { + "description": "Valid - end of year 2023-365 23:59:59", + "data": "2023-365T23:59:59", + "valid": true + }, + { + "description": "Valid - start of year 2024-001 00:00:00", + "data": "2024-001T00:00:00", + "valid": true + }, + { + "description": "Valid - historical date 1900-074 (Mar 15) 06:30:45", + "data": "1900-074T06:30:45", + "valid": true + }, + { + "description": "Valid - future date 2100-232 (Aug 20) 18:45:30", + "data": "2100-232T18:45:30", + "valid": true + }, + { + "description": "Valid - leap year day 366 (2020-366)", + "data": "2020-366T12:00:00", + "valid": true + }, + { + "description": "Invalid - missing T designator", + "data": "1985-10223:20:50", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "1985-102t23:20:50", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - basic format (no hyphen or colons)", + "data": "1985102T232050", + "valid": false + }, + { + "description": "Invalid - day 000", + "data": "2023-000T12:00:00", + "valid": false + }, + { + "description": "Invalid - day 367", + "data": "2023-367T12:00:00", + "valid": false + }, + { + "description": "Invalid - day 999", + "data": "2023-999T12:00:00", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "2023-100T24:00:00", + "valid": false + }, + { + "description": "Invalid - hour 25", + "data": "2023-100T25:00:00", + "valid": false + }, + { + "description": "Invalid - hour 99", + "data": "2023-100T99:00:00", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "2023-100T12:60:00", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "2023-100T12:99:00", + "valid": false + }, + { + "description": "Invalid - second 61", + "data": "2023-100T12:00:61", + "valid": false + }, + { + "description": "Invalid - second 99", + "data": "2023-100T12:00:99", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "2023-100T00:00:00", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "2023-100T23:00:00", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "2023-100T12:00:00", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "2023-100T12:59:00", + "valid": true + }, + { + "description": "Valid - second 00 (minimum)", + "data": "2023-100T12:00:00", + "valid": true + }, + { + "description": "Valid - second 59", + "data": "2023-100T12:00:59", + "valid": true + }, + { + "description": "Valid - second 60 (leap second)", + "data": "2023-181T23:59:60", + "valid": true + }, + { + "description": "Invalid - missing hyphen in date", + "data": "2023100T12:00:00", + "valid": false + }, + { + "description": "Invalid - missing colons in time", + "data": "2023-100T120000", + "valid": false + }, + { + "description": "Invalid - with Z designator", + "data": "2023-100T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - with time shift", + "data": "2023-100T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - with decimal seconds", + "data": "2023-100T12:00:00.5", + "valid": false + }, + { + "description": "Invalid - partial time (hour and minute only)", + "data": "2023-100T12:00", + "valid": false + }, + { + "description": "Invalid - partial time (hour only)", + "data": "2023-100T12", + "valid": false + }, + { + "description": "Invalid - date only", + "data": "2023-100", + "valid": false + }, + { + "description": "Invalid - time only", + "data": "T12:00:00", + "valid": false + }, + { + "description": "Valid - day 001 (Jan 1)", + "data": "2023-001T12:00:00", + "valid": true + }, + { + "description": "Valid - day 365 (non-leap year last day)", + "data": "2023-365T12:00:00", + "valid": true + }, + { + "description": "Valid - day 366 (leap year last day)", + "data": "2020-366T12:00:00", + "valid": true + }, + { + "description": "Invalid - spaces in datetime", + "data": "2023-100 T 12:00:00", + "valid": false + }, + { + "description": "Invalid - extra hyphen", + "data": "2023--100T12:00:00", + "valid": false + }, + { + "description": "Invalid - missing year digits", + "data": "23-100T12:00:00", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "2023-100T12:00:00X", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning", + "data": "X2023-100T12:00:00", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/datetime/ordinal-minute-utc-basic/v1.test.json b/test/schemas/iso/datetime/2019/datetime/ordinal-minute-utc-basic/v1.test.json new file mode 100644 index 00000000..11489f26 --- /dev/null +++ b/test/schemas/iso/datetime/2019/datetime/ordinal-minute-utc-basic/v1.test.json @@ -0,0 +1,235 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/datetime/ordinal-minute-utc-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 20180011200, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 1985-102 (Apr 12) 10:15 UTC", + "data": "1985102T1015Z", + "valid": true + }, + { + "description": "Valid - 2000-001 (Jan 1) 00:00 UTC", + "data": "2000001T0000Z", + "valid": true + }, + { + "description": "Valid - end of day 2023-365 23:59 UTC", + "data": "2023365T2359Z", + "valid": true + }, + { + "description": "Valid - leap day 2020-060 (Feb 29) 12:00 UTC", + "data": "2020060T1200Z", + "valid": true + }, + { + "description": "Valid - start of year 2024-001 00:00 UTC", + "data": "2024001T0000Z", + "valid": true + }, + { + "description": "Valid - historical date 1900-074 (Mar 15) 06:30 UTC", + "data": "1900074T0630Z", + "valid": true + }, + { + "description": "Valid - future date 2100-232 (Aug 20) 18:45 UTC", + "data": "2100232T1845Z", + "valid": true + }, + { + "description": "Valid - leap year day 366 (2020-366) UTC", + "data": "2020366T1200Z", + "valid": true + }, + { + "description": "Invalid - missing T designator", + "data": "19851021015Z", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "1985102t1015Z", + "valid": false + }, + { + "description": "Invalid - lowercase z", + "data": "1985102T1015z", + "valid": false + }, + { + "description": "Invalid - missing Z designator", + "data": "1985102T1015", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - extended format", + "data": "1985-102T10:15Z", + "valid": false + }, + { + "description": "Invalid - day 000", + "data": "2023000T1200Z", + "valid": false + }, + { + "description": "Invalid - day 367", + "data": "2023367T1200Z", + "valid": false + }, + { + "description": "Invalid - day 999", + "data": "2023999T1200Z", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "2023100T2400Z", + "valid": false + }, + { + "description": "Invalid - hour 25", + "data": "2023100T2500Z", + "valid": false + }, + { + "description": "Invalid - hour 99", + "data": "2023100T9900Z", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "2023100T1260Z", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "2023100T1299Z", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "2023100T0000Z", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "2023100T2300Z", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "2023100T1200Z", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "2023100T1259Z", + "valid": true + }, + { + "description": "Invalid - with seconds", + "data": "2023100T120000Z", + "valid": false + }, + { + "description": "Invalid - with time shift instead of Z", + "data": "2023100T1200+0100", + "valid": false + }, + { + "description": "Invalid - with hourly time shift", + "data": "2023100T1200+01", + "valid": false + }, + { + "description": "Invalid - with decimal minutes", + "data": "2023100T1200.5Z", + "valid": false + }, + { + "description": "Invalid - partial time (hour only)", + "data": "2023100T12Z", + "valid": false + }, + { + "description": "Invalid - date only", + "data": "2023100Z", + "valid": false + }, + { + "description": "Invalid - time only", + "data": "T1200Z", + "valid": false + }, + { + "description": "Valid - day 001 (Jan 1)", + "data": "2023001T1200Z", + "valid": true + }, + { + "description": "Valid - day 365 (non-leap year last day)", + "data": "2023365T1200Z", + "valid": true + }, + { + "description": "Valid - day 366 (leap year last day)", + "data": "2020366T1200Z", + "valid": true + }, + { + "description": "Invalid - spaces in datetime", + "data": "2023 100T12 00Z", + "valid": false + }, + { + "description": "Invalid - missing year digits", + "data": "23100T1200Z", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "2023100T1200ZX", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning", + "data": "X2023100T1200Z", + "valid": false + }, + { + "description": "Invalid - double Z", + "data": "2023100T1200ZZ", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/datetime/ordinal-minute-utc-extended/v1.test.json b/test/schemas/iso/datetime/2019/datetime/ordinal-minute-utc-extended/v1.test.json new file mode 100644 index 00000000..83cfeba9 --- /dev/null +++ b/test/schemas/iso/datetime/2019/datetime/ordinal-minute-utc-extended/v1.test.json @@ -0,0 +1,250 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/datetime/ordinal-minute-utc-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 20180011200, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 1985-102 (Apr 12) 10:15 UTC", + "data": "1985-102T10:15Z", + "valid": true + }, + { + "description": "Valid - 2000-001 (Jan 1) 00:00 UTC", + "data": "2000-001T00:00Z", + "valid": true + }, + { + "description": "Valid - end of day 2023-365 23:59 UTC", + "data": "2023-365T23:59Z", + "valid": true + }, + { + "description": "Valid - leap day 2020-060 (Feb 29) 12:00 UTC", + "data": "2020-060T12:00Z", + "valid": true + }, + { + "description": "Valid - start of year 2024-001 00:00 UTC", + "data": "2024-001T00:00Z", + "valid": true + }, + { + "description": "Valid - historical date 1900-074 (Mar 15) 06:30 UTC", + "data": "1900-074T06:30Z", + "valid": true + }, + { + "description": "Valid - future date 2100-232 (Aug 20) 18:45 UTC", + "data": "2100-232T18:45Z", + "valid": true + }, + { + "description": "Valid - leap year day 366 (2020-366) UTC", + "data": "2020-366T12:00Z", + "valid": true + }, + { + "description": "Invalid - missing T designator", + "data": "1985-10210:15Z", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "1985-102t10:15Z", + "valid": false + }, + { + "description": "Invalid - lowercase z", + "data": "1985-102T10:15z", + "valid": false + }, + { + "description": "Invalid - missing Z designator", + "data": "1985-102T10:15", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - basic format", + "data": "1985102T1015Z", + "valid": false + }, + { + "description": "Invalid - day 000", + "data": "2023-000T12:00Z", + "valid": false + }, + { + "description": "Invalid - day 367", + "data": "2023-367T12:00Z", + "valid": false + }, + { + "description": "Invalid - day 999", + "data": "2023-999T12:00Z", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "2023-100T24:00Z", + "valid": false + }, + { + "description": "Invalid - hour 25", + "data": "2023-100T25:00Z", + "valid": false + }, + { + "description": "Invalid - hour 99", + "data": "2023-100T99:00Z", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "2023-100T12:60Z", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "2023-100T12:99Z", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "2023-100T00:00Z", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "2023-100T23:00Z", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "2023-100T12:00Z", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "2023-100T12:59Z", + "valid": true + }, + { + "description": "Invalid - missing hyphen in date", + "data": "2023100T12:00Z", + "valid": false + }, + { + "description": "Invalid - missing colon in time", + "data": "2023-100T1200Z", + "valid": false + }, + { + "description": "Invalid - with seconds", + "data": "2023-100T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - with time shift instead of Z", + "data": "2023-100T12:00+01:00", + "valid": false + }, + { + "description": "Invalid - with hourly time shift", + "data": "2023-100T12:00+01", + "valid": false + }, + { + "description": "Invalid - with decimal minutes", + "data": "2023-100T12:00.5Z", + "valid": false + }, + { + "description": "Invalid - partial time (hour only)", + "data": "2023-100T12Z", + "valid": false + }, + { + "description": "Invalid - date only", + "data": "2023-100Z", + "valid": false + }, + { + "description": "Invalid - time only", + "data": "T12:00Z", + "valid": false + }, + { + "description": "Valid - day 001 (Jan 1)", + "data": "2023-001T12:00Z", + "valid": true + }, + { + "description": "Valid - day 365 (non-leap year last day)", + "data": "2023-365T12:00Z", + "valid": true + }, + { + "description": "Valid - day 366 (leap year last day)", + "data": "2020-366T12:00Z", + "valid": true + }, + { + "description": "Invalid - spaces in datetime", + "data": "2023-100 T 12:00Z", + "valid": false + }, + { + "description": "Invalid - extra hyphen", + "data": "2023--100T12:00Z", + "valid": false + }, + { + "description": "Invalid - missing year digits", + "data": "23-100T12:00Z", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "2023-100T12:00ZX", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning", + "data": "X2023-100T12:00Z", + "valid": false + }, + { + "description": "Invalid - double Z", + "data": "2023-100T12:00ZZ", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/datetime/ordinal-shift-basic/v1.test.json b/test/schemas/iso/datetime/2019/datetime/ordinal-shift-basic/v1.test.json new file mode 100644 index 00000000..0589e1d1 --- /dev/null +++ b/test/schemas/iso/datetime/2019/datetime/ordinal-shift-basic/v1.test.json @@ -0,0 +1,280 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/datetime/ordinal-shift-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 2018001120000, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 1985-102 (Apr 12) 23:20:50 +04:00", + "data": "1985102T232050+0400", + "valid": true + }, + { + "description": "Valid - 2000-001 (Jan 1) 00:00:00 -05:00", + "data": "2000001T000000-0500", + "valid": true + }, + { + "description": "Valid - leap second 2023-365 23:59:60 +00:00", + "data": "2023365T235960+0000", + "valid": true + }, + { + "description": "Valid - leap day 2020-060 (Feb 29) 12:00:00 +05:30", + "data": "2020060T120000+0530", + "valid": true + }, + { + "description": "Valid - positive shift +01:00", + "data": "2023100T120000+0100", + "valid": true + }, + { + "description": "Valid - negative shift -08:00", + "data": "2023100T120000-0800", + "valid": true + }, + { + "description": "Valid - maximum positive shift +23:59", + "data": "2023100T120000+2359", + "valid": true + }, + { + "description": "Valid - maximum negative shift -23:59", + "data": "2023100T120000-2359", + "valid": true + }, + { + "description": "Valid - zero shift +00:00", + "data": "2023100T120000+0000", + "valid": true + }, + { + "description": "Invalid - negative zero shift -00:00", + "data": "2023100T120000-0000", + "valid": false + }, + { + "description": "Valid - historical date 1900-074 (Mar 15) +02:00", + "data": "1900074T063045+0200", + "valid": true + }, + { + "description": "Valid - future date 2100-232 (Aug 20) -12:00", + "data": "2100232T184530-1200", + "valid": true + }, + { + "description": "Invalid - missing T designator", + "data": "1985102232050+0400", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "1985102t232050+0400", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - extended format", + "data": "1985-102T23:20:50+04:00", + "valid": false + }, + { + "description": "Invalid - missing time shift", + "data": "1985102T232050", + "valid": false + }, + { + "description": "Invalid - with Z instead of shift", + "data": "1985102T232050Z", + "valid": false + }, + { + "description": "Invalid - shift hour 24", + "data": "2023100T120000+2400", + "valid": false + }, + { + "description": "Invalid - shift hour 25", + "data": "2023100T120000+2500", + "valid": false + }, + { + "description": "Invalid - shift minute 60", + "data": "2023100T120000+0160", + "valid": false + }, + { + "description": "Invalid - shift minute 99", + "data": "2023100T120000+0199", + "valid": false + }, + { + "description": "Invalid - missing shift sign", + "data": "2023100T1200000400", + "valid": false + }, + { + "description": "Invalid - colon in shift (extended format shift)", + "data": "1985102T232050+04:00", + "valid": false + }, + { + "description": "Invalid - hourly shift only", + "data": "1985102T232050+04", + "valid": false + }, + { + "description": "Invalid - day 000", + "data": "2023000T120000+0100", + "valid": false + }, + { + "description": "Invalid - day 367", + "data": "2023367T120000+0100", + "valid": false + }, + { + "description": "Invalid - day 999", + "data": "2023999T120000+0100", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "2023100T240000+0100", + "valid": false + }, + { + "description": "Invalid - hour 25", + "data": "2023100T250000+0100", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "2023100T126000+0100", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "2023100T129900+0100", + "valid": false + }, + { + "description": "Invalid - second 61", + "data": "2023100T120061+0100", + "valid": false + }, + { + "description": "Invalid - second 99", + "data": "2023100T120099+0100", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "2023100T000000+0100", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "2023100T230000+0100", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "2023100T120000+0100", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "2023100T125900+0100", + "valid": true + }, + { + "description": "Valid - second 00 (minimum)", + "data": "2023100T120000+0100", + "valid": true + }, + { + "description": "Valid - second 59", + "data": "2023100T120059+0100", + "valid": true + }, + { + "description": "Valid - second 60 (leap second)", + "data": "2023181T235960+0100", + "valid": true + }, + { + "description": "Invalid - with decimal seconds", + "data": "2023100T120000.5+0100", + "valid": false + }, + { + "description": "Invalid - partial time (hour and minute only)", + "data": "2023100T1200+0100", + "valid": false + }, + { + "description": "Invalid - date only", + "data": "2023100+0100", + "valid": false + }, + { + "description": "Valid - day 001 (Jan 1)", + "data": "2023001T120000+0100", + "valid": true + }, + { + "description": "Valid - day 365 (non-leap year last day)", + "data": "2023365T120000+0100", + "valid": true + }, + { + "description": "Valid - day 366 (leap year last day)", + "data": "2020366T120000+0100", + "valid": true + }, + { + "description": "Invalid - spaces in datetime", + "data": "2023 100T12 00 00+01 00", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "2023100T120000+0100X", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning", + "data": "X2023100T120000+0100", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/datetime/ordinal-shift-extended/v1.test.json b/test/schemas/iso/datetime/2019/datetime/ordinal-shift-extended/v1.test.json new file mode 100644 index 00000000..3ea7754a --- /dev/null +++ b/test/schemas/iso/datetime/2019/datetime/ordinal-shift-extended/v1.test.json @@ -0,0 +1,290 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/datetime/ordinal-shift-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 2018001120000, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 1985-102 (Apr 12) 23:20:50 +04:00", + "data": "1985-102T23:20:50+04:00", + "valid": true + }, + { + "description": "Valid - 2000-001 (Jan 1) 00:00:00 -05:00", + "data": "2000-001T00:00:00-05:00", + "valid": true + }, + { + "description": "Valid - leap second 2023-365 23:59:60 +00:00", + "data": "2023-365T23:59:60+00:00", + "valid": true + }, + { + "description": "Valid - leap day 2020-060 (Feb 29) 12:00:00 +05:30", + "data": "2020-060T12:00:00+05:30", + "valid": true + }, + { + "description": "Valid - positive shift +01:00", + "data": "2023-100T12:00:00+01:00", + "valid": true + }, + { + "description": "Valid - negative shift -08:00", + "data": "2023-100T12:00:00-08:00", + "valid": true + }, + { + "description": "Valid - maximum positive shift +23:59", + "data": "2023-100T12:00:00+23:59", + "valid": true + }, + { + "description": "Valid - maximum negative shift -23:59", + "data": "2023-100T12:00:00-23:59", + "valid": true + }, + { + "description": "Valid - zero shift +00:00", + "data": "2023-100T12:00:00+00:00", + "valid": true + }, + { + "description": "Invalid - negative zero shift -00:00", + "data": "2023-100T12:00:00-00:00", + "valid": false + }, + { + "description": "Valid - historical date 1900-074 (Mar 15) +02:00", + "data": "1900-074T06:30:45+02:00", + "valid": true + }, + { + "description": "Valid - future date 2100-232 (Aug 20) -12:00", + "data": "2100-232T18:45:30-12:00", + "valid": true + }, + { + "description": "Invalid - missing T designator", + "data": "1985-10223:20:50+04:00", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "1985-102t23:20:50+04:00", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - basic format", + "data": "1985102T232050+0400", + "valid": false + }, + { + "description": "Invalid - missing time shift", + "data": "1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - with Z instead of shift", + "data": "1985-102T23:20:50Z", + "valid": false + }, + { + "description": "Invalid - shift hour 24", + "data": "2023-100T12:00:00+24:00", + "valid": false + }, + { + "description": "Invalid - shift hour 25", + "data": "2023-100T12:00:00+25:00", + "valid": false + }, + { + "description": "Invalid - shift minute 60", + "data": "2023-100T12:00:00+01:60", + "valid": false + }, + { + "description": "Invalid - shift minute 99", + "data": "2023-100T12:00:00+01:99", + "valid": false + }, + { + "description": "Invalid - missing shift sign", + "data": "2023-100T12:00:0004:00", + "valid": false + }, + { + "description": "Invalid - missing colon in shift (basic format shift)", + "data": "1985-102T23:20:50+0400", + "valid": false + }, + { + "description": "Invalid - hourly shift only", + "data": "1985-102T23:20:50+04", + "valid": false + }, + { + "description": "Invalid - day 000", + "data": "2023-000T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - day 367", + "data": "2023-367T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - day 999", + "data": "2023-999T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "2023-100T24:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - hour 25", + "data": "2023-100T25:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "2023-100T12:60:00+01:00", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "2023-100T12:99:00+01:00", + "valid": false + }, + { + "description": "Invalid - second 61", + "data": "2023-100T12:00:61+01:00", + "valid": false + }, + { + "description": "Invalid - second 99", + "data": "2023-100T12:00:99+01:00", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "2023-100T00:00:00+01:00", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "2023-100T23:00:00+01:00", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "2023-100T12:00:00+01:00", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "2023-100T12:59:00+01:00", + "valid": true + }, + { + "description": "Valid - second 00 (minimum)", + "data": "2023-100T12:00:00+01:00", + "valid": true + }, + { + "description": "Valid - second 59", + "data": "2023-100T12:00:59+01:00", + "valid": true + }, + { + "description": "Valid - second 60 (leap second)", + "data": "2023-181T23:59:60+01:00", + "valid": true + }, + { + "description": "Invalid - missing hyphen in date", + "data": "2023100T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - missing colons in time", + "data": "2023-100T120000+01:00", + "valid": false + }, + { + "description": "Invalid - with decimal seconds", + "data": "2023-100T12:00:00.5+01:00", + "valid": false + }, + { + "description": "Invalid - partial time (hour and minute only)", + "data": "2023-100T12:00+01:00", + "valid": false + }, + { + "description": "Invalid - date only", + "data": "2023-100+01:00", + "valid": false + }, + { + "description": "Valid - day 001 (Jan 1)", + "data": "2023-001T12:00:00+01:00", + "valid": true + }, + { + "description": "Valid - day 365 (non-leap year last day)", + "data": "2023-365T12:00:00+01:00", + "valid": true + }, + { + "description": "Valid - day 366 (leap year last day)", + "data": "2020-366T12:00:00+01:00", + "valid": true + }, + { + "description": "Invalid - spaces in datetime", + "data": "2023-100 T 12:00:00 + 01:00", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "2023-100T12:00:00+01:00X", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning", + "data": "X2023-100T12:00:00+01:00", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/datetime/ordinal-shifthour-basic/v1.test.json b/test/schemas/iso/datetime/2019/datetime/ordinal-shifthour-basic/v1.test.json new file mode 100644 index 00000000..c9b99f61 --- /dev/null +++ b/test/schemas/iso/datetime/2019/datetime/ordinal-shifthour-basic/v1.test.json @@ -0,0 +1,285 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/datetime/ordinal-shifthour-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 2018001120000, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 1985-102 (Apr 12) 23:20:50 +04", + "data": "1985102T232050+04", + "valid": true + }, + { + "description": "Valid - 2000-001 (Jan 1) 00:00:00 -05", + "data": "2000001T000000-05", + "valid": true + }, + { + "description": "Valid - leap second 2023-365 23:59:60 +00", + "data": "2023365T235960+00", + "valid": true + }, + { + "description": "Valid - leap day 2020-060 (Feb 29) 12:00:00 +05", + "data": "2020060T120000+05", + "valid": true + }, + { + "description": "Valid - positive shift +01", + "data": "2023100T120000+01", + "valid": true + }, + { + "description": "Valid - negative shift -08", + "data": "2023100T120000-08", + "valid": true + }, + { + "description": "Valid - maximum positive shift +23", + "data": "2023100T120000+23", + "valid": true + }, + { + "description": "Valid - maximum negative shift -23", + "data": "2023100T120000-23", + "valid": true + }, + { + "description": "Valid - zero shift +00", + "data": "2023100T120000+00", + "valid": true + }, + { + "description": "Invalid - negative zero shift -00", + "data": "2023100T120000-00", + "valid": false + }, + { + "description": "Valid - historical date 1900-074 (Mar 15) +02", + "data": "1900074T063045+02", + "valid": true + }, + { + "description": "Valid - future date 2100-232 (Aug 20) -12", + "data": "2100232T184530-12", + "valid": true + }, + { + "description": "Invalid - missing T designator", + "data": "1985102232050+04", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "1985102t232050+04", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - extended format", + "data": "1985-102T23:20:50+04", + "valid": false + }, + { + "description": "Invalid - missing time shift", + "data": "1985102T232050", + "valid": false + }, + { + "description": "Invalid - with Z instead of shift", + "data": "1985102T232050Z", + "valid": false + }, + { + "description": "Invalid - shift hour 24", + "data": "2023100T120000+24", + "valid": false + }, + { + "description": "Invalid - shift hour 25", + "data": "2023100T120000+25", + "valid": false + }, + { + "description": "Invalid - shift hour 99", + "data": "2023100T120000+99", + "valid": false + }, + { + "description": "Invalid - missing shift sign", + "data": "2023100T12000004", + "valid": false + }, + { + "description": "Invalid - shift with minutes (full shift)", + "data": "1985102T232050+0400", + "valid": false + }, + { + "description": "Invalid - shift with colon", + "data": "1985102T232050+04:00", + "valid": false + }, + { + "description": "Invalid - single digit shift", + "data": "1985102T232050+4", + "valid": false + }, + { + "description": "Invalid - three digit shift", + "data": "1985102T232050+004", + "valid": false + }, + { + "description": "Invalid - day 000", + "data": "2023000T120000+01", + "valid": false + }, + { + "description": "Invalid - day 367", + "data": "2023367T120000+01", + "valid": false + }, + { + "description": "Invalid - day 999", + "data": "2023999T120000+01", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "2023100T240000+01", + "valid": false + }, + { + "description": "Invalid - hour 25", + "data": "2023100T250000+01", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "2023100T126000+01", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "2023100T129900+01", + "valid": false + }, + { + "description": "Invalid - second 61", + "data": "2023100T120061+01", + "valid": false + }, + { + "description": "Invalid - second 99", + "data": "2023100T120099+01", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "2023100T000000+01", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "2023100T230000+01", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "2023100T120000+01", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "2023100T125900+01", + "valid": true + }, + { + "description": "Valid - second 00 (minimum)", + "data": "2023100T120000+01", + "valid": true + }, + { + "description": "Valid - second 59", + "data": "2023100T120059+01", + "valid": true + }, + { + "description": "Valid - second 60 (leap second)", + "data": "2023181T235960+01", + "valid": true + }, + { + "description": "Invalid - with decimal seconds", + "data": "2023100T120000.5+01", + "valid": false + }, + { + "description": "Invalid - partial time (hour and minute only)", + "data": "2023100T1200+01", + "valid": false + }, + { + "description": "Invalid - date only", + "data": "2023100+01", + "valid": false + }, + { + "description": "Valid - day 001 (Jan 1)", + "data": "2023001T120000+01", + "valid": true + }, + { + "description": "Valid - day 365 (non-leap year last day)", + "data": "2023365T120000+01", + "valid": true + }, + { + "description": "Valid - day 366 (leap year last day)", + "data": "2020366T120000+01", + "valid": true + }, + { + "description": "Invalid - spaces in datetime", + "data": "2023 100T12 00 00+01", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "2023100T120000+01X", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning", + "data": "X2023100T120000+01", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/datetime/ordinal-shifthour-extended/v1.test.json b/test/schemas/iso/datetime/2019/datetime/ordinal-shifthour-extended/v1.test.json new file mode 100644 index 00000000..3f273885 --- /dev/null +++ b/test/schemas/iso/datetime/2019/datetime/ordinal-shifthour-extended/v1.test.json @@ -0,0 +1,295 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/datetime/ordinal-shifthour-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 2018001120000, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 1985-102 (Apr 12) 23:20:50 +04", + "data": "1985-102T23:20:50+04", + "valid": true + }, + { + "description": "Valid - 2000-001 (Jan 1) 00:00:00 -05", + "data": "2000-001T00:00:00-05", + "valid": true + }, + { + "description": "Valid - leap second 2023-365 23:59:60 +00", + "data": "2023-365T23:59:60+00", + "valid": true + }, + { + "description": "Valid - leap day 2020-060 (Feb 29) 12:00:00 +05", + "data": "2020-060T12:00:00+05", + "valid": true + }, + { + "description": "Valid - positive shift +01", + "data": "2023-100T12:00:00+01", + "valid": true + }, + { + "description": "Valid - negative shift -08", + "data": "2023-100T12:00:00-08", + "valid": true + }, + { + "description": "Valid - maximum positive shift +23", + "data": "2023-100T12:00:00+23", + "valid": true + }, + { + "description": "Valid - maximum negative shift -23", + "data": "2023-100T12:00:00-23", + "valid": true + }, + { + "description": "Valid - zero shift +00", + "data": "2023-100T12:00:00+00", + "valid": true + }, + { + "description": "Invalid - negative zero shift -00", + "data": "2023-100T12:00:00-00", + "valid": false + }, + { + "description": "Valid - historical date 1900-074 (Mar 15) +02", + "data": "1900-074T06:30:45+02", + "valid": true + }, + { + "description": "Valid - future date 2100-232 (Aug 20) -12", + "data": "2100-232T18:45:30-12", + "valid": true + }, + { + "description": "Invalid - missing T designator", + "data": "1985-10223:20:50+04", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "1985-102t23:20:50+04", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - basic format", + "data": "1985102T232050+04", + "valid": false + }, + { + "description": "Invalid - missing time shift", + "data": "1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - with Z instead of shift", + "data": "1985-102T23:20:50Z", + "valid": false + }, + { + "description": "Invalid - shift hour 24", + "data": "2023-100T12:00:00+24", + "valid": false + }, + { + "description": "Invalid - shift hour 25", + "data": "2023-100T12:00:00+25", + "valid": false + }, + { + "description": "Invalid - shift hour 99", + "data": "2023-100T12:00:00+99", + "valid": false + }, + { + "description": "Invalid - missing shift sign", + "data": "2023-100T12:00:0004", + "valid": false + }, + { + "description": "Invalid - shift with minutes (full shift)", + "data": "1985-102T23:20:50+04:00", + "valid": false + }, + { + "description": "Invalid - shift without colon (basic format shift)", + "data": "1985-102T23:20:50+0400", + "valid": false + }, + { + "description": "Invalid - single digit shift", + "data": "1985-102T23:20:50+4", + "valid": false + }, + { + "description": "Invalid - three digit shift", + "data": "1985-102T23:20:50+004", + "valid": false + }, + { + "description": "Invalid - day 000", + "data": "2023-000T12:00:00+01", + "valid": false + }, + { + "description": "Invalid - day 367", + "data": "2023-367T12:00:00+01", + "valid": false + }, + { + "description": "Invalid - day 999", + "data": "2023-999T12:00:00+01", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "2023-100T24:00:00+01", + "valid": false + }, + { + "description": "Invalid - hour 25", + "data": "2023-100T25:00:00+01", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "2023-100T12:60:00+01", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "2023-100T12:99:00+01", + "valid": false + }, + { + "description": "Invalid - second 61", + "data": "2023-100T12:00:61+01", + "valid": false + }, + { + "description": "Invalid - second 99", + "data": "2023-100T12:00:99+01", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "2023-100T00:00:00+01", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "2023-100T23:00:00+01", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "2023-100T12:00:00+01", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "2023-100T12:59:00+01", + "valid": true + }, + { + "description": "Valid - second 00 (minimum)", + "data": "2023-100T12:00:00+01", + "valid": true + }, + { + "description": "Valid - second 59", + "data": "2023-100T12:00:59+01", + "valid": true + }, + { + "description": "Valid - second 60 (leap second)", + "data": "2023-181T23:59:60+01", + "valid": true + }, + { + "description": "Invalid - missing hyphen in date", + "data": "2023100T12:00:00+01", + "valid": false + }, + { + "description": "Invalid - missing colons in time", + "data": "2023-100T120000+01", + "valid": false + }, + { + "description": "Invalid - with decimal seconds", + "data": "2023-100T12:00:00.5+01", + "valid": false + }, + { + "description": "Invalid - partial time (hour and minute only)", + "data": "2023-100T12:00+01", + "valid": false + }, + { + "description": "Invalid - date only", + "data": "2023-100+01", + "valid": false + }, + { + "description": "Valid - day 001 (Jan 1)", + "data": "2023-001T12:00:00+01", + "valid": true + }, + { + "description": "Valid - day 365 (non-leap year last day)", + "data": "2023-365T12:00:00+01", + "valid": true + }, + { + "description": "Valid - day 366 (leap year last day)", + "data": "2020-366T12:00:00+01", + "valid": true + }, + { + "description": "Invalid - spaces in datetime", + "data": "2023-100 T 12:00:00 + 01", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "2023-100T12:00:00+01X", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning", + "data": "X2023-100T12:00:00+01", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/datetime/ordinal-utc-basic/v1.test.json b/test/schemas/iso/datetime/2019/datetime/ordinal-utc-basic/v1.test.json new file mode 100644 index 00000000..ef94670a --- /dev/null +++ b/test/schemas/iso/datetime/2019/datetime/ordinal-utc-basic/v1.test.json @@ -0,0 +1,265 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/datetime/ordinal-utc-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 2018001120000, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 1985-102 (Apr 12) 23:20:50 UTC", + "data": "1985102T232050Z", + "valid": true + }, + { + "description": "Valid - 2000-001 (Jan 1) 00:00:00 UTC", + "data": "2000001T000000Z", + "valid": true + }, + { + "description": "Valid - leap second 2023-365 23:59:60 UTC", + "data": "2023365T235960Z", + "valid": true + }, + { + "description": "Valid - leap day 2020-060 (Feb 29) 12:00:00 UTC", + "data": "2020060T120000Z", + "valid": true + }, + { + "description": "Valid - end of year 2023-365 23:59:59 UTC", + "data": "2023365T235959Z", + "valid": true + }, + { + "description": "Valid - start of year 2024-001 00:00:00 UTC", + "data": "2024001T000000Z", + "valid": true + }, + { + "description": "Valid - historical date 1900-074 (Mar 15) 06:30:45 UTC", + "data": "1900074T063045Z", + "valid": true + }, + { + "description": "Valid - future date 2100-232 (Aug 20) 18:45:30 UTC", + "data": "2100232T184530Z", + "valid": true + }, + { + "description": "Valid - leap year day 366 (2020-366) UTC", + "data": "2020366T120000Z", + "valid": true + }, + { + "description": "Invalid - missing T designator", + "data": "1985102232050Z", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "1985102t232050Z", + "valid": false + }, + { + "description": "Invalid - lowercase z", + "data": "1985102T232050z", + "valid": false + }, + { + "description": "Invalid - missing Z designator", + "data": "1985102T232050", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - extended format", + "data": "1985-102T23:20:50Z", + "valid": false + }, + { + "description": "Invalid - day 000", + "data": "2023000T120000Z", + "valid": false + }, + { + "description": "Invalid - day 367", + "data": "2023367T120000Z", + "valid": false + }, + { + "description": "Invalid - day 999", + "data": "2023999T120000Z", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "2023100T240000Z", + "valid": false + }, + { + "description": "Invalid - hour 25", + "data": "2023100T250000Z", + "valid": false + }, + { + "description": "Invalid - hour 99", + "data": "2023100T990000Z", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "2023100T126000Z", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "2023100T129900Z", + "valid": false + }, + { + "description": "Invalid - second 61", + "data": "2023100T120061Z", + "valid": false + }, + { + "description": "Invalid - second 99", + "data": "2023100T120099Z", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "2023100T000000Z", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "2023100T230000Z", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "2023100T120000Z", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "2023100T125900Z", + "valid": true + }, + { + "description": "Valid - second 00 (minimum)", + "data": "2023100T120000Z", + "valid": true + }, + { + "description": "Valid - second 59", + "data": "2023100T120059Z", + "valid": true + }, + { + "description": "Valid - second 60 (leap second)", + "data": "2023181T235960Z", + "valid": true + }, + { + "description": "Invalid - with time shift instead of Z", + "data": "2023100T120000+0100", + "valid": false + }, + { + "description": "Invalid - with hourly time shift", + "data": "2023100T120000+01", + "valid": false + }, + { + "description": "Invalid - with decimal seconds", + "data": "2023100T120000.5Z", + "valid": false + }, + { + "description": "Invalid - partial time (hour and minute only)", + "data": "2023100T1200Z", + "valid": false + }, + { + "description": "Invalid - partial time (hour only)", + "data": "2023100T12Z", + "valid": false + }, + { + "description": "Invalid - date only", + "data": "2023100Z", + "valid": false + }, + { + "description": "Invalid - time only", + "data": "T120000Z", + "valid": false + }, + { + "description": "Valid - day 001 (Jan 1)", + "data": "2023001T120000Z", + "valid": true + }, + { + "description": "Valid - day 365 (non-leap year last day)", + "data": "2023365T120000Z", + "valid": true + }, + { + "description": "Valid - day 366 (leap year last day)", + "data": "2020366T120000Z", + "valid": true + }, + { + "description": "Invalid - spaces in datetime", + "data": "2023 100T12 00 00Z", + "valid": false + }, + { + "description": "Invalid - missing year digits", + "data": "23100T120000Z", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "2023100T120000ZX", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning", + "data": "X2023100T120000Z", + "valid": false + }, + { + "description": "Invalid - double Z", + "data": "2023100T120000ZZ", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/datetime/ordinal-utc-extended/v1.test.json b/test/schemas/iso/datetime/2019/datetime/ordinal-utc-extended/v1.test.json new file mode 100644 index 00000000..e608d627 --- /dev/null +++ b/test/schemas/iso/datetime/2019/datetime/ordinal-utc-extended/v1.test.json @@ -0,0 +1,280 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/datetime/ordinal-utc-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 2018001120000, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 1985-102 (Apr 12) 23:20:50 UTC", + "data": "1985-102T23:20:50Z", + "valid": true + }, + { + "description": "Valid - 2000-001 (Jan 1) 00:00:00 UTC", + "data": "2000-001T00:00:00Z", + "valid": true + }, + { + "description": "Valid - leap second 2023-365 23:59:60 UTC", + "data": "2023-365T23:59:60Z", + "valid": true + }, + { + "description": "Valid - leap day 2020-060 (Feb 29) 12:00:00 UTC", + "data": "2020-060T12:00:00Z", + "valid": true + }, + { + "description": "Valid - end of year 2023-365 23:59:59 UTC", + "data": "2023-365T23:59:59Z", + "valid": true + }, + { + "description": "Valid - start of year 2024-001 00:00:00 UTC", + "data": "2024-001T00:00:00Z", + "valid": true + }, + { + "description": "Valid - historical date 1900-074 (Mar 15) 06:30:45 UTC", + "data": "1900-074T06:30:45Z", + "valid": true + }, + { + "description": "Valid - future date 2100-232 (Aug 20) 18:45:30 UTC", + "data": "2100-232T18:45:30Z", + "valid": true + }, + { + "description": "Valid - leap year day 366 (2020-366) UTC", + "data": "2020-366T12:00:00Z", + "valid": true + }, + { + "description": "Invalid - missing T designator", + "data": "1985-10223:20:50Z", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "1985-102t23:20:50Z", + "valid": false + }, + { + "description": "Invalid - lowercase z", + "data": "1985-102T23:20:50z", + "valid": false + }, + { + "description": "Invalid - missing Z designator", + "data": "1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - basic format", + "data": "1985102T232050Z", + "valid": false + }, + { + "description": "Invalid - day 000", + "data": "2023-000T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - day 367", + "data": "2023-367T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - day 999", + "data": "2023-999T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "2023-100T24:00:00Z", + "valid": false + }, + { + "description": "Invalid - hour 25", + "data": "2023-100T25:00:00Z", + "valid": false + }, + { + "description": "Invalid - hour 99", + "data": "2023-100T99:00:00Z", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "2023-100T12:60:00Z", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "2023-100T12:99:00Z", + "valid": false + }, + { + "description": "Invalid - second 61", + "data": "2023-100T12:00:61Z", + "valid": false + }, + { + "description": "Invalid - second 99", + "data": "2023-100T12:00:99Z", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "2023-100T00:00:00Z", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "2023-100T23:00:00Z", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "2023-100T12:00:00Z", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "2023-100T12:59:00Z", + "valid": true + }, + { + "description": "Valid - second 00 (minimum)", + "data": "2023-100T12:00:00Z", + "valid": true + }, + { + "description": "Valid - second 59", + "data": "2023-100T12:00:59Z", + "valid": true + }, + { + "description": "Valid - second 60 (leap second)", + "data": "2023-181T23:59:60Z", + "valid": true + }, + { + "description": "Invalid - missing hyphen in date", + "data": "2023100T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - missing colons in time", + "data": "2023-100T120000Z", + "valid": false + }, + { + "description": "Invalid - with time shift instead of Z", + "data": "2023-100T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - with hourly time shift", + "data": "2023-100T12:00:00+01", + "valid": false + }, + { + "description": "Invalid - with decimal seconds", + "data": "2023-100T12:00:00.5Z", + "valid": false + }, + { + "description": "Invalid - partial time (hour and minute only)", + "data": "2023-100T12:00Z", + "valid": false + }, + { + "description": "Invalid - partial time (hour only)", + "data": "2023-100T12Z", + "valid": false + }, + { + "description": "Invalid - date only", + "data": "2023-100Z", + "valid": false + }, + { + "description": "Invalid - time only", + "data": "T12:00:00Z", + "valid": false + }, + { + "description": "Valid - day 001 (Jan 1)", + "data": "2023-001T12:00:00Z", + "valid": true + }, + { + "description": "Valid - day 365 (non-leap year last day)", + "data": "2023-365T12:00:00Z", + "valid": true + }, + { + "description": "Valid - day 366 (leap year last day)", + "data": "2020-366T12:00:00Z", + "valid": true + }, + { + "description": "Invalid - spaces in datetime", + "data": "2023-100 T 12:00:00Z", + "valid": false + }, + { + "description": "Invalid - extra hyphen", + "data": "2023--100T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - missing year digits", + "data": "23-100T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "2023-100T12:00:00ZX", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning", + "data": "X2023-100T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - double Z", + "data": "2023-100T12:00:00ZZ", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/datetime/week-basic/v1.test.json b/test/schemas/iso/datetime/2019/datetime/week-basic/v1.test.json new file mode 100644 index 00000000..ab828932 --- /dev/null +++ b/test/schemas/iso/datetime/2019/datetime/week-basic/v1.test.json @@ -0,0 +1,270 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/datetime/week-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 2018011120000, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 1985-W15-5 (Apr 12) 23:20:50", + "data": "1985W155T232050", + "valid": true + }, + { + "description": "Valid - 2000-W01-1 (Jan 3) 00:00:00", + "data": "2000W011T000000", + "valid": true + }, + { + "description": "Valid - leap second 2023-W50-7 23:59:60", + "data": "2023W507T235960", + "valid": true + }, + { + "description": "Valid - 2020-W09-7 (Mar 1) 12:00:00", + "data": "2020W097T120000", + "valid": true + }, + { + "description": "Valid - end of year 2023-W52-7 23:59:59", + "data": "2023W527T235959", + "valid": true + }, + { + "description": "Valid - start of year 2024-W01-1 00:00:00", + "data": "2024W011T000000", + "valid": true + }, + { + "description": "Valid - historical date 1900-W09-7 06:30:45", + "data": "1900W097T063045", + "valid": true + }, + { + "description": "Valid - future date 2100-W33-7 18:45:30", + "data": "2100W337T184530", + "valid": true + }, + { + "description": "Invalid - missing T designator", + "data": "1985W155232050", + "valid": false + }, + { + "description": "Invalid - lowercase w", + "data": "1985w155T232050", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "1985W155t232050", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - extended format (has hyphens and colons)", + "data": "1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - week 00", + "data": "2023W007T120000", + "valid": false + }, + { + "description": "Invalid - week 54", + "data": "2023W547T120000", + "valid": false + }, + { + "description": "Invalid - week 99", + "data": "2023W997T120000", + "valid": false + }, + { + "description": "Invalid - day 0", + "data": "2023W100T120000", + "valid": false + }, + { + "description": "Invalid - day 8", + "data": "2023W108T120000", + "valid": false + }, + { + "description": "Invalid - day 9", + "data": "2023W109T120000", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "2023W101T240000", + "valid": false + }, + { + "description": "Invalid - hour 25", + "data": "2023W101T250000", + "valid": false + }, + { + "description": "Invalid - hour 99", + "data": "2023W101T990000", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "2023W101T126000", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "2023W101T129900", + "valid": false + }, + { + "description": "Invalid - second 61", + "data": "2023W101T120061", + "valid": false + }, + { + "description": "Invalid - second 99", + "data": "2023W101T120099", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "2023W101T000000", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "2023W101T230000", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "2023W101T120000", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "2023W101T125900", + "valid": true + }, + { + "description": "Valid - second 00 (minimum)", + "data": "2023W101T120000", + "valid": true + }, + { + "description": "Valid - second 59", + "data": "2023W101T120059", + "valid": true + }, + { + "description": "Valid - second 60 (leap second)", + "data": "2023W267T235960", + "valid": true + }, + { + "description": "Invalid - with Z designator", + "data": "2023W101T120000Z", + "valid": false + }, + { + "description": "Invalid - with time shift", + "data": "2023W101T120000+0100", + "valid": false + }, + { + "description": "Invalid - with decimal seconds", + "data": "2023W101T120000.5", + "valid": false + }, + { + "description": "Invalid - partial time (hour and minute only)", + "data": "2023W101T1200", + "valid": false + }, + { + "description": "Invalid - partial time (hour only)", + "data": "2023W101T12", + "valid": false + }, + { + "description": "Invalid - date only", + "data": "2023W101", + "valid": false + }, + { + "description": "Invalid - time only", + "data": "T120000", + "valid": false + }, + { + "description": "Valid - week 01 day 1 (Monday)", + "data": "2023W011T120000", + "valid": true + }, + { + "description": "Valid - week 53 day 7 (Sunday of week 53)", + "data": "2020W537T120000", + "valid": true + }, + { + "description": "Valid - day 7 (Sunday)", + "data": "2023W107T120000", + "valid": true + }, + { + "description": "Invalid - spaces in datetime", + "data": "2023 W10 1T12 00 00", + "valid": false + }, + { + "description": "Invalid - missing W designator", + "data": "2023101T120000", + "valid": false + }, + { + "description": "Invalid - missing year digits", + "data": "23W101T120000", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "2023W101T120000X", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning", + "data": "X2023W101T120000", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/datetime/week-extended/v1.test.json b/test/schemas/iso/datetime/2019/datetime/week-extended/v1.test.json new file mode 100644 index 00000000..50464471 --- /dev/null +++ b/test/schemas/iso/datetime/2019/datetime/week-extended/v1.test.json @@ -0,0 +1,285 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/datetime/week-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 2018011120000, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 1985-W15-5 (Apr 12) 23:20:50", + "data": "1985-W15-5T23:20:50", + "valid": true + }, + { + "description": "Valid - 2000-W01-1 (Jan 3) 00:00:00", + "data": "2000-W01-1T00:00:00", + "valid": true + }, + { + "description": "Valid - leap second 2023-W50-7 23:59:60", + "data": "2023-W50-7T23:59:60", + "valid": true + }, + { + "description": "Valid - 2020-W09-7 (Mar 1) 12:00:00", + "data": "2020-W09-7T12:00:00", + "valid": true + }, + { + "description": "Valid - end of year 2023-W52-7 23:59:59", + "data": "2023-W52-7T23:59:59", + "valid": true + }, + { + "description": "Valid - start of year 2024-W01-1 00:00:00", + "data": "2024-W01-1T00:00:00", + "valid": true + }, + { + "description": "Valid - historical date 1900-W09-7 06:30:45", + "data": "1900-W09-7T06:30:45", + "valid": true + }, + { + "description": "Valid - future date 2100-W33-7 18:45:30", + "data": "2100-W33-7T18:45:30", + "valid": true + }, + { + "description": "Invalid - missing T designator", + "data": "1985-W15-523:20:50", + "valid": false + }, + { + "description": "Invalid - lowercase w", + "data": "1985-w15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "1985-W15-5t23:20:50", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - basic format (no hyphens or colons)", + "data": "1985W155T232050", + "valid": false + }, + { + "description": "Invalid - week 00", + "data": "2023-W00-7T12:00:00", + "valid": false + }, + { + "description": "Invalid - week 54", + "data": "2023-W54-7T12:00:00", + "valid": false + }, + { + "description": "Invalid - week 99", + "data": "2023-W99-7T12:00:00", + "valid": false + }, + { + "description": "Invalid - day 0", + "data": "2023-W10-0T12:00:00", + "valid": false + }, + { + "description": "Invalid - day 8", + "data": "2023-W10-8T12:00:00", + "valid": false + }, + { + "description": "Invalid - day 9", + "data": "2023-W10-9T12:00:00", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "2023-W10-1T24:00:00", + "valid": false + }, + { + "description": "Invalid - hour 25", + "data": "2023-W10-1T25:00:00", + "valid": false + }, + { + "description": "Invalid - hour 99", + "data": "2023-W10-1T99:00:00", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "2023-W10-1T12:60:00", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "2023-W10-1T12:99:00", + "valid": false + }, + { + "description": "Invalid - second 61", + "data": "2023-W10-1T12:00:61", + "valid": false + }, + { + "description": "Invalid - second 99", + "data": "2023-W10-1T12:00:99", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "2023-W10-1T00:00:00", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "2023-W10-1T23:00:00", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "2023-W10-1T12:00:00", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "2023-W10-1T12:59:00", + "valid": true + }, + { + "description": "Valid - second 00 (minimum)", + "data": "2023-W10-1T12:00:00", + "valid": true + }, + { + "description": "Valid - second 59", + "data": "2023-W10-1T12:00:59", + "valid": true + }, + { + "description": "Valid - second 60 (leap second)", + "data": "2023-W26-7T23:59:60", + "valid": true + }, + { + "description": "Invalid - missing hyphens", + "data": "2023W101T12:00:00", + "valid": false + }, + { + "description": "Invalid - missing colons in time", + "data": "2023-W10-1T120000", + "valid": false + }, + { + "description": "Invalid - with Z designator", + "data": "2023-W10-1T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - with time shift", + "data": "2023-W10-1T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - with decimal seconds", + "data": "2023-W10-1T12:00:00.5", + "valid": false + }, + { + "description": "Invalid - partial time (hour and minute only)", + "data": "2023-W10-1T12:00", + "valid": false + }, + { + "description": "Invalid - partial time (hour only)", + "data": "2023-W10-1T12", + "valid": false + }, + { + "description": "Invalid - date only", + "data": "2023-W10-1", + "valid": false + }, + { + "description": "Invalid - time only", + "data": "T12:00:00", + "valid": false + }, + { + "description": "Valid - week 01 day 1 (Monday)", + "data": "2023-W01-1T12:00:00", + "valid": true + }, + { + "description": "Valid - week 53 day 7 (Sunday of week 53)", + "data": "2020-W53-7T12:00:00", + "valid": true + }, + { + "description": "Valid - day 7 (Sunday)", + "data": "2023-W10-7T12:00:00", + "valid": true + }, + { + "description": "Invalid - spaces in datetime", + "data": "2023-W10-1 T 12:00:00", + "valid": false + }, + { + "description": "Invalid - missing W designator", + "data": "2023-10-1T12:00:00", + "valid": false + }, + { + "description": "Invalid - extra hyphen", + "data": "2023--W10-1T12:00:00", + "valid": false + }, + { + "description": "Invalid - missing year digits", + "data": "23-W10-1T12:00:00", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "2023-W10-1T12:00:00X", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning", + "data": "X2023-W10-1T12:00:00", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/datetime/week-minute-shift-basic/v1.test.json b/test/schemas/iso/datetime/2019/datetime/week-minute-shift-basic/v1.test.json new file mode 100644 index 00000000..db7e9602 --- /dev/null +++ b/test/schemas/iso/datetime/2019/datetime/week-minute-shift-basic/v1.test.json @@ -0,0 +1,235 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/datetime/week-minute-shift-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 2018011200, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 1985-W15-5 10:15 +04:00", + "data": "1985W155T1015+0400", + "valid": true + }, + { + "description": "Valid - 2000-W01-1 00:00 -05:00", + "data": "2000W011T0000-0500", + "valid": true + }, + { + "description": "Valid - end of day 2023-W50-7 23:59 +00:00", + "data": "2023W507T2359+0000", + "valid": true + }, + { + "description": "Valid - positive shift +01:00", + "data": "2023W101T1200+0100", + "valid": true + }, + { + "description": "Valid - negative shift -08:00", + "data": "2023W101T1200-0800", + "valid": true + }, + { + "description": "Valid - maximum positive shift +23:59", + "data": "2023W101T1200+2359", + "valid": true + }, + { + "description": "Valid - maximum negative shift -23:59", + "data": "2023W101T1200-2359", + "valid": true + }, + { + "description": "Valid - zero shift +00:00", + "data": "2023W101T1200+0000", + "valid": true + }, + { + "description": "Invalid - negative zero shift -00:00", + "data": "2023W101T1200-0000", + "valid": false + }, + { + "description": "Valid - historical date 1900-W09-7 +02:00", + "data": "1900W097T0630+0200", + "valid": true + }, + { + "description": "Valid - future date 2100-W33-7 -12:00", + "data": "2100W337T1845-1200", + "valid": true + }, + { + "description": "Invalid - missing T designator", + "data": "1985W1551015+0400", + "valid": false + }, + { + "description": "Invalid - lowercase w", + "data": "1985w155T1015+0400", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "1985W155t1015+0400", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - extended format", + "data": "1985-W15-5T10:15+04:00", + "valid": false + }, + { + "description": "Invalid - missing time shift", + "data": "1985W155T1015", + "valid": false + }, + { + "description": "Invalid - with Z instead of shift", + "data": "1985W155T1015Z", + "valid": false + }, + { + "description": "Invalid - shift hour 24", + "data": "2023W101T1200+2400", + "valid": false + }, + { + "description": "Invalid - shift minute 60", + "data": "2023W101T1200+0160", + "valid": false + }, + { + "description": "Invalid - missing shift sign", + "data": "2023W101T12000400", + "valid": false + }, + { + "description": "Invalid - colon in shift (extended format shift)", + "data": "1985W155T1015+04:00", + "valid": false + }, + { + "description": "Invalid - hourly shift only", + "data": "1985W155T1015+04", + "valid": false + }, + { + "description": "Invalid - week 00", + "data": "2023W007T1200+0100", + "valid": false + }, + { + "description": "Invalid - week 54", + "data": "2023W547T1200+0100", + "valid": false + }, + { + "description": "Invalid - day 0", + "data": "2023W100T1200+0100", + "valid": false + }, + { + "description": "Invalid - day 8", + "data": "2023W108T1200+0100", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "2023W101T2400+0100", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "2023W101T1260+0100", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "2023W101T0000+0100", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "2023W101T2300+0100", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "2023W101T1259+0100", + "valid": true + }, + { + "description": "Invalid - with seconds", + "data": "2023W101T120000+0100", + "valid": false + }, + { + "description": "Invalid - with decimal minutes", + "data": "2023W101T1200.5+0100", + "valid": false + }, + { + "description": "Invalid - partial time (hour only)", + "data": "2023W101T12+0100", + "valid": false + }, + { + "description": "Valid - week 01 day 1", + "data": "2023W011T1200+0100", + "valid": true + }, + { + "description": "Valid - week 53 day 7", + "data": "2020W537T1200+0100", + "valid": true + }, + { + "description": "Invalid - spaces in datetime", + "data": "2023 W10 1T12 00+01 00", + "valid": false + }, + { + "description": "Invalid - missing W designator", + "data": "2023101T1200+0100", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "2023W101T1200+0100X", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning", + "data": "X2023W101T1200+0100", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/datetime/week-minute-shift-extended/v1.test.json b/test/schemas/iso/datetime/2019/datetime/week-minute-shift-extended/v1.test.json new file mode 100644 index 00000000..d9f06efc --- /dev/null +++ b/test/schemas/iso/datetime/2019/datetime/week-minute-shift-extended/v1.test.json @@ -0,0 +1,245 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/datetime/week-minute-shift-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 2018011200, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 1985-W15-5 10:15 +04:00", + "data": "1985-W15-5T10:15+04:00", + "valid": true + }, + { + "description": "Valid - 2000-W01-1 00:00 -05:00", + "data": "2000-W01-1T00:00-05:00", + "valid": true + }, + { + "description": "Valid - end of day 2023-W50-7 23:59 +00:00", + "data": "2023-W50-7T23:59+00:00", + "valid": true + }, + { + "description": "Valid - positive shift +01:00", + "data": "2023-W10-1T12:00+01:00", + "valid": true + }, + { + "description": "Valid - negative shift -08:00", + "data": "2023-W10-1T12:00-08:00", + "valid": true + }, + { + "description": "Valid - maximum positive shift +23:59", + "data": "2023-W10-1T12:00+23:59", + "valid": true + }, + { + "description": "Valid - maximum negative shift -23:59", + "data": "2023-W10-1T12:00-23:59", + "valid": true + }, + { + "description": "Valid - zero shift +00:00", + "data": "2023-W10-1T12:00+00:00", + "valid": true + }, + { + "description": "Invalid - negative zero shift -00:00", + "data": "2023-W10-1T12:00-00:00", + "valid": false + }, + { + "description": "Valid - historical date 1900-W09-7 +02:00", + "data": "1900-W09-7T06:30+02:00", + "valid": true + }, + { + "description": "Valid - future date 2100-W33-7 -12:00", + "data": "2100-W33-7T18:45-12:00", + "valid": true + }, + { + "description": "Invalid - missing T designator", + "data": "1985-W15-510:15+04:00", + "valid": false + }, + { + "description": "Invalid - lowercase w", + "data": "1985-w15-5T10:15+04:00", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "1985-W15-5t10:15+04:00", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - basic format", + "data": "1985W155T1015+0400", + "valid": false + }, + { + "description": "Invalid - missing time shift", + "data": "1985-W15-5T10:15", + "valid": false + }, + { + "description": "Invalid - with Z instead of shift", + "data": "1985-W15-5T10:15Z", + "valid": false + }, + { + "description": "Invalid - shift hour 24", + "data": "2023-W10-1T12:00+24:00", + "valid": false + }, + { + "description": "Invalid - shift minute 60", + "data": "2023-W10-1T12:00+01:60", + "valid": false + }, + { + "description": "Invalid - missing shift sign", + "data": "2023-W10-1T12:0004:00", + "valid": false + }, + { + "description": "Invalid - missing colon in shift", + "data": "1985-W15-5T10:15+0400", + "valid": false + }, + { + "description": "Invalid - hourly shift only", + "data": "1985-W15-5T10:15+04", + "valid": false + }, + { + "description": "Invalid - week 00", + "data": "2023-W00-7T12:00+01:00", + "valid": false + }, + { + "description": "Invalid - week 54", + "data": "2023-W54-7T12:00+01:00", + "valid": false + }, + { + "description": "Invalid - day 0", + "data": "2023-W10-0T12:00+01:00", + "valid": false + }, + { + "description": "Invalid - day 8", + "data": "2023-W10-8T12:00+01:00", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "2023-W10-1T24:00+01:00", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "2023-W10-1T12:60+01:00", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "2023-W10-1T00:00+01:00", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "2023-W10-1T23:00+01:00", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "2023-W10-1T12:59+01:00", + "valid": true + }, + { + "description": "Invalid - missing hyphens", + "data": "2023W101T12:00+01:00", + "valid": false + }, + { + "description": "Invalid - missing colon in time", + "data": "2023-W10-1T1200+01:00", + "valid": false + }, + { + "description": "Invalid - with seconds", + "data": "2023-W10-1T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - with decimal minutes", + "data": "2023-W10-1T12:00.5+01:00", + "valid": false + }, + { + "description": "Invalid - partial time (hour only)", + "data": "2023-W10-1T12+01:00", + "valid": false + }, + { + "description": "Valid - week 01 day 1", + "data": "2023-W01-1T12:00+01:00", + "valid": true + }, + { + "description": "Valid - week 53 day 7", + "data": "2020-W53-7T12:00+01:00", + "valid": true + }, + { + "description": "Invalid - spaces in datetime", + "data": "2023-W10-1 T 12:00 + 01:00", + "valid": false + }, + { + "description": "Invalid - missing W designator", + "data": "2023-10-1T12:00+01:00", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "2023-W10-1T12:00+01:00X", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning", + "data": "X2023-W10-1T12:00+01:00", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/datetime/week-shift-basic/v1.test.json b/test/schemas/iso/datetime/2019/datetime/week-shift-basic/v1.test.json new file mode 100644 index 00000000..366e4f5f --- /dev/null +++ b/test/schemas/iso/datetime/2019/datetime/week-shift-basic/v1.test.json @@ -0,0 +1,235 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/datetime/week-shift-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 2018011120000, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 1985-W15-5 23:20:50 +04:00", + "data": "1985W155T232050+0400", + "valid": true + }, + { + "description": "Valid - 2000-W01-1 00:00:00 -05:00", + "data": "2000W011T000000-0500", + "valid": true + }, + { + "description": "Valid - leap second 2023-W50-7 23:59:60 +00:00", + "data": "2023W507T235960+0000", + "valid": true + }, + { + "description": "Valid - positive shift +01:00", + "data": "2023W101T120000+0100", + "valid": true + }, + { + "description": "Valid - negative shift -08:00", + "data": "2023W101T120000-0800", + "valid": true + }, + { + "description": "Valid - maximum positive shift +23:59", + "data": "2023W101T120000+2359", + "valid": true + }, + { + "description": "Valid - maximum negative shift -23:59", + "data": "2023W101T120000-2359", + "valid": true + }, + { + "description": "Valid - zero shift +00:00", + "data": "2023W101T120000+0000", + "valid": true + }, + { + "description": "Invalid - negative zero shift -00:00", + "data": "2023W101T120000-0000", + "valid": false + }, + { + "description": "Valid - historical date 1900-W09-7 +02:00", + "data": "1900W097T063045+0200", + "valid": true + }, + { + "description": "Valid - future date 2100-W33-7 -12:00", + "data": "2100W337T184530-1200", + "valid": true + }, + { + "description": "Invalid - missing T designator", + "data": "1985W155232050+0400", + "valid": false + }, + { + "description": "Invalid - lowercase w", + "data": "1985w155T232050+0400", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "1985W155t232050+0400", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - extended format", + "data": "1985-W15-5T23:20:50+04:00", + "valid": false + }, + { + "description": "Invalid - missing time shift", + "data": "1985W155T232050", + "valid": false + }, + { + "description": "Invalid - with Z instead of shift", + "data": "1985W155T232050Z", + "valid": false + }, + { + "description": "Invalid - shift hour 24", + "data": "2023W101T120000+2400", + "valid": false + }, + { + "description": "Invalid - shift minute 60", + "data": "2023W101T120000+0160", + "valid": false + }, + { + "description": "Invalid - missing shift sign", + "data": "2023W101T1200000400", + "valid": false + }, + { + "description": "Invalid - colon in shift (extended format shift)", + "data": "1985W155T232050+04:00", + "valid": false + }, + { + "description": "Invalid - hourly shift only", + "data": "1985W155T232050+04", + "valid": false + }, + { + "description": "Invalid - week 00", + "data": "2023W007T120000+0100", + "valid": false + }, + { + "description": "Invalid - week 54", + "data": "2023W547T120000+0100", + "valid": false + }, + { + "description": "Invalid - day 0", + "data": "2023W100T120000+0100", + "valid": false + }, + { + "description": "Invalid - day 8", + "data": "2023W108T120000+0100", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "2023W101T240000+0100", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "2023W101T126000+0100", + "valid": false + }, + { + "description": "Invalid - second 61", + "data": "2023W101T120061+0100", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "2023W101T000000+0100", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "2023W101T230000+0100", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "2023W101T125900+0100", + "valid": true + }, + { + "description": "Valid - second 60 (leap second)", + "data": "2023W267T235960+0100", + "valid": true + }, + { + "description": "Invalid - with decimal seconds", + "data": "2023W101T120000.5+0100", + "valid": false + }, + { + "description": "Invalid - partial time", + "data": "2023W101T1200+0100", + "valid": false + }, + { + "description": "Valid - week 01 day 1", + "data": "2023W011T120000+0100", + "valid": true + }, + { + "description": "Valid - week 53 day 7", + "data": "2020W537T120000+0100", + "valid": true + }, + { + "description": "Invalid - spaces in datetime", + "data": "2023 W10 1T12 00 00+01 00", + "valid": false + }, + { + "description": "Invalid - missing W designator", + "data": "2023101T120000+0100", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "2023W101T120000+0100X", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/datetime/week-shift-extended/v1.test.json b/test/schemas/iso/datetime/2019/datetime/week-shift-extended/v1.test.json new file mode 100644 index 00000000..941fd69d --- /dev/null +++ b/test/schemas/iso/datetime/2019/datetime/week-shift-extended/v1.test.json @@ -0,0 +1,245 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/datetime/week-shift-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 2018011120000, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 1985-W15-5 23:20:50 +04:00", + "data": "1985-W15-5T23:20:50+04:00", + "valid": true + }, + { + "description": "Valid - 2000-W01-1 00:00:00 -05:00", + "data": "2000-W01-1T00:00:00-05:00", + "valid": true + }, + { + "description": "Valid - leap second 2023-W50-7 23:59:60 +00:00", + "data": "2023-W50-7T23:59:60+00:00", + "valid": true + }, + { + "description": "Valid - positive shift +01:00", + "data": "2023-W10-1T12:00:00+01:00", + "valid": true + }, + { + "description": "Valid - negative shift -08:00", + "data": "2023-W10-1T12:00:00-08:00", + "valid": true + }, + { + "description": "Valid - maximum positive shift +23:59", + "data": "2023-W10-1T12:00:00+23:59", + "valid": true + }, + { + "description": "Valid - maximum negative shift -23:59", + "data": "2023-W10-1T12:00:00-23:59", + "valid": true + }, + { + "description": "Valid - zero shift +00:00", + "data": "2023-W10-1T12:00:00+00:00", + "valid": true + }, + { + "description": "Invalid - negative zero shift -00:00", + "data": "2023-W10-1T12:00:00-00:00", + "valid": false + }, + { + "description": "Valid - historical date 1900-W09-7 +02:00", + "data": "1900-W09-7T06:30:45+02:00", + "valid": true + }, + { + "description": "Valid - future date 2100-W33-7 -12:00", + "data": "2100-W33-7T18:45:30-12:00", + "valid": true + }, + { + "description": "Invalid - missing T designator", + "data": "1985-W15-523:20:50+04:00", + "valid": false + }, + { + "description": "Invalid - lowercase w", + "data": "1985-w15-5T23:20:50+04:00", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "1985-W15-5t23:20:50+04:00", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - basic format", + "data": "1985W155T232050+0400", + "valid": false + }, + { + "description": "Invalid - missing time shift", + "data": "1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - with Z instead of shift", + "data": "1985-W15-5T23:20:50Z", + "valid": false + }, + { + "description": "Invalid - shift hour 24", + "data": "2023-W10-1T12:00:00+24:00", + "valid": false + }, + { + "description": "Invalid - shift minute 60", + "data": "2023-W10-1T12:00:00+01:60", + "valid": false + }, + { + "description": "Invalid - missing shift sign", + "data": "2023-W10-1T12:00:0004:00", + "valid": false + }, + { + "description": "Invalid - missing colon in shift", + "data": "1985-W15-5T23:20:50+0400", + "valid": false + }, + { + "description": "Invalid - hourly shift only", + "data": "1985-W15-5T23:20:50+04", + "valid": false + }, + { + "description": "Invalid - week 00", + "data": "2023-W00-7T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - week 54", + "data": "2023-W54-7T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - day 0", + "data": "2023-W10-0T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - day 8", + "data": "2023-W10-8T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "2023-W10-1T24:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "2023-W10-1T12:60:00+01:00", + "valid": false + }, + { + "description": "Invalid - second 61", + "data": "2023-W10-1T12:00:61+01:00", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "2023-W10-1T00:00:00+01:00", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "2023-W10-1T23:00:00+01:00", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "2023-W10-1T12:59:00+01:00", + "valid": true + }, + { + "description": "Valid - second 60 (leap second)", + "data": "2023-W26-7T23:59:60+01:00", + "valid": true + }, + { + "description": "Invalid - missing hyphens", + "data": "2023W101T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - missing colons in time", + "data": "2023-W10-1T120000+01:00", + "valid": false + }, + { + "description": "Invalid - with decimal seconds", + "data": "2023-W10-1T12:00:00.5+01:00", + "valid": false + }, + { + "description": "Invalid - partial time", + "data": "2023-W10-1T12:00+01:00", + "valid": false + }, + { + "description": "Valid - week 01 day 1", + "data": "2023-W01-1T12:00:00+01:00", + "valid": true + }, + { + "description": "Valid - week 53 day 7", + "data": "2020-W53-7T12:00:00+01:00", + "valid": true + }, + { + "description": "Invalid - spaces in datetime", + "data": "2023-W10-1 T 12:00:00 + 01:00", + "valid": false + }, + { + "description": "Invalid - missing W designator", + "data": "2023-10-1T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "2023-W10-1T12:00:00+01:00X", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/datetime/week-shifthour-basic/v1.test.json b/test/schemas/iso/datetime/2019/datetime/week-shifthour-basic/v1.test.json new file mode 100644 index 00000000..8813e96b --- /dev/null +++ b/test/schemas/iso/datetime/2019/datetime/week-shifthour-basic/v1.test.json @@ -0,0 +1,240 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/datetime/week-shifthour-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 2018011120000, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 1985-W15-5 23:20:50 +04", + "data": "1985W155T232050+04", + "valid": true + }, + { + "description": "Valid - 2000-W01-1 00:00:00 -05", + "data": "2000W011T000000-05", + "valid": true + }, + { + "description": "Valid - leap second 2023-W50-7 23:59:60 +00", + "data": "2023W507T235960+00", + "valid": true + }, + { + "description": "Valid - positive shift +01", + "data": "2023W101T120000+01", + "valid": true + }, + { + "description": "Valid - negative shift -08", + "data": "2023W101T120000-08", + "valid": true + }, + { + "description": "Valid - maximum positive shift +23", + "data": "2023W101T120000+23", + "valid": true + }, + { + "description": "Valid - maximum negative shift -23", + "data": "2023W101T120000-23", + "valid": true + }, + { + "description": "Valid - zero shift +00", + "data": "2023W101T120000+00", + "valid": true + }, + { + "description": "Invalid - negative zero shift -00", + "data": "2023W101T120000-00", + "valid": false + }, + { + "description": "Valid - historical date 1900-W09-7 +02", + "data": "1900W097T063045+02", + "valid": true + }, + { + "description": "Valid - future date 2100-W33-7 -12", + "data": "2100W337T184530-12", + "valid": true + }, + { + "description": "Invalid - missing T designator", + "data": "1985W155232050+04", + "valid": false + }, + { + "description": "Invalid - lowercase w", + "data": "1985w155T232050+04", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "1985W155t232050+04", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - extended format", + "data": "1985-W15-5T23:20:50+04", + "valid": false + }, + { + "description": "Invalid - missing time shift", + "data": "1985W155T232050", + "valid": false + }, + { + "description": "Invalid - with Z instead of shift", + "data": "1985W155T232050Z", + "valid": false + }, + { + "description": "Invalid - shift hour 24", + "data": "2023W101T120000+24", + "valid": false + }, + { + "description": "Invalid - shift hour 99", + "data": "2023W101T120000+99", + "valid": false + }, + { + "description": "Invalid - missing shift sign", + "data": "2023W101T12000004", + "valid": false + }, + { + "description": "Invalid - shift with minutes", + "data": "1985W155T232050+0400", + "valid": false + }, + { + "description": "Invalid - shift with colon", + "data": "1985W155T232050+04:00", + "valid": false + }, + { + "description": "Invalid - single digit shift", + "data": "1985W155T232050+4", + "valid": false + }, + { + "description": "Invalid - week 00", + "data": "2023W007T120000+01", + "valid": false + }, + { + "description": "Invalid - week 54", + "data": "2023W547T120000+01", + "valid": false + }, + { + "description": "Invalid - day 0", + "data": "2023W100T120000+01", + "valid": false + }, + { + "description": "Invalid - day 8", + "data": "2023W108T120000+01", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "2023W101T240000+01", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "2023W101T126000+01", + "valid": false + }, + { + "description": "Invalid - second 61", + "data": "2023W101T120061+01", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "2023W101T000000+01", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "2023W101T230000+01", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "2023W101T125900+01", + "valid": true + }, + { + "description": "Valid - second 60 (leap second)", + "data": "2023W267T235960+01", + "valid": true + }, + { + "description": "Invalid - with decimal seconds", + "data": "2023W101T120000.5+01", + "valid": false + }, + { + "description": "Invalid - partial time", + "data": "2023W101T1200+01", + "valid": false + }, + { + "description": "Valid - week 01 day 1", + "data": "2023W011T120000+01", + "valid": true + }, + { + "description": "Valid - week 53 day 7", + "data": "2020W537T120000+01", + "valid": true + }, + { + "description": "Invalid - spaces in datetime", + "data": "2023 W10 1T12 00 00+01", + "valid": false + }, + { + "description": "Invalid - missing W designator", + "data": "2023101T120000+01", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "2023W101T120000+01X", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/datetime/week-shifthour-extended/v1.test.json b/test/schemas/iso/datetime/2019/datetime/week-shifthour-extended/v1.test.json new file mode 100644 index 00000000..511a28c3 --- /dev/null +++ b/test/schemas/iso/datetime/2019/datetime/week-shifthour-extended/v1.test.json @@ -0,0 +1,250 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/datetime/week-shifthour-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 2018011120000, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 1985-W15-5 23:20:50 +04", + "data": "1985-W15-5T23:20:50+04", + "valid": true + }, + { + "description": "Valid - 2000-W01-1 00:00:00 -05", + "data": "2000-W01-1T00:00:00-05", + "valid": true + }, + { + "description": "Valid - leap second 2023-W50-7 23:59:60 +00", + "data": "2023-W50-7T23:59:60+00", + "valid": true + }, + { + "description": "Valid - positive shift +01", + "data": "2023-W10-1T12:00:00+01", + "valid": true + }, + { + "description": "Valid - negative shift -08", + "data": "2023-W10-1T12:00:00-08", + "valid": true + }, + { + "description": "Valid - maximum positive shift +23", + "data": "2023-W10-1T12:00:00+23", + "valid": true + }, + { + "description": "Valid - maximum negative shift -23", + "data": "2023-W10-1T12:00:00-23", + "valid": true + }, + { + "description": "Valid - zero shift +00", + "data": "2023-W10-1T12:00:00+00", + "valid": true + }, + { + "description": "Invalid - negative zero shift -00", + "data": "2023-W10-1T12:00:00-00", + "valid": false + }, + { + "description": "Valid - historical date 1900-W09-7 +02", + "data": "1900-W09-7T06:30:45+02", + "valid": true + }, + { + "description": "Valid - future date 2100-W33-7 -12", + "data": "2100-W33-7T18:45:30-12", + "valid": true + }, + { + "description": "Invalid - missing T designator", + "data": "1985-W15-523:20:50+04", + "valid": false + }, + { + "description": "Invalid - lowercase w", + "data": "1985-w15-5T23:20:50+04", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "1985-W15-5t23:20:50+04", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - basic format", + "data": "1985W155T232050+04", + "valid": false + }, + { + "description": "Invalid - missing time shift", + "data": "1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - with Z instead of shift", + "data": "1985-W15-5T23:20:50Z", + "valid": false + }, + { + "description": "Invalid - shift hour 24", + "data": "2023-W10-1T12:00:00+24", + "valid": false + }, + { + "description": "Invalid - shift hour 99", + "data": "2023-W10-1T12:00:00+99", + "valid": false + }, + { + "description": "Invalid - missing shift sign", + "data": "2023-W10-1T12:00:0004", + "valid": false + }, + { + "description": "Invalid - shift with minutes", + "data": "1985-W15-5T23:20:50+04:00", + "valid": false + }, + { + "description": "Invalid - shift without colon (basic)", + "data": "1985-W15-5T23:20:50+0400", + "valid": false + }, + { + "description": "Invalid - single digit shift", + "data": "1985-W15-5T23:20:50+4", + "valid": false + }, + { + "description": "Invalid - week 00", + "data": "2023-W00-7T12:00:00+01", + "valid": false + }, + { + "description": "Invalid - week 54", + "data": "2023-W54-7T12:00:00+01", + "valid": false + }, + { + "description": "Invalid - day 0", + "data": "2023-W10-0T12:00:00+01", + "valid": false + }, + { + "description": "Invalid - day 8", + "data": "2023-W10-8T12:00:00+01", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "2023-W10-1T24:00:00+01", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "2023-W10-1T12:60:00+01", + "valid": false + }, + { + "description": "Invalid - second 61", + "data": "2023-W10-1T12:00:61+01", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "2023-W10-1T00:00:00+01", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "2023-W10-1T23:00:00+01", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "2023-W10-1T12:59:00+01", + "valid": true + }, + { + "description": "Valid - second 60 (leap second)", + "data": "2023-W26-7T23:59:60+01", + "valid": true + }, + { + "description": "Invalid - missing hyphens", + "data": "2023W101T12:00:00+01", + "valid": false + }, + { + "description": "Invalid - missing colons in time", + "data": "2023-W10-1T120000+01", + "valid": false + }, + { + "description": "Invalid - with decimal seconds", + "data": "2023-W10-1T12:00:00.5+01", + "valid": false + }, + { + "description": "Invalid - partial time", + "data": "2023-W10-1T12:00+01", + "valid": false + }, + { + "description": "Valid - week 01 day 1", + "data": "2023-W01-1T12:00:00+01", + "valid": true + }, + { + "description": "Valid - week 53 day 7", + "data": "2020-W53-7T12:00:00+01", + "valid": true + }, + { + "description": "Invalid - spaces in datetime", + "data": "2023-W10-1 T 12:00:00 + 01", + "valid": false + }, + { + "description": "Invalid - missing W designator", + "data": "2023-10-1T12:00:00+01", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "2023-W10-1T12:00:00+01X", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/datetime/week-utc-basic/v1.test.json b/test/schemas/iso/datetime/2019/datetime/week-utc-basic/v1.test.json new file mode 100644 index 00000000..abd5031b --- /dev/null +++ b/test/schemas/iso/datetime/2019/datetime/week-utc-basic/v1.test.json @@ -0,0 +1,285 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/datetime/week-utc-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 2018011120000, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 1985-W15-5 23:20:50 UTC", + "data": "1985W155T232050Z", + "valid": true + }, + { + "description": "Valid - 2000-W01-1 00:00:00 UTC", + "data": "2000W011T000000Z", + "valid": true + }, + { + "description": "Valid - leap second 2023-W50-7 23:59:60 UTC", + "data": "2023W507T235960Z", + "valid": true + }, + { + "description": "Valid - 2020-W09-7 12:00:00 UTC", + "data": "2020W097T120000Z", + "valid": true + }, + { + "description": "Valid - end of year 2023-W52-7 23:59:59 UTC", + "data": "2023W527T235959Z", + "valid": true + }, + { + "description": "Valid - start of year 2024-W01-1 00:00:00 UTC", + "data": "2024W011T000000Z", + "valid": true + }, + { + "description": "Valid - historical date 1900-W09-7 06:30:45 UTC", + "data": "1900W097T063045Z", + "valid": true + }, + { + "description": "Valid - future date 2100-W33-7 18:45:30 UTC", + "data": "2100W337T184530Z", + "valid": true + }, + { + "description": "Invalid - missing T designator", + "data": "1985W155232050Z", + "valid": false + }, + { + "description": "Invalid - lowercase w", + "data": "1985w155T232050Z", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "1985W155t232050Z", + "valid": false + }, + { + "description": "Invalid - lowercase z", + "data": "1985W155T232050z", + "valid": false + }, + { + "description": "Invalid - missing Z designator", + "data": "1985W155T232050", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - extended format", + "data": "1985-W15-5T23:20:50Z", + "valid": false + }, + { + "description": "Invalid - week 00", + "data": "2023W007T120000Z", + "valid": false + }, + { + "description": "Invalid - week 54", + "data": "2023W547T120000Z", + "valid": false + }, + { + "description": "Invalid - week 99", + "data": "2023W997T120000Z", + "valid": false + }, + { + "description": "Invalid - day 0", + "data": "2023W100T120000Z", + "valid": false + }, + { + "description": "Invalid - day 8", + "data": "2023W108T120000Z", + "valid": false + }, + { + "description": "Invalid - day 9", + "data": "2023W109T120000Z", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "2023W101T240000Z", + "valid": false + }, + { + "description": "Invalid - hour 25", + "data": "2023W101T250000Z", + "valid": false + }, + { + "description": "Invalid - hour 99", + "data": "2023W101T990000Z", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "2023W101T126000Z", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "2023W101T129900Z", + "valid": false + }, + { + "description": "Invalid - second 61", + "data": "2023W101T120061Z", + "valid": false + }, + { + "description": "Invalid - second 99", + "data": "2023W101T120099Z", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "2023W101T000000Z", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "2023W101T230000Z", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "2023W101T120000Z", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "2023W101T125900Z", + "valid": true + }, + { + "description": "Valid - second 00 (minimum)", + "data": "2023W101T120000Z", + "valid": true + }, + { + "description": "Valid - second 59", + "data": "2023W101T120059Z", + "valid": true + }, + { + "description": "Valid - second 60 (leap second)", + "data": "2023W267T235960Z", + "valid": true + }, + { + "description": "Invalid - with time shift instead of Z", + "data": "2023W101T120000+0100", + "valid": false + }, + { + "description": "Invalid - with hourly time shift", + "data": "2023W101T120000+01", + "valid": false + }, + { + "description": "Invalid - with decimal seconds", + "data": "2023W101T120000.5Z", + "valid": false + }, + { + "description": "Invalid - partial time (hour and minute only)", + "data": "2023W101T1200Z", + "valid": false + }, + { + "description": "Invalid - partial time (hour only)", + "data": "2023W101T12Z", + "valid": false + }, + { + "description": "Invalid - date only", + "data": "2023W101Z", + "valid": false + }, + { + "description": "Invalid - time only", + "data": "T120000Z", + "valid": false + }, + { + "description": "Valid - week 01 day 1 (Monday)", + "data": "2023W011T120000Z", + "valid": true + }, + { + "description": "Valid - week 53 day 7 (Sunday)", + "data": "2020W537T120000Z", + "valid": true + }, + { + "description": "Valid - day 7 (Sunday)", + "data": "2023W107T120000Z", + "valid": true + }, + { + "description": "Invalid - spaces in datetime", + "data": "2023 W10 1T12 00 00Z", + "valid": false + }, + { + "description": "Invalid - missing W designator", + "data": "2023101T120000Z", + "valid": false + }, + { + "description": "Invalid - missing year digits", + "data": "23W101T120000Z", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "2023W101T120000ZX", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning", + "data": "X2023W101T120000Z", + "valid": false + }, + { + "description": "Invalid - double Z", + "data": "2023W101T120000ZZ", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/datetime/week-utc-extended/v1.test.json b/test/schemas/iso/datetime/2019/datetime/week-utc-extended/v1.test.json new file mode 100644 index 00000000..3eac0857 --- /dev/null +++ b/test/schemas/iso/datetime/2019/datetime/week-utc-extended/v1.test.json @@ -0,0 +1,300 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/datetime/week-utc-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 2018011120000, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 1985-W15-5 23:20:50 UTC", + "data": "1985-W15-5T23:20:50Z", + "valid": true + }, + { + "description": "Valid - 2000-W01-1 00:00:00 UTC", + "data": "2000-W01-1T00:00:00Z", + "valid": true + }, + { + "description": "Valid - leap second 2023-W50-7 23:59:60 UTC", + "data": "2023-W50-7T23:59:60Z", + "valid": true + }, + { + "description": "Valid - 2020-W09-7 12:00:00 UTC", + "data": "2020-W09-7T12:00:00Z", + "valid": true + }, + { + "description": "Valid - end of year 2023-W52-7 23:59:59 UTC", + "data": "2023-W52-7T23:59:59Z", + "valid": true + }, + { + "description": "Valid - start of year 2024-W01-1 00:00:00 UTC", + "data": "2024-W01-1T00:00:00Z", + "valid": true + }, + { + "description": "Valid - historical date 1900-W09-7 06:30:45 UTC", + "data": "1900-W09-7T06:30:45Z", + "valid": true + }, + { + "description": "Valid - future date 2100-W33-7 18:45:30 UTC", + "data": "2100-W33-7T18:45:30Z", + "valid": true + }, + { + "description": "Invalid - missing T designator", + "data": "1985-W15-523:20:50Z", + "valid": false + }, + { + "description": "Invalid - lowercase w", + "data": "1985-w15-5T23:20:50Z", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "1985-W15-5t23:20:50Z", + "valid": false + }, + { + "description": "Invalid - lowercase z", + "data": "1985-W15-5T23:20:50z", + "valid": false + }, + { + "description": "Invalid - missing Z designator", + "data": "1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - basic format", + "data": "1985W155T232050Z", + "valid": false + }, + { + "description": "Invalid - week 00", + "data": "2023-W00-7T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - week 54", + "data": "2023-W54-7T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - week 99", + "data": "2023-W99-7T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - day 0", + "data": "2023-W10-0T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - day 8", + "data": "2023-W10-8T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - day 9", + "data": "2023-W10-9T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "2023-W10-1T24:00:00Z", + "valid": false + }, + { + "description": "Invalid - hour 25", + "data": "2023-W10-1T25:00:00Z", + "valid": false + }, + { + "description": "Invalid - hour 99", + "data": "2023-W10-1T99:00:00Z", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "2023-W10-1T12:60:00Z", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "2023-W10-1T12:99:00Z", + "valid": false + }, + { + "description": "Invalid - second 61", + "data": "2023-W10-1T12:00:61Z", + "valid": false + }, + { + "description": "Invalid - second 99", + "data": "2023-W10-1T12:00:99Z", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "2023-W10-1T00:00:00Z", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "2023-W10-1T23:00:00Z", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "2023-W10-1T12:00:00Z", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "2023-W10-1T12:59:00Z", + "valid": true + }, + { + "description": "Valid - second 00 (minimum)", + "data": "2023-W10-1T12:00:00Z", + "valid": true + }, + { + "description": "Valid - second 59", + "data": "2023-W10-1T12:00:59Z", + "valid": true + }, + { + "description": "Valid - second 60 (leap second)", + "data": "2023-W26-7T23:59:60Z", + "valid": true + }, + { + "description": "Invalid - missing hyphens", + "data": "2023W101T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - missing colons in time", + "data": "2023-W10-1T120000Z", + "valid": false + }, + { + "description": "Invalid - with time shift instead of Z", + "data": "2023-W10-1T12:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - with hourly time shift", + "data": "2023-W10-1T12:00:00+01", + "valid": false + }, + { + "description": "Invalid - with decimal seconds", + "data": "2023-W10-1T12:00:00.5Z", + "valid": false + }, + { + "description": "Invalid - partial time (hour and minute only)", + "data": "2023-W10-1T12:00Z", + "valid": false + }, + { + "description": "Invalid - partial time (hour only)", + "data": "2023-W10-1T12Z", + "valid": false + }, + { + "description": "Invalid - date only", + "data": "2023-W10-1Z", + "valid": false + }, + { + "description": "Invalid - time only", + "data": "T12:00:00Z", + "valid": false + }, + { + "description": "Valid - week 01 day 1 (Monday)", + "data": "2023-W01-1T12:00:00Z", + "valid": true + }, + { + "description": "Valid - week 53 day 7 (Sunday)", + "data": "2020-W53-7T12:00:00Z", + "valid": true + }, + { + "description": "Valid - day 7 (Sunday)", + "data": "2023-W10-7T12:00:00Z", + "valid": true + }, + { + "description": "Invalid - spaces in datetime", + "data": "2023-W10-1 T 12:00:00Z", + "valid": false + }, + { + "description": "Invalid - missing W designator", + "data": "2023-10-1T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - extra hyphen", + "data": "2023--W10-1T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - missing year digits", + "data": "23-W10-1T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "2023-W10-1T12:00:00ZX", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning", + "data": "X2023-W10-1T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - double Z", + "data": "2023-W10-1T12:00:00ZZ", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/duration/calendar-basic/v1.test.json b/test/schemas/iso/datetime/2019/duration/calendar-basic/v1.test.json new file mode 100644 index 00000000..267a44f0 --- /dev/null +++ b/test/schemas/iso/datetime/2019/duration/calendar-basic/v1.test.json @@ -0,0 +1,350 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/duration/calendar-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 20110223, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 2 years 1 month 10 days, 22 hours 33 minutes 55 seconds", + "data": "P00020110T223355", + "valid": true + }, + { + "description": "Valid - 1 year 1 month 1 day, 0 hours 0 minutes 0 seconds", + "data": "P00010101T000000", + "valid": true + }, + { + "description": "Invalid - 31 days exceeds the 30-day carry-over point", + "data": "P00001231T235959", + "valid": false + }, + { + "description": "Valid - 10 years 6 months 15 days, 12 hours 30 minutes 45 seconds", + "data": "P00100615T123045", + "valid": true + }, + { + "description": "Invalid - missing P prefix", + "data": "00020110T223355", + "valid": false + }, + { + "description": "Invalid - missing T separator", + "data": "P00020110223355", + "valid": false + }, + { + "description": "Invalid - lowercase p", + "data": "p00020110T223355", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "P00020110t223355", + "valid": false + }, + { + "description": "Invalid - too few date digits", + "data": "P0020110T223355", + "valid": false + }, + { + "description": "Invalid - too many date digits", + "data": "P000020110T223355", + "valid": false + }, + { + "description": "Invalid - too few time digits", + "data": "P00020110T22335", + "valid": false + }, + { + "description": "Invalid - too many time digits", + "data": "P00020110T2233555", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - spaces in duration", + "data": "P0002 0110 T22 33 55", + "valid": false + }, + { + "description": "Invalid - hyphens (extended format)", + "data": "P0002-01-10T22:33:55", + "valid": false + }, + { + "description": "Invalid - colons in time (extended format)", + "data": "P00020110T22:33:55", + "valid": false + }, + { + "description": "Valid - zero months is a legal duration quantity", + "data": "P00000001T000000", + "valid": true + }, + { + "description": "Valid - zero months with days is a legal duration quantity", + "data": "P00010001T000000", + "valid": true + }, + { + "description": "Invalid - month 13 (months should be 01-12)", + "data": "P00011301T000000", + "valid": false + }, + { + "description": "Invalid - month 99 (months should be 01-12)", + "data": "P00019901T000000", + "valid": false + }, + { + "description": "Valid - zero days is a legal duration quantity", + "data": "P00010100T000000", + "valid": true + }, + { + "description": "Invalid - day 32 (days should be 01-31)", + "data": "P00010132T000000", + "valid": false + }, + { + "description": "Invalid - day 99 (days should be 01-31)", + "data": "P00010199T000000", + "valid": false + }, + { + "description": "Invalid - hour 24 (hours should be 00-23)", + "data": "P00010101T240000", + "valid": false + }, + { + "description": "Invalid - hour 99 (hours should be 00-23)", + "data": "P00010101T990000", + "valid": false + }, + { + "description": "Invalid - minute 60 (minutes should be 00-59)", + "data": "P00010101T006000", + "valid": false + }, + { + "description": "Invalid - minute 99 (minutes should be 00-59)", + "data": "P00010101T009900", + "valid": false + }, + { + "description": "Invalid - second 60 (seconds should be 00-59)", + "data": "P00010101T000060", + "valid": false + }, + { + "description": "Invalid - second 99 (seconds should be 00-59)", + "data": "P00010101T000099", + "valid": false + }, + { + "description": "Valid - month 01 (minimum valid month)", + "data": "P00000101T000000", + "valid": true + }, + { + "description": "Valid - month 12 (maximum valid month)", + "data": "P00001201T000000", + "valid": true + }, + { + "description": "Valid - day 01 (minimum valid day)", + "data": "P00000101T000000", + "valid": true + }, + { + "description": "Invalid - 31 days exceeds the 30-day carry-over point", + "data": "P00000131T000000", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum valid hour)", + "data": "P00000101T000000", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum valid hour)", + "data": "P00000101T230000", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum valid minute)", + "data": "P00000101T000000", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum valid minute)", + "data": "P00000101T005900", + "valid": true + }, + { + "description": "Valid - second 00 (minimum valid second)", + "data": "P00000101T000000", + "valid": true + }, + { + "description": "Valid - second 59 (maximum valid second)", + "data": "P00000101T000059", + "valid": true + }, + { + "description": "Invalid - durations take no sign and no expanded year form", + "data": "P+100000101T000000", + "valid": false + }, + { + "description": "Invalid - durations take no sign and no expanded year form", + "data": "P-100000101T000000", + "valid": false + }, + { + "description": "Invalid - durations take no sign and no expanded year form", + "data": "P+10000000101T000000", + "valid": false + }, + { + "description": "Invalid - durations take no sign and no expanded year form", + "data": "P-10000000000101T000000", + "valid": false + }, + { + "description": "Invalid - expanded year without sign (5 digits)", + "data": "P100000101T000000", + "valid": false + }, + { + "description": "Invalid - 4 digit year with plus sign", + "data": "P+00010101T000000", + "valid": false + }, + { + "description": "Invalid - 4 digit year with minus sign", + "data": "P-00010101T000000", + "valid": false + }, + { + "description": "Invalid - month without leading zero (single digit)", + "data": "P00000101T00000", + "valid": false + }, + { + "description": "Invalid - day without leading zero (single digit)", + "data": "P0000011T00000", + "valid": false + }, + { + "description": "Invalid - hour without leading zero (single digit)", + "data": "P00000101T10000", + "valid": false + }, + { + "description": "Invalid - minute without leading zero (single digit)", + "data": "P00000101T00100", + "valid": false + }, + { + "description": "Invalid - second without leading zero (single digit)", + "data": "P00000101T00001", + "valid": false + }, + { + "description": "Valid - zero months is a legal duration quantity", + "data": "P00010001T000000", + "valid": true + }, + { + "description": "Invalid - month 13", + "data": "P00011301T000000", + "valid": false + }, + { + "description": "Valid - zero days is a legal duration quantity", + "data": "P00010100T000000", + "valid": true + }, + { + "description": "Invalid - day 32", + "data": "P00010132T000000", + "valid": false + }, + { + "description": "Valid - month and day fields are quantities, not a calendar date", + "data": "P00010230T000000", + "valid": true + }, + { + "description": "Invalid - February 31", + "data": "P00010231T000000", + "valid": false + }, + { + "description": "Invalid - April 31", + "data": "P00010431T000000", + "valid": false + }, + { + "description": "Invalid - June 31", + "data": "P00010631T000000", + "valid": false + }, + { + "description": "Invalid - September 31", + "data": "P00010931T000000", + "valid": false + }, + { + "description": "Invalid - November 31", + "data": "P00011131T000000", + "valid": false + }, + { + "description": "Valid - February 29 (leap year validation is consumer responsibility)", + "data": "P00010229T000000", + "valid": true + }, + { + "description": "Valid - April 30", + "data": "P00010430T000000", + "valid": true + }, + { + "description": "Invalid - 31 days exceeds the 30-day carry-over point", + "data": "P00010131T000000", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/duration/calendar-extended/v1.test.json b/test/schemas/iso/datetime/2019/duration/calendar-extended/v1.test.json new file mode 100644 index 00000000..ab43e6f9 --- /dev/null +++ b/test/schemas/iso/datetime/2019/duration/calendar-extended/v1.test.json @@ -0,0 +1,350 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/duration/calendar-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 20110223, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 2 years 1 month 10 days, 22 hours 33 minutes 55 seconds", + "data": "P0002-01-10T22:33:55", + "valid": true + }, + { + "description": "Valid - 1 year 1 month 1 day, 0 hours 0 minutes 0 seconds", + "data": "P0001-01-01T00:00:00", + "valid": true + }, + { + "description": "Invalid - 31 days exceeds the 30-day carry-over point", + "data": "P0000-12-31T23:59:59", + "valid": false + }, + { + "description": "Valid - 10 years 6 months 15 days, 12 hours 30 minutes 45 seconds", + "data": "P0010-06-15T12:30:45", + "valid": true + }, + { + "description": "Invalid - missing P prefix", + "data": "0002-01-10T22:33:55", + "valid": false + }, + { + "description": "Invalid - missing T separator", + "data": "P0002-01-1022:33:55", + "valid": false + }, + { + "description": "Invalid - lowercase p", + "data": "p0002-01-10T22:33:55", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "P0002-01-10t22:33:55", + "valid": false + }, + { + "description": "Invalid - missing date hyphens", + "data": "P00020110T22:33:55", + "valid": false + }, + { + "description": "Invalid - missing time colons", + "data": "P0002-01-10T223355", + "valid": false + }, + { + "description": "Invalid - too few year digits", + "data": "P002-01-10T22:33:55", + "valid": false + }, + { + "description": "Invalid - too many year digits", + "data": "P00002-01-10T22:33:55", + "valid": false + }, + { + "description": "Invalid - too few month digits", + "data": "P0002-1-10T22:33:55", + "valid": false + }, + { + "description": "Invalid - too many month digits", + "data": "P0002-001-10T22:33:55", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - spaces in duration", + "data": "P0002-01-10 T 22:33:55", + "valid": false + }, + { + "description": "Valid - zero months is a legal duration quantity", + "data": "P0000-00-01T00:00:00", + "valid": true + }, + { + "description": "Valid - zero months with days is a legal duration quantity", + "data": "P0001-00-01T00:00:00", + "valid": true + }, + { + "description": "Invalid - month 13 (months should be 01-12)", + "data": "P0001-13-01T00:00:00", + "valid": false + }, + { + "description": "Invalid - month 99 (months should be 01-12)", + "data": "P0001-99-01T00:00:00", + "valid": false + }, + { + "description": "Valid - zero days is a legal duration quantity", + "data": "P0001-01-00T00:00:00", + "valid": true + }, + { + "description": "Invalid - day 32 (days should be 01-31)", + "data": "P0001-01-32T00:00:00", + "valid": false + }, + { + "description": "Invalid - day 99 (days should be 01-31)", + "data": "P0001-01-99T00:00:00", + "valid": false + }, + { + "description": "Invalid - hour 24 (hours should be 00-23)", + "data": "P0001-01-01T24:00:00", + "valid": false + }, + { + "description": "Invalid - hour 99 (hours should be 00-23)", + "data": "P0001-01-01T99:00:00", + "valid": false + }, + { + "description": "Invalid - minute 60 (minutes should be 00-59)", + "data": "P0001-01-01T00:60:00", + "valid": false + }, + { + "description": "Invalid - minute 99 (minutes should be 00-59)", + "data": "P0001-01-01T00:99:00", + "valid": false + }, + { + "description": "Invalid - second 60 (seconds should be 00-59)", + "data": "P0001-01-01T00:00:60", + "valid": false + }, + { + "description": "Invalid - second 99 (seconds should be 00-59)", + "data": "P0001-01-01T00:00:99", + "valid": false + }, + { + "description": "Valid - month 01 (minimum valid month)", + "data": "P0000-01-01T00:00:00", + "valid": true + }, + { + "description": "Valid - month 12 (maximum valid month)", + "data": "P0000-12-01T00:00:00", + "valid": true + }, + { + "description": "Valid - day 01 (minimum valid day)", + "data": "P0000-01-01T00:00:00", + "valid": true + }, + { + "description": "Invalid - 31 days exceeds the 30-day carry-over point", + "data": "P0000-01-31T00:00:00", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum valid hour)", + "data": "P0000-01-01T00:00:00", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum valid hour)", + "data": "P0000-01-01T23:00:00", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum valid minute)", + "data": "P0000-01-01T00:00:00", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum valid minute)", + "data": "P0000-01-01T00:59:00", + "valid": true + }, + { + "description": "Valid - second 00 (minimum valid second)", + "data": "P0000-01-01T00:00:00", + "valid": true + }, + { + "description": "Valid - second 59 (maximum valid second)", + "data": "P0000-01-01T00:00:59", + "valid": true + }, + { + "description": "Invalid - durations take no sign and no expanded year form", + "data": "P+10000-01-01T00:00:00", + "valid": false + }, + { + "description": "Invalid - durations take no sign and no expanded year form", + "data": "P-10000-01-01T00:00:00", + "valid": false + }, + { + "description": "Invalid - durations take no sign and no expanded year form", + "data": "P+100000-01-01T00:00:00", + "valid": false + }, + { + "description": "Invalid - durations take no sign and no expanded year form", + "data": "P-1000000000-01-01T00:00:00", + "valid": false + }, + { + "description": "Invalid - expanded year without sign (5 digits)", + "data": "P10000-01-01T00:00:00", + "valid": false + }, + { + "description": "Invalid - 4 digit year with plus sign", + "data": "P+0001-01-01T00:00:00", + "valid": false + }, + { + "description": "Invalid - 4 digit year with minus sign", + "data": "P-0001-01-01T00:00:00", + "valid": false + }, + { + "description": "Invalid - month without leading zero (single digit)", + "data": "P0000-1-01T00:00:00", + "valid": false + }, + { + "description": "Invalid - day without leading zero (single digit)", + "data": "P0000-01-1T00:00:00", + "valid": false + }, + { + "description": "Invalid - hour without leading zero (single digit)", + "data": "P0000-01-01T1:00:00", + "valid": false + }, + { + "description": "Invalid - minute without leading zero (single digit)", + "data": "P0000-01-01T00:1:00", + "valid": false + }, + { + "description": "Invalid - second without leading zero (single digit)", + "data": "P0000-01-01T00:00:1", + "valid": false + }, + { + "description": "Valid - zero months is a legal duration quantity", + "data": "P0001-00-01T00:00:00", + "valid": true + }, + { + "description": "Invalid - month 13", + "data": "P0001-13-01T00:00:00", + "valid": false + }, + { + "description": "Valid - zero days is a legal duration quantity", + "data": "P0001-01-00T00:00:00", + "valid": true + }, + { + "description": "Invalid - day 32", + "data": "P0001-01-32T00:00:00", + "valid": false + }, + { + "description": "Valid - month and day fields are quantities, not a calendar date", + "data": "P0001-02-30T00:00:00", + "valid": true + }, + { + "description": "Invalid - February 31", + "data": "P0001-02-31T00:00:00", + "valid": false + }, + { + "description": "Invalid - April 31", + "data": "P0001-04-31T00:00:00", + "valid": false + }, + { + "description": "Invalid - June 31", + "data": "P0001-06-31T00:00:00", + "valid": false + }, + { + "description": "Invalid - September 31", + "data": "P0001-09-31T00:00:00", + "valid": false + }, + { + "description": "Invalid - November 31", + "data": "P0001-11-31T00:00:00", + "valid": false + }, + { + "description": "Valid - February 29 (leap year validation is consumer responsibility)", + "data": "P0001-02-29T00:00:00", + "valid": true + }, + { + "description": "Valid - April 30", + "data": "P0001-04-30T00:00:00", + "valid": true + }, + { + "description": "Invalid - 31 days exceeds the 30-day carry-over point", + "data": "P0001-01-31T00:00:00", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/duration/designator-extension/v1.test.json b/test/schemas/iso/datetime/2019/duration/designator-extension/v1.test.json new file mode 100644 index 00000000..cd702a32 --- /dev/null +++ b/test/schemas/iso/datetime/2019/duration/designator-extension/v1.test.json @@ -0,0 +1,350 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/duration/designator-extension/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - full duration with all components", + "data": "P3Y6M4DT12H30M5S", + "valid": true + }, + { + "description": "Valid - only years", + "data": "P1Y", + "valid": true + }, + { + "description": "Valid - only time component (hours)", + "data": "PT1H", + "valid": true + }, + { + "description": "Valid - days and seconds", + "data": "P1DT1S", + "valid": true + }, + { + "description": "Valid - all zeros", + "data": "P0Y0M0DT0H0M0S", + "valid": true + }, + { + "description": "Valid - only months", + "data": "P5M", + "valid": true + }, + { + "description": "Valid - only days", + "data": "P100D", + "valid": true + }, + { + "description": "Valid - only minutes", + "data": "PT30M", + "valid": true + }, + { + "description": "Valid - only seconds", + "data": "PT45S", + "valid": true + }, + { + "description": "Valid - seconds with decimal fraction", + "data": "PT1.5S", + "valid": true + }, + { + "description": "Valid - years and months", + "data": "P2Y3M", + "valid": true + }, + { + "description": "Valid - hours and minutes", + "data": "PT12H30M", + "valid": true + }, + { + "description": "Invalid - missing P prefix", + "data": "3Y6M4DT12H30M5S", + "valid": false + }, + { + "description": "Invalid - lowercase p", + "data": "p1Y", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "P1Dt1H", + "valid": false + }, + { + "description": "Invalid - time component without T", + "data": "P1D1H", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - only P", + "data": "P", + "valid": false + }, + { + "description": "Invalid - only PT", + "data": "PT", + "valid": false + }, + { + "description": "Invalid - spaces in duration", + "data": "P1Y 2M", + "valid": false + }, + { + "description": "Invalid - wrong order (months before years)", + "data": "P6M3Y", + "valid": false + }, + { + "description": "Valid - 13 months (durations can exceed calendar limits)", + "data": "P13M", + "valid": true + }, + { + "description": "Valid - 32 days (durations can exceed calendar limits)", + "data": "P32D", + "valid": true + }, + { + "description": "Valid - 25 hours (durations can exceed calendar limits)", + "data": "PT25H", + "valid": true + }, + { + "description": "Valid - 60 minutes (durations can exceed calendar limits)", + "data": "PT60M", + "valid": true + }, + { + "description": "Valid - 60 seconds (durations can exceed calendar limits)", + "data": "PT60S", + "valid": true + }, + { + "description": "Valid - 100 hours (durations can exceed calendar limits)", + "data": "PT100H", + "valid": true + }, + { + "description": "Valid - 500 days (durations can exceed calendar limits)", + "data": "P500D", + "valid": true + }, + { + "description": "Valid - zero years", + "data": "P0Y", + "valid": true + }, + { + "description": "Valid - zero months", + "data": "P0M", + "valid": true + }, + { + "description": "Valid - zero days", + "data": "P0D", + "valid": true + }, + { + "description": "Valid - zero hours", + "data": "PT0H", + "valid": true + }, + { + "description": "Valid - zero minutes", + "data": "PT0M", + "valid": true + }, + { + "description": "Valid - zero seconds", + "data": "PT0S", + "valid": true + }, + { + "description": "Valid negative - days only", + "data": "-P100D", + "valid": true + }, + { + "description": "Valid negative - year month and days", + "data": "-P1Y2M3D", + "valid": true + }, + { + "description": "Valid negative - full representation", + "data": "-P3Y6M4DT12H30M5S", + "valid": true + }, + { + "description": "Valid negative - time only hours and minutes", + "data": "-PT5H30M", + "valid": true + }, + { + "description": "Valid negative - year only", + "data": "-P1Y", + "valid": true + }, + { + "description": "Valid negative - hours only", + "data": "-PT1H", + "valid": true + }, + { + "description": "Valid negative - decimal year", + "data": "-P1.5Y", + "valid": true + }, + { + "description": "Valid negative - months only", + "data": "-P6M", + "valid": true + }, + { + "description": "Valid negative - seconds only", + "data": "-PT30S", + "valid": true + }, + { + "description": "Valid negative - year month day", + "data": "-P1Y2M3D", + "valid": true + }, + { + "description": "Valid negative - hours minutes seconds", + "data": "-PT10H20M30S", + "valid": true + }, + { + "description": "Valid negative - decimal seconds", + "data": "-PT1.5S", + "valid": true + }, + { + "description": "Valid negative - zero duration", + "data": "-P0Y0M0DT0H0M0S", + "valid": true + }, + { + "description": "Invalid - empty P", + "data": "P", + "valid": false + }, + { + "description": "Invalid - empty PT", + "data": "PT", + "valid": false + }, + { + "description": "Invalid - empty -P", + "data": "-P", + "valid": false + }, + { + "description": "Invalid - empty -PT", + "data": "-PT", + "valid": false + }, + { + "description": "Invalid - double minus", + "data": "--P1Y", + "valid": false + }, + { + "description": "Invalid - minus in wrong position", + "data": "P-1Y", + "valid": false + }, + { + "description": "Invalid - missing P", + "data": "-1Y", + "valid": false + }, + { + "description": "Invalid - missing T separator", + "data": "-P1Y1H", + "valid": false + }, + { + "description": "Invalid - wrong designator order", + "data": "-P1D2M3Y", + "valid": false + }, + { + "description": "Invalid - time before date", + "data": "-PT1H1D", + "valid": false + }, + { + "description": "Invalid type - number", + "data": 100, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - negative week duration", + "valid": true, + "data": "-P1W" + }, + { + "description": "Valid - negative duration with months omitted", + "valid": true, + "data": "-P1Y1D" + } + ] +} diff --git a/test/schemas/iso/datetime/2019/duration/designator/v1.test.json b/test/schemas/iso/datetime/2019/duration/designator/v1.test.json new file mode 100644 index 00000000..e8fb251c --- /dev/null +++ b/test/schemas/iso/datetime/2019/duration/designator/v1.test.json @@ -0,0 +1,225 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/duration/designator/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - full duration with all components", + "data": "P3Y6M4DT12H30M5S", + "valid": true + }, + { + "description": "Valid - only years", + "data": "P1Y", + "valid": true + }, + { + "description": "Valid - only time component (hours)", + "data": "PT1H", + "valid": true + }, + { + "description": "Valid - days and seconds", + "data": "P1DT1S", + "valid": true + }, + { + "description": "Valid - all zeros", + "data": "P0Y0M0DT0H0M0S", + "valid": true + }, + { + "description": "Valid - only months", + "data": "P5M", + "valid": true + }, + { + "description": "Valid - only days", + "data": "P100D", + "valid": true + }, + { + "description": "Valid - only minutes", + "data": "PT30M", + "valid": true + }, + { + "description": "Valid - only seconds", + "data": "PT45S", + "valid": true + }, + { + "description": "Valid - seconds with decimal fraction", + "data": "PT1.5S", + "valid": true + }, + { + "description": "Valid - years and months", + "data": "P2Y3M", + "valid": true + }, + { + "description": "Valid - hours and minutes", + "data": "PT12H30M", + "valid": true + }, + { + "description": "Invalid - missing P prefix", + "data": "3Y6M4DT12H30M5S", + "valid": false + }, + { + "description": "Invalid - lowercase p", + "data": "p1Y", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "P1Dt1H", + "valid": false + }, + { + "description": "Invalid - time component without T", + "data": "P1D1H", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - only P", + "data": "P", + "valid": false + }, + { + "description": "Invalid - only PT", + "data": "PT", + "valid": false + }, + { + "description": "Invalid - spaces in duration", + "data": "P1Y 2M", + "valid": false + }, + { + "description": "Invalid - wrong order (months before years)", + "data": "P6M3Y", + "valid": false + }, + { + "description": "Valid - 13 months (durations can exceed calendar limits)", + "data": "P13M", + "valid": true + }, + { + "description": "Valid - 32 days (durations can exceed calendar limits)", + "data": "P32D", + "valid": true + }, + { + "description": "Valid - 25 hours (durations can exceed calendar limits)", + "data": "PT25H", + "valid": true + }, + { + "description": "Valid - 60 minutes (durations can exceed calendar limits)", + "data": "PT60M", + "valid": true + }, + { + "description": "Valid - 60 seconds (durations can exceed calendar limits)", + "data": "PT60S", + "valid": true + }, + { + "description": "Valid - 100 hours (durations can exceed calendar limits)", + "data": "PT100H", + "valid": true + }, + { + "description": "Valid - 500 days (durations can exceed calendar limits)", + "data": "P500D", + "valid": true + }, + { + "description": "Valid - zero years", + "data": "P0Y", + "valid": true + }, + { + "description": "Valid - zero months", + "data": "P0M", + "valid": true + }, + { + "description": "Valid - zero days", + "data": "P0D", + "valid": true + }, + { + "description": "Valid - zero hours", + "data": "PT0H", + "valid": true + }, + { + "description": "Valid - zero minutes", + "data": "PT0M", + "valid": true + }, + { + "description": "Valid - zero seconds", + "data": "PT0S", + "valid": true + }, + { + "description": "Valid - years and days with months omitted", + "valid": true, + "data": "P1Y1D" + }, + { + "description": "Valid - hours and seconds with minutes omitted", + "valid": true, + "data": "PT1H1S" + }, + { + "description": "Valid - comma as the decimal sign", + "valid": true, + "data": "P0,5Y" + }, + { + "description": "Invalid - components out of order", + "valid": false, + "data": "P1D1Y" + }, + { + "description": "Invalid - fraction on a component that is not the lowest order", + "valid": false, + "data": "P0.5Y1D" + } + ] +} diff --git a/test/schemas/iso/datetime/2019/duration/ordinal-basic/v1.test.json b/test/schemas/iso/datetime/2019/duration/ordinal-basic/v1.test.json new file mode 100644 index 00000000..2b480feb --- /dev/null +++ b/test/schemas/iso/datetime/2019/duration/ordinal-basic/v1.test.json @@ -0,0 +1,300 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/duration/ordinal-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 2178223355, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 2 years day 178, 22 hours 33 minutes 55 seconds", + "data": "P0002178T223355", + "valid": true + }, + { + "description": "Valid - 1 year day 1, 0 hours 0 minutes 0 seconds", + "data": "P0001001T000000", + "valid": true + }, + { + "description": "Valid - 1 year day 365, 23 hours 59 minutes 59 seconds", + "data": "P0001365T235959", + "valid": true + }, + { + "description": "Valid - 10 years day 100, 12 hours 30 minutes 45 seconds", + "data": "P0010100T123045", + "valid": true + }, + { + "description": "Invalid - 366 days exceeds the carry-over point", + "data": "P0005366T061530", + "valid": false + }, + { + "description": "Invalid - missing P prefix", + "data": "0002178T223355", + "valid": false + }, + { + "description": "Invalid - missing T separator", + "data": "P0002178223355", + "valid": false + }, + { + "description": "Invalid - lowercase p", + "data": "p0002178T223355", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "P0002178t223355", + "valid": false + }, + { + "description": "Invalid - too few ordinal date digits", + "data": "P000278T223355", + "valid": false + }, + { + "description": "Invalid - too many ordinal date digits", + "data": "P00002178T223355", + "valid": false + }, + { + "description": "Invalid - too few time digits", + "data": "P0002178T22335", + "valid": false + }, + { + "description": "Invalid - too many time digits", + "data": "P0002178T2233555", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - spaces in duration", + "data": "P0002 178 T22 33 55", + "valid": false + }, + { + "description": "Invalid - hyphen (extended format)", + "data": "P0002-178T223355", + "valid": false + }, + { + "description": "Invalid - colons in time (extended format)", + "data": "P0002178T22:33:55", + "valid": false + }, + { + "description": "Valid - zero days is a legal duration quantity", + "data": "P0001000T000000", + "valid": true + }, + { + "description": "Invalid - ordinal day 367 (ordinal days should be 001-366)", + "data": "P0001367T000000", + "valid": false + }, + { + "description": "Invalid - ordinal day 999 (ordinal days should be 001-366)", + "data": "P0001999T000000", + "valid": false + }, + { + "description": "Invalid - hour 24 (hours should be 00-23)", + "data": "P0001001T240000", + "valid": false + }, + { + "description": "Invalid - hour 99 (hours should be 00-23)", + "data": "P0001001T990000", + "valid": false + }, + { + "description": "Invalid - minute 60 (minutes should be 00-59)", + "data": "P0001001T006000", + "valid": false + }, + { + "description": "Invalid - minute 99 (minutes should be 00-59)", + "data": "P0001001T009900", + "valid": false + }, + { + "description": "Invalid - second 60 (seconds should be 00-59)", + "data": "P0001001T000060", + "valid": false + }, + { + "description": "Invalid - second 99 (seconds should be 00-59)", + "data": "P0001001T000099", + "valid": false + }, + { + "description": "Valid - ordinal day 001 (minimum valid ordinal day)", + "data": "P0000001T000000", + "valid": true + }, + { + "description": "Invalid - 366 days exceeds the carry-over point", + "data": "P0000366T000000", + "valid": false + }, + { + "description": "Valid - ordinal day 365", + "data": "P0000365T000000", + "valid": true + }, + { + "description": "Valid - hour 00 (minimum valid hour)", + "data": "P0000001T000000", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum valid hour)", + "data": "P0000001T230000", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum valid minute)", + "data": "P0000001T000000", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum valid minute)", + "data": "P0000001T005900", + "valid": true + }, + { + "description": "Valid - second 00 (minimum valid second)", + "data": "P0000001T000000", + "valid": true + }, + { + "description": "Valid - second 59 (maximum valid second)", + "data": "P0000001T000059", + "valid": true + }, + { + "description": "Invalid - durations take no sign and no expanded year form", + "data": "P+10000001T000000", + "valid": false + }, + { + "description": "Invalid - durations take no sign and no expanded year form", + "data": "P-10000001T000000", + "valid": false + }, + { + "description": "Invalid - durations take no sign and no expanded year form", + "data": "P+100000001T000000", + "valid": false + }, + { + "description": "Invalid - durations take no sign and no expanded year form", + "data": "P-1000000000001T000000", + "valid": false + }, + { + "description": "Invalid - expanded year without sign (5 digits)", + "data": "P10000001T000000", + "valid": false + }, + { + "description": "Invalid - 4 digit year with plus sign", + "data": "P+0001001T000000", + "valid": false + }, + { + "description": "Invalid - 4 digit year with minus sign", + "data": "P-0001001T000000", + "valid": false + }, + { + "description": "Invalid - ordinal day without leading zeros (single digit)", + "data": "P00001T00000", + "valid": false + }, + { + "description": "Invalid - ordinal day without leading zeros (two digits)", + "data": "P000001T00000", + "valid": false + }, + { + "description": "Invalid - hour without leading zero (single digit)", + "data": "P0000001T10000", + "valid": false + }, + { + "description": "Invalid - minute without leading zero (single digit)", + "data": "P0000001T00100", + "valid": false + }, + { + "description": "Invalid - second without leading zero (single digit)", + "data": "P0000001T00001", + "valid": false + }, + { + "description": "Invalid - day 367", + "data": "P0001367T000000", + "valid": false + }, + { + "description": "Invalid - day 400", + "data": "P0001400T000000", + "valid": false + }, + { + "description": "Invalid - day 500", + "data": "P0001500T000000", + "valid": false + }, + { + "description": "Invalid - day 999", + "data": "P0001999T000000", + "valid": false + }, + { + "description": "Invalid - 366 days exceeds the carry-over point", + "data": "P0001366T000000", + "valid": false + }, + { + "description": "Valid - day 001", + "data": "P0001001T000000", + "valid": true + }, + { + "description": "Valid - day 365", + "data": "P0001365T000000", + "valid": true + } + ] +} diff --git a/test/schemas/iso/datetime/2019/duration/ordinal-extended/v1.test.json b/test/schemas/iso/datetime/2019/duration/ordinal-extended/v1.test.json new file mode 100644 index 00000000..01b5846d --- /dev/null +++ b/test/schemas/iso/datetime/2019/duration/ordinal-extended/v1.test.json @@ -0,0 +1,300 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/duration/ordinal-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 2178223355, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 2 years day 178, 22 hours 33 minutes 55 seconds", + "data": "P0002-178T22:33:55", + "valid": true + }, + { + "description": "Valid - 1 year day 1, 0 hours 0 minutes 0 seconds", + "data": "P0001-001T00:00:00", + "valid": true + }, + { + "description": "Valid - 1 year day 365, 23 hours 59 minutes 59 seconds", + "data": "P0001-365T23:59:59", + "valid": true + }, + { + "description": "Valid - 10 years day 100, 12 hours 30 minutes 45 seconds", + "data": "P0010-100T12:30:45", + "valid": true + }, + { + "description": "Invalid - 366 days exceeds the carry-over point", + "data": "P0005-366T06:15:30", + "valid": false + }, + { + "description": "Invalid - missing P prefix", + "data": "0002-178T22:33:55", + "valid": false + }, + { + "description": "Invalid - missing T separator", + "data": "P0002-17822:33:55", + "valid": false + }, + { + "description": "Invalid - lowercase p", + "data": "p0002-178T22:33:55", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "P0002-178t22:33:55", + "valid": false + }, + { + "description": "Invalid - missing hyphen", + "data": "P0002178T22:33:55", + "valid": false + }, + { + "description": "Invalid - missing time colons", + "data": "P0002-178T223355", + "valid": false + }, + { + "description": "Invalid - too few year digits", + "data": "P002-178T22:33:55", + "valid": false + }, + { + "description": "Invalid - too many year digits", + "data": "P00002-178T22:33:55", + "valid": false + }, + { + "description": "Invalid - too few day digits", + "data": "P0002-78T22:33:55", + "valid": false + }, + { + "description": "Invalid - too many day digits", + "data": "P0002-1780T22:33:55", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - spaces in duration", + "data": "P0002-178 T 22:33:55", + "valid": false + }, + { + "description": "Valid - zero days is a legal duration quantity", + "data": "P0001-000T00:00:00", + "valid": true + }, + { + "description": "Invalid - ordinal day 367 (ordinal days should be 001-366)", + "data": "P0001-367T00:00:00", + "valid": false + }, + { + "description": "Invalid - ordinal day 999 (ordinal days should be 001-366)", + "data": "P0001-999T00:00:00", + "valid": false + }, + { + "description": "Invalid - hour 24 (hours should be 00-23)", + "data": "P0001-001T24:00:00", + "valid": false + }, + { + "description": "Invalid - hour 99 (hours should be 00-23)", + "data": "P0001-001T99:00:00", + "valid": false + }, + { + "description": "Invalid - minute 60 (minutes should be 00-59)", + "data": "P0001-001T00:60:00", + "valid": false + }, + { + "description": "Invalid - minute 99 (minutes should be 00-59)", + "data": "P0001-001T00:99:00", + "valid": false + }, + { + "description": "Invalid - second 60 (seconds should be 00-59)", + "data": "P0001-001T00:00:60", + "valid": false + }, + { + "description": "Invalid - second 99 (seconds should be 00-59)", + "data": "P0001-001T00:00:99", + "valid": false + }, + { + "description": "Valid - ordinal day 001 (minimum valid ordinal day)", + "data": "P0000-001T00:00:00", + "valid": true + }, + { + "description": "Invalid - 366 days exceeds the carry-over point", + "data": "P0000-366T00:00:00", + "valid": false + }, + { + "description": "Valid - ordinal day 365", + "data": "P0000-365T00:00:00", + "valid": true + }, + { + "description": "Valid - hour 00 (minimum valid hour)", + "data": "P0000-001T00:00:00", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum valid hour)", + "data": "P0000-001T23:00:00", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum valid minute)", + "data": "P0000-001T00:00:00", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum valid minute)", + "data": "P0000-001T00:59:00", + "valid": true + }, + { + "description": "Valid - second 00 (minimum valid second)", + "data": "P0000-001T00:00:00", + "valid": true + }, + { + "description": "Valid - second 59 (maximum valid second)", + "data": "P0000-001T00:00:59", + "valid": true + }, + { + "description": "Invalid - durations take no sign and no expanded year form", + "data": "P+10000-001T00:00:00", + "valid": false + }, + { + "description": "Invalid - durations take no sign and no expanded year form", + "data": "P-10000-001T00:00:00", + "valid": false + }, + { + "description": "Invalid - durations take no sign and no expanded year form", + "data": "P+100000-001T00:00:00", + "valid": false + }, + { + "description": "Invalid - durations take no sign and no expanded year form", + "data": "P-1000000000-001T00:00:00", + "valid": false + }, + { + "description": "Invalid - expanded year without sign (5 digits)", + "data": "P10000-001T00:00:00", + "valid": false + }, + { + "description": "Invalid - 4 digit year with plus sign", + "data": "P+0001-001T00:00:00", + "valid": false + }, + { + "description": "Invalid - 4 digit year with minus sign", + "data": "P-0001-001T00:00:00", + "valid": false + }, + { + "description": "Invalid - ordinal day without leading zeros (single digit)", + "data": "P0000-1T00:00:00", + "valid": false + }, + { + "description": "Invalid - ordinal day without leading zeros (two digits)", + "data": "P0000-01T00:00:00", + "valid": false + }, + { + "description": "Invalid - hour without leading zero (single digit)", + "data": "P0000-001T1:00:00", + "valid": false + }, + { + "description": "Invalid - minute without leading zero (single digit)", + "data": "P0000-001T00:1:00", + "valid": false + }, + { + "description": "Invalid - second without leading zero (single digit)", + "data": "P0000-001T00:00:1", + "valid": false + }, + { + "description": "Invalid - day 367", + "data": "P0001-367T00:00:00", + "valid": false + }, + { + "description": "Invalid - day 400", + "data": "P0001-400T00:00:00", + "valid": false + }, + { + "description": "Invalid - day 500", + "data": "P0001-500T00:00:00", + "valid": false + }, + { + "description": "Invalid - day 999", + "data": "P0001-999T00:00:00", + "valid": false + }, + { + "description": "Invalid - 366 days exceeds the carry-over point", + "data": "P0001-366T00:00:00", + "valid": false + }, + { + "description": "Valid - day 001", + "data": "P0001-001T00:00:00", + "valid": true + }, + { + "description": "Valid - day 365", + "data": "P0001-365T00:00:00", + "valid": true + } + ] +} diff --git a/test/schemas/iso/datetime/2019/duration/weeks/v1.test.json b/test/schemas/iso/datetime/2019/duration/weeks/v1.test.json new file mode 100644 index 00000000..792e9af6 --- /dev/null +++ b/test/schemas/iso/datetime/2019/duration/weeks/v1.test.json @@ -0,0 +1,120 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/duration/weeks/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 10, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 10 weeks", + "data": "P10W", + "valid": true + }, + { + "description": "Valid - 1 week", + "data": "P1W", + "valid": true + }, + { + "description": "Valid - 52 weeks", + "data": "P52W", + "valid": true + }, + { + "description": "Valid - 0 weeks", + "data": "P0W", + "valid": true + }, + { + "description": "Valid - 100 weeks", + "data": "P100W", + "valid": true + }, + { + "description": "Invalid - missing P prefix", + "data": "10W", + "valid": false + }, + { + "description": "Invalid - lowercase p", + "data": "p10W", + "valid": false + }, + { + "description": "Invalid - lowercase w", + "data": "P10w", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - only P", + "data": "P", + "valid": false + }, + { + "description": "Invalid - only PW", + "data": "PW", + "valid": false + }, + { + "description": "Valid - decimal weeks", + "data": "P1.5W", + "valid": true + }, + { + "description": "Invalid - spaces in duration", + "data": "P 10 W", + "valid": false + }, + { + "description": "Invalid - additional characters", + "data": "P10WD", + "valid": false + }, + { + "description": "Invalid - weeks mixed with days (ISO 8601 discourages mixing)", + "data": "P1W2D", + "valid": false + }, + { + "description": "Invalid - weeks mixed with years", + "data": "P1Y2W", + "valid": false + }, + { + "description": "Invalid - weeks mixed with time", + "data": "P1WT1H", + "valid": false + }, + { + "description": "Valid - comma as the decimal sign", + "valid": true, + "data": "P1,5W" + } + ] +} diff --git a/test/schemas/iso/datetime/2019/interval/duration-end-calendar-basic/v1.test.json b/test/schemas/iso/datetime/2019/interval/duration-end-calendar-basic/v1.test.json new file mode 100644 index 00000000..f27ab77d --- /dev/null +++ b/test/schemas/iso/datetime/2019/interval/duration-end-calendar-basic/v1.test.json @@ -0,0 +1,405 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/interval/duration-end-calendar-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 19850412232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - full duration", + "data": "P1Y2M15DT12H30M0S/19850412T232050", + "valid": true + }, + { + "description": "Valid - only years duration", + "data": "P1Y/20001231T235959", + "valid": true + }, + { + "description": "Valid - time duration", + "data": "PT5H30M/20230615T180000", + "valid": true + }, + { + "description": "Valid - weeks duration", + "data": "P2W/19850101T000000", + "valid": true + }, + { + "description": "Invalid - extended format datetime", + "data": "P1Y/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - missing slash", + "data": "P1Y19850412T232050", + "valid": false + }, + { + "description": "Invalid - start datetime instead of duration", + "data": "19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - empty duration", + "data": "P/19850412T232050", + "valid": false + }, + { + "description": "Invalid - ordinal date end", + "data": "P1Y/1985102T232050", + "valid": false + }, + { + "description": "Invalid - week date end", + "data": "P1Y/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - end month 13", + "data": "P1Y/19851312T232050", + "valid": false + }, + { + "description": "Invalid - end day 32", + "data": "P1Y/19850432T232050", + "valid": false + }, + { + "description": "Invalid - end 31 April", + "data": "P1Y/19850431T232050", + "valid": false + }, + { + "description": "Valid - leap second in end", + "data": "P1D/19850412T235960", + "valid": true + }, + { + "description": "Valid - 29 February end", + "data": "P1Y/20230229T120000", + "valid": true + }, + { + "description": "Invalid - end month 00", + "data": "P1Y/19850012T232050", + "valid": false + }, + { + "description": "Invalid - end day 00", + "data": "P1Y/19850400T232050", + "valid": false + }, + { + "description": "Invalid - end 30 February", + "data": "P1Y/20230230T120000", + "valid": false + }, + { + "description": "Invalid - end 31 June", + "data": "P1Y/19850631T120000", + "valid": false + }, + { + "description": "Invalid - end 31 September", + "data": "P1Y/19850931T120000", + "valid": false + }, + { + "description": "Invalid - end 31 November", + "data": "P1Y/19851131T120000", + "valid": false + }, + { + "description": "Invalid - end hour 24", + "data": "P1Y/19850412T242050", + "valid": false + }, + { + "description": "Invalid - end hour 25", + "data": "P1Y/19850412T252050", + "valid": false + }, + { + "description": "Invalid - end hour 99", + "data": "P1Y/19850412T992050", + "valid": false + }, + { + "description": "Invalid - end minute 60", + "data": "P1Y/19850412T236050", + "valid": false + }, + { + "description": "Invalid - end minute 99", + "data": "P1Y/19850412T239950", + "valid": false + }, + { + "description": "Invalid - end second 61", + "data": "P1Y/19850412T232061", + "valid": false + }, + { + "description": "Invalid - end second 99", + "data": "P1Y/19850412T232099", + "valid": false + }, + { + "description": "Invalid - missing T separator in end", + "data": "P1Y/19850412232050", + "valid": false + }, + { + "description": "Invalid - lowercase t in end", + "data": "P1Y/19850412t232050", + "valid": false + }, + { + "description": "Invalid - duration without P prefix", + "data": "1Y2M15DT12H30M0S/19850412T232050", + "valid": false + }, + { + "description": "Invalid - lowercase p in duration", + "data": "p1Y/19850412T232050", + "valid": false + }, + { + "description": "Invalid - lowercase t in duration", + "data": "P1Dt1H/19850412T232050", + "valid": false + }, + { + "description": "Invalid - empty time duration (only PT)", + "data": "PT/19850412T232050", + "valid": false + }, + { + "description": "Invalid - double slash separator", + "data": "P1Y//19850412T232050", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "P1Y\\19850412T232050", + "valid": false + }, + { + "description": "Valid - zero duration components", + "data": "P0Y0M0DT0H0M0S/20230101T000000", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in years", + "data": "P1.5Y/20230101T120000", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in months", + "data": "P3M15DT2.5H/20230101T120000", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in days", + "data": "P10.5D/20230101T120000", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in hours", + "data": "PT2.5H/20230101T120000", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in minutes", + "data": "PT45.5M/20230101T120000", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in seconds", + "data": "PT10.123S/20230101T120000", + "valid": true + }, + { + "description": "Valid - decimal weeks", + "data": "P1.5W/20230101T120000", + "valid": true + }, + { + "description": "Invalid - duration wrong component order (M before Y)", + "data": "P6M3Y/19850412T232050", + "valid": false + }, + { + "description": "Invalid - duration wrong component order (D before M)", + "data": "P15D6M/19850412T232050", + "valid": false + }, + { + "description": "Invalid - duration time without T designator", + "data": "P1D1H/19850412T232050", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with other units", + "data": "P1W2D/19850412T232050", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with years", + "data": "P1Y2W/19850412T232050", + "valid": false + }, + { + "description": "Invalid - duration weeks with time", + "data": "P1WT1H/19850412T232050", + "valid": false + }, + { + "description": "Valid - large year value", + "data": "P500Y/20230101T000000", + "valid": true + }, + { + "description": "Valid - large day value", + "data": "P500D/20230101T000000", + "valid": true + }, + { + "description": "Valid - large hour value", + "data": "PT100H/20230101T000000", + "valid": true + }, + { + "description": "Valid - 13 months", + "data": "P13M/20230101T000000", + "valid": true + }, + { + "description": "Invalid - too short", + "data": "P1Y/19850412T23205", + "valid": false + }, + { + "description": "Invalid - too long", + "data": "P1Y/19850412T2320500", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "P1Y/19850412T232050X", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning of duration", + "data": "XP1Y/19850412T232050", + "valid": false + }, + { + "description": "Invalid - spaces in datetime", + "data": "P1Y/1985 04 12T23 20 50", + "valid": false + }, + { + "description": "Invalid - letter in year", + "data": "P1Y/I9850412T232050", + "valid": false + }, + { + "description": "Invalid - letter in month", + "data": "P1Y/1985O412T232050", + "valid": false + }, + { + "description": "Invalid - letter in day", + "data": "P1Y/198504I2T232050", + "valid": false + }, + { + "description": "Invalid - letter in hour", + "data": "P1Y/19850412TI32050", + "valid": false + }, + { + "description": "Invalid - letter in minute", + "data": "P1Y/19850412T23I050", + "valid": false + }, + { + "description": "Invalid - letter in second", + "data": "P1Y/19850412T2320I0", + "valid": false + }, + { + "description": "Invalid - duration with spaces", + "data": "P1Y 2M/19850412T232050", + "valid": false + }, + { + "description": "Invalid - duration with extra slash", + "data": "P1Y/2M/19850412T232050", + "valid": false + }, + { + "description": "Valid - PT60M (durations can exceed calendar limits)", + "data": "PT60M/19850412T232050", + "valid": true + }, + { + "description": "Valid - PT60S (durations can exceed calendar limits)", + "data": "PT60S/19850412T232050", + "valid": true + }, + { + "description": "Valid - PT25H (durations can exceed calendar limits)", + "data": "PT25H/19850412T232050", + "valid": true + }, + { + "description": "Valid - P32D (durations can exceed calendar limits)", + "data": "P32D/19850412T232050", + "valid": true + }, + { + "description": "Invalid - missing end datetime", + "data": "P1Y2M15DT12H30M0S/", + "valid": false + }, + { + "description": "Invalid - only separator", + "data": "/", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - spaces around separator", + "data": "P1Y / 19850412T232050", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/interval/duration-end-calendar-extended/v1.test.json b/test/schemas/iso/datetime/2019/interval/duration-end-calendar-extended/v1.test.json new file mode 100644 index 00000000..b6eec7e3 --- /dev/null +++ b/test/schemas/iso/datetime/2019/interval/duration-end-calendar-extended/v1.test.json @@ -0,0 +1,380 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/interval/duration-end-calendar-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 19850412232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - full duration", + "data": "P1Y2M15DT12H30M0S/1985-04-12T23:20:50", + "valid": true + }, + { + "description": "Valid - only years duration", + "data": "P1Y/2000-12-31T23:59:59", + "valid": true + }, + { + "description": "Valid - time duration", + "data": "PT5H30M/2023-06-15T18:00:00", + "valid": true + }, + { + "description": "Valid - weeks duration", + "data": "P2W/1985-01-01T00:00:00", + "valid": true + }, + { + "description": "Invalid - basic format datetime", + "data": "P1Y/19850412T232050", + "valid": false + }, + { + "description": "Invalid - missing slash", + "data": "P1Y1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - start datetime instead of duration", + "data": "1985-04-12T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - empty duration", + "data": "P/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - ordinal date end", + "data": "P1Y/1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - week date end", + "data": "P1Y/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - end month 13", + "data": "P1Y/1985-13-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - end day 32", + "data": "P1Y/1985-04-32T23:20:50", + "valid": false + }, + { + "description": "Invalid - end 31 April", + "data": "P1Y/1985-04-31T23:20:50", + "valid": false + }, + { + "description": "Valid - leap second in end", + "data": "P1D/1985-04-12T23:59:60", + "valid": true + }, + { + "description": "Valid - 29 February end", + "data": "P1Y/2023-02-29T12:00:00", + "valid": true + }, + { + "description": "Invalid - end month 00", + "data": "P1Y/1985-00-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - end day 00", + "data": "P1Y/1985-04-00T23:20:50", + "valid": false + }, + { + "description": "Invalid - end 30 February", + "data": "P1Y/2023-02-30T12:00:00", + "valid": false + }, + { + "description": "Invalid - end 31 June", + "data": "P1Y/1985-06-31T12:00:00", + "valid": false + }, + { + "description": "Invalid - end 31 September", + "data": "P1Y/1985-09-31T12:00:00", + "valid": false + }, + { + "description": "Invalid - end 31 November", + "data": "P1Y/1985-11-31T12:00:00", + "valid": false + }, + { + "description": "Invalid - end hour 24", + "data": "P1Y/1985-04-12T24:20:50", + "valid": false + }, + { + "description": "Invalid - end hour 25", + "data": "P1Y/1985-04-12T25:20:50", + "valid": false + }, + { + "description": "Invalid - end hour 99", + "data": "P1Y/1985-04-12T99:20:50", + "valid": false + }, + { + "description": "Invalid - end minute 60", + "data": "P1Y/1985-04-12T23:60:50", + "valid": false + }, + { + "description": "Invalid - end minute 99", + "data": "P1Y/1985-04-12T23:99:50", + "valid": false + }, + { + "description": "Invalid - end second 61", + "data": "P1Y/1985-04-12T23:20:61", + "valid": false + }, + { + "description": "Invalid - end second 99", + "data": "P1Y/1985-04-12T23:20:99", + "valid": false + }, + { + "description": "Invalid - missing T separator in end", + "data": "P1Y/1985-04-12 23:20:50", + "valid": false + }, + { + "description": "Invalid - lowercase t in end", + "data": "P1Y/1985-04-12t23:20:50", + "valid": false + }, + { + "description": "Invalid - duration without P prefix", + "data": "1Y2M15DT12H30M0S/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - lowercase p in duration", + "data": "p1Y/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - lowercase t in duration", + "data": "P1Dt1H/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - empty time duration (only PT)", + "data": "PT/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - double slash separator", + "data": "P1Y//1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "P1Y\\1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Valid - zero duration components", + "data": "P0Y0M0DT0H0M0S/2023-01-01T00:00:00", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in years", + "data": "P1.5Y/2023-01-01T12:00:00", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in months", + "data": "P3M15DT2.5H/2023-01-01T12:00:00", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in days", + "data": "P10.5D/2023-01-01T12:00:00", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in hours", + "data": "PT2.5H/2023-01-01T12:00:00", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in minutes", + "data": "PT45.5M/2023-01-01T12:00:00", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in seconds", + "data": "PT10.123S/2023-01-01T12:00:00", + "valid": true + }, + { + "description": "Valid - decimal weeks", + "data": "P1.5W/2023-01-01T12:00:00", + "valid": true + }, + { + "description": "Invalid - duration wrong component order (M before Y)", + "data": "P6M3Y/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration wrong component order (D before M)", + "data": "P15D6M/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration time without T designator", + "data": "P1D1H/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with other units", + "data": "P1W2D/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with years", + "data": "P1Y2W/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration weeks with time", + "data": "P1WT1H/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Valid - large year value", + "data": "P500Y/2023-01-01T00:00:00", + "valid": true + }, + { + "description": "Valid - large day value", + "data": "P500D/2023-01-01T00:00:00", + "valid": true + }, + { + "description": "Valid - large hour value", + "data": "PT100H/2023-01-01T00:00:00", + "valid": true + }, + { + "description": "Valid - 13 months", + "data": "P13M/2023-01-01T00:00:00", + "valid": true + }, + { + "description": "Invalid - letter in year", + "data": "P1Y/I985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - letter in month", + "data": "P1Y/1985-O4-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - letter in day", + "data": "P1Y/1985-04-I2T23:20:50", + "valid": false + }, + { + "description": "Invalid - letter in hour", + "data": "P1Y/1985-04-12TI3:20:50", + "valid": false + }, + { + "description": "Invalid - letter in minute", + "data": "P1Y/1985-04-12T23:I0:50", + "valid": false + }, + { + "description": "Invalid - letter in second", + "data": "P1Y/1985-04-12T23:20:I0", + "valid": false + }, + { + "description": "Invalid - duration with spaces", + "data": "P1Y 2M/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration with extra slash", + "data": "P1Y/2M/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Valid - PT60M (durations can exceed calendar limits)", + "data": "PT60M/1985-04-12T23:20:50", + "valid": true + }, + { + "description": "Valid - PT60S (durations can exceed calendar limits)", + "data": "PT60S/1985-04-12T23:20:50", + "valid": true + }, + { + "description": "Valid - PT25H (durations can exceed calendar limits)", + "data": "PT25H/1985-04-12T23:20:50", + "valid": true + }, + { + "description": "Valid - P32D (durations can exceed calendar limits)", + "data": "P32D/1985-04-12T23:20:50", + "valid": true + }, + { + "description": "Invalid - missing end datetime", + "data": "P1Y2M15DT12H30M0S/", + "valid": false + }, + { + "description": "Invalid - only separator", + "data": "/", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - spaces around separator", + "data": "P1Y / 1985-04-12T23:20:50", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/interval/duration-end-ordinal-basic/v1.test.json b/test/schemas/iso/datetime/2019/interval/duration-end-ordinal-basic/v1.test.json new file mode 100644 index 00000000..8303d541 --- /dev/null +++ b/test/schemas/iso/datetime/2019/interval/duration-end-ordinal-basic/v1.test.json @@ -0,0 +1,360 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/interval/duration-end-ordinal-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985102232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - full duration", + "data": "P1Y2M15DT12H30M0S/1985102T232050", + "valid": true + }, + { + "description": "Valid - only years duration", + "data": "P1Y/2000366T235959", + "valid": true + }, + { + "description": "Valid - time duration", + "data": "PT5H30M/2023166T180000", + "valid": true + }, + { + "description": "Valid - weeks duration", + "data": "P2W/1985001T000000", + "valid": true + }, + { + "description": "Invalid - extended format", + "data": "P1Y/1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - missing slash", + "data": "P1Y1985102T232050", + "valid": false + }, + { + "description": "Invalid - empty duration", + "data": "P/1985102T232050", + "valid": false + }, + { + "description": "Invalid - calendar date end", + "data": "P1Y/19850412T232050", + "valid": false + }, + { + "description": "Invalid - week date end", + "data": "P1Y/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - day 000", + "data": "P1Y/1985000T232050", + "valid": false + }, + { + "description": "Invalid - day 367", + "data": "P1Y/1985367T232050", + "valid": false + }, + { + "description": "Valid - day 366", + "data": "P1Y/2020366T000000", + "valid": true + }, + { + "description": "Invalid - end hour 24", + "data": "P1Y/1985102T242050", + "valid": false + }, + { + "description": "Invalid - end hour 25", + "data": "P1Y/1985102T252050", + "valid": false + }, + { + "description": "Invalid - end hour 99", + "data": "P1Y/1985102T992050", + "valid": false + }, + { + "description": "Invalid - end minute 60", + "data": "P1Y/1985102T236050", + "valid": false + }, + { + "description": "Invalid - end minute 99", + "data": "P1Y/1985102T239950", + "valid": false + }, + { + "description": "Invalid - end second 61", + "data": "P1Y/1985102T232061", + "valid": false + }, + { + "description": "Invalid - end second 99", + "data": "P1Y/1985102T232099", + "valid": false + }, + { + "description": "Invalid - missing T separator in end", + "data": "P1Y/1985102232050", + "valid": false + }, + { + "description": "Invalid - lowercase t in end", + "data": "P1Y/1985102t232050", + "valid": false + }, + { + "description": "Invalid - duration without P prefix", + "data": "1Y2M15DT12H30M0S/1985102T232050", + "valid": false + }, + { + "description": "Invalid - lowercase p in duration", + "data": "p1Y/1985102T232050", + "valid": false + }, + { + "description": "Invalid - lowercase t in duration", + "data": "P1Dt1H/1985102T232050", + "valid": false + }, + { + "description": "Invalid - empty time duration (only PT)", + "data": "PT/1985102T232050", + "valid": false + }, + { + "description": "Invalid - double slash separator", + "data": "P1Y//1985102T232050", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "P1Y\\1985102T232050", + "valid": false + }, + { + "description": "Valid - leap second in end", + "data": "P1D/1985102T235960", + "valid": true + }, + { + "description": "Valid - zero duration components", + "data": "P0Y0M0DT0H0M0S/2023001T000000", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in years", + "data": "P1.5Y/2023001T120000", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in months", + "data": "P3M15DT2.5H/2023001T120000", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in days", + "data": "P10.5D/2023001T120000", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in hours", + "data": "PT2.5H/2023001T120000", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in minutes", + "data": "PT45.5M/2023001T120000", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in seconds", + "data": "PT10.123S/2023001T120000", + "valid": true + }, + { + "description": "Valid - decimal weeks", + "data": "P1.5W/2023001T120000", + "valid": true + }, + { + "description": "Invalid - duration wrong component order (M before Y)", + "data": "P6M3Y/1985102T232050", + "valid": false + }, + { + "description": "Invalid - duration wrong component order (D before M)", + "data": "P15D6M/1985102T232050", + "valid": false + }, + { + "description": "Invalid - duration time without T designator", + "data": "P1D1H/1985102T232050", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with other units", + "data": "P1W2D/1985102T232050", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with years", + "data": "P1Y2W/1985102T232050", + "valid": false + }, + { + "description": "Invalid - duration weeks with time", + "data": "P1WT1H/1985102T232050", + "valid": false + }, + { + "description": "Valid - large year value", + "data": "P500Y/2023001T000000", + "valid": true + }, + { + "description": "Valid - large day value", + "data": "P500D/2023001T000000", + "valid": true + }, + { + "description": "Valid - large hour value", + "data": "PT100H/2023001T000000", + "valid": true + }, + { + "description": "Valid - 13 months", + "data": "P13M/2023001T000000", + "valid": true + }, + { + "description": "Invalid - too short", + "data": "P1Y/1985102T23205", + "valid": false + }, + { + "description": "Invalid - too long", + "data": "P1Y/1985102T2320500", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "P1Y/1985102T232050X", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning of duration", + "data": "XP1Y/1985102T232050", + "valid": false + }, + { + "description": "Invalid - spaces in datetime", + "data": "P1Y/1985 102T23 20 50", + "valid": false + }, + { + "description": "Invalid - letter in year", + "data": "P1Y/I985102T232050", + "valid": false + }, + { + "description": "Invalid - letter in day", + "data": "P1Y/1985I02T232050", + "valid": false + }, + { + "description": "Invalid - letter in hour", + "data": "P1Y/1985102TI32050", + "valid": false + }, + { + "description": "Invalid - letter in minute", + "data": "P1Y/1985102T23I050", + "valid": false + }, + { + "description": "Invalid - letter in second", + "data": "P1Y/1985102T2320I0", + "valid": false + }, + { + "description": "Invalid - duration with spaces", + "data": "P1Y 2M/1985102T232050", + "valid": false + }, + { + "description": "Invalid - duration with extra slash", + "data": "P1Y/2M/1985102T232050", + "valid": false + }, + { + "description": "Valid - PT60M (durations can exceed calendar limits)", + "data": "PT60M/1985102T232050", + "valid": true + }, + { + "description": "Valid - PT60S (durations can exceed calendar limits)", + "data": "PT60S/1985102T232050", + "valid": true + }, + { + "description": "Valid - PT25H (durations can exceed calendar limits)", + "data": "PT25H/1985102T232050", + "valid": true + }, + { + "description": "Valid - P32D (durations can exceed calendar limits)", + "data": "P32D/1985102T232050", + "valid": true + }, + { + "description": "Invalid - missing end datetime", + "data": "P1Y2M15DT12H30M0S/", + "valid": false + }, + { + "description": "Invalid - only separator", + "data": "/", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - spaces around separator", + "data": "P1Y / 1985102T232050", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/interval/duration-end-ordinal-extended/v1.test.json b/test/schemas/iso/datetime/2019/interval/duration-end-ordinal-extended/v1.test.json new file mode 100644 index 00000000..f39f8e71 --- /dev/null +++ b/test/schemas/iso/datetime/2019/interval/duration-end-ordinal-extended/v1.test.json @@ -0,0 +1,335 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/interval/duration-end-ordinal-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985102232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - full duration", + "data": "P1Y2M15DT12H30M0S/1985-102T23:20:50", + "valid": true + }, + { + "description": "Valid - only years duration", + "data": "P1Y/2000-366T23:59:59", + "valid": true + }, + { + "description": "Valid - time duration", + "data": "PT5H30M/2023-166T18:00:00", + "valid": true + }, + { + "description": "Valid - weeks duration", + "data": "P2W/1985-001T00:00:00", + "valid": true + }, + { + "description": "Invalid - basic format", + "data": "P1Y/1985102T232050", + "valid": false + }, + { + "description": "Invalid - missing slash", + "data": "P1Y1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - empty duration", + "data": "P/1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - calendar date end", + "data": "P1Y/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - week date end", + "data": "P1Y/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - day 000", + "data": "P1Y/1985-000T23:20:50", + "valid": false + }, + { + "description": "Invalid - day 367", + "data": "P1Y/1985-367T23:20:50", + "valid": false + }, + { + "description": "Valid - day 366", + "data": "P1Y/2020-366T00:00:00", + "valid": true + }, + { + "description": "Invalid - end hour 24", + "data": "P1Y/1985-102T24:20:50", + "valid": false + }, + { + "description": "Invalid - end hour 25", + "data": "P1Y/1985-102T25:20:50", + "valid": false + }, + { + "description": "Invalid - end hour 99", + "data": "P1Y/1985-102T99:20:50", + "valid": false + }, + { + "description": "Invalid - end minute 60", + "data": "P1Y/1985-102T23:60:50", + "valid": false + }, + { + "description": "Invalid - end minute 99", + "data": "P1Y/1985-102T23:99:50", + "valid": false + }, + { + "description": "Invalid - end second 61", + "data": "P1Y/1985-102T23:20:61", + "valid": false + }, + { + "description": "Invalid - end second 99", + "data": "P1Y/1985-102T23:20:99", + "valid": false + }, + { + "description": "Invalid - missing T separator in end", + "data": "P1Y/1985-102 23:20:50", + "valid": false + }, + { + "description": "Invalid - lowercase t in end", + "data": "P1Y/1985-102t23:20:50", + "valid": false + }, + { + "description": "Invalid - duration without P prefix", + "data": "1Y2M15DT12H30M0S/1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - lowercase p in duration", + "data": "p1Y/1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - lowercase t in duration", + "data": "P1Dt1H/1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - empty time duration (only PT)", + "data": "PT/1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - double slash separator", + "data": "P1Y//1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "P1Y\\1985-102T23:20:50", + "valid": false + }, + { + "description": "Valid - leap second in end", + "data": "P1D/1985-102T23:59:60", + "valid": true + }, + { + "description": "Valid - zero duration components", + "data": "P0Y0M0DT0H0M0S/2023-001T00:00:00", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in years", + "data": "P1.5Y/2023-001T12:00:00", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in months", + "data": "P3M15DT2.5H/2023-001T12:00:00", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in days", + "data": "P10.5D/2023-001T12:00:00", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in hours", + "data": "PT2.5H/2023-001T12:00:00", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in minutes", + "data": "PT45.5M/2023-001T12:00:00", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in seconds", + "data": "PT10.123S/2023-001T12:00:00", + "valid": true + }, + { + "description": "Valid - decimal weeks", + "data": "P1.5W/2023-001T12:00:00", + "valid": true + }, + { + "description": "Invalid - duration wrong component order (M before Y)", + "data": "P6M3Y/1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration wrong component order (D before M)", + "data": "P15D6M/1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration time without T designator", + "data": "P1D1H/1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with other units", + "data": "P1W2D/1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with years", + "data": "P1Y2W/1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration weeks with time", + "data": "P1WT1H/1985-102T23:20:50", + "valid": false + }, + { + "description": "Valid - large year value", + "data": "P500Y/2023-001T00:00:00", + "valid": true + }, + { + "description": "Valid - large day value", + "data": "P500D/2023-001T00:00:00", + "valid": true + }, + { + "description": "Valid - large hour value", + "data": "PT100H/2023-001T00:00:00", + "valid": true + }, + { + "description": "Valid - 13 months", + "data": "P13M/2023-001T00:00:00", + "valid": true + }, + { + "description": "Invalid - letter in year", + "data": "P1Y/I985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - letter in day", + "data": "P1Y/1985-I02T23:20:50", + "valid": false + }, + { + "description": "Invalid - letter in hour", + "data": "P1Y/1985-102TI3:20:50", + "valid": false + }, + { + "description": "Invalid - letter in minute", + "data": "P1Y/1985-102T23:I0:50", + "valid": false + }, + { + "description": "Invalid - letter in second", + "data": "P1Y/1985-102T23:20:I0", + "valid": false + }, + { + "description": "Invalid - duration with spaces", + "data": "P1Y 2M/1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration with extra slash", + "data": "P1Y/2M/1985-102T23:20:50", + "valid": false + }, + { + "description": "Valid - PT60M (durations can exceed calendar limits)", + "data": "PT60M/1985-102T23:20:50", + "valid": true + }, + { + "description": "Valid - PT60S (durations can exceed calendar limits)", + "data": "PT60S/1985-102T23:20:50", + "valid": true + }, + { + "description": "Valid - PT25H (durations can exceed calendar limits)", + "data": "PT25H/1985-102T23:20:50", + "valid": true + }, + { + "description": "Valid - P32D (durations can exceed calendar limits)", + "data": "P32D/1985-102T23:20:50", + "valid": true + }, + { + "description": "Invalid - missing end datetime", + "data": "P1Y2M15DT12H30M0S/", + "valid": false + }, + { + "description": "Invalid - only separator", + "data": "/", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - spaces around separator", + "data": "P1Y / 1985-102T23:20:50", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/interval/duration-end-week-basic/v1.test.json b/test/schemas/iso/datetime/2019/interval/duration-end-week-basic/v1.test.json new file mode 100644 index 00000000..d589e07c --- /dev/null +++ b/test/schemas/iso/datetime/2019/interval/duration-end-week-basic/v1.test.json @@ -0,0 +1,390 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/interval/duration-end-week-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985155232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - full duration", + "data": "P1Y2M15DT12H30M0S/1985W155T232050", + "valid": true + }, + { + "description": "Valid - only years duration", + "data": "P1Y/2000W527T235959", + "valid": true + }, + { + "description": "Valid - time duration", + "data": "PT5H30M/2023W241T180000", + "valid": true + }, + { + "description": "Valid - weeks duration", + "data": "P2W/1985W011T000000", + "valid": true + }, + { + "description": "Invalid - extended format", + "data": "P1Y/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - missing slash", + "data": "P1Y1985W155T232050", + "valid": false + }, + { + "description": "Invalid - empty duration", + "data": "P/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - calendar date end", + "data": "P1Y/19850412T232050", + "valid": false + }, + { + "description": "Invalid - ordinal date end", + "data": "P1Y/1985102T232050", + "valid": false + }, + { + "description": "Invalid - week 00", + "data": "P1Y/1985W005T232050", + "valid": false + }, + { + "description": "Invalid - week 54", + "data": "P1Y/1985W545T232050", + "valid": false + }, + { + "description": "Invalid - day 0", + "data": "P1Y/1985W150T232050", + "valid": false + }, + { + "description": "Invalid - day 8", + "data": "P1Y/1985W158T232050", + "valid": false + }, + { + "description": "Valid - week 53", + "data": "P1Y/2020W531T000000", + "valid": true + }, + { + "description": "Invalid - end hour 24", + "data": "P1Y/1985W155T242050", + "valid": false + }, + { + "description": "Invalid - end hour 25", + "data": "P1Y/1985W155T252050", + "valid": false + }, + { + "description": "Invalid - end hour 99", + "data": "P1Y/1985W155T992050", + "valid": false + }, + { + "description": "Invalid - end minute 60", + "data": "P1Y/1985W155T236050", + "valid": false + }, + { + "description": "Invalid - end minute 99", + "data": "P1Y/1985W155T239950", + "valid": false + }, + { + "description": "Invalid - end second 61", + "data": "P1Y/1985W155T232061", + "valid": false + }, + { + "description": "Invalid - end second 99", + "data": "P1Y/1985W155T232099", + "valid": false + }, + { + "description": "Invalid - missing T separator in end", + "data": "P1Y/1985W155232050", + "valid": false + }, + { + "description": "Invalid - lowercase t in end", + "data": "P1Y/1985W155t232050", + "valid": false + }, + { + "description": "Invalid - lowercase w in end", + "data": "P1Y/1985w155T232050", + "valid": false + }, + { + "description": "Invalid - duration without P prefix", + "data": "1Y2M15DT12H30M0S/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - lowercase p in duration", + "data": "p1Y/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - lowercase t in duration", + "data": "P1Dt1H/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - empty time duration (only PT)", + "data": "PT/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - double slash separator", + "data": "P1Y//1985W155T232050", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "P1Y\\1985W155T232050", + "valid": false + }, + { + "description": "Valid - leap second in end", + "data": "P1D/1985W155T235960", + "valid": true + }, + { + "description": "Valid - zero duration components", + "data": "P0Y0M0DT0H0M0S/2023W011T000000", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in years", + "data": "P1.5Y/2023W011T120000", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in months", + "data": "P3M15DT2.5H/2023W011T120000", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in days", + "data": "P10.5D/2023W011T120000", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in hours", + "data": "PT2.5H/2023W011T120000", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in minutes", + "data": "PT45.5M/2023W011T120000", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in seconds", + "data": "PT10.123S/2023W011T120000", + "valid": true + }, + { + "description": "Valid - decimal weeks", + "data": "P1.5W/2023W011T120000", + "valid": true + }, + { + "description": "Invalid - duration wrong component order (M before Y)", + "data": "P6M3Y/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - duration wrong component order (D before M)", + "data": "P15D6M/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - duration time without T designator", + "data": "P1D1H/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with other units", + "data": "P1W2D/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with years", + "data": "P1Y2W/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - duration weeks with time", + "data": "P1WT1H/1985W155T232050", + "valid": false + }, + { + "description": "Valid - large year value", + "data": "P500Y/2023W011T000000", + "valid": true + }, + { + "description": "Valid - large day value", + "data": "P500D/2023W011T000000", + "valid": true + }, + { + "description": "Valid - large hour value", + "data": "PT100H/2023W011T000000", + "valid": true + }, + { + "description": "Valid - 13 months", + "data": "P13M/2023W011T000000", + "valid": true + }, + { + "description": "Invalid - too short", + "data": "P1Y/1985W155T23205", + "valid": false + }, + { + "description": "Invalid - too long", + "data": "P1Y/1985W155T2320500", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "P1Y/1985W155T232050X", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning of duration", + "data": "XP1Y/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - spaces in datetime", + "data": "P1Y/1985 W15 5T23 20 50", + "valid": false + }, + { + "description": "Invalid - letter in year", + "data": "P1Y/I985W155T232050", + "valid": false + }, + { + "description": "Invalid - letter in week", + "data": "P1Y/1985WI55T232050", + "valid": false + }, + { + "description": "Invalid - letter in day", + "data": "P1Y/1985W15IT232050", + "valid": false + }, + { + "description": "Invalid - letter in hour", + "data": "P1Y/1985W155TI32050", + "valid": false + }, + { + "description": "Invalid - letter in minute", + "data": "P1Y/1985W155T23I050", + "valid": false + }, + { + "description": "Invalid - letter in second", + "data": "P1Y/1985W155T2320I0", + "valid": false + }, + { + "description": "Invalid - duration with spaces", + "data": "P1Y 2M/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - duration with extra slash", + "data": "P1Y/2M/1985W155T232050", + "valid": false + }, + { + "description": "Valid - PT60M (durations can exceed calendar limits)", + "data": "PT60M/1985W155T232050", + "valid": true + }, + { + "description": "Valid - PT60S (durations can exceed calendar limits)", + "data": "PT60S/1985W155T232050", + "valid": true + }, + { + "description": "Valid - PT25H (durations can exceed calendar limits)", + "data": "PT25H/1985W155T232050", + "valid": true + }, + { + "description": "Valid - P32D (durations can exceed calendar limits)", + "data": "P32D/1985W155T232050", + "valid": true + }, + { + "description": "Invalid - missing end datetime", + "data": "P1Y2M15DT12H30M0S/", + "valid": false + }, + { + "description": "Invalid - only separator", + "data": "/", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - spaces around separator", + "data": "P1Y / 1985W155T232050", + "valid": false + }, + { + "description": "Valid - week 01 day 1", + "data": "P1Y/2023W011T120000", + "valid": true + }, + { + "description": "Valid - week 52 day 7", + "data": "P1Y/2023W527T120000", + "valid": true + } + ] +} diff --git a/test/schemas/iso/datetime/2019/interval/duration-end-week-extended/v1.test.json b/test/schemas/iso/datetime/2019/interval/duration-end-week-extended/v1.test.json new file mode 100644 index 00000000..a0e08210 --- /dev/null +++ b/test/schemas/iso/datetime/2019/interval/duration-end-week-extended/v1.test.json @@ -0,0 +1,360 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/interval/duration-end-week-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985155232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - full duration", + "data": "P1Y2M15DT12H30M0S/1985-W15-5T23:20:50", + "valid": true + }, + { + "description": "Valid - only years duration", + "data": "P1Y/2000-W52-7T23:59:59", + "valid": true + }, + { + "description": "Valid - time duration", + "data": "PT5H30M/2023-W24-1T18:00:00", + "valid": true + }, + { + "description": "Valid - weeks duration", + "data": "P2W/1985-W01-1T00:00:00", + "valid": true + }, + { + "description": "Invalid - basic format", + "data": "P1Y/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - missing slash", + "data": "P1Y1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - empty duration", + "data": "P/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - calendar date end", + "data": "P1Y/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - ordinal date end", + "data": "P1Y/1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - week 00", + "data": "P1Y/1985-W00-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - week 54", + "data": "P1Y/1985-W54-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - day 0", + "data": "P1Y/1985-W15-0T23:20:50", + "valid": false + }, + { + "description": "Invalid - day 8", + "data": "P1Y/1985-W15-8T23:20:50", + "valid": false + }, + { + "description": "Valid - week 53", + "data": "P1Y/2020-W53-1T00:00:00", + "valid": true + }, + { + "description": "Invalid - end hour 24", + "data": "P1Y/1985-W15-5T24:20:50", + "valid": false + }, + { + "description": "Invalid - end hour 25", + "data": "P1Y/1985-W15-5T25:20:50", + "valid": false + }, + { + "description": "Invalid - end hour 99", + "data": "P1Y/1985-W15-5T99:20:50", + "valid": false + }, + { + "description": "Invalid - end minute 60", + "data": "P1Y/1985-W15-5T23:60:50", + "valid": false + }, + { + "description": "Invalid - end minute 99", + "data": "P1Y/1985-W15-5T23:99:50", + "valid": false + }, + { + "description": "Invalid - end second 61", + "data": "P1Y/1985-W15-5T23:20:61", + "valid": false + }, + { + "description": "Invalid - end second 99", + "data": "P1Y/1985-W15-5T23:20:99", + "valid": false + }, + { + "description": "Invalid - missing T separator in end", + "data": "P1Y/1985-W15-5 23:20:50", + "valid": false + }, + { + "description": "Invalid - lowercase t in end", + "data": "P1Y/1985-W15-5t23:20:50", + "valid": false + }, + { + "description": "Invalid - duration without P prefix", + "data": "1Y2M15DT12H30M0S/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - lowercase p in duration", + "data": "p1Y/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - lowercase t in duration", + "data": "P1Dt1H/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - empty time duration (only PT)", + "data": "PT/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - double slash separator", + "data": "P1Y//1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "P1Y\\1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Valid - leap second in end", + "data": "P1D/1985-W15-5T23:59:60", + "valid": true + }, + { + "description": "Valid - zero duration components", + "data": "P0Y0M0DT0H0M0S/2023-W01-1T00:00:00", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in years", + "data": "P1.5Y/2023-W01-1T12:00:00", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in months", + "data": "P3M15DT2.5H/2023-W01-1T12:00:00", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in days", + "data": "P10.5D/2023-W01-1T12:00:00", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in hours", + "data": "PT2.5H/2023-W01-1T12:00:00", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in minutes", + "data": "PT45.5M/2023-W01-1T12:00:00", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in seconds", + "data": "PT10.123S/2023-W01-1T12:00:00", + "valid": true + }, + { + "description": "Valid - decimal weeks", + "data": "P1.5W/2023-W01-1T12:00:00", + "valid": true + }, + { + "description": "Invalid - duration wrong component order (M before Y)", + "data": "P6M3Y/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration wrong component order (D before M)", + "data": "P15D6M/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration time without T designator", + "data": "P1D1H/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with other units", + "data": "P1W2D/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with years", + "data": "P1Y2W/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration weeks with time", + "data": "P1WT1H/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Valid - large year value", + "data": "P500Y/2023-W01-1T00:00:00", + "valid": true + }, + { + "description": "Valid - large day value", + "data": "P500D/2023-W01-1T00:00:00", + "valid": true + }, + { + "description": "Valid - large hour value", + "data": "PT100H/2023-W01-1T00:00:00", + "valid": true + }, + { + "description": "Valid - 13 months", + "data": "P13M/2023-W01-1T00:00:00", + "valid": true + }, + { + "description": "Invalid - letter in year", + "data": "P1Y/I985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - letter in week", + "data": "P1Y/1985-WI5-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - letter in day", + "data": "P1Y/1985-W15-IT23:20:50", + "valid": false + }, + { + "description": "Invalid - letter in hour", + "data": "P1Y/1985-W15-5TI3:20:50", + "valid": false + }, + { + "description": "Invalid - letter in minute", + "data": "P1Y/1985-W15-5T23:I0:50", + "valid": false + }, + { + "description": "Invalid - letter in second", + "data": "P1Y/1985-W15-5T23:20:I0", + "valid": false + }, + { + "description": "Invalid - duration with spaces", + "data": "P1Y 2M/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration with extra slash", + "data": "P1Y/2M/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Valid - PT60M (durations can exceed calendar limits)", + "data": "PT60M/1985-W15-5T23:20:50", + "valid": true + }, + { + "description": "Valid - PT60S (durations can exceed calendar limits)", + "data": "PT60S/1985-W15-5T23:20:50", + "valid": true + }, + { + "description": "Valid - PT25H (durations can exceed calendar limits)", + "data": "PT25H/1985-W15-5T23:20:50", + "valid": true + }, + { + "description": "Valid - P32D (durations can exceed calendar limits)", + "data": "P32D/1985-W15-5T23:20:50", + "valid": true + }, + { + "description": "Invalid - missing end datetime", + "data": "P1Y2M15DT12H30M0S/", + "valid": false + }, + { + "description": "Invalid - only separator", + "data": "/", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - spaces around separator", + "data": "P1Y / 1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Valid - week 01 day 1", + "data": "P1Y/2023-W01-1T12:00:00", + "valid": true + }, + { + "description": "Valid - week 52 day 7", + "data": "P1Y/2023-W52-7T12:00:00", + "valid": true + } + ] +} diff --git a/test/schemas/iso/datetime/2019/interval/start-duration-calendar-basic/v1.test.json b/test/schemas/iso/datetime/2019/interval/start-duration-calendar-basic/v1.test.json new file mode 100644 index 00000000..6af1d239 --- /dev/null +++ b/test/schemas/iso/datetime/2019/interval/start-duration-calendar-basic/v1.test.json @@ -0,0 +1,425 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/interval/start-duration-calendar-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 19850412232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - full duration with all components", + "data": "19850412T232050/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - only years duration", + "data": "20000101T000000/P1Y", + "valid": true + }, + { + "description": "Valid - only time component duration", + "data": "20230615T120000/PT5H30M", + "valid": true + }, + { + "description": "Valid - weeks duration", + "data": "19851231T235959/P2W", + "valid": true + }, + { + "description": "Valid - days and seconds duration", + "data": "20230101T000000/P5DT30S", + "valid": true + }, + { + "description": "Valid - months duration", + "data": "20231231T120000/P6M", + "valid": true + }, + { + "description": "Valid - hours duration", + "data": "20000630T180000/PT12H", + "valid": true + }, + { + "description": "Invalid - missing separator slash", + "data": "19850412T232050P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - extended format datetime", + "data": "1985-04-12T23:20:50/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - missing duration", + "data": "19850412T232050/", + "valid": false + }, + { + "description": "Invalid - missing start datetime", + "data": "/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - only separator", + "data": "/", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - spaces around separator", + "data": "19850412T232050 / P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - start month 00", + "data": "19850012T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - start month 13", + "data": "19851312T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - start day 00", + "data": "19850400T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - start day 32", + "data": "19850432T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - start 31 April", + "data": "19850431T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - start 30 February", + "data": "20230230T120000/P1Y", + "valid": false + }, + { + "description": "Invalid - start hour 24", + "data": "19850412T242050/P1Y", + "valid": false + }, + { + "description": "Invalid - start minute 60", + "data": "19850412T236050/P1Y", + "valid": false + }, + { + "description": "Invalid - start second 61", + "data": "19850412T232061/P1Y", + "valid": false + }, + { + "description": "Invalid - missing T separator in start", + "data": "19850412232050/P1Y", + "valid": false + }, + { + "description": "Invalid - lowercase t in start", + "data": "19850412t232050/P1Y", + "valid": false + }, + { + "description": "Invalid - end datetime instead of duration", + "data": "19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - duration without P prefix", + "data": "19850412T232050/1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - lowercase p in duration", + "data": "19850412T232050/p1Y", + "valid": false + }, + { + "description": "Invalid - lowercase t in duration", + "data": "19850412T232050/P1Dt1H", + "valid": false + }, + { + "description": "Invalid - empty duration (only P)", + "data": "19850412T232050/P", + "valid": false + }, + { + "description": "Invalid - empty time duration (only PT)", + "data": "19850412T232050/PT", + "valid": false + }, + { + "description": "Invalid - ordinal date instead of calendar", + "data": "1985102T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - week date instead of calendar", + "data": "1985W155T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - double slash separator", + "data": "19850412T232050//P1Y", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "19850412T232050\\P1Y", + "valid": false + }, + { + "description": "Valid - 29 February (leap year validation is consumer responsibility)", + "data": "20230229T120000/P1Y", + "valid": true + }, + { + "description": "Valid - leap second in start", + "data": "19850412T235960/P1D", + "valid": true + }, + { + "description": "Valid - zero duration components", + "data": "20230101T000000/P0Y0M0DT0H0M0S", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction", + "data": "20230101T120000/P1.5Y", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction", + "data": "20230101T120000/PT2.5H", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in months", + "data": "20230101T120000/P3M15DT2.5H", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in days", + "data": "20230101T120000/P10.5D", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in minutes", + "data": "20230101T120000/PT45.5M", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in seconds", + "data": "20230101T120000/PT10.123S", + "valid": true + }, + { + "description": "Valid - decimal weeks", + "data": "20230101T120000/P1.5W", + "valid": true + }, + { + "description": "Invalid - duration wrong component order (M before Y)", + "data": "19850412T232050/P6M3Y", + "valid": false + }, + { + "description": "Invalid - duration wrong component order (D before M)", + "data": "19850412T232050/P15D6M", + "valid": false + }, + { + "description": "Invalid - duration time without T designator", + "data": "19850412T232050/P1D1H", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with other units", + "data": "19850412T232050/P1W2D", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with years", + "data": "19850412T232050/P1Y2W", + "valid": false + }, + { + "description": "Invalid - duration weeks with time", + "data": "19850412T232050/P1WT1H", + "valid": false + }, + { + "description": "Valid - large year value", + "data": "20230101T000000/P500Y", + "valid": true + }, + { + "description": "Valid - large day value", + "data": "20230101T000000/P500D", + "valid": true + }, + { + "description": "Valid - large hour value", + "data": "20230101T000000/PT100H", + "valid": true + }, + { + "description": "Valid - 13 months", + "data": "20230101T000000/P13M", + "valid": true + }, + { + "description": "Invalid - start hour 25", + "data": "19850412T252050/P1Y", + "valid": false + }, + { + "description": "Invalid - start hour 99", + "data": "19850412T992050/P1Y", + "valid": false + }, + { + "description": "Invalid - start minute 99", + "data": "19850412T239950/P1Y", + "valid": false + }, + { + "description": "Invalid - start second 99", + "data": "19850412T232099/P1Y", + "valid": false + }, + { + "description": "Invalid - too short", + "data": "19850412T23205/P1Y", + "valid": false + }, + { + "description": "Invalid - too long", + "data": "19850412T2320500/P1Y", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "19850412T232050X/P1Y", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning", + "data": "X19850412T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - spaces in datetime", + "data": "1985 04 12T23 20 50/P1Y", + "valid": false + }, + { + "description": "Invalid - letter in year", + "data": "I9850412T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - letter in month", + "data": "1985O412T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - letter in day", + "data": "198504I2T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - letter in hour", + "data": "19850412TI32050/P1Y", + "valid": false + }, + { + "description": "Invalid - letter in minute", + "data": "19850412T23I050/P1Y", + "valid": false + }, + { + "description": "Invalid - letter in second", + "data": "19850412T2320I0/P1Y", + "valid": false + }, + { + "description": "Invalid - 31 June", + "data": "19850631T120000/P1Y", + "valid": false + }, + { + "description": "Invalid - 31 September", + "data": "19850931T120000/P1Y", + "valid": false + }, + { + "description": "Invalid - 31 November", + "data": "19851131T120000/P1Y", + "valid": false + }, + { + "description": "Invalid - duration with spaces", + "data": "19850412T232050/P1Y 2M", + "valid": false + }, + { + "description": "Invalid - duration with extra slash", + "data": "19850412T232050/P1Y/2M", + "valid": false + }, + { + "description": "Valid - PT60M (durations can exceed calendar limits)", + "data": "19850412T232050/PT60M", + "valid": true + }, + { + "description": "Valid - PT60S (durations can exceed calendar limits)", + "data": "19850412T232050/PT60S", + "valid": true + }, + { + "description": "Valid - PT25H (durations can exceed calendar limits)", + "data": "19850412T232050/PT25H", + "valid": true + }, + { + "description": "Valid - P32D (durations can exceed calendar limits)", + "data": "19850412T232050/P32D", + "valid": true + } + ] +} diff --git a/test/schemas/iso/datetime/2019/interval/start-duration-calendar-extended/v1.test.json b/test/schemas/iso/datetime/2019/interval/start-duration-calendar-extended/v1.test.json new file mode 100644 index 00000000..e2a21b36 --- /dev/null +++ b/test/schemas/iso/datetime/2019/interval/start-duration-calendar-extended/v1.test.json @@ -0,0 +1,315 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/interval/start-duration-calendar-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 19850412232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - full duration with all components", + "data": "1985-04-12T23:20:50/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - only years duration", + "data": "2000-01-01T00:00:00/P1Y", + "valid": true + }, + { + "description": "Valid - only time component duration", + "data": "2023-06-15T12:00:00/PT5H30M", + "valid": true + }, + { + "description": "Valid - weeks duration", + "data": "1985-12-31T23:59:59/P2W", + "valid": true + }, + { + "description": "Valid - days and seconds duration", + "data": "2023-01-01T00:00:00/P5DT30S", + "valid": true + }, + { + "description": "Valid - months duration", + "data": "2023-12-31T12:00:00/P6M", + "valid": true + }, + { + "description": "Valid - hours duration", + "data": "2000-06-30T18:00:00/PT12H", + "valid": true + }, + { + "description": "Invalid - missing separator slash", + "data": "1985-04-12T23:20:50P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - basic format datetime", + "data": "19850412T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - missing duration", + "data": "1985-04-12T23:20:50/", + "valid": false + }, + { + "description": "Invalid - missing start datetime", + "data": "/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - only separator", + "data": "/", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - spaces around separator", + "data": "1985-04-12T23:20:50 / P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - start month 00", + "data": "1985-00-12T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - start month 13", + "data": "1985-13-12T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - start day 00", + "data": "1985-04-00T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - start day 32", + "data": "1985-04-32T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - start 31 April", + "data": "1985-04-31T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - start 30 February", + "data": "2023-02-30T12:00:00/P1Y", + "valid": false + }, + { + "description": "Invalid - start hour 24", + "data": "1985-04-12T24:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - start minute 60", + "data": "1985-04-12T23:60:50/P1Y", + "valid": false + }, + { + "description": "Invalid - start second 61", + "data": "1985-04-12T23:20:61/P1Y", + "valid": false + }, + { + "description": "Invalid - missing T separator in start", + "data": "1985-04-12 23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - lowercase t in start", + "data": "1985-04-12t23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - end datetime instead of duration", + "data": "1985-04-12T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - duration without P prefix", + "data": "1985-04-12T23:20:50/1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - lowercase p in duration", + "data": "1985-04-12T23:20:50/p1Y", + "valid": false + }, + { + "description": "Invalid - lowercase t in duration", + "data": "1985-04-12T23:20:50/P1Dt1H", + "valid": false + }, + { + "description": "Invalid - empty duration (only P)", + "data": "1985-04-12T23:20:50/P", + "valid": false + }, + { + "description": "Invalid - empty time duration (only PT)", + "data": "1985-04-12T23:20:50/PT", + "valid": false + }, + { + "description": "Invalid - ordinal date instead of calendar", + "data": "1985-102T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - week date instead of calendar", + "data": "1985-W15-5T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - double slash separator", + "data": "1985-04-12T23:20:50//P1Y", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "1985-04-12T23:20:50\\P1Y", + "valid": false + }, + { + "description": "Valid - 29 February (leap year validation is consumer responsibility)", + "data": "2023-02-29T12:00:00/P1Y", + "valid": true + }, + { + "description": "Valid - leap second in start", + "data": "1985-04-12T23:59:60/P1D", + "valid": true + }, + { + "description": "Valid - zero duration components", + "data": "2023-01-01T00:00:00/P0Y0M0DT0H0M0S", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in years", + "data": "2023-01-01T12:00:00/P1.5Y", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in months", + "data": "2023-01-01T12:00:00/P3M15DT2.5H", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in days", + "data": "2023-01-01T12:00:00/P10.5D", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in hours", + "data": "2023-01-01T12:00:00/PT2.5H", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in minutes", + "data": "2023-01-01T12:00:00/PT45.5M", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in seconds", + "data": "2023-01-01T12:00:00/PT10.123S", + "valid": true + }, + { + "description": "Valid - decimal weeks", + "data": "2023-01-01T12:00:00/P1.5W", + "valid": true + }, + { + "description": "Invalid - duration wrong component order (M before Y)", + "data": "1985-04-12T23:20:50/P6M3Y", + "valid": false + }, + { + "description": "Invalid - duration wrong component order (D before M)", + "data": "1985-04-12T23:20:50/P15D6M", + "valid": false + }, + { + "description": "Invalid - duration time without T designator", + "data": "1985-04-12T23:20:50/P1D1H", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with other units", + "data": "1985-04-12T23:20:50/P1W2D", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with years", + "data": "1985-04-12T23:20:50/P1Y2W", + "valid": false + }, + { + "description": "Invalid - duration weeks with time", + "data": "1985-04-12T23:20:50/P1WT1H", + "valid": false + }, + { + "description": "Valid - large year value", + "data": "2023-01-01T00:00:00/P500Y", + "valid": true + }, + { + "description": "Valid - large day value", + "data": "2023-01-01T00:00:00/P500D", + "valid": true + }, + { + "description": "Valid - large hour value", + "data": "2023-01-01T00:00:00/PT100H", + "valid": true + }, + { + "description": "Valid - 13 months", + "data": "2023-01-01T00:00:00/P13M", + "valid": true + }, + { + "description": "Valid - duration with months omitted", + "valid": true, + "data": "1985-04-12T23:20:50/P1Y1D" + }, + { + "description": "Valid - duration with a comma decimal sign", + "valid": true, + "data": "1985-04-12T23:20:50/PT0,5S" + } + ] +} diff --git a/test/schemas/iso/datetime/2019/interval/start-duration-ordinal-basic/v1.test.json b/test/schemas/iso/datetime/2019/interval/start-duration-ordinal-basic/v1.test.json new file mode 100644 index 00000000..b95b2064 --- /dev/null +++ b/test/schemas/iso/datetime/2019/interval/start-duration-ordinal-basic/v1.test.json @@ -0,0 +1,285 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/interval/start-duration-ordinal-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985102232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - full duration with all components", + "data": "1985102T232050/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - only years duration", + "data": "2000001T000000/P1Y", + "valid": true + }, + { + "description": "Valid - only time component duration", + "data": "2023166T120000/PT5H30M", + "valid": true + }, + { + "description": "Valid - weeks duration", + "data": "1985365T235959/P2W", + "valid": true + }, + { + "description": "Valid - days and seconds duration", + "data": "2023001T000000/P5DT30S", + "valid": true + }, + { + "description": "Valid - months duration", + "data": "2023365T120000/P6M", + "valid": true + }, + { + "description": "Valid - hours duration", + "data": "2000182T180000/PT12H", + "valid": true + }, + { + "description": "Invalid - missing separator slash", + "data": "1985102T232050P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - extended format datetime", + "data": "1985-102T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - missing duration", + "data": "1985102T232050/", + "valid": false + }, + { + "description": "Invalid - missing start datetime", + "data": "/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - only separator", + "data": "/", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - spaces around separator", + "data": "1985102T232050 / P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - start day 000", + "data": "1985000T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - start day 367", + "data": "1985367T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - start hour 24", + "data": "1985102T242050/P1Y", + "valid": false + }, + { + "description": "Invalid - start minute 60", + "data": "1985102T236050/P1Y", + "valid": false + }, + { + "description": "Invalid - start second 61", + "data": "1985102T232061/P1Y", + "valid": false + }, + { + "description": "Invalid - missing T separator in start", + "data": "1985102232050/P1Y", + "valid": false + }, + { + "description": "Invalid - lowercase t in start", + "data": "1985102t232050/P1Y", + "valid": false + }, + { + "description": "Invalid - end datetime instead of duration", + "data": "1985102T232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - duration without P prefix", + "data": "1985102T232050/1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - lowercase p in duration", + "data": "1985102T232050/p1Y", + "valid": false + }, + { + "description": "Invalid - lowercase t in duration", + "data": "1985102T232050/P1Dt1H", + "valid": false + }, + { + "description": "Invalid - empty duration (only P)", + "data": "1985102T232050/P", + "valid": false + }, + { + "description": "Invalid - empty time duration (only PT)", + "data": "1985102T232050/PT", + "valid": false + }, + { + "description": "Invalid - calendar date instead of ordinal", + "data": "19850412T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - week date instead of ordinal", + "data": "1985W155T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - double slash separator", + "data": "1985102T232050//P1Y", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "1985102T232050\\P1Y", + "valid": false + }, + { + "description": "Valid - day 366 (leap year validation is consumer responsibility)", + "data": "2020366T000000/P1Y", + "valid": true + }, + { + "description": "Valid - leap second in start", + "data": "1985102T235960/P1D", + "valid": true + }, + { + "description": "Valid - zero duration components", + "data": "2023001T000000/P0Y0M0DT0H0M0S", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in years", + "data": "2023001T120000/P1.5Y", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in months", + "data": "2023001T120000/P3M15DT2.5H", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in days", + "data": "2023001T120000/P10.5D", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in hours", + "data": "2023001T120000/PT2.5H", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in minutes", + "data": "2023001T120000/PT45.5M", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in seconds", + "data": "2023001T120000/PT10.123S", + "valid": true + }, + { + "description": "Valid - decimal weeks", + "data": "2023001T120000/P1.5W", + "valid": true + }, + { + "description": "Invalid - duration wrong component order (M before Y)", + "data": "1985102T232050/P6M3Y", + "valid": false + }, + { + "description": "Invalid - duration wrong component order (D before M)", + "data": "1985102T232050/P15D6M", + "valid": false + }, + { + "description": "Invalid - duration time without T designator", + "data": "1985102T232050/P1D1H", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with other units", + "data": "1985102T232050/P1W2D", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with years", + "data": "1985102T232050/P1Y2W", + "valid": false + }, + { + "description": "Invalid - duration weeks with time", + "data": "1985102T232050/P1WT1H", + "valid": false + }, + { + "description": "Valid - large year value", + "data": "2023001T000000/P500Y", + "valid": true + }, + { + "description": "Valid - large day value", + "data": "2023001T000000/P500D", + "valid": true + }, + { + "description": "Valid - large hour value", + "data": "2023001T000000/PT100H", + "valid": true + }, + { + "description": "Valid - 13 months", + "data": "2023001T000000/P13M", + "valid": true + } + ] +} diff --git a/test/schemas/iso/datetime/2019/interval/start-duration-ordinal-extended/v1.test.json b/test/schemas/iso/datetime/2019/interval/start-duration-ordinal-extended/v1.test.json new file mode 100644 index 00000000..e4a0003b --- /dev/null +++ b/test/schemas/iso/datetime/2019/interval/start-duration-ordinal-extended/v1.test.json @@ -0,0 +1,285 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/interval/start-duration-ordinal-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985102232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - full duration with all components", + "data": "1985-102T23:20:50/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - only years duration", + "data": "2000-001T00:00:00/P1Y", + "valid": true + }, + { + "description": "Valid - only time component duration", + "data": "2023-166T12:00:00/PT5H30M", + "valid": true + }, + { + "description": "Valid - weeks duration", + "data": "1985-365T23:59:59/P2W", + "valid": true + }, + { + "description": "Valid - days and seconds duration", + "data": "2023-001T00:00:00/P5DT30S", + "valid": true + }, + { + "description": "Valid - months duration", + "data": "2023-365T12:00:00/P6M", + "valid": true + }, + { + "description": "Valid - hours duration", + "data": "2000-182T18:00:00/PT12H", + "valid": true + }, + { + "description": "Invalid - missing separator slash", + "data": "1985-102T23:20:50P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - basic format datetime", + "data": "1985102T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - missing duration", + "data": "1985-102T23:20:50/", + "valid": false + }, + { + "description": "Invalid - missing start datetime", + "data": "/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - only separator", + "data": "/", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - spaces around separator", + "data": "1985-102T23:20:50 / P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - start day 000", + "data": "1985-000T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - start day 367", + "data": "1985-367T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - start hour 24", + "data": "1985-102T24:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - start minute 60", + "data": "1985-102T23:60:50/P1Y", + "valid": false + }, + { + "description": "Invalid - start second 61", + "data": "1985-102T23:20:61/P1Y", + "valid": false + }, + { + "description": "Invalid - missing T separator in start", + "data": "1985-102 23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - lowercase t in start", + "data": "1985-102t23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - end datetime instead of duration", + "data": "1985-102T23:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - duration without P prefix", + "data": "1985-102T23:20:50/1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - lowercase p in duration", + "data": "1985-102T23:20:50/p1Y", + "valid": false + }, + { + "description": "Invalid - lowercase t in duration", + "data": "1985-102T23:20:50/P1Dt1H", + "valid": false + }, + { + "description": "Invalid - empty duration (only P)", + "data": "1985-102T23:20:50/P", + "valid": false + }, + { + "description": "Invalid - empty time duration (only PT)", + "data": "1985-102T23:20:50/PT", + "valid": false + }, + { + "description": "Invalid - calendar date instead of ordinal", + "data": "1985-04-12T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - week date instead of ordinal", + "data": "1985-W15-5T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - double slash separator", + "data": "1985-102T23:20:50//P1Y", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "1985-102T23:20:50\\P1Y", + "valid": false + }, + { + "description": "Valid - day 366 (leap year validation is consumer responsibility)", + "data": "2020-366T00:00:00/P1Y", + "valid": true + }, + { + "description": "Valid - leap second in start", + "data": "1985-102T23:59:60/P1D", + "valid": true + }, + { + "description": "Valid - zero duration components", + "data": "2023-001T00:00:00/P0Y0M0DT0H0M0S", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in years", + "data": "2023-001T12:00:00/P1.5Y", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in months", + "data": "2023-001T12:00:00/P3M15DT2.5H", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in days", + "data": "2023-001T12:00:00/P10.5D", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in hours", + "data": "2023-001T12:00:00/PT2.5H", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in minutes", + "data": "2023-001T12:00:00/PT45.5M", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in seconds", + "data": "2023-001T12:00:00/PT10.123S", + "valid": true + }, + { + "description": "Valid - decimal weeks", + "data": "2023-001T12:00:00/P1.5W", + "valid": true + }, + { + "description": "Invalid - duration wrong component order (M before Y)", + "data": "1985-102T23:20:50/P6M3Y", + "valid": false + }, + { + "description": "Invalid - duration wrong component order (D before M)", + "data": "1985-102T23:20:50/P15D6M", + "valid": false + }, + { + "description": "Invalid - duration time without T designator", + "data": "1985-102T23:20:50/P1D1H", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with other units", + "data": "1985-102T23:20:50/P1W2D", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with years", + "data": "1985-102T23:20:50/P1Y2W", + "valid": false + }, + { + "description": "Invalid - duration weeks with time", + "data": "1985-102T23:20:50/P1WT1H", + "valid": false + }, + { + "description": "Valid - large year value", + "data": "2023-001T00:00:00/P500Y", + "valid": true + }, + { + "description": "Valid - large day value", + "data": "2023-001T00:00:00/P500D", + "valid": true + }, + { + "description": "Valid - large hour value", + "data": "2023-001T00:00:00/PT100H", + "valid": true + }, + { + "description": "Valid - 13 months", + "data": "2023-001T00:00:00/P13M", + "valid": true + } + ] +} diff --git a/test/schemas/iso/datetime/2019/interval/start-duration-week-basic/v1.test.json b/test/schemas/iso/datetime/2019/interval/start-duration-week-basic/v1.test.json new file mode 100644 index 00000000..66b92cd5 --- /dev/null +++ b/test/schemas/iso/datetime/2019/interval/start-duration-week-basic/v1.test.json @@ -0,0 +1,425 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/interval/start-duration-week-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985155232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - full duration with all components", + "data": "1985W155T232050/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - only years duration", + "data": "2000W011T000000/P1Y", + "valid": true + }, + { + "description": "Valid - only time component duration", + "data": "2023W241T120000/PT5H30M", + "valid": true + }, + { + "description": "Valid - weeks duration", + "data": "1985W527T235959/P2W", + "valid": true + }, + { + "description": "Valid - days and seconds duration", + "data": "2023W011T000000/P5DT30S", + "valid": true + }, + { + "description": "Valid - months duration", + "data": "2023W527T120000/P6M", + "valid": true + }, + { + "description": "Valid - hours duration", + "data": "2000W265T180000/PT12H", + "valid": true + }, + { + "description": "Invalid - missing separator slash", + "data": "1985W155T232050P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - extended format datetime", + "data": "1985-W15-5T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - missing duration", + "data": "1985W155T232050/", + "valid": false + }, + { + "description": "Invalid - missing start datetime", + "data": "/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - only separator", + "data": "/", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - spaces around separator", + "data": "1985W155T232050 / P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - start week 00", + "data": "1985W005T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - start week 54", + "data": "1985W545T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - start day 0", + "data": "1985W150T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - start day 8", + "data": "1985W158T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - start hour 24", + "data": "1985W155T242050/P1Y", + "valid": false + }, + { + "description": "Invalid - start hour 25", + "data": "1985W155T252050/P1Y", + "valid": false + }, + { + "description": "Invalid - start hour 99", + "data": "1985W155T992050/P1Y", + "valid": false + }, + { + "description": "Invalid - start minute 60", + "data": "1985W155T236050/P1Y", + "valid": false + }, + { + "description": "Invalid - start minute 99", + "data": "1985W155T239950/P1Y", + "valid": false + }, + { + "description": "Invalid - start second 61", + "data": "1985W155T232061/P1Y", + "valid": false + }, + { + "description": "Invalid - start second 99", + "data": "1985W155T232099/P1Y", + "valid": false + }, + { + "description": "Invalid - missing T separator in start", + "data": "1985W155232050/P1Y", + "valid": false + }, + { + "description": "Invalid - lowercase t in start", + "data": "1985W155t232050/P1Y", + "valid": false + }, + { + "description": "Invalid - lowercase w", + "data": "1985w155T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - end datetime instead of duration", + "data": "1985W155T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - duration without P prefix", + "data": "1985W155T232050/1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - lowercase p in duration", + "data": "1985W155T232050/p1Y", + "valid": false + }, + { + "description": "Invalid - lowercase t in duration", + "data": "1985W155T232050/P1Dt1H", + "valid": false + }, + { + "description": "Invalid - empty duration (only P)", + "data": "1985W155T232050/P", + "valid": false + }, + { + "description": "Invalid - empty time duration (only PT)", + "data": "1985W155T232050/PT", + "valid": false + }, + { + "description": "Invalid - calendar date instead of week", + "data": "19850412T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - ordinal date instead of week", + "data": "1985102T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - double slash separator", + "data": "1985W155T232050//P1Y", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "1985W155T232050\\P1Y", + "valid": false + }, + { + "description": "Valid - week 53 (long year validation is consumer responsibility)", + "data": "2020W531T000000/P1Y", + "valid": true + }, + { + "description": "Valid - leap second in start", + "data": "1985W155T235960/P1D", + "valid": true + }, + { + "description": "Valid - zero duration components", + "data": "2023W011T000000/P0Y0M0DT0H0M0S", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in years", + "data": "2023W011T120000/P1.5Y", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in months", + "data": "2023W011T120000/P3M15DT2.5H", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in days", + "data": "2023W011T120000/P10.5D", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in hours", + "data": "2023W011T120000/PT2.5H", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in minutes", + "data": "2023W011T120000/PT45.5M", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in seconds", + "data": "2023W011T120000/PT10.123S", + "valid": true + }, + { + "description": "Valid - decimal weeks", + "data": "2023W011T120000/P1.5W", + "valid": true + }, + { + "description": "Invalid - duration wrong component order (M before Y)", + "data": "1985W155T232050/P6M3Y", + "valid": false + }, + { + "description": "Invalid - duration wrong component order (D before M)", + "data": "1985W155T232050/P15D6M", + "valid": false + }, + { + "description": "Invalid - duration time without T designator", + "data": "1985W155T232050/P1D1H", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with other units", + "data": "1985W155T232050/P1W2D", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with years", + "data": "1985W155T232050/P1Y2W", + "valid": false + }, + { + "description": "Invalid - duration weeks with time", + "data": "1985W155T232050/P1WT1H", + "valid": false + }, + { + "description": "Valid - large year value", + "data": "2023W011T000000/P500Y", + "valid": true + }, + { + "description": "Valid - large day value", + "data": "2023W011T000000/P500D", + "valid": true + }, + { + "description": "Valid - large hour value", + "data": "2023W011T000000/PT100H", + "valid": true + }, + { + "description": "Valid - 13 months", + "data": "2023W011T000000/P13M", + "valid": true + }, + { + "description": "Invalid - too short", + "data": "1985W155T23205/P1Y", + "valid": false + }, + { + "description": "Invalid - too long", + "data": "1985W155T2320500/P1Y", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "1985W155T232050X/P1Y", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning", + "data": "X1985W155T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - spaces in datetime", + "data": "1985 W15 5T23 20 50/P1Y", + "valid": false + }, + { + "description": "Invalid - letter in year", + "data": "I985W155T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - letter in week", + "data": "1985WI55T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - letter in day", + "data": "1985W15IT232050/P1Y", + "valid": false + }, + { + "description": "Invalid - letter in hour", + "data": "1985W155TI32050/P1Y", + "valid": false + }, + { + "description": "Invalid - letter in minute", + "data": "1985W155T23I050/P1Y", + "valid": false + }, + { + "description": "Invalid - letter in second", + "data": "1985W155T2320I0/P1Y", + "valid": false + }, + { + "description": "Valid - week 01 day 1", + "data": "2023W011T120000/P1Y", + "valid": true + }, + { + "description": "Valid - week 52 day 7", + "data": "2023W527T120000/P1Y", + "valid": true + }, + { + "description": "Valid - year 0000", + "data": "0000W011T120000/P1Y", + "valid": true + }, + { + "description": "Valid - year 9999", + "data": "9999W527T235959/P1Y", + "valid": true + }, + { + "description": "Invalid - duration with spaces", + "data": "1985W155T232050/P1Y 2M", + "valid": false + }, + { + "description": "Invalid - duration with extra slash", + "data": "1985W155T232050/P1Y/2M", + "valid": false + }, + { + "description": "Valid - PT60M (durations can exceed calendar limits)", + "data": "1985W155T232050/PT60M", + "valid": true + }, + { + "description": "Valid - PT60S (durations can exceed calendar limits)", + "data": "1985W155T232050/PT60S", + "valid": true + }, + { + "description": "Valid - PT25H (durations can exceed calendar limits)", + "data": "1985W155T232050/PT25H", + "valid": true + }, + { + "description": "Valid - P32D (durations can exceed calendar limits)", + "data": "1985W155T232050/P32D", + "valid": true + } + ] +} diff --git a/test/schemas/iso/datetime/2019/interval/start-duration-week-extended/v1.test.json b/test/schemas/iso/datetime/2019/interval/start-duration-week-extended/v1.test.json new file mode 100644 index 00000000..62bf2146 --- /dev/null +++ b/test/schemas/iso/datetime/2019/interval/start-duration-week-extended/v1.test.json @@ -0,0 +1,295 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/interval/start-duration-week-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985155232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - full duration with all components", + "data": "1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - only years duration", + "data": "2000-W01-1T00:00:00/P1Y", + "valid": true + }, + { + "description": "Valid - only time component duration", + "data": "2023-W24-1T12:00:00/PT5H30M", + "valid": true + }, + { + "description": "Valid - weeks duration", + "data": "1985-W52-7T23:59:59/P2W", + "valid": true + }, + { + "description": "Valid - days and seconds duration", + "data": "2023-W01-1T00:00:00/P5DT30S", + "valid": true + }, + { + "description": "Valid - months duration", + "data": "2023-W52-7T12:00:00/P6M", + "valid": true + }, + { + "description": "Valid - hours duration", + "data": "2000-W26-5T18:00:00/PT12H", + "valid": true + }, + { + "description": "Invalid - missing separator slash", + "data": "1985-W15-5T23:20:50P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - basic format datetime", + "data": "1985W155T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - missing duration", + "data": "1985-W15-5T23:20:50/", + "valid": false + }, + { + "description": "Invalid - missing start datetime", + "data": "/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - only separator", + "data": "/", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - spaces around separator", + "data": "1985-W15-5T23:20:50 / P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - start week 00", + "data": "1985-W00-5T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - start week 54", + "data": "1985-W54-5T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - start day 0", + "data": "1985-W15-0T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - start day 8", + "data": "1985-W15-8T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - start hour 24", + "data": "1985-W15-5T24:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - start minute 60", + "data": "1985-W15-5T23:60:50/P1Y", + "valid": false + }, + { + "description": "Invalid - start second 61", + "data": "1985-W15-5T23:20:61/P1Y", + "valid": false + }, + { + "description": "Invalid - missing T separator in start", + "data": "1985-W15-5 23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - lowercase t in start", + "data": "1985-W15-5t23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - end datetime instead of duration", + "data": "1985-W15-5T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - duration without P prefix", + "data": "1985-W15-5T23:20:50/1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - lowercase p in duration", + "data": "1985-W15-5T23:20:50/p1Y", + "valid": false + }, + { + "description": "Invalid - lowercase t in duration", + "data": "1985-W15-5T23:20:50/P1Dt1H", + "valid": false + }, + { + "description": "Invalid - empty duration (only P)", + "data": "1985-W15-5T23:20:50/P", + "valid": false + }, + { + "description": "Invalid - empty time duration (only PT)", + "data": "1985-W15-5T23:20:50/PT", + "valid": false + }, + { + "description": "Invalid - calendar date instead of week", + "data": "1985-04-12T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - ordinal date instead of week", + "data": "1985-102T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - double slash separator", + "data": "1985-W15-5T23:20:50//P1Y", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "1985-W15-5T23:20:50\\P1Y", + "valid": false + }, + { + "description": "Valid - week 53 (long year validation is consumer responsibility)", + "data": "2020-W53-1T00:00:00/P1Y", + "valid": true + }, + { + "description": "Valid - leap second in start", + "data": "1985-W15-5T23:59:60/P1D", + "valid": true + }, + { + "description": "Valid - zero duration components", + "data": "2023-W01-1T00:00:00/P0Y0M0DT0H0M0S", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in years", + "data": "2023-W01-1T12:00:00/P1.5Y", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in months", + "data": "2023-W01-1T12:00:00/P3M15DT2.5H", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in days", + "data": "2023-W01-1T12:00:00/P10.5D", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in hours", + "data": "2023-W01-1T12:00:00/PT2.5H", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in minutes", + "data": "2023-W01-1T12:00:00/PT45.5M", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in seconds", + "data": "2023-W01-1T12:00:00/PT10.123S", + "valid": true + }, + { + "description": "Valid - decimal weeks", + "data": "2023-W01-1T12:00:00/P1.5W", + "valid": true + }, + { + "description": "Invalid - duration wrong component order (M before Y)", + "data": "1985-W15-5T23:20:50/P6M3Y", + "valid": false + }, + { + "description": "Invalid - duration wrong component order (D before M)", + "data": "1985-W15-5T23:20:50/P15D6M", + "valid": false + }, + { + "description": "Invalid - duration time without T designator", + "data": "1985-W15-5T23:20:50/P1D1H", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with other units", + "data": "1985-W15-5T23:20:50/P1W2D", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with years", + "data": "1985-W15-5T23:20:50/P1Y2W", + "valid": false + }, + { + "description": "Invalid - duration weeks with time", + "data": "1985-W15-5T23:20:50/P1WT1H", + "valid": false + }, + { + "description": "Valid - large year value", + "data": "2023-W01-1T00:00:00/P500Y", + "valid": true + }, + { + "description": "Valid - large day value", + "data": "2023-W01-1T00:00:00/P500D", + "valid": true + }, + { + "description": "Valid - large hour value", + "data": "2023-W01-1T00:00:00/PT100H", + "valid": true + }, + { + "description": "Valid - 13 months", + "data": "2023-W01-1T00:00:00/P13M", + "valid": true + } + ] +} diff --git a/test/schemas/iso/datetime/2019/interval/start-end-calendar-basic/v1.test.json b/test/schemas/iso/datetime/2019/interval/start-end-calendar-basic/v1.test.json new file mode 100644 index 00000000..f6e721c7 --- /dev/null +++ b/test/schemas/iso/datetime/2019/interval/start-end-calendar-basic/v1.test.json @@ -0,0 +1,470 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/interval/start-end-calendar-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 19850412232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 12 April 1985 to 25 June 1985", + "data": "19850412T232050/19850625T103000", + "valid": true + }, + { + "description": "Valid - 1 January 2000 to 31 December 2000", + "data": "20000101T000000/20001231T235959", + "valid": true + }, + { + "description": "Valid - same day interval", + "data": "20230101T120000/20230101T180000", + "valid": true + }, + { + "description": "Valid - cross year boundary", + "data": "20221231T230000/20230101T010000", + "valid": true + }, + { + "description": "Valid - 31 January to 28 February", + "data": "20230131T000000/20230228T235959", + "valid": true + }, + { + "description": "Valid - leap year February 29", + "data": "20200228T120000/20200229T120000", + "valid": true + }, + { + "description": "Valid - with leap second (60 seconds)", + "data": "19850412T235960/19850413T000000", + "valid": true + }, + { + "description": "Valid - midnight to midnight", + "data": "20230101T000000/20230102T000000", + "valid": true + }, + { + "description": "Valid - 31 May to 30 June", + "data": "20230531T120000/20230630T120000", + "valid": true + }, + { + "description": "Valid - 31 August to 30 September", + "data": "20230831T120000/20230930T120000", + "valid": true + }, + { + "description": "Valid - 31 October to 30 November", + "data": "20231031T120000/20231130T120000", + "valid": true + }, + { + "description": "Invalid - missing separator slash", + "data": "19850412T23205019850625T103000", + "valid": false + }, + { + "description": "Invalid - extended format (contains hyphens)", + "data": "1985-04-12T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - mixed formats (basic start, extended end)", + "data": "19850412T232050/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - mixed formats (extended start, basic end)", + "data": "1985-04-12T23:20:50/19850625T103000", + "valid": false + }, + { + "description": "Invalid - missing end datetime", + "data": "19850412T232050/", + "valid": false + }, + { + "description": "Invalid - missing start datetime", + "data": "/19850625T103000", + "valid": false + }, + { + "description": "Invalid - only separator", + "data": "/", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - spaces around separator", + "data": "19850412T232050 / 19850625T103000", + "valid": false + }, + { + "description": "Invalid - start month 00", + "data": "19850012T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - start month 13", + "data": "19851312T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - end month 00", + "data": "19850412T232050/19850025T103000", + "valid": false + }, + { + "description": "Invalid - end month 13", + "data": "19850412T232050/19851325T103000", + "valid": false + }, + { + "description": "Invalid - start day 00", + "data": "19850400T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - start day 32", + "data": "19850432T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - end day 00", + "data": "19850412T232050/19850600T103000", + "valid": false + }, + { + "description": "Invalid - end day 32", + "data": "19850412T232050/19850632T103000", + "valid": false + }, + { + "description": "Invalid - start 31 April", + "data": "19850431T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - start 31 June", + "data": "19850631T232050/19850731T103000", + "valid": false + }, + { + "description": "Invalid - start 31 September", + "data": "19850931T232050/19851031T103000", + "valid": false + }, + { + "description": "Invalid - start 31 November", + "data": "19851131T232050/19851231T103000", + "valid": false + }, + { + "description": "Invalid - end 31 April", + "data": "19850401T232050/19850431T103000", + "valid": false + }, + { + "description": "Invalid - end 31 June", + "data": "19850601T232050/19850631T103000", + "valid": false + }, + { + "description": "Invalid - end 31 September", + "data": "19850901T232050/19850931T103000", + "valid": false + }, + { + "description": "Invalid - end 31 November", + "data": "19851101T232050/19851131T103000", + "valid": false + }, + { + "description": "Invalid - start 30 February", + "data": "20230230T120000/20230331T120000", + "valid": false + }, + { + "description": "Invalid - end 30 February", + "data": "20230131T120000/20230230T120000", + "valid": false + }, + { + "description": "Invalid - start hour 24", + "data": "19850412T242050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - start hour 25", + "data": "19850412T252050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - end hour 24", + "data": "19850412T232050/19850625T243000", + "valid": false + }, + { + "description": "Invalid - start minute 60", + "data": "19850412T236050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - end minute 60", + "data": "19850412T232050/19850625T106000", + "valid": false + }, + { + "description": "Invalid - start second 61", + "data": "19850412T232061/19850625T103000", + "valid": false + }, + { + "description": "Invalid - end second 61", + "data": "19850412T232050/19850625T103061", + "valid": false + }, + { + "description": "Invalid - missing T separator in start", + "data": "19850412232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - missing T separator in end", + "data": "19850412T232050/19850625103000", + "valid": false + }, + { + "description": "Invalid - lowercase t in start", + "data": "19850412t232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - lowercase t in end", + "data": "19850412T232050/19850625t103000", + "valid": false + }, + { + "description": "Invalid - duration instead of end datetime", + "data": "19850412T232050/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - duration instead of start datetime", + "data": "P1Y2M15DT12H30M0S/19850625T103000", + "valid": false + }, + { + "description": "Invalid - too few digits in start year", + "data": "985412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - too many digits in start year", + "data": "198504412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - letters in start date", + "data": "ABCD0412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - letters in end date", + "data": "19850412T232050/ABCD0625T103000", + "valid": false + }, + { + "description": "Invalid - letters in start time", + "data": "19850412TABC050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - letters in end time", + "data": "19850412T232050/19850625TABC000", + "valid": false + }, + { + "description": "Valid - 29 February (leap year validation is consumer responsibility)", + "data": "20230229T120000/20230331T120000", + "valid": true + }, + { + "description": "Valid - both start and end with 29 February", + "data": "20230229T000000/20240229T235959", + "valid": true + }, + { + "description": "Invalid - double slash separator", + "data": "19850412T232050//19850625T103000", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "19850412T232050\\19850625T103000", + "valid": false + }, + { + "description": "Valid - reversed order (end before start is syntactically valid per ISO 8601)", + "data": "19850625T103000/19850412T232050", + "valid": true + }, + { + "description": "Invalid - start hour 99", + "data": "19850412T992050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - end hour 99", + "data": "19850412T232050/19850625T993000", + "valid": false + }, + { + "description": "Invalid - start minute 99", + "data": "19850412T239950/19850625T103000", + "valid": false + }, + { + "description": "Invalid - end minute 99", + "data": "19850412T232050/19850625T109900", + "valid": false + }, + { + "description": "Invalid - start second 99", + "data": "19850412T232099/19850625T103000", + "valid": false + }, + { + "description": "Invalid - end second 99", + "data": "19850412T232050/19850625T103099", + "valid": false + }, + { + "description": "Invalid - letter in start year", + "data": "I9850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - letter in end year", + "data": "19850412T232050/I9850625T103000", + "valid": false + }, + { + "description": "Invalid - letter in start month", + "data": "1985O412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - letter in end month", + "data": "19850412T232050/1985O625T103000", + "valid": false + }, + { + "description": "Invalid - letter in start day", + "data": "198504I2T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - letter in end day", + "data": "19850412T232050/198506I5T103000", + "valid": false + }, + { + "description": "Invalid - letter in start hour", + "data": "19850412TI32050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - letter in end hour", + "data": "19850412T232050/19850625TI03000", + "valid": false + }, + { + "description": "Invalid - letter in start minute", + "data": "19850412T23I050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - letter in end minute", + "data": "19850412T232050/19850625T10I000", + "valid": false + }, + { + "description": "Invalid - letter in start second", + "data": "19850412T2320I0/19850625T103000", + "valid": false + }, + { + "description": "Invalid - letter in end second", + "data": "19850412T232050/19850625T1030I0", + "valid": false + }, + { + "description": "Invalid - too short start", + "data": "19850412T23205/19850625T103000", + "valid": false + }, + { + "description": "Invalid - too long start", + "data": "19850412T2320500/19850625T103000", + "valid": false + }, + { + "description": "Invalid - too short end", + "data": "19850412T232050/19850625T10300", + "valid": false + }, + { + "description": "Invalid - too long end", + "data": "19850412T232050/19850625T1030000", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning", + "data": "X19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "19850412T232050/19850625T103000X", + "valid": false + }, + { + "description": "Invalid - spaces in start datetime", + "data": "1985 04 12T23 20 50/19850625T103000", + "valid": false + }, + { + "description": "Invalid - spaces in end datetime", + "data": "19850412T232050/1985 06 25T10 30 00", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/interval/start-end-calendar-extended/v1.test.json b/test/schemas/iso/datetime/2019/interval/start-end-calendar-extended/v1.test.json new file mode 100644 index 00000000..67e40599 --- /dev/null +++ b/test/schemas/iso/datetime/2019/interval/start-end-calendar-extended/v1.test.json @@ -0,0 +1,495 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/interval/start-end-calendar-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 19850412232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 12 April 1985 to 25 June 1985", + "data": "1985-04-12T23:20:50/1985-06-25T10:30:00", + "valid": true + }, + { + "description": "Valid - 1 January 2000 to 31 December 2000", + "data": "2000-01-01T00:00:00/2000-12-31T23:59:59", + "valid": true + }, + { + "description": "Valid - same day interval", + "data": "2023-01-01T12:00:00/2023-01-01T18:00:00", + "valid": true + }, + { + "description": "Valid - cross year boundary", + "data": "2022-12-31T23:00:00/2023-01-01T01:00:00", + "valid": true + }, + { + "description": "Valid - 31 January to 28 February", + "data": "2023-01-31T00:00:00/2023-02-28T23:59:59", + "valid": true + }, + { + "description": "Valid - leap year February 29", + "data": "2020-02-28T12:00:00/2020-02-29T12:00:00", + "valid": true + }, + { + "description": "Valid - with leap second (60 seconds)", + "data": "1985-04-12T23:59:60/1985-04-13T00:00:00", + "valid": true + }, + { + "description": "Valid - midnight to midnight", + "data": "2023-01-01T00:00:00/2023-01-02T00:00:00", + "valid": true + }, + { + "description": "Valid - 31 May to 30 June", + "data": "2023-05-31T12:00:00/2023-06-30T12:00:00", + "valid": true + }, + { + "description": "Valid - 31 August to 30 September", + "data": "2023-08-31T12:00:00/2023-09-30T12:00:00", + "valid": true + }, + { + "description": "Valid - 31 October to 30 November", + "data": "2023-10-31T12:00:00/2023-11-30T12:00:00", + "valid": true + }, + { + "description": "Invalid - missing separator slash", + "data": "1985-04-12T23:20:501985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - basic format (no hyphens or colons)", + "data": "19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - mixed formats (basic start, extended end)", + "data": "19850412T232050/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - mixed formats (extended start, basic end)", + "data": "1985-04-12T23:20:50/19850625T103000", + "valid": false + }, + { + "description": "Invalid - missing end datetime", + "data": "1985-04-12T23:20:50/", + "valid": false + }, + { + "description": "Invalid - missing start datetime", + "data": "/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - only separator", + "data": "/", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - spaces around separator", + "data": "1985-04-12T23:20:50 / 1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - start month 00", + "data": "1985-00-12T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - start month 13", + "data": "1985-13-12T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - end month 00", + "data": "1985-04-12T23:20:50/1985-00-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - end month 13", + "data": "1985-04-12T23:20:50/1985-13-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - start day 00", + "data": "1985-04-00T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - start day 32", + "data": "1985-04-32T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - end day 00", + "data": "1985-04-12T23:20:50/1985-06-00T10:30:00", + "valid": false + }, + { + "description": "Invalid - end day 32", + "data": "1985-04-12T23:20:50/1985-06-32T10:30:00", + "valid": false + }, + { + "description": "Invalid - start 31 April", + "data": "1985-04-31T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - start 31 June", + "data": "1985-06-31T23:20:50/1985-07-31T10:30:00", + "valid": false + }, + { + "description": "Invalid - start 31 September", + "data": "1985-09-31T23:20:50/1985-10-31T10:30:00", + "valid": false + }, + { + "description": "Invalid - start 31 November", + "data": "1985-11-31T23:20:50/1985-12-31T10:30:00", + "valid": false + }, + { + "description": "Invalid - end 31 April", + "data": "1985-04-01T23:20:50/1985-04-31T10:30:00", + "valid": false + }, + { + "description": "Invalid - end 31 June", + "data": "1985-06-01T23:20:50/1985-06-31T10:30:00", + "valid": false + }, + { + "description": "Invalid - end 31 September", + "data": "1985-09-01T23:20:50/1985-09-31T10:30:00", + "valid": false + }, + { + "description": "Invalid - end 31 November", + "data": "1985-11-01T23:20:50/1985-11-31T10:30:00", + "valid": false + }, + { + "description": "Invalid - start 30 February", + "data": "2023-02-30T12:00:00/2023-03-31T12:00:00", + "valid": false + }, + { + "description": "Invalid - end 30 February", + "data": "2023-01-31T12:00:00/2023-02-30T12:00:00", + "valid": false + }, + { + "description": "Invalid - start hour 24", + "data": "1985-04-12T24:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - start hour 25", + "data": "1985-04-12T25:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - end hour 24", + "data": "1985-04-12T23:20:50/1985-06-25T24:30:00", + "valid": false + }, + { + "description": "Invalid - start minute 60", + "data": "1985-04-12T23:60:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - end minute 60", + "data": "1985-04-12T23:20:50/1985-06-25T10:60:00", + "valid": false + }, + { + "description": "Invalid - start second 61", + "data": "1985-04-12T23:20:61/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - end second 61", + "data": "1985-04-12T23:20:50/1985-06-25T10:30:61", + "valid": false + }, + { + "description": "Invalid - missing T separator in start", + "data": "1985-04-1223:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - missing T separator in end", + "data": "1985-04-12T23:20:50/1985-06-2510:30:00", + "valid": false + }, + { + "description": "Invalid - lowercase t in start", + "data": "1985-04-12t23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - lowercase t in end", + "data": "1985-04-12T23:20:50/1985-06-25t10:30:00", + "valid": false + }, + { + "description": "Invalid - duration instead of end datetime", + "data": "1985-04-12T23:20:50/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - duration instead of start datetime", + "data": "P1Y2M15DT12H30M0S/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - missing hyphen in start date", + "data": "19850412T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - missing hyphen in end date", + "data": "1985-04-12T23:20:50/19850625T10:30:00", + "valid": false + }, + { + "description": "Invalid - missing colon in start time", + "data": "1985-04-12T232050/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - missing colon in end time", + "data": "1985-04-12T23:20:50/1985-06-25T103000", + "valid": false + }, + { + "description": "Invalid - letters in start date", + "data": "ABCD-04-12T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - letters in end date", + "data": "1985-04-12T23:20:50/ABCD-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - letters in start time", + "data": "1985-04-12TAB:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - letters in end time", + "data": "1985-04-12T23:20:50/1985-06-25TAB:30:00", + "valid": false + }, + { + "description": "Valid - 29 February (leap year validation is consumer responsibility)", + "data": "2023-02-29T12:00:00/2023-03-31T12:00:00", + "valid": true + }, + { + "description": "Valid - both start and end with 29 February", + "data": "2023-02-29T00:00:00/2024-02-29T23:59:59", + "valid": true + }, + { + "description": "Invalid - double slash separator", + "data": "1985-04-12T23:20:50//1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "1985-04-12T23:20:50\\1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Valid - reversed order (end before start is syntactically valid per ISO 8601)", + "data": "1985-06-25T10:30:00/1985-04-12T23:20:50", + "valid": true + }, + { + "description": "Invalid - start hour 99", + "data": "1985-04-12T99:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - end hour 99", + "data": "1985-04-12T23:20:50/1985-06-25T99:30:00", + "valid": false + }, + { + "description": "Invalid - start minute 99", + "data": "1985-04-12T23:99:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - end minute 99", + "data": "1985-04-12T23:20:50/1985-06-25T10:99:00", + "valid": false + }, + { + "description": "Invalid - start second 99", + "data": "1985-04-12T23:20:99/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - end second 99", + "data": "1985-04-12T23:20:50/1985-06-25T10:30:99", + "valid": false + }, + { + "description": "Invalid - letter in start year", + "data": "I985-04-12T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in end year", + "data": "1985-04-12T23:20:50/I985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in start month", + "data": "1985-0I-12T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in end month", + "data": "1985-04-12T23:20:50/1985-0I-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in start day", + "data": "1985-04-I2T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in end day", + "data": "1985-04-12T23:20:50/1985-06-I5T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in start hour", + "data": "1985-04-12TI3:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in end hour", + "data": "1985-04-12T23:20:50/1985-06-25TI0:30:00", + "valid": false + }, + { + "description": "Invalid - letter in start minute", + "data": "1985-04-12T23:I0:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in end minute", + "data": "1985-04-12T23:20:50/1985-06-25T10:I0:00", + "valid": false + }, + { + "description": "Invalid - letter in start second", + "data": "1985-04-12T23:20:I0/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in end second", + "data": "1985-04-12T23:20:50/1985-06-25T10:30:I0", + "valid": false + }, + { + "description": "Invalid - too short start datetime", + "data": "1985-04-12T23:20:5/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - too short end datetime", + "data": "1985-04-12T23:20:50/1985-06-25T10:30:0", + "valid": false + }, + { + "description": "Invalid - too long start datetime", + "data": "1985-04-12T23:20:500/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - too long end datetime", + "data": "1985-04-12T23:20:50/1985-06-25T10:30:000", + "valid": false + }, + { + "description": "Invalid - extra character at start", + "data": "X1985-04-12T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - extra character at end", + "data": "1985-04-12T23:20:50/1985-06-25T10:30:00X", + "valid": false + }, + { + "description": "Invalid - extra character in middle", + "data": "1985-04-12T23:20:50X/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - space in start date", + "data": "1985-04- 12T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - space in end date", + "data": "1985-04-12T23:20:50/1985-06- 25T10:30:00", + "valid": false + }, + { + "description": "Invalid - space in start time", + "data": "1985-04-12T23: 20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - space in end time", + "data": "1985-04-12T23:20:50/1985-06-25T10: 30:00", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/interval/start-end-ordinal-basic/v1.test.json b/test/schemas/iso/datetime/2019/interval/start-end-ordinal-basic/v1.test.json new file mode 100644 index 00000000..59e56b72 --- /dev/null +++ b/test/schemas/iso/datetime/2019/interval/start-end-ordinal-basic/v1.test.json @@ -0,0 +1,415 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/interval/start-end-ordinal-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985102232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - day 102 to day 176 of 1985", + "data": "1985102T232050/1985176T103000", + "valid": true + }, + { + "description": "Valid - day 1 to day 366 of 2000 (leap year)", + "data": "2000001T000000/2000366T235959", + "valid": true + }, + { + "description": "Valid - day 1 to day 365 of 2023", + "data": "2023001T120000/2023365T180000", + "valid": true + }, + { + "description": "Valid - same day interval", + "data": "2023100T120000/2023100T180000", + "valid": true + }, + { + "description": "Valid - cross year boundary", + "data": "2022365T230000/2023001T010000", + "valid": true + }, + { + "description": "Valid - first to last day of year", + "data": "2020001T000000/2020366T235959", + "valid": true + }, + { + "description": "Valid - with leap second (60 seconds)", + "data": "1985102T235960/1985103T000000", + "valid": true + }, + { + "description": "Valid - midnight to midnight", + "data": "2023001T000000/2023002T000000", + "valid": true + }, + { + "description": "Valid - day 59 to day 60 (February 28-29 in leap year)", + "data": "2020059T120000/2020060T120000", + "valid": true + }, + { + "description": "Invalid - missing separator slash", + "data": "1985102T2320501985176T103000", + "valid": false + }, + { + "description": "Invalid - extended format (contains hyphens)", + "data": "1985-102T23:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - mixed formats (basic start, extended end)", + "data": "1985102T232050/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - mixed formats (extended start, basic end)", + "data": "1985-102T23:20:50/1985176T103000", + "valid": false + }, + { + "description": "Invalid - missing end datetime", + "data": "1985102T232050/", + "valid": false + }, + { + "description": "Invalid - missing start datetime", + "data": "/1985176T103000", + "valid": false + }, + { + "description": "Invalid - only separator", + "data": "/", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - spaces around separator", + "data": "1985102T232050 / 1985176T103000", + "valid": false + }, + { + "description": "Invalid - start day 000", + "data": "1985000T232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - start day 367", + "data": "1985367T232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - end day 000", + "data": "1985102T232050/1985000T103000", + "valid": false + }, + { + "description": "Invalid - end day 367", + "data": "1985102T232050/1985367T103000", + "valid": false + }, + { + "description": "Invalid - start hour 24", + "data": "1985102T242050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - start hour 25", + "data": "1985102T252050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - end hour 24", + "data": "1985102T232050/1985176T243000", + "valid": false + }, + { + "description": "Invalid - start minute 60", + "data": "1985102T236050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - end minute 60", + "data": "1985102T232050/1985176T106000", + "valid": false + }, + { + "description": "Invalid - start second 61", + "data": "1985102T232061/1985176T103000", + "valid": false + }, + { + "description": "Invalid - end second 61", + "data": "1985102T232050/1985176T103061", + "valid": false + }, + { + "description": "Invalid - missing T separator in start", + "data": "1985102232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - missing T separator in end", + "data": "1985102T232050/1985176103000", + "valid": false + }, + { + "description": "Invalid - lowercase t in start", + "data": "1985102t232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - lowercase t in end", + "data": "1985102T232050/1985176t103000", + "valid": false + }, + { + "description": "Invalid - duration instead of end datetime", + "data": "1985102T232050/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - duration instead of start datetime", + "data": "P1Y2M15DT12H30M0S/1985176T103000", + "valid": false + }, + { + "description": "Invalid - calendar date instead of ordinal in start", + "data": "19850412T232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - calendar date instead of ordinal in end", + "data": "1985102T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - too few digits in start day", + "data": "198502T232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - too many digits in start day", + "data": "19851022T232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - letters in start date", + "data": "ABCD102T232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - letters in end date", + "data": "1985102T232050/ABCD176T103000", + "valid": false + }, + { + "description": "Invalid - letters in start time", + "data": "1985102TABC050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - letters in end time", + "data": "1985102T232050/1985176TABC000", + "valid": false + }, + { + "description": "Valid - day 366 in leap year", + "data": "2020366T000000/2021001T000000", + "valid": true + }, + { + "description": "Valid - day 366 in non-leap year (validation is consumer responsibility)", + "data": "2023366T120000/2024001T120000", + "valid": true + }, + { + "description": "Invalid - double slash separator", + "data": "1985102T232050//1985176T103000", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "1985102T232050\\1985176T103000", + "valid": false + }, + { + "description": "Valid - reversed order (end before start is syntactically valid per ISO 8601)", + "data": "1985176T103000/1985102T232050", + "valid": true + }, + { + "description": "Invalid - week date format instead of ordinal in start", + "data": "1985W155T232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - week date format instead of ordinal in end", + "data": "1985102T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - start hour 99", + "data": "1985102T992050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - end hour 99", + "data": "1985102T232050/1985176T993000", + "valid": false + }, + { + "description": "Invalid - start minute 99", + "data": "1985102T239950/1985176T103000", + "valid": false + }, + { + "description": "Invalid - end minute 99", + "data": "1985102T232050/1985176T109900", + "valid": false + }, + { + "description": "Invalid - start second 99", + "data": "1985102T232099/1985176T103000", + "valid": false + }, + { + "description": "Invalid - end second 99", + "data": "1985102T232050/1985176T103099", + "valid": false + }, + { + "description": "Invalid - letter in start year", + "data": "I985102T232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - letter in end year", + "data": "1985102T232050/I985176T103000", + "valid": false + }, + { + "description": "Invalid - letter in start day", + "data": "1985I02T232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - letter in end day", + "data": "1985102T232050/1985I76T103000", + "valid": false + }, + { + "description": "Invalid - letter in start hour", + "data": "1985102TI32050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - letter in end hour", + "data": "1985102T232050/1985176TI03000", + "valid": false + }, + { + "description": "Invalid - letter in start minute", + "data": "1985102T23I050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - letter in end minute", + "data": "1985102T232050/1985176T10I000", + "valid": false + }, + { + "description": "Invalid - letter in start second", + "data": "1985102T2320I0/1985176T103000", + "valid": false + }, + { + "description": "Invalid - letter in end second", + "data": "1985102T232050/1985176T1030I0", + "valid": false + }, + { + "description": "Invalid - too short start datetime", + "data": "1985102T23205/1985176T103000", + "valid": false + }, + { + "description": "Invalid - too short end datetime", + "data": "1985102T232050/1985176T10300", + "valid": false + }, + { + "description": "Invalid - too long start datetime", + "data": "1985102T2320500/1985176T103000", + "valid": false + }, + { + "description": "Invalid - too long end datetime", + "data": "1985102T232050/1985176T1030000", + "valid": false + }, + { + "description": "Invalid - extra character at start", + "data": "X1985102T232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - extra character at end", + "data": "1985102T232050/1985176T103000X", + "valid": false + }, + { + "description": "Invalid - extra character in middle", + "data": "1985102T232050X/1985176T103000", + "valid": false + }, + { + "description": "Invalid - space in start date", + "data": "1985 102T232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - space in end date", + "data": "1985102T232050/1985 176T103000", + "valid": false + }, + { + "description": "Invalid - space in start time", + "data": "1985102T23 2050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - space in end time", + "data": "1985102T232050/1985176T10 3000", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/interval/start-end-ordinal-extended/v1.test.json b/test/schemas/iso/datetime/2019/interval/start-end-ordinal-extended/v1.test.json new file mode 100644 index 00000000..25578514 --- /dev/null +++ b/test/schemas/iso/datetime/2019/interval/start-end-ordinal-extended/v1.test.json @@ -0,0 +1,400 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/interval/start-end-ordinal-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985102232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - day 102 to day 176 of 1985", + "data": "1985-102T23:20:50/1985-176T10:30:00", + "valid": true + }, + { + "description": "Valid - day 1 to day 366 of 2000 (leap year)", + "data": "2000-001T00:00:00/2000-366T23:59:59", + "valid": true + }, + { + "description": "Valid - day 1 to day 365 of 2023", + "data": "2023-001T12:00:00/2023-365T18:00:00", + "valid": true + }, + { + "description": "Valid - same day interval", + "data": "2023-100T12:00:00/2023-100T18:00:00", + "valid": true + }, + { + "description": "Valid - cross year boundary", + "data": "2022-365T23:00:00/2023-001T01:00:00", + "valid": true + }, + { + "description": "Valid - with leap second (60 seconds)", + "data": "1985-102T23:59:60/1985-103T00:00:00", + "valid": true + }, + { + "description": "Valid - midnight to midnight", + "data": "2023-001T00:00:00/2023-002T00:00:00", + "valid": true + }, + { + "description": "Invalid - missing separator slash", + "data": "1985-102T23:20:501985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - basic format (no hyphens or colons)", + "data": "1985102T232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - mixed formats (basic start, extended end)", + "data": "1985102T232050/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - mixed formats (extended start, basic end)", + "data": "1985-102T23:20:50/1985176T103000", + "valid": false + }, + { + "description": "Invalid - missing end datetime", + "data": "1985-102T23:20:50/", + "valid": false + }, + { + "description": "Invalid - missing start datetime", + "data": "/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - only separator", + "data": "/", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - spaces around separator", + "data": "1985-102T23:20:50 / 1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - start day 000", + "data": "1985-000T23:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - start day 367", + "data": "1985-367T23:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - end day 000", + "data": "1985-102T23:20:50/1985-000T10:30:00", + "valid": false + }, + { + "description": "Invalid - end day 367", + "data": "1985-102T23:20:50/1985-367T10:30:00", + "valid": false + }, + { + "description": "Invalid - start hour 24", + "data": "1985-102T24:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - end hour 24", + "data": "1985-102T23:20:50/1985-176T24:30:00", + "valid": false + }, + { + "description": "Invalid - start minute 60", + "data": "1985-102T23:60:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - end minute 60", + "data": "1985-102T23:20:50/1985-176T10:60:00", + "valid": false + }, + { + "description": "Invalid - start second 61", + "data": "1985-102T23:20:61/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - end second 61", + "data": "1985-102T23:20:50/1985-176T10:30:61", + "valid": false + }, + { + "description": "Invalid - missing T separator in start", + "data": "1985-10223:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - missing T separator in end", + "data": "1985-102T23:20:50/1985-17610:30:00", + "valid": false + }, + { + "description": "Invalid - lowercase t in start", + "data": "1985-102t23:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - lowercase t in end", + "data": "1985-102T23:20:50/1985-176t10:30:00", + "valid": false + }, + { + "description": "Invalid - duration instead of end datetime", + "data": "1985-102T23:20:50/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - duration instead of start datetime", + "data": "P1Y2M15DT12H30M0S/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - calendar date instead of ordinal in start", + "data": "1985-04-12T23:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - calendar date instead of ordinal in end", + "data": "1985-102T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - missing hyphen in start date", + "data": "1985102T23:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - missing hyphen in end date", + "data": "1985-102T23:20:50/1985176T10:30:00", + "valid": false + }, + { + "description": "Invalid - missing colon in start time", + "data": "1985-102T232050/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - missing colon in end time", + "data": "1985-102T23:20:50/1985-176T103000", + "valid": false + }, + { + "description": "Invalid - letters in start date", + "data": "ABCD-102T23:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - letters in end date", + "data": "1985-102T23:20:50/ABCD-176T10:30:00", + "valid": false + }, + { + "description": "Valid - day 366 in leap year", + "data": "2020-366T00:00:00/2021-001T00:00:00", + "valid": true + }, + { + "description": "Valid - day 366 in non-leap year (validation is consumer responsibility)", + "data": "2023-366T12:00:00/2024-001T12:00:00", + "valid": true + }, + { + "description": "Invalid - double slash separator", + "data": "1985-102T23:20:50//1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "1985-102T23:20:50\\1985-176T10:30:00", + "valid": false + }, + { + "description": "Valid - reversed order (end before start is syntactically valid per ISO 8601)", + "data": "1985-176T10:30:00/1985-102T23:20:50", + "valid": true + }, + { + "description": "Invalid - week date format instead of ordinal in start", + "data": "1985-W15-5T23:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - week date format instead of ordinal in end", + "data": "1985-102T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - start hour 99", + "data": "1985-102T99:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - end hour 99", + "data": "1985-102T23:20:50/1985-176T99:30:00", + "valid": false + }, + { + "description": "Invalid - start minute 99", + "data": "1985-102T23:99:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - end minute 99", + "data": "1985-102T23:20:50/1985-176T10:99:00", + "valid": false + }, + { + "description": "Invalid - start second 99", + "data": "1985-102T23:20:99/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - end second 99", + "data": "1985-102T23:20:50/1985-176T10:30:99", + "valid": false + }, + { + "description": "Invalid - letter in start year", + "data": "I985-102T23:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in end year", + "data": "1985-102T23:20:50/I985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in start day", + "data": "1985-I02T23:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in end day", + "data": "1985-102T23:20:50/1985-I76T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in start hour", + "data": "1985-102TI3:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in end hour", + "data": "1985-102T23:20:50/1985-176TI0:30:00", + "valid": false + }, + { + "description": "Invalid - letter in start minute", + "data": "1985-102T23:I0:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in end minute", + "data": "1985-102T23:20:50/1985-176T10:I0:00", + "valid": false + }, + { + "description": "Invalid - letter in start second", + "data": "1985-102T23:20:I0/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in end second", + "data": "1985-102T23:20:50/1985-176T10:30:I0", + "valid": false + }, + { + "description": "Invalid - too short start datetime", + "data": "1985-102T23:20:5/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - too short end datetime", + "data": "1985-102T23:20:50/1985-176T10:30:0", + "valid": false + }, + { + "description": "Invalid - too long start datetime", + "data": "1985-102T23:20:500/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - too long end datetime", + "data": "1985-102T23:20:50/1985-176T10:30:000", + "valid": false + }, + { + "description": "Invalid - extra character at start", + "data": "X1985-102T23:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - extra character at end", + "data": "1985-102T23:20:50/1985-176T10:30:00X", + "valid": false + }, + { + "description": "Invalid - extra character in middle", + "data": "1985-102T23:20:50X/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - space in start date", + "data": "1985- 102T23:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - space in end date", + "data": "1985-102T23:20:50/1985- 176T10:30:00", + "valid": false + }, + { + "description": "Invalid - space in start time", + "data": "1985-102T23: 20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - space in end time", + "data": "1985-102T23:20:50/1985-176T10: 30:00", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/interval/start-end-week-basic/v1.test.json b/test/schemas/iso/datetime/2019/interval/start-end-week-basic/v1.test.json new file mode 100644 index 00000000..702ac929 --- /dev/null +++ b/test/schemas/iso/datetime/2019/interval/start-end-week-basic/v1.test.json @@ -0,0 +1,425 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/interval/start-end-week-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985155232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - week 15 day 5 to week 26 day 1 of 1985", + "data": "1985W155T232050/1985W261T103000", + "valid": true + }, + { + "description": "Valid - week 01 day 1 to week 52 day 7 of 2000", + "data": "2000W011T000000/2000W527T235959", + "valid": true + }, + { + "description": "Valid - week 01 day 1 to week 52 day 7 of 2023", + "data": "2023W011T120000/2023W527T180000", + "valid": true + }, + { + "description": "Valid - same week interval", + "data": "2023W151T120000/2023W155T180000", + "valid": true + }, + { + "description": "Valid - cross year boundary", + "data": "2022W527T230000/2023W011T010000", + "valid": true + }, + { + "description": "Valid - with leap second (60 seconds)", + "data": "1985W155T235960/1985W156T000000", + "valid": true + }, + { + "description": "Valid - midnight to midnight", + "data": "2023W011T000000/2023W012T000000", + "valid": true + }, + { + "description": "Valid - week 53 (some years have 53 weeks)", + "data": "2020W531T000000/2021W011T000000", + "valid": true + }, + { + "description": "Invalid - missing separator slash", + "data": "1985W155T2320501985W261T103000", + "valid": false + }, + { + "description": "Invalid - extended format (contains hyphens)", + "data": "1985-W15-5T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - mixed formats (basic start, extended end)", + "data": "1985W155T232050/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - mixed formats (extended start, basic end)", + "data": "1985-W15-5T23:20:50/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - missing end datetime", + "data": "1985W155T232050/", + "valid": false + }, + { + "description": "Invalid - missing start datetime", + "data": "/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - only separator", + "data": "/", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - spaces around separator", + "data": "1985W155T232050 / 1985W261T103000", + "valid": false + }, + { + "description": "Invalid - start week 00", + "data": "1985W005T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - start week 54", + "data": "1985W545T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - end week 00", + "data": "1985W155T232050/1985W001T103000", + "valid": false + }, + { + "description": "Invalid - end week 54", + "data": "1985W155T232050/1985W541T103000", + "valid": false + }, + { + "description": "Invalid - start day 0", + "data": "1985W150T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - start day 8", + "data": "1985W158T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - end day 0", + "data": "1985W155T232050/1985W260T103000", + "valid": false + }, + { + "description": "Invalid - end day 8", + "data": "1985W155T232050/1985W268T103000", + "valid": false + }, + { + "description": "Invalid - start hour 24", + "data": "1985W155T242050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - end hour 24", + "data": "1985W155T232050/1985W261T243000", + "valid": false + }, + { + "description": "Invalid - start minute 60", + "data": "1985W155T236050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - end minute 60", + "data": "1985W155T232050/1985W261T106000", + "valid": false + }, + { + "description": "Invalid - start second 61", + "data": "1985W155T232061/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - end second 61", + "data": "1985W155T232050/1985W261T103061", + "valid": false + }, + { + "description": "Invalid - missing T separator in start", + "data": "1985W155232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - missing T separator in end", + "data": "1985W155T232050/1985W261103000", + "valid": false + }, + { + "description": "Invalid - lowercase t in start", + "data": "1985W155t232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - lowercase t in end", + "data": "1985W155T232050/1985W261t103000", + "valid": false + }, + { + "description": "Invalid - lowercase w in start", + "data": "1985w155T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - lowercase w in end", + "data": "1985W155T232050/1985w261T103000", + "valid": false + }, + { + "description": "Invalid - missing W designator in start", + "data": "1985155T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - missing W designator in end", + "data": "1985W155T232050/1985261T103000", + "valid": false + }, + { + "description": "Invalid - duration instead of end datetime", + "data": "1985W155T232050/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - duration instead of start datetime", + "data": "P1Y2M15DT12H30M0S/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - calendar date instead of week in start", + "data": "19850412T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - calendar date instead of week in end", + "data": "1985W155T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - ordinal date instead of week in start", + "data": "1985102T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - ordinal date instead of week in end", + "data": "1985W155T232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - letters in start date", + "data": "ABCDW155T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - letters in end date", + "data": "1985W155T232050/ABCDW261T103000", + "valid": false + }, + { + "description": "Invalid - double slash separator", + "data": "1985W155T232050//1985W261T103000", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "1985W155T232050\\1985W261T103000", + "valid": false + }, + { + "description": "Valid - reversed order (end before start is syntactically valid per ISO 8601)", + "data": "1985W261T103000/1985W155T232050", + "valid": true + }, + { + "description": "Invalid - start hour 99", + "data": "1985W155T992050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - end hour 99", + "data": "1985W155T232050/1985W261T993000", + "valid": false + }, + { + "description": "Invalid - start minute 99", + "data": "1985W155T239950/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - end minute 99", + "data": "1985W155T232050/1985W261T109900", + "valid": false + }, + { + "description": "Invalid - start second 99", + "data": "1985W155T232099/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - end second 99", + "data": "1985W155T232050/1985W261T103099", + "valid": false + }, + { + "description": "Invalid - letter in start year", + "data": "I985W155T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - letter in end year", + "data": "1985W155T232050/I985W261T103000", + "valid": false + }, + { + "description": "Invalid - letter in start week", + "data": "1985WI55T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - letter in end week", + "data": "1985W155T232050/1985WI61T103000", + "valid": false + }, + { + "description": "Invalid - letter in start day", + "data": "1985W15IT232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - letter in end day", + "data": "1985W155T232050/1985W26IT103000", + "valid": false + }, + { + "description": "Invalid - letter in start hour", + "data": "1985W155TI32050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - letter in end hour", + "data": "1985W155T232050/1985W261TI03000", + "valid": false + }, + { + "description": "Invalid - letter in start minute", + "data": "1985W155T23I050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - letter in end minute", + "data": "1985W155T232050/1985W261T10I000", + "valid": false + }, + { + "description": "Invalid - letter in start second", + "data": "1985W155T2320I0/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - letter in end second", + "data": "1985W155T232050/1985W261T1030I0", + "valid": false + }, + { + "description": "Invalid - too short start datetime", + "data": "1985W155T23205/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - too short end datetime", + "data": "1985W155T232050/1985W261T10300", + "valid": false + }, + { + "description": "Invalid - too long start datetime", + "data": "1985W155T2320500/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - too long end datetime", + "data": "1985W155T232050/1985W261T1030000", + "valid": false + }, + { + "description": "Invalid - extra character at start", + "data": "X1985W155T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - extra character at end", + "data": "1985W155T232050/1985W261T103000X", + "valid": false + }, + { + "description": "Invalid - extra character in middle", + "data": "1985W155T232050X/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - space in start date", + "data": "1985W15 5T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - space in end date", + "data": "1985W155T232050/1985W26 1T103000", + "valid": false + }, + { + "description": "Invalid - space in start time", + "data": "1985W155T23 2050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - space in end time", + "data": "1985W155T232050/1985W261T10 3000", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/interval/start-end-week-extended/v1.test.json b/test/schemas/iso/datetime/2019/interval/start-end-week-extended/v1.test.json new file mode 100644 index 00000000..c9c34bb8 --- /dev/null +++ b/test/schemas/iso/datetime/2019/interval/start-end-week-extended/v1.test.json @@ -0,0 +1,445 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/interval/start-end-week-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985155232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - week 15 day 5 to week 26 day 1 of 1985", + "data": "1985-W15-5T23:20:50/1985-W26-1T10:30:00", + "valid": true + }, + { + "description": "Valid - week 01 day 1 to week 52 day 7 of 2000", + "data": "2000-W01-1T00:00:00/2000-W52-7T23:59:59", + "valid": true + }, + { + "description": "Valid - week 01 day 1 to week 52 day 7 of 2023", + "data": "2023-W01-1T12:00:00/2023-W52-7T18:00:00", + "valid": true + }, + { + "description": "Valid - same week interval", + "data": "2023-W15-1T12:00:00/2023-W15-5T18:00:00", + "valid": true + }, + { + "description": "Valid - cross year boundary", + "data": "2022-W52-7T23:00:00/2023-W01-1T01:00:00", + "valid": true + }, + { + "description": "Valid - with leap second (60 seconds)", + "data": "1985-W15-5T23:59:60/1985-W15-6T00:00:00", + "valid": true + }, + { + "description": "Valid - midnight to midnight", + "data": "2023-W01-1T00:00:00/2023-W01-2T00:00:00", + "valid": true + }, + { + "description": "Valid - week 53 (some years have 53 weeks)", + "data": "2020-W53-1T00:00:00/2021-W01-1T00:00:00", + "valid": true + }, + { + "description": "Invalid - missing separator slash", + "data": "1985-W15-5T23:20:501985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - basic format (no hyphens or colons)", + "data": "1985W155T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - mixed formats (basic start, extended end)", + "data": "1985W155T232050/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - mixed formats (extended start, basic end)", + "data": "1985-W15-5T23:20:50/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - missing end datetime", + "data": "1985-W15-5T23:20:50/", + "valid": false + }, + { + "description": "Invalid - missing start datetime", + "data": "/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - only separator", + "data": "/", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - spaces around separator", + "data": "1985-W15-5T23:20:50 / 1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - start week 00", + "data": "1985-W00-5T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - start week 54", + "data": "1985-W54-5T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - end week 00", + "data": "1985-W15-5T23:20:50/1985-W00-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - end week 54", + "data": "1985-W15-5T23:20:50/1985-W54-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - start day 0", + "data": "1985-W15-0T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - start day 8", + "data": "1985-W15-8T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - end day 0", + "data": "1985-W15-5T23:20:50/1985-W26-0T10:30:00", + "valid": false + }, + { + "description": "Invalid - end day 8", + "data": "1985-W15-5T23:20:50/1985-W26-8T10:30:00", + "valid": false + }, + { + "description": "Invalid - start hour 24", + "data": "1985-W15-5T24:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - end hour 24", + "data": "1985-W15-5T23:20:50/1985-W26-1T24:30:00", + "valid": false + }, + { + "description": "Invalid - start minute 60", + "data": "1985-W15-5T23:60:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - end minute 60", + "data": "1985-W15-5T23:20:50/1985-W26-1T10:60:00", + "valid": false + }, + { + "description": "Invalid - start second 61", + "data": "1985-W15-5T23:20:61/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - end second 61", + "data": "1985-W15-5T23:20:50/1985-W26-1T10:30:61", + "valid": false + }, + { + "description": "Invalid - missing T separator in start", + "data": "1985-W15-523:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - missing T separator in end", + "data": "1985-W15-5T23:20:50/1985-W26-110:30:00", + "valid": false + }, + { + "description": "Invalid - lowercase t in start", + "data": "1985-W15-5t23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - lowercase t in end", + "data": "1985-W15-5T23:20:50/1985-W26-1t10:30:00", + "valid": false + }, + { + "description": "Invalid - lowercase w in start", + "data": "1985-w15-5T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - lowercase w in end", + "data": "1985-W15-5T23:20:50/1985-w26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - missing W designator in start", + "data": "1985-15-5T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - missing W designator in end", + "data": "1985-W15-5T23:20:50/1985-26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - duration instead of end datetime", + "data": "1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - duration instead of start datetime", + "data": "P1Y2M15DT12H30M0S/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - calendar date instead of week in start", + "data": "1985-04-12T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - calendar date instead of week in end", + "data": "1985-W15-5T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - ordinal date instead of week in start", + "data": "1985-102T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - ordinal date instead of week in end", + "data": "1985-W15-5T23:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - missing hyphen in start date", + "data": "1985W155T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - missing hyphen in end date", + "data": "1985-W15-5T23:20:50/1985W261T10:30:00", + "valid": false + }, + { + "description": "Invalid - missing colon in start time", + "data": "1985-W15-5T232050/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - missing colon in end time", + "data": "1985-W15-5T23:20:50/1985-W26-1T103000", + "valid": false + }, + { + "description": "Invalid - letters in start date", + "data": "ABCD-W15-5T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - letters in end date", + "data": "1985-W15-5T23:20:50/ABCD-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - double slash separator", + "data": "1985-W15-5T23:20:50//1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "1985-W15-5T23:20:50\\1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Valid - reversed order (end before start is syntactically valid per ISO 8601)", + "data": "1985-W26-1T10:30:00/1985-W15-5T23:20:50", + "valid": true + }, + { + "description": "Invalid - start hour 99", + "data": "1985-W15-5T99:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - end hour 99", + "data": "1985-W15-5T23:20:50/1985-W26-1T99:30:00", + "valid": false + }, + { + "description": "Invalid - start minute 99", + "data": "1985-W15-5T23:99:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - end minute 99", + "data": "1985-W15-5T23:20:50/1985-W26-1T10:99:00", + "valid": false + }, + { + "description": "Invalid - start second 99", + "data": "1985-W15-5T23:20:99/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - end second 99", + "data": "1985-W15-5T23:20:50/1985-W26-1T10:30:99", + "valid": false + }, + { + "description": "Invalid - letter in start year", + "data": "I985-W15-5T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in end year", + "data": "1985-W15-5T23:20:50/I985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in start week", + "data": "1985-WI5-5T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in end week", + "data": "1985-W15-5T23:20:50/1985-WI6-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in start day", + "data": "1985-W15-IT23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in end day", + "data": "1985-W15-5T23:20:50/1985-W26-IT10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in start hour", + "data": "1985-W15-5TI3:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in end hour", + "data": "1985-W15-5T23:20:50/1985-W26-1TI0:30:00", + "valid": false + }, + { + "description": "Invalid - letter in start minute", + "data": "1985-W15-5T23:I0:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in end minute", + "data": "1985-W15-5T23:20:50/1985-W26-1T10:I0:00", + "valid": false + }, + { + "description": "Invalid - letter in start second", + "data": "1985-W15-5T23:20:I0/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in end second", + "data": "1985-W15-5T23:20:50/1985-W26-1T10:30:I0", + "valid": false + }, + { + "description": "Invalid - too short start datetime", + "data": "1985-W15-5T23:20:5/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - too short end datetime", + "data": "1985-W15-5T23:20:50/1985-W26-1T10:30:0", + "valid": false + }, + { + "description": "Invalid - too long start datetime", + "data": "1985-W15-5T23:20:500/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - too long end datetime", + "data": "1985-W15-5T23:20:50/1985-W26-1T10:30:000", + "valid": false + }, + { + "description": "Invalid - extra character at start", + "data": "X1985-W15-5T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - extra character at end", + "data": "1985-W15-5T23:20:50/1985-W26-1T10:30:00X", + "valid": false + }, + { + "description": "Invalid - extra character in middle", + "data": "1985-W15-5T23:20:50X/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - space in start date", + "data": "1985-W15- 5T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - space in end date", + "data": "1985-W15-5T23:20:50/1985-W26- 1T10:30:00", + "valid": false + }, + { + "description": "Invalid - space in start time", + "data": "1985-W15-5T23: 20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - space in end time", + "data": "1985-W15-5T23:20:50/1985-W26-1T10: 30:00", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/recurring/duration-end-calendar-basic/v1.test.json b/test/schemas/iso/datetime/2019/recurring/duration-end-calendar-basic/v1.test.json new file mode 100644 index 00000000..f73d4bc8 --- /dev/null +++ b/test/schemas/iso/datetime/2019/recurring/duration-end-calendar-basic/v1.test.json @@ -0,0 +1,480 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/recurring/duration-end-calendar-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 19850412232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - R12 with interval", + "data": "R12/P1Y2M15DT12H30M0S/19850412T232050", + "valid": true + }, + { + "description": "Valid - R without number (unbounded)", + "data": "R/P1Y2M15DT12H30M0S/19850412T232050", + "valid": true + }, + { + "description": "Valid - R0 (zero recurrences)", + "data": "R0/P1Y2M15DT12H30M0S/19850412T232050", + "valid": true + }, + { + "description": "Valid - R9999 (large number)", + "data": "R9999/P1Y2M15DT12H30M0S/19850412T232050", + "valid": true + }, + { + "description": "Valid - R1 (single recurrence)", + "data": "R1/P1Y2M15DT12H30M0S/19850412T232050", + "valid": true + }, + { + "description": "Valid - R52 weekly for a year", + "data": "R52/P1Y2M15DT12H30M0S/19850412T232050", + "valid": true + }, + { + "description": "Valid - R24 every hour for a day", + "data": "R24/P1Y2M15DT12H30M0S/19850412T232050", + "valid": true + }, + { + "description": "Valid - R7 daily for a week", + "data": "R7/P1Y2M15DT12H30M0S/19850412T232050", + "valid": true + }, + { + "description": "Invalid - missing R prefix", + "data": "12/P1Y2M15DT12H30M0S/19850412T232050", + "valid": false + }, + { + "description": "Invalid - lowercase r prefix", + "data": "r12/P1Y2M15DT12H30M0S/19850412T232050", + "valid": false + }, + { + "description": "Invalid - space after R", + "data": "R 12/P1Y2M15DT12H30M0S/19850412T232050", + "valid": false + }, + { + "description": "Invalid - negative recurrence number", + "data": "R-5/P1Y2M15DT12H30M0S/19850412T232050", + "valid": false + }, + { + "description": "Invalid - decimal recurrence number", + "data": "R12.5/P1Y2M15DT12H30M0S/19850412T232050", + "valid": false + }, + { + "description": "Invalid - double R", + "data": "RR12/P1Y2M15DT12H30M0S/19850412T232050", + "valid": false + }, + { + "description": "Invalid - R with plus sign", + "data": "R+12/P1Y2M15DT12H30M0S/19850412T232050", + "valid": false + }, + { + "description": "Valid - full duration", + "data": "R12/P1Y2M15DT12H30M0S/19850412T232050", + "valid": true + }, + { + "description": "Valid - only years duration", + "data": "R12/P1Y/20001231T235959", + "valid": true + }, + { + "description": "Valid - time duration", + "data": "R12/PT5H30M/20230615T180000", + "valid": true + }, + { + "description": "Valid - weeks duration", + "data": "R12/P2W/19850101T000000", + "valid": true + }, + { + "description": "Invalid - extended format datetime", + "data": "R12/P1Y/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - missing slash", + "data": "R12/P1Y19850412T232050", + "valid": false + }, + { + "description": "Invalid - start datetime instead of duration", + "data": "R12/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - empty duration", + "data": "R12/P/19850412T232050", + "valid": false + }, + { + "description": "Invalid - ordinal date end", + "data": "R12/P1Y/1985102T232050", + "valid": false + }, + { + "description": "Invalid - week date end", + "data": "R12/P1Y/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - end month 13", + "data": "R12/P1Y/19851312T232050", + "valid": false + }, + { + "description": "Invalid - end day 32", + "data": "R12/P1Y/19850432T232050", + "valid": false + }, + { + "description": "Invalid - end 31 April", + "data": "R12/P1Y/19850431T232050", + "valid": false + }, + { + "description": "Valid - leap second in end", + "data": "R12/P1D/19850412T235960", + "valid": true + }, + { + "description": "Valid - 29 February end", + "data": "R12/P1Y/20230229T120000", + "valid": true + }, + { + "description": "Invalid - end month 00", + "data": "R12/P1Y/19850012T232050", + "valid": false + }, + { + "description": "Invalid - end day 00", + "data": "R12/P1Y/19850400T232050", + "valid": false + }, + { + "description": "Invalid - end 30 February", + "data": "R12/P1Y/20230230T120000", + "valid": false + }, + { + "description": "Invalid - end 31 June", + "data": "R12/P1Y/19850631T120000", + "valid": false + }, + { + "description": "Invalid - end 31 September", + "data": "R12/P1Y/19850931T120000", + "valid": false + }, + { + "description": "Invalid - end 31 November", + "data": "R12/P1Y/19851131T120000", + "valid": false + }, + { + "description": "Invalid - end hour 24", + "data": "R12/P1Y/19850412T242050", + "valid": false + }, + { + "description": "Invalid - end hour 25", + "data": "R12/P1Y/19850412T252050", + "valid": false + }, + { + "description": "Invalid - end hour 99", + "data": "R12/P1Y/19850412T992050", + "valid": false + }, + { + "description": "Invalid - end minute 60", + "data": "R12/P1Y/19850412T236050", + "valid": false + }, + { + "description": "Invalid - end minute 99", + "data": "R12/P1Y/19850412T239950", + "valid": false + }, + { + "description": "Invalid - end second 61", + "data": "R12/P1Y/19850412T232061", + "valid": false + }, + { + "description": "Invalid - end second 99", + "data": "R12/P1Y/19850412T232099", + "valid": false + }, + { + "description": "Invalid - missing T separator in end", + "data": "R12/P1Y/19850412232050", + "valid": false + }, + { + "description": "Invalid - lowercase t in end", + "data": "R12/P1Y/19850412t232050", + "valid": false + }, + { + "description": "Invalid - duration without P prefix", + "data": "R12/1Y2M15DT12H30M0S/19850412T232050", + "valid": false + }, + { + "description": "Invalid - lowercase p in duration", + "data": "R12/p1Y/19850412T232050", + "valid": false + }, + { + "description": "Invalid - lowercase t in duration", + "data": "R12/P1Dt1H/19850412T232050", + "valid": false + }, + { + "description": "Invalid - empty time duration (only PT)", + "data": "R12/PT/19850412T232050", + "valid": false + }, + { + "description": "Invalid - double slash separator", + "data": "R12/P1Y//19850412T232050", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "R12/P1Y\\19850412T232050", + "valid": false + }, + { + "description": "Valid - zero duration components", + "data": "R12/P0Y0M0DT0H0M0S/20230101T000000", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in years", + "data": "R12/P1.5Y/20230101T120000", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in months", + "data": "R12/P3M15DT2.5H/20230101T120000", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in days", + "data": "R12/P10.5D/20230101T120000", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in hours", + "data": "R12/PT2.5H/20230101T120000", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in minutes", + "data": "R12/PT45.5M/20230101T120000", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in seconds", + "data": "R12/PT10.123S/20230101T120000", + "valid": true + }, + { + "description": "Valid - decimal weeks", + "data": "R12/P1.5W/20230101T120000", + "valid": true + }, + { + "description": "Invalid - duration wrong component order (M before Y)", + "data": "R12/P6M3Y/19850412T232050", + "valid": false + }, + { + "description": "Invalid - duration wrong component order (D before M)", + "data": "R12/P15D6M/19850412T232050", + "valid": false + }, + { + "description": "Invalid - duration time without T designator", + "data": "R12/P1D1H/19850412T232050", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with other units", + "data": "R12/P1W2D/19850412T232050", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with years", + "data": "R12/P1Y2W/19850412T232050", + "valid": false + }, + { + "description": "Invalid - duration weeks with time", + "data": "R12/P1WT1H/19850412T232050", + "valid": false + }, + { + "description": "Valid - large year value", + "data": "R12/P500Y/20230101T000000", + "valid": true + }, + { + "description": "Valid - large day value", + "data": "R12/P500D/20230101T000000", + "valid": true + }, + { + "description": "Valid - large hour value", + "data": "R12/PT100H/20230101T000000", + "valid": true + }, + { + "description": "Valid - 13 months", + "data": "R12/P13M/20230101T000000", + "valid": true + }, + { + "description": "Invalid - too short", + "data": "R12/P1Y/19850412T23205", + "valid": false + }, + { + "description": "Invalid - too long", + "data": "R12/P1Y/19850412T2320500", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "R12/P1Y/19850412T232050X", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning of duration", + "data": "R12/XP1Y/19850412T232050", + "valid": false + }, + { + "description": "Invalid - spaces in datetime", + "data": "R12/P1Y/1985 04 12T23 20 50", + "valid": false + }, + { + "description": "Invalid - letter in year", + "data": "R12/P1Y/I9850412T232050", + "valid": false + }, + { + "description": "Invalid - letter in month", + "data": "R12/P1Y/1985O412T232050", + "valid": false + }, + { + "description": "Invalid - letter in day", + "data": "R12/P1Y/198504I2T232050", + "valid": false + }, + { + "description": "Invalid - letter in hour", + "data": "R12/P1Y/19850412TI32050", + "valid": false + }, + { + "description": "Invalid - letter in minute", + "data": "R12/P1Y/19850412T23I050", + "valid": false + }, + { + "description": "Invalid - letter in second", + "data": "R12/P1Y/19850412T2320I0", + "valid": false + }, + { + "description": "Invalid - duration with spaces", + "data": "R12/P1Y 2M/19850412T232050", + "valid": false + }, + { + "description": "Invalid - duration with extra slash", + "data": "R12/P1Y/2M/19850412T232050", + "valid": false + }, + { + "description": "Valid - PT60M (durations can exceed calendar limits)", + "data": "R12/PT60M/19850412T232050", + "valid": true + }, + { + "description": "Valid - PT60S (durations can exceed calendar limits)", + "data": "R12/PT60S/19850412T232050", + "valid": true + }, + { + "description": "Valid - PT25H (durations can exceed calendar limits)", + "data": "R12/PT25H/19850412T232050", + "valid": true + }, + { + "description": "Valid - P32D (durations can exceed calendar limits)", + "data": "R12/P32D/19850412T232050", + "valid": true + }, + { + "description": "Invalid - missing end datetime", + "data": "R12/P1Y2M15DT12H30M0S/", + "valid": false + }, + { + "description": "Invalid - only separator", + "data": "R12//", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "R12/", + "valid": false + }, + { + "description": "Invalid - spaces around separator", + "data": "R12/P1Y / 19850412T232050", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/recurring/duration-end-calendar-extended/v1.test.json b/test/schemas/iso/datetime/2019/recurring/duration-end-calendar-extended/v1.test.json new file mode 100644 index 00000000..c4e96015 --- /dev/null +++ b/test/schemas/iso/datetime/2019/recurring/duration-end-calendar-extended/v1.test.json @@ -0,0 +1,455 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/recurring/duration-end-calendar-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 19850412232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - R12 with interval", + "data": "R12/P1Y2M15DT12H30M0S/1985-04-12T23:20:50", + "valid": true + }, + { + "description": "Valid - R without number (unbounded)", + "data": "R/P1Y2M15DT12H30M0S/1985-04-12T23:20:50", + "valid": true + }, + { + "description": "Valid - R0 (zero recurrences)", + "data": "R0/P1Y2M15DT12H30M0S/1985-04-12T23:20:50", + "valid": true + }, + { + "description": "Valid - R9999 (large number)", + "data": "R9999/P1Y2M15DT12H30M0S/1985-04-12T23:20:50", + "valid": true + }, + { + "description": "Valid - R1 (single recurrence)", + "data": "R1/P1Y2M15DT12H30M0S/1985-04-12T23:20:50", + "valid": true + }, + { + "description": "Valid - R52 weekly for a year", + "data": "R52/P1Y2M15DT12H30M0S/1985-04-12T23:20:50", + "valid": true + }, + { + "description": "Valid - R24 every hour for a day", + "data": "R24/P1Y2M15DT12H30M0S/1985-04-12T23:20:50", + "valid": true + }, + { + "description": "Valid - R7 daily for a week", + "data": "R7/P1Y2M15DT12H30M0S/1985-04-12T23:20:50", + "valid": true + }, + { + "description": "Invalid - missing R prefix", + "data": "12/P1Y2M15DT12H30M0S/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - lowercase r prefix", + "data": "r12/P1Y2M15DT12H30M0S/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - space after R", + "data": "R 12/P1Y2M15DT12H30M0S/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - negative recurrence number", + "data": "R-5/P1Y2M15DT12H30M0S/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - decimal recurrence number", + "data": "R12.5/P1Y2M15DT12H30M0S/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - double R", + "data": "RR12/P1Y2M15DT12H30M0S/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - R with plus sign", + "data": "R+12/P1Y2M15DT12H30M0S/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Valid - full duration", + "data": "R12/P1Y2M15DT12H30M0S/1985-04-12T23:20:50", + "valid": true + }, + { + "description": "Valid - only years duration", + "data": "R12/P1Y/2000-12-31T23:59:59", + "valid": true + }, + { + "description": "Valid - time duration", + "data": "R12/PT5H30M/2023-06-15T18:00:00", + "valid": true + }, + { + "description": "Valid - weeks duration", + "data": "R12/P2W/1985-01-01T00:00:00", + "valid": true + }, + { + "description": "Invalid - basic format datetime", + "data": "R12/P1Y/19850412T232050", + "valid": false + }, + { + "description": "Invalid - missing slash", + "data": "R12/P1Y1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - start datetime instead of duration", + "data": "R12/1985-04-12T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - empty duration", + "data": "R12/P/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - ordinal date end", + "data": "R12/P1Y/1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - week date end", + "data": "R12/P1Y/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - end month 13", + "data": "R12/P1Y/1985-13-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - end day 32", + "data": "R12/P1Y/1985-04-32T23:20:50", + "valid": false + }, + { + "description": "Invalid - end 31 April", + "data": "R12/P1Y/1985-04-31T23:20:50", + "valid": false + }, + { + "description": "Valid - leap second in end", + "data": "R12/P1D/1985-04-12T23:59:60", + "valid": true + }, + { + "description": "Valid - 29 February end", + "data": "R12/P1Y/2023-02-29T12:00:00", + "valid": true + }, + { + "description": "Invalid - end month 00", + "data": "R12/P1Y/1985-00-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - end day 00", + "data": "R12/P1Y/1985-04-00T23:20:50", + "valid": false + }, + { + "description": "Invalid - end 30 February", + "data": "R12/P1Y/2023-02-30T12:00:00", + "valid": false + }, + { + "description": "Invalid - end 31 June", + "data": "R12/P1Y/1985-06-31T12:00:00", + "valid": false + }, + { + "description": "Invalid - end 31 September", + "data": "R12/P1Y/1985-09-31T12:00:00", + "valid": false + }, + { + "description": "Invalid - end 31 November", + "data": "R12/P1Y/1985-11-31T12:00:00", + "valid": false + }, + { + "description": "Invalid - end hour 24", + "data": "R12/P1Y/1985-04-12T24:20:50", + "valid": false + }, + { + "description": "Invalid - end hour 25", + "data": "R12/P1Y/1985-04-12T25:20:50", + "valid": false + }, + { + "description": "Invalid - end hour 99", + "data": "R12/P1Y/1985-04-12T99:20:50", + "valid": false + }, + { + "description": "Invalid - end minute 60", + "data": "R12/P1Y/1985-04-12T23:60:50", + "valid": false + }, + { + "description": "Invalid - end minute 99", + "data": "R12/P1Y/1985-04-12T23:99:50", + "valid": false + }, + { + "description": "Invalid - end second 61", + "data": "R12/P1Y/1985-04-12T23:20:61", + "valid": false + }, + { + "description": "Invalid - end second 99", + "data": "R12/P1Y/1985-04-12T23:20:99", + "valid": false + }, + { + "description": "Invalid - missing T separator in end", + "data": "R12/P1Y/1985-04-12 23:20:50", + "valid": false + }, + { + "description": "Invalid - lowercase t in end", + "data": "R12/P1Y/1985-04-12t23:20:50", + "valid": false + }, + { + "description": "Invalid - duration without P prefix", + "data": "R12/1Y2M15DT12H30M0S/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - lowercase p in duration", + "data": "R12/p1Y/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - lowercase t in duration", + "data": "R12/P1Dt1H/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - empty time duration (only PT)", + "data": "R12/PT/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - double slash separator", + "data": "R12/P1Y//1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "R12/P1Y\\1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Valid - zero duration components", + "data": "R12/P0Y0M0DT0H0M0S/2023-01-01T00:00:00", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in years", + "data": "R12/P1.5Y/2023-01-01T12:00:00", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in months", + "data": "R12/P3M15DT2.5H/2023-01-01T12:00:00", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in days", + "data": "R12/P10.5D/2023-01-01T12:00:00", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in hours", + "data": "R12/PT2.5H/2023-01-01T12:00:00", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in minutes", + "data": "R12/PT45.5M/2023-01-01T12:00:00", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in seconds", + "data": "R12/PT10.123S/2023-01-01T12:00:00", + "valid": true + }, + { + "description": "Valid - decimal weeks", + "data": "R12/P1.5W/2023-01-01T12:00:00", + "valid": true + }, + { + "description": "Invalid - duration wrong component order (M before Y)", + "data": "R12/P6M3Y/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration wrong component order (D before M)", + "data": "R12/P15D6M/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration time without T designator", + "data": "R12/P1D1H/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with other units", + "data": "R12/P1W2D/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with years", + "data": "R12/P1Y2W/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration weeks with time", + "data": "R12/P1WT1H/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Valid - large year value", + "data": "R12/P500Y/2023-01-01T00:00:00", + "valid": true + }, + { + "description": "Valid - large day value", + "data": "R12/P500D/2023-01-01T00:00:00", + "valid": true + }, + { + "description": "Valid - large hour value", + "data": "R12/PT100H/2023-01-01T00:00:00", + "valid": true + }, + { + "description": "Valid - 13 months", + "data": "R12/P13M/2023-01-01T00:00:00", + "valid": true + }, + { + "description": "Invalid - letter in year", + "data": "R12/P1Y/I985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - letter in month", + "data": "R12/P1Y/1985-O4-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - letter in day", + "data": "R12/P1Y/1985-04-I2T23:20:50", + "valid": false + }, + { + "description": "Invalid - letter in hour", + "data": "R12/P1Y/1985-04-12TI3:20:50", + "valid": false + }, + { + "description": "Invalid - letter in minute", + "data": "R12/P1Y/1985-04-12T23:I0:50", + "valid": false + }, + { + "description": "Invalid - letter in second", + "data": "R12/P1Y/1985-04-12T23:20:I0", + "valid": false + }, + { + "description": "Invalid - duration with spaces", + "data": "R12/P1Y 2M/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration with extra slash", + "data": "R12/P1Y/2M/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Valid - PT60M (durations can exceed calendar limits)", + "data": "R12/PT60M/1985-04-12T23:20:50", + "valid": true + }, + { + "description": "Valid - PT60S (durations can exceed calendar limits)", + "data": "R12/PT60S/1985-04-12T23:20:50", + "valid": true + }, + { + "description": "Valid - PT25H (durations can exceed calendar limits)", + "data": "R12/PT25H/1985-04-12T23:20:50", + "valid": true + }, + { + "description": "Valid - P32D (durations can exceed calendar limits)", + "data": "R12/P32D/1985-04-12T23:20:50", + "valid": true + }, + { + "description": "Invalid - missing end datetime", + "data": "R12/P1Y2M15DT12H30M0S/", + "valid": false + }, + { + "description": "Invalid - only separator", + "data": "R12//", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "R12/", + "valid": false + }, + { + "description": "Invalid - spaces around separator", + "data": "R12/P1Y / 1985-04-12T23:20:50", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/recurring/duration-end-ordinal-basic/v1.test.json b/test/schemas/iso/datetime/2019/recurring/duration-end-ordinal-basic/v1.test.json new file mode 100644 index 00000000..3218521e --- /dev/null +++ b/test/schemas/iso/datetime/2019/recurring/duration-end-ordinal-basic/v1.test.json @@ -0,0 +1,435 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/recurring/duration-end-ordinal-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985102232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - R12 with interval", + "data": "R12/P1Y2M15DT12H30M0S/1985102T232050", + "valid": true + }, + { + "description": "Valid - R without number (unbounded)", + "data": "R/P1Y2M15DT12H30M0S/1985102T232050", + "valid": true + }, + { + "description": "Valid - R0 (zero recurrences)", + "data": "R0/P1Y2M15DT12H30M0S/1985102T232050", + "valid": true + }, + { + "description": "Valid - R9999 (large number)", + "data": "R9999/P1Y2M15DT12H30M0S/1985102T232050", + "valid": true + }, + { + "description": "Valid - R1 (single recurrence)", + "data": "R1/P1Y2M15DT12H30M0S/1985102T232050", + "valid": true + }, + { + "description": "Valid - R52 weekly for a year", + "data": "R52/P1Y2M15DT12H30M0S/1985102T232050", + "valid": true + }, + { + "description": "Valid - R24 every hour for a day", + "data": "R24/P1Y2M15DT12H30M0S/1985102T232050", + "valid": true + }, + { + "description": "Valid - R7 daily for a week", + "data": "R7/P1Y2M15DT12H30M0S/1985102T232050", + "valid": true + }, + { + "description": "Invalid - missing R prefix", + "data": "12/P1Y2M15DT12H30M0S/1985102T232050", + "valid": false + }, + { + "description": "Invalid - lowercase r prefix", + "data": "r12/P1Y2M15DT12H30M0S/1985102T232050", + "valid": false + }, + { + "description": "Invalid - space after R", + "data": "R 12/P1Y2M15DT12H30M0S/1985102T232050", + "valid": false + }, + { + "description": "Invalid - negative recurrence number", + "data": "R-5/P1Y2M15DT12H30M0S/1985102T232050", + "valid": false + }, + { + "description": "Invalid - decimal recurrence number", + "data": "R12.5/P1Y2M15DT12H30M0S/1985102T232050", + "valid": false + }, + { + "description": "Invalid - double R", + "data": "RR12/P1Y2M15DT12H30M0S/1985102T232050", + "valid": false + }, + { + "description": "Invalid - R with plus sign", + "data": "R+12/P1Y2M15DT12H30M0S/1985102T232050", + "valid": false + }, + { + "description": "Valid - full duration", + "data": "R12/P1Y2M15DT12H30M0S/1985102T232050", + "valid": true + }, + { + "description": "Valid - only years duration", + "data": "R12/P1Y/2000366T235959", + "valid": true + }, + { + "description": "Valid - time duration", + "data": "R12/PT5H30M/2023166T180000", + "valid": true + }, + { + "description": "Valid - weeks duration", + "data": "R12/P2W/1985001T000000", + "valid": true + }, + { + "description": "Invalid - extended format", + "data": "R12/P1Y/1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - missing slash", + "data": "R12/P1Y1985102T232050", + "valid": false + }, + { + "description": "Invalid - empty duration", + "data": "R12/P/1985102T232050", + "valid": false + }, + { + "description": "Invalid - calendar date end", + "data": "R12/P1Y/19850412T232050", + "valid": false + }, + { + "description": "Invalid - week date end", + "data": "R12/P1Y/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - day 000", + "data": "R12/P1Y/1985000T232050", + "valid": false + }, + { + "description": "Invalid - day 367", + "data": "R12/P1Y/1985367T232050", + "valid": false + }, + { + "description": "Valid - day 366", + "data": "R12/P1Y/2020366T000000", + "valid": true + }, + { + "description": "Invalid - end hour 24", + "data": "R12/P1Y/1985102T242050", + "valid": false + }, + { + "description": "Invalid - end hour 25", + "data": "R12/P1Y/1985102T252050", + "valid": false + }, + { + "description": "Invalid - end hour 99", + "data": "R12/P1Y/1985102T992050", + "valid": false + }, + { + "description": "Invalid - end minute 60", + "data": "R12/P1Y/1985102T236050", + "valid": false + }, + { + "description": "Invalid - end minute 99", + "data": "R12/P1Y/1985102T239950", + "valid": false + }, + { + "description": "Invalid - end second 61", + "data": "R12/P1Y/1985102T232061", + "valid": false + }, + { + "description": "Invalid - end second 99", + "data": "R12/P1Y/1985102T232099", + "valid": false + }, + { + "description": "Invalid - missing T separator in end", + "data": "R12/P1Y/1985102232050", + "valid": false + }, + { + "description": "Invalid - lowercase t in end", + "data": "R12/P1Y/1985102t232050", + "valid": false + }, + { + "description": "Invalid - duration without P prefix", + "data": "R12/1Y2M15DT12H30M0S/1985102T232050", + "valid": false + }, + { + "description": "Invalid - lowercase p in duration", + "data": "R12/p1Y/1985102T232050", + "valid": false + }, + { + "description": "Invalid - lowercase t in duration", + "data": "R12/P1Dt1H/1985102T232050", + "valid": false + }, + { + "description": "Invalid - empty time duration (only PT)", + "data": "R12/PT/1985102T232050", + "valid": false + }, + { + "description": "Invalid - double slash separator", + "data": "R12/P1Y//1985102T232050", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "R12/P1Y\\1985102T232050", + "valid": false + }, + { + "description": "Valid - leap second in end", + "data": "R12/P1D/1985102T235960", + "valid": true + }, + { + "description": "Valid - zero duration components", + "data": "R12/P0Y0M0DT0H0M0S/2023001T000000", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in years", + "data": "R12/P1.5Y/2023001T120000", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in months", + "data": "R12/P3M15DT2.5H/2023001T120000", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in days", + "data": "R12/P10.5D/2023001T120000", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in hours", + "data": "R12/PT2.5H/2023001T120000", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in minutes", + "data": "R12/PT45.5M/2023001T120000", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in seconds", + "data": "R12/PT10.123S/2023001T120000", + "valid": true + }, + { + "description": "Valid - decimal weeks", + "data": "R12/P1.5W/2023001T120000", + "valid": true + }, + { + "description": "Invalid - duration wrong component order (M before Y)", + "data": "R12/P6M3Y/1985102T232050", + "valid": false + }, + { + "description": "Invalid - duration wrong component order (D before M)", + "data": "R12/P15D6M/1985102T232050", + "valid": false + }, + { + "description": "Invalid - duration time without T designator", + "data": "R12/P1D1H/1985102T232050", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with other units", + "data": "R12/P1W2D/1985102T232050", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with years", + "data": "R12/P1Y2W/1985102T232050", + "valid": false + }, + { + "description": "Invalid - duration weeks with time", + "data": "R12/P1WT1H/1985102T232050", + "valid": false + }, + { + "description": "Valid - large year value", + "data": "R12/P500Y/2023001T000000", + "valid": true + }, + { + "description": "Valid - large day value", + "data": "R12/P500D/2023001T000000", + "valid": true + }, + { + "description": "Valid - large hour value", + "data": "R12/PT100H/2023001T000000", + "valid": true + }, + { + "description": "Valid - 13 months", + "data": "R12/P13M/2023001T000000", + "valid": true + }, + { + "description": "Invalid - too short", + "data": "R12/P1Y/1985102T23205", + "valid": false + }, + { + "description": "Invalid - too long", + "data": "R12/P1Y/1985102T2320500", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "R12/P1Y/1985102T232050X", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning of duration", + "data": "R12/XP1Y/1985102T232050", + "valid": false + }, + { + "description": "Invalid - spaces in datetime", + "data": "R12/P1Y/1985 102T23 20 50", + "valid": false + }, + { + "description": "Invalid - letter in year", + "data": "R12/P1Y/I985102T232050", + "valid": false + }, + { + "description": "Invalid - letter in day", + "data": "R12/P1Y/1985I02T232050", + "valid": false + }, + { + "description": "Invalid - letter in hour", + "data": "R12/P1Y/1985102TI32050", + "valid": false + }, + { + "description": "Invalid - letter in minute", + "data": "R12/P1Y/1985102T23I050", + "valid": false + }, + { + "description": "Invalid - letter in second", + "data": "R12/P1Y/1985102T2320I0", + "valid": false + }, + { + "description": "Invalid - duration with spaces", + "data": "R12/P1Y 2M/1985102T232050", + "valid": false + }, + { + "description": "Invalid - duration with extra slash", + "data": "R12/P1Y/2M/1985102T232050", + "valid": false + }, + { + "description": "Valid - PT60M (durations can exceed calendar limits)", + "data": "R12/PT60M/1985102T232050", + "valid": true + }, + { + "description": "Valid - PT60S (durations can exceed calendar limits)", + "data": "R12/PT60S/1985102T232050", + "valid": true + }, + { + "description": "Valid - PT25H (durations can exceed calendar limits)", + "data": "R12/PT25H/1985102T232050", + "valid": true + }, + { + "description": "Valid - P32D (durations can exceed calendar limits)", + "data": "R12/P32D/1985102T232050", + "valid": true + }, + { + "description": "Invalid - missing end datetime", + "data": "R12/P1Y2M15DT12H30M0S/", + "valid": false + }, + { + "description": "Invalid - only separator", + "data": "R12//", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "R12/", + "valid": false + }, + { + "description": "Invalid - spaces around separator", + "data": "R12/P1Y / 1985102T232050", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/recurring/duration-end-ordinal-extended/v1.test.json b/test/schemas/iso/datetime/2019/recurring/duration-end-ordinal-extended/v1.test.json new file mode 100644 index 00000000..91c16cb9 --- /dev/null +++ b/test/schemas/iso/datetime/2019/recurring/duration-end-ordinal-extended/v1.test.json @@ -0,0 +1,410 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/recurring/duration-end-ordinal-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985102232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - R12 with interval", + "data": "R12/P1Y2M15DT12H30M0S/1985-102T23:20:50", + "valid": true + }, + { + "description": "Valid - R without number (unbounded)", + "data": "R/P1Y2M15DT12H30M0S/1985-102T23:20:50", + "valid": true + }, + { + "description": "Valid - R0 (zero recurrences)", + "data": "R0/P1Y2M15DT12H30M0S/1985-102T23:20:50", + "valid": true + }, + { + "description": "Valid - R9999 (large number)", + "data": "R9999/P1Y2M15DT12H30M0S/1985-102T23:20:50", + "valid": true + }, + { + "description": "Valid - R1 (single recurrence)", + "data": "R1/P1Y2M15DT12H30M0S/1985-102T23:20:50", + "valid": true + }, + { + "description": "Valid - R52 weekly for a year", + "data": "R52/P1Y2M15DT12H30M0S/1985-102T23:20:50", + "valid": true + }, + { + "description": "Valid - R24 every hour for a day", + "data": "R24/P1Y2M15DT12H30M0S/1985-102T23:20:50", + "valid": true + }, + { + "description": "Valid - R7 daily for a week", + "data": "R7/P1Y2M15DT12H30M0S/1985-102T23:20:50", + "valid": true + }, + { + "description": "Invalid - missing R prefix", + "data": "12/P1Y2M15DT12H30M0S/1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - lowercase r prefix", + "data": "r12/P1Y2M15DT12H30M0S/1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - space after R", + "data": "R 12/P1Y2M15DT12H30M0S/1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - negative recurrence number", + "data": "R-5/P1Y2M15DT12H30M0S/1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - decimal recurrence number", + "data": "R12.5/P1Y2M15DT12H30M0S/1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - double R", + "data": "RR12/P1Y2M15DT12H30M0S/1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - R with plus sign", + "data": "R+12/P1Y2M15DT12H30M0S/1985-102T23:20:50", + "valid": false + }, + { + "description": "Valid - full duration", + "data": "R12/P1Y2M15DT12H30M0S/1985-102T23:20:50", + "valid": true + }, + { + "description": "Valid - only years duration", + "data": "R12/P1Y/2000-366T23:59:59", + "valid": true + }, + { + "description": "Valid - time duration", + "data": "R12/PT5H30M/2023-166T18:00:00", + "valid": true + }, + { + "description": "Valid - weeks duration", + "data": "R12/P2W/1985-001T00:00:00", + "valid": true + }, + { + "description": "Invalid - basic format", + "data": "R12/P1Y/1985102T232050", + "valid": false + }, + { + "description": "Invalid - missing slash", + "data": "R12/P1Y1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - empty duration", + "data": "R12/P/1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - calendar date end", + "data": "R12/P1Y/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - week date end", + "data": "R12/P1Y/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - day 000", + "data": "R12/P1Y/1985-000T23:20:50", + "valid": false + }, + { + "description": "Invalid - day 367", + "data": "R12/P1Y/1985-367T23:20:50", + "valid": false + }, + { + "description": "Valid - day 366", + "data": "R12/P1Y/2020-366T00:00:00", + "valid": true + }, + { + "description": "Invalid - end hour 24", + "data": "R12/P1Y/1985-102T24:20:50", + "valid": false + }, + { + "description": "Invalid - end hour 25", + "data": "R12/P1Y/1985-102T25:20:50", + "valid": false + }, + { + "description": "Invalid - end hour 99", + "data": "R12/P1Y/1985-102T99:20:50", + "valid": false + }, + { + "description": "Invalid - end minute 60", + "data": "R12/P1Y/1985-102T23:60:50", + "valid": false + }, + { + "description": "Invalid - end minute 99", + "data": "R12/P1Y/1985-102T23:99:50", + "valid": false + }, + { + "description": "Invalid - end second 61", + "data": "R12/P1Y/1985-102T23:20:61", + "valid": false + }, + { + "description": "Invalid - end second 99", + "data": "R12/P1Y/1985-102T23:20:99", + "valid": false + }, + { + "description": "Invalid - missing T separator in end", + "data": "R12/P1Y/1985-102 23:20:50", + "valid": false + }, + { + "description": "Invalid - lowercase t in end", + "data": "R12/P1Y/1985-102t23:20:50", + "valid": false + }, + { + "description": "Invalid - duration without P prefix", + "data": "R12/1Y2M15DT12H30M0S/1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - lowercase p in duration", + "data": "R12/p1Y/1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - lowercase t in duration", + "data": "R12/P1Dt1H/1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - empty time duration (only PT)", + "data": "R12/PT/1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - double slash separator", + "data": "R12/P1Y//1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "R12/P1Y\\1985-102T23:20:50", + "valid": false + }, + { + "description": "Valid - leap second in end", + "data": "R12/P1D/1985-102T23:59:60", + "valid": true + }, + { + "description": "Valid - zero duration components", + "data": "R12/P0Y0M0DT0H0M0S/2023-001T00:00:00", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in years", + "data": "R12/P1.5Y/2023-001T12:00:00", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in months", + "data": "R12/P3M15DT2.5H/2023-001T12:00:00", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in days", + "data": "R12/P10.5D/2023-001T12:00:00", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in hours", + "data": "R12/PT2.5H/2023-001T12:00:00", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in minutes", + "data": "R12/PT45.5M/2023-001T12:00:00", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in seconds", + "data": "R12/PT10.123S/2023-001T12:00:00", + "valid": true + }, + { + "description": "Valid - decimal weeks", + "data": "R12/P1.5W/2023-001T12:00:00", + "valid": true + }, + { + "description": "Invalid - duration wrong component order (M before Y)", + "data": "R12/P6M3Y/1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration wrong component order (D before M)", + "data": "R12/P15D6M/1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration time without T designator", + "data": "R12/P1D1H/1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with other units", + "data": "R12/P1W2D/1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with years", + "data": "R12/P1Y2W/1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration weeks with time", + "data": "R12/P1WT1H/1985-102T23:20:50", + "valid": false + }, + { + "description": "Valid - large year value", + "data": "R12/P500Y/2023-001T00:00:00", + "valid": true + }, + { + "description": "Valid - large day value", + "data": "R12/P500D/2023-001T00:00:00", + "valid": true + }, + { + "description": "Valid - large hour value", + "data": "R12/PT100H/2023-001T00:00:00", + "valid": true + }, + { + "description": "Valid - 13 months", + "data": "R12/P13M/2023-001T00:00:00", + "valid": true + }, + { + "description": "Invalid - letter in year", + "data": "R12/P1Y/I985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - letter in day", + "data": "R12/P1Y/1985-I02T23:20:50", + "valid": false + }, + { + "description": "Invalid - letter in hour", + "data": "R12/P1Y/1985-102TI3:20:50", + "valid": false + }, + { + "description": "Invalid - letter in minute", + "data": "R12/P1Y/1985-102T23:I0:50", + "valid": false + }, + { + "description": "Invalid - letter in second", + "data": "R12/P1Y/1985-102T23:20:I0", + "valid": false + }, + { + "description": "Invalid - duration with spaces", + "data": "R12/P1Y 2M/1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration with extra slash", + "data": "R12/P1Y/2M/1985-102T23:20:50", + "valid": false + }, + { + "description": "Valid - PT60M (durations can exceed calendar limits)", + "data": "R12/PT60M/1985-102T23:20:50", + "valid": true + }, + { + "description": "Valid - PT60S (durations can exceed calendar limits)", + "data": "R12/PT60S/1985-102T23:20:50", + "valid": true + }, + { + "description": "Valid - PT25H (durations can exceed calendar limits)", + "data": "R12/PT25H/1985-102T23:20:50", + "valid": true + }, + { + "description": "Valid - P32D (durations can exceed calendar limits)", + "data": "R12/P32D/1985-102T23:20:50", + "valid": true + }, + { + "description": "Invalid - missing end datetime", + "data": "R12/P1Y2M15DT12H30M0S/", + "valid": false + }, + { + "description": "Invalid - only separator", + "data": "R12//", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "R12/", + "valid": false + }, + { + "description": "Invalid - spaces around separator", + "data": "R12/P1Y / 1985-102T23:20:50", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/recurring/duration-end-week-basic/v1.test.json b/test/schemas/iso/datetime/2019/recurring/duration-end-week-basic/v1.test.json new file mode 100644 index 00000000..b473c797 --- /dev/null +++ b/test/schemas/iso/datetime/2019/recurring/duration-end-week-basic/v1.test.json @@ -0,0 +1,465 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/recurring/duration-end-week-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985155232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - R12 with interval", + "data": "R12/P1Y2M15DT12H30M0S/1985W155T232050", + "valid": true + }, + { + "description": "Valid - R without number (unbounded)", + "data": "R/P1Y2M15DT12H30M0S/1985W155T232050", + "valid": true + }, + { + "description": "Valid - R0 (zero recurrences)", + "data": "R0/P1Y2M15DT12H30M0S/1985W155T232050", + "valid": true + }, + { + "description": "Valid - R9999 (large number)", + "data": "R9999/P1Y2M15DT12H30M0S/1985W155T232050", + "valid": true + }, + { + "description": "Valid - R1 (single recurrence)", + "data": "R1/P1Y2M15DT12H30M0S/1985W155T232050", + "valid": true + }, + { + "description": "Valid - R52 weekly for a year", + "data": "R52/P1Y2M15DT12H30M0S/1985W155T232050", + "valid": true + }, + { + "description": "Valid - R24 every hour for a day", + "data": "R24/P1Y2M15DT12H30M0S/1985W155T232050", + "valid": true + }, + { + "description": "Valid - R7 daily for a week", + "data": "R7/P1Y2M15DT12H30M0S/1985W155T232050", + "valid": true + }, + { + "description": "Invalid - missing R prefix", + "data": "12/P1Y2M15DT12H30M0S/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - lowercase r prefix", + "data": "r12/P1Y2M15DT12H30M0S/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - space after R", + "data": "R 12/P1Y2M15DT12H30M0S/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - negative recurrence number", + "data": "R-5/P1Y2M15DT12H30M0S/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - decimal recurrence number", + "data": "R12.5/P1Y2M15DT12H30M0S/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - double R", + "data": "RR12/P1Y2M15DT12H30M0S/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - R with plus sign", + "data": "R+12/P1Y2M15DT12H30M0S/1985W155T232050", + "valid": false + }, + { + "description": "Valid - full duration", + "data": "R12/P1Y2M15DT12H30M0S/1985W155T232050", + "valid": true + }, + { + "description": "Valid - only years duration", + "data": "R12/P1Y/2000W527T235959", + "valid": true + }, + { + "description": "Valid - time duration", + "data": "R12/PT5H30M/2023W241T180000", + "valid": true + }, + { + "description": "Valid - weeks duration", + "data": "R12/P2W/1985W011T000000", + "valid": true + }, + { + "description": "Invalid - extended format", + "data": "R12/P1Y/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - missing slash", + "data": "R12/P1Y1985W155T232050", + "valid": false + }, + { + "description": "Invalid - empty duration", + "data": "R12/P/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - calendar date end", + "data": "R12/P1Y/19850412T232050", + "valid": false + }, + { + "description": "Invalid - ordinal date end", + "data": "R12/P1Y/1985102T232050", + "valid": false + }, + { + "description": "Invalid - week 00", + "data": "R12/P1Y/1985W005T232050", + "valid": false + }, + { + "description": "Invalid - week 54", + "data": "R12/P1Y/1985W545T232050", + "valid": false + }, + { + "description": "Invalid - day 0", + "data": "R12/P1Y/1985W150T232050", + "valid": false + }, + { + "description": "Invalid - day 8", + "data": "R12/P1Y/1985W158T232050", + "valid": false + }, + { + "description": "Valid - week 53", + "data": "R12/P1Y/2020W531T000000", + "valid": true + }, + { + "description": "Invalid - end hour 24", + "data": "R12/P1Y/1985W155T242050", + "valid": false + }, + { + "description": "Invalid - end hour 25", + "data": "R12/P1Y/1985W155T252050", + "valid": false + }, + { + "description": "Invalid - end hour 99", + "data": "R12/P1Y/1985W155T992050", + "valid": false + }, + { + "description": "Invalid - end minute 60", + "data": "R12/P1Y/1985W155T236050", + "valid": false + }, + { + "description": "Invalid - end minute 99", + "data": "R12/P1Y/1985W155T239950", + "valid": false + }, + { + "description": "Invalid - end second 61", + "data": "R12/P1Y/1985W155T232061", + "valid": false + }, + { + "description": "Invalid - end second 99", + "data": "R12/P1Y/1985W155T232099", + "valid": false + }, + { + "description": "Invalid - missing T separator in end", + "data": "R12/P1Y/1985W155232050", + "valid": false + }, + { + "description": "Invalid - lowercase t in end", + "data": "R12/P1Y/1985W155t232050", + "valid": false + }, + { + "description": "Invalid - lowercase w in end", + "data": "R12/P1Y/1985w155T232050", + "valid": false + }, + { + "description": "Invalid - duration without P prefix", + "data": "R12/1Y2M15DT12H30M0S/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - lowercase p in duration", + "data": "R12/p1Y/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - lowercase t in duration", + "data": "R12/P1Dt1H/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - empty time duration (only PT)", + "data": "R12/PT/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - double slash separator", + "data": "R12/P1Y//1985W155T232050", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "R12/P1Y\\1985W155T232050", + "valid": false + }, + { + "description": "Valid - leap second in end", + "data": "R12/P1D/1985W155T235960", + "valid": true + }, + { + "description": "Valid - zero duration components", + "data": "R12/P0Y0M0DT0H0M0S/2023W011T000000", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in years", + "data": "R12/P1.5Y/2023W011T120000", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in months", + "data": "R12/P3M15DT2.5H/2023W011T120000", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in days", + "data": "R12/P10.5D/2023W011T120000", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in hours", + "data": "R12/PT2.5H/2023W011T120000", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in minutes", + "data": "R12/PT45.5M/2023W011T120000", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in seconds", + "data": "R12/PT10.123S/2023W011T120000", + "valid": true + }, + { + "description": "Valid - decimal weeks", + "data": "R12/P1.5W/2023W011T120000", + "valid": true + }, + { + "description": "Invalid - duration wrong component order (M before Y)", + "data": "R12/P6M3Y/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - duration wrong component order (D before M)", + "data": "R12/P15D6M/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - duration time without T designator", + "data": "R12/P1D1H/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with other units", + "data": "R12/P1W2D/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with years", + "data": "R12/P1Y2W/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - duration weeks with time", + "data": "R12/P1WT1H/1985W155T232050", + "valid": false + }, + { + "description": "Valid - large year value", + "data": "R12/P500Y/2023W011T000000", + "valid": true + }, + { + "description": "Valid - large day value", + "data": "R12/P500D/2023W011T000000", + "valid": true + }, + { + "description": "Valid - large hour value", + "data": "R12/PT100H/2023W011T000000", + "valid": true + }, + { + "description": "Valid - 13 months", + "data": "R12/P13M/2023W011T000000", + "valid": true + }, + { + "description": "Invalid - too short", + "data": "R12/P1Y/1985W155T23205", + "valid": false + }, + { + "description": "Invalid - too long", + "data": "R12/P1Y/1985W155T2320500", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "R12/P1Y/1985W155T232050X", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning of duration", + "data": "R12/XP1Y/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - spaces in datetime", + "data": "R12/P1Y/1985 W15 5T23 20 50", + "valid": false + }, + { + "description": "Invalid - letter in year", + "data": "R12/P1Y/I985W155T232050", + "valid": false + }, + { + "description": "Invalid - letter in week", + "data": "R12/P1Y/1985WI55T232050", + "valid": false + }, + { + "description": "Invalid - letter in day", + "data": "R12/P1Y/1985W15IT232050", + "valid": false + }, + { + "description": "Invalid - letter in hour", + "data": "R12/P1Y/1985W155TI32050", + "valid": false + }, + { + "description": "Invalid - letter in minute", + "data": "R12/P1Y/1985W155T23I050", + "valid": false + }, + { + "description": "Invalid - letter in second", + "data": "R12/P1Y/1985W155T2320I0", + "valid": false + }, + { + "description": "Invalid - duration with spaces", + "data": "R12/P1Y 2M/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - duration with extra slash", + "data": "R12/P1Y/2M/1985W155T232050", + "valid": false + }, + { + "description": "Valid - PT60M (durations can exceed calendar limits)", + "data": "R12/PT60M/1985W155T232050", + "valid": true + }, + { + "description": "Valid - PT60S (durations can exceed calendar limits)", + "data": "R12/PT60S/1985W155T232050", + "valid": true + }, + { + "description": "Valid - PT25H (durations can exceed calendar limits)", + "data": "R12/PT25H/1985W155T232050", + "valid": true + }, + { + "description": "Valid - P32D (durations can exceed calendar limits)", + "data": "R12/P32D/1985W155T232050", + "valid": true + }, + { + "description": "Invalid - missing end datetime", + "data": "R12/P1Y2M15DT12H30M0S/", + "valid": false + }, + { + "description": "Invalid - only separator", + "data": "R12//", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "R12/", + "valid": false + }, + { + "description": "Invalid - spaces around separator", + "data": "R12/P1Y / 1985W155T232050", + "valid": false + }, + { + "description": "Valid - week 01 day 1", + "data": "R12/P1Y/2023W011T120000", + "valid": true + }, + { + "description": "Valid - week 52 day 7", + "data": "R12/P1Y/2023W527T120000", + "valid": true + } + ] +} diff --git a/test/schemas/iso/datetime/2019/recurring/duration-end-week-extended/v1.test.json b/test/schemas/iso/datetime/2019/recurring/duration-end-week-extended/v1.test.json new file mode 100644 index 00000000..44162ed5 --- /dev/null +++ b/test/schemas/iso/datetime/2019/recurring/duration-end-week-extended/v1.test.json @@ -0,0 +1,435 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/recurring/duration-end-week-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985155232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - R12 with interval", + "data": "R12/P1Y2M15DT12H30M0S/1985-W15-5T23:20:50", + "valid": true + }, + { + "description": "Valid - R without number (unbounded)", + "data": "R/P1Y2M15DT12H30M0S/1985-W15-5T23:20:50", + "valid": true + }, + { + "description": "Valid - R0 (zero recurrences)", + "data": "R0/P1Y2M15DT12H30M0S/1985-W15-5T23:20:50", + "valid": true + }, + { + "description": "Valid - R9999 (large number)", + "data": "R9999/P1Y2M15DT12H30M0S/1985-W15-5T23:20:50", + "valid": true + }, + { + "description": "Valid - R1 (single recurrence)", + "data": "R1/P1Y2M15DT12H30M0S/1985-W15-5T23:20:50", + "valid": true + }, + { + "description": "Valid - R52 weekly for a year", + "data": "R52/P1Y2M15DT12H30M0S/1985-W15-5T23:20:50", + "valid": true + }, + { + "description": "Valid - R24 every hour for a day", + "data": "R24/P1Y2M15DT12H30M0S/1985-W15-5T23:20:50", + "valid": true + }, + { + "description": "Valid - R7 daily for a week", + "data": "R7/P1Y2M15DT12H30M0S/1985-W15-5T23:20:50", + "valid": true + }, + { + "description": "Invalid - missing R prefix", + "data": "12/P1Y2M15DT12H30M0S/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - lowercase r prefix", + "data": "r12/P1Y2M15DT12H30M0S/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - space after R", + "data": "R 12/P1Y2M15DT12H30M0S/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - negative recurrence number", + "data": "R-5/P1Y2M15DT12H30M0S/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - decimal recurrence number", + "data": "R12.5/P1Y2M15DT12H30M0S/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - double R", + "data": "RR12/P1Y2M15DT12H30M0S/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - R with plus sign", + "data": "R+12/P1Y2M15DT12H30M0S/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Valid - full duration", + "data": "R12/P1Y2M15DT12H30M0S/1985-W15-5T23:20:50", + "valid": true + }, + { + "description": "Valid - only years duration", + "data": "R12/P1Y/2000-W52-7T23:59:59", + "valid": true + }, + { + "description": "Valid - time duration", + "data": "R12/PT5H30M/2023-W24-1T18:00:00", + "valid": true + }, + { + "description": "Valid - weeks duration", + "data": "R12/P2W/1985-W01-1T00:00:00", + "valid": true + }, + { + "description": "Invalid - basic format", + "data": "R12/P1Y/1985W155T232050", + "valid": false + }, + { + "description": "Invalid - missing slash", + "data": "R12/P1Y1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - empty duration", + "data": "R12/P/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - calendar date end", + "data": "R12/P1Y/1985-04-12T23:20:50", + "valid": false + }, + { + "description": "Invalid - ordinal date end", + "data": "R12/P1Y/1985-102T23:20:50", + "valid": false + }, + { + "description": "Invalid - week 00", + "data": "R12/P1Y/1985-W00-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - week 54", + "data": "R12/P1Y/1985-W54-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - day 0", + "data": "R12/P1Y/1985-W15-0T23:20:50", + "valid": false + }, + { + "description": "Invalid - day 8", + "data": "R12/P1Y/1985-W15-8T23:20:50", + "valid": false + }, + { + "description": "Valid - week 53", + "data": "R12/P1Y/2020-W53-1T00:00:00", + "valid": true + }, + { + "description": "Invalid - end hour 24", + "data": "R12/P1Y/1985-W15-5T24:20:50", + "valid": false + }, + { + "description": "Invalid - end hour 25", + "data": "R12/P1Y/1985-W15-5T25:20:50", + "valid": false + }, + { + "description": "Invalid - end hour 99", + "data": "R12/P1Y/1985-W15-5T99:20:50", + "valid": false + }, + { + "description": "Invalid - end minute 60", + "data": "R12/P1Y/1985-W15-5T23:60:50", + "valid": false + }, + { + "description": "Invalid - end minute 99", + "data": "R12/P1Y/1985-W15-5T23:99:50", + "valid": false + }, + { + "description": "Invalid - end second 61", + "data": "R12/P1Y/1985-W15-5T23:20:61", + "valid": false + }, + { + "description": "Invalid - end second 99", + "data": "R12/P1Y/1985-W15-5T23:20:99", + "valid": false + }, + { + "description": "Invalid - missing T separator in end", + "data": "R12/P1Y/1985-W15-5 23:20:50", + "valid": false + }, + { + "description": "Invalid - lowercase t in end", + "data": "R12/P1Y/1985-W15-5t23:20:50", + "valid": false + }, + { + "description": "Invalid - duration without P prefix", + "data": "R12/1Y2M15DT12H30M0S/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - lowercase p in duration", + "data": "R12/p1Y/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - lowercase t in duration", + "data": "R12/P1Dt1H/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - empty time duration (only PT)", + "data": "R12/PT/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - double slash separator", + "data": "R12/P1Y//1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "R12/P1Y\\1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Valid - leap second in end", + "data": "R12/P1D/1985-W15-5T23:59:60", + "valid": true + }, + { + "description": "Valid - zero duration components", + "data": "R12/P0Y0M0DT0H0M0S/2023-W01-1T00:00:00", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in years", + "data": "R12/P1.5Y/2023-W01-1T12:00:00", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in months", + "data": "R12/P3M15DT2.5H/2023-W01-1T12:00:00", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in days", + "data": "R12/P10.5D/2023-W01-1T12:00:00", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in hours", + "data": "R12/PT2.5H/2023-W01-1T12:00:00", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in minutes", + "data": "R12/PT45.5M/2023-W01-1T12:00:00", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in seconds", + "data": "R12/PT10.123S/2023-W01-1T12:00:00", + "valid": true + }, + { + "description": "Valid - decimal weeks", + "data": "R12/P1.5W/2023-W01-1T12:00:00", + "valid": true + }, + { + "description": "Invalid - duration wrong component order (M before Y)", + "data": "R12/P6M3Y/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration wrong component order (D before M)", + "data": "R12/P15D6M/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration time without T designator", + "data": "R12/P1D1H/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with other units", + "data": "R12/P1W2D/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with years", + "data": "R12/P1Y2W/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration weeks with time", + "data": "R12/P1WT1H/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Valid - large year value", + "data": "R12/P500Y/2023-W01-1T00:00:00", + "valid": true + }, + { + "description": "Valid - large day value", + "data": "R12/P500D/2023-W01-1T00:00:00", + "valid": true + }, + { + "description": "Valid - large hour value", + "data": "R12/PT100H/2023-W01-1T00:00:00", + "valid": true + }, + { + "description": "Valid - 13 months", + "data": "R12/P13M/2023-W01-1T00:00:00", + "valid": true + }, + { + "description": "Invalid - letter in year", + "data": "R12/P1Y/I985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - letter in week", + "data": "R12/P1Y/1985-WI5-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - letter in day", + "data": "R12/P1Y/1985-W15-IT23:20:50", + "valid": false + }, + { + "description": "Invalid - letter in hour", + "data": "R12/P1Y/1985-W15-5TI3:20:50", + "valid": false + }, + { + "description": "Invalid - letter in minute", + "data": "R12/P1Y/1985-W15-5T23:I0:50", + "valid": false + }, + { + "description": "Invalid - letter in second", + "data": "R12/P1Y/1985-W15-5T23:20:I0", + "valid": false + }, + { + "description": "Invalid - duration with spaces", + "data": "R12/P1Y 2M/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Invalid - duration with extra slash", + "data": "R12/P1Y/2M/1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Valid - PT60M (durations can exceed calendar limits)", + "data": "R12/PT60M/1985-W15-5T23:20:50", + "valid": true + }, + { + "description": "Valid - PT60S (durations can exceed calendar limits)", + "data": "R12/PT60S/1985-W15-5T23:20:50", + "valid": true + }, + { + "description": "Valid - PT25H (durations can exceed calendar limits)", + "data": "R12/PT25H/1985-W15-5T23:20:50", + "valid": true + }, + { + "description": "Valid - P32D (durations can exceed calendar limits)", + "data": "R12/P32D/1985-W15-5T23:20:50", + "valid": true + }, + { + "description": "Invalid - missing end datetime", + "data": "R12/P1Y2M15DT12H30M0S/", + "valid": false + }, + { + "description": "Invalid - only separator", + "data": "R12//", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "R12/", + "valid": false + }, + { + "description": "Invalid - spaces around separator", + "data": "R12/P1Y / 1985-W15-5T23:20:50", + "valid": false + }, + { + "description": "Valid - week 01 day 1", + "data": "R12/P1Y/2023-W01-1T12:00:00", + "valid": true + }, + { + "description": "Valid - week 52 day 7", + "data": "R12/P1Y/2023-W52-7T12:00:00", + "valid": true + } + ] +} diff --git a/test/schemas/iso/datetime/2019/recurring/start-duration-calendar-basic/v1.test.json b/test/schemas/iso/datetime/2019/recurring/start-duration-calendar-basic/v1.test.json new file mode 100644 index 00000000..92542273 --- /dev/null +++ b/test/schemas/iso/datetime/2019/recurring/start-duration-calendar-basic/v1.test.json @@ -0,0 +1,500 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/recurring/start-duration-calendar-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 19850412232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - R12 with interval", + "data": "R12/19850412T232050/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R without number (unbounded)", + "data": "R/19850412T232050/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R0 (zero recurrences)", + "data": "R0/19850412T232050/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R9999 (large number)", + "data": "R9999/19850412T232050/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R1 (single recurrence)", + "data": "R1/19850412T232050/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R52 weekly for a year", + "data": "R52/19850412T232050/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R24 every hour for a day", + "data": "R24/19850412T232050/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R7 daily for a week", + "data": "R7/19850412T232050/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Invalid - missing R prefix", + "data": "12/19850412T232050/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - lowercase r prefix", + "data": "r12/19850412T232050/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - space after R", + "data": "R 12/19850412T232050/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - negative recurrence number", + "data": "R-5/19850412T232050/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - decimal recurrence number", + "data": "R12.5/19850412T232050/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - double R", + "data": "RR12/19850412T232050/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - R with plus sign", + "data": "R+12/19850412T232050/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Valid - full duration with all components", + "data": "R12/19850412T232050/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - only years duration", + "data": "R12/20000101T000000/P1Y", + "valid": true + }, + { + "description": "Valid - only time component duration", + "data": "R12/20230615T120000/PT5H30M", + "valid": true + }, + { + "description": "Valid - weeks duration", + "data": "R12/19851231T235959/P2W", + "valid": true + }, + { + "description": "Valid - days and seconds duration", + "data": "R12/20230101T000000/P5DT30S", + "valid": true + }, + { + "description": "Valid - months duration", + "data": "R12/20231231T120000/P6M", + "valid": true + }, + { + "description": "Valid - hours duration", + "data": "R12/20000630T180000/PT12H", + "valid": true + }, + { + "description": "Invalid - missing separator slash", + "data": "R12/19850412T232050P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - extended format datetime", + "data": "R12/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - missing duration", + "data": "R12/19850412T232050/", + "valid": false + }, + { + "description": "Invalid - missing start datetime", + "data": "R12//P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - only separator", + "data": "R12//", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "R12/", + "valid": false + }, + { + "description": "Invalid - spaces around separator", + "data": "R12/19850412T232050 / P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - start month 00", + "data": "R12/19850012T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - start month 13", + "data": "R12/19851312T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - start day 00", + "data": "R12/19850400T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - start day 32", + "data": "R12/19850432T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - start 31 April", + "data": "R12/19850431T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - start 30 February", + "data": "R12/20230230T120000/P1Y", + "valid": false + }, + { + "description": "Invalid - start hour 24", + "data": "R12/19850412T242050/P1Y", + "valid": false + }, + { + "description": "Invalid - start minute 60", + "data": "R12/19850412T236050/P1Y", + "valid": false + }, + { + "description": "Invalid - start second 61", + "data": "R12/19850412T232061/P1Y", + "valid": false + }, + { + "description": "Invalid - missing T separator in start", + "data": "R12/19850412232050/P1Y", + "valid": false + }, + { + "description": "Invalid - lowercase t in start", + "data": "R12/19850412t232050/P1Y", + "valid": false + }, + { + "description": "Invalid - end datetime instead of duration", + "data": "R12/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - duration without P prefix", + "data": "R12/19850412T232050/1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - lowercase p in duration", + "data": "R12/19850412T232050/p1Y", + "valid": false + }, + { + "description": "Invalid - lowercase t in duration", + "data": "R12/19850412T232050/P1Dt1H", + "valid": false + }, + { + "description": "Invalid - empty duration (only P)", + "data": "R12/19850412T232050/P", + "valid": false + }, + { + "description": "Invalid - empty time duration (only PT)", + "data": "R12/19850412T232050/PT", + "valid": false + }, + { + "description": "Invalid - ordinal date instead of calendar", + "data": "R12/1985102T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - week date instead of calendar", + "data": "R12/1985W155T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - double slash separator", + "data": "R12/19850412T232050//P1Y", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "R12/19850412T232050\\P1Y", + "valid": false + }, + { + "description": "Valid - 29 February (leap year validation is consumer responsibility)", + "data": "R12/20230229T120000/P1Y", + "valid": true + }, + { + "description": "Valid - leap second in start", + "data": "R12/19850412T235960/P1D", + "valid": true + }, + { + "description": "Valid - zero duration components", + "data": "R12/20230101T000000/P0Y0M0DT0H0M0S", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction", + "data": "R12/20230101T120000/P1.5Y", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction", + "data": "R12/20230101T120000/PT2.5H", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in months", + "data": "R12/20230101T120000/P3M15DT2.5H", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in days", + "data": "R12/20230101T120000/P10.5D", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in minutes", + "data": "R12/20230101T120000/PT45.5M", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in seconds", + "data": "R12/20230101T120000/PT10.123S", + "valid": true + }, + { + "description": "Valid - decimal weeks", + "data": "R12/20230101T120000/P1.5W", + "valid": true + }, + { + "description": "Invalid - duration wrong component order (M before Y)", + "data": "R12/19850412T232050/P6M3Y", + "valid": false + }, + { + "description": "Invalid - duration wrong component order (D before M)", + "data": "R12/19850412T232050/P15D6M", + "valid": false + }, + { + "description": "Invalid - duration time without T designator", + "data": "R12/19850412T232050/P1D1H", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with other units", + "data": "R12/19850412T232050/P1W2D", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with years", + "data": "R12/19850412T232050/P1Y2W", + "valid": false + }, + { + "description": "Invalid - duration weeks with time", + "data": "R12/19850412T232050/P1WT1H", + "valid": false + }, + { + "description": "Valid - large year value", + "data": "R12/20230101T000000/P500Y", + "valid": true + }, + { + "description": "Valid - large day value", + "data": "R12/20230101T000000/P500D", + "valid": true + }, + { + "description": "Valid - large hour value", + "data": "R12/20230101T000000/PT100H", + "valid": true + }, + { + "description": "Valid - 13 months", + "data": "R12/20230101T000000/P13M", + "valid": true + }, + { + "description": "Invalid - start hour 25", + "data": "R12/19850412T252050/P1Y", + "valid": false + }, + { + "description": "Invalid - start hour 99", + "data": "R12/19850412T992050/P1Y", + "valid": false + }, + { + "description": "Invalid - start minute 99", + "data": "R12/19850412T239950/P1Y", + "valid": false + }, + { + "description": "Invalid - start second 99", + "data": "R12/19850412T232099/P1Y", + "valid": false + }, + { + "description": "Invalid - too short", + "data": "R12/19850412T23205/P1Y", + "valid": false + }, + { + "description": "Invalid - too long", + "data": "R12/19850412T2320500/P1Y", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "R12/19850412T232050X/P1Y", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning", + "data": "R12/X19850412T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - spaces in datetime", + "data": "R12/1985 04 12T23 20 50/P1Y", + "valid": false + }, + { + "description": "Invalid - letter in year", + "data": "R12/I9850412T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - letter in month", + "data": "R12/1985O412T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - letter in day", + "data": "R12/198504I2T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - letter in hour", + "data": "R12/19850412TI32050/P1Y", + "valid": false + }, + { + "description": "Invalid - letter in minute", + "data": "R12/19850412T23I050/P1Y", + "valid": false + }, + { + "description": "Invalid - letter in second", + "data": "R12/19850412T2320I0/P1Y", + "valid": false + }, + { + "description": "Invalid - 31 June", + "data": "R12/19850631T120000/P1Y", + "valid": false + }, + { + "description": "Invalid - 31 September", + "data": "R12/19850931T120000/P1Y", + "valid": false + }, + { + "description": "Invalid - 31 November", + "data": "R12/19851131T120000/P1Y", + "valid": false + }, + { + "description": "Invalid - duration with spaces", + "data": "R12/19850412T232050/P1Y 2M", + "valid": false + }, + { + "description": "Invalid - duration with extra slash", + "data": "R12/19850412T232050/P1Y/2M", + "valid": false + }, + { + "description": "Valid - PT60M (durations can exceed calendar limits)", + "data": "R12/19850412T232050/PT60M", + "valid": true + }, + { + "description": "Valid - PT60S (durations can exceed calendar limits)", + "data": "R12/19850412T232050/PT60S", + "valid": true + }, + { + "description": "Valid - PT25H (durations can exceed calendar limits)", + "data": "R12/19850412T232050/PT25H", + "valid": true + }, + { + "description": "Valid - P32D (durations can exceed calendar limits)", + "data": "R12/19850412T232050/P32D", + "valid": true + } + ] +} diff --git a/test/schemas/iso/datetime/2019/recurring/start-duration-calendar-extended/v1.test.json b/test/schemas/iso/datetime/2019/recurring/start-duration-calendar-extended/v1.test.json new file mode 100644 index 00000000..8a66048e --- /dev/null +++ b/test/schemas/iso/datetime/2019/recurring/start-duration-calendar-extended/v1.test.json @@ -0,0 +1,380 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/recurring/start-duration-calendar-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 19850412232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - R12 with interval", + "data": "R12/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R without number (unbounded)", + "data": "R/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R0 (zero recurrences)", + "data": "R0/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R9999 (large number)", + "data": "R9999/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R1 (single recurrence)", + "data": "R1/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R52 weekly for a year", + "data": "R52/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R24 every hour for a day", + "data": "R24/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R7 daily for a week", + "data": "R7/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Invalid - missing R prefix", + "data": "12/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - lowercase r prefix", + "data": "r12/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - space after R", + "data": "R 12/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - negative recurrence number", + "data": "R-5/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - decimal recurrence number", + "data": "R12.5/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - double R", + "data": "RR12/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - R with plus sign", + "data": "R+12/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Valid - full duration with all components", + "data": "R12/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - only years duration", + "data": "R12/2000-01-01T00:00:00/P1Y", + "valid": true + }, + { + "description": "Valid - only time component duration", + "data": "R12/2023-06-15T12:00:00/PT5H30M", + "valid": true + }, + { + "description": "Valid - weeks duration", + "data": "R12/1985-12-31T23:59:59/P2W", + "valid": true + }, + { + "description": "Valid - days and seconds duration", + "data": "R12/2023-01-01T00:00:00/P5DT30S", + "valid": true + }, + { + "description": "Valid - months duration", + "data": "R12/2023-12-31T12:00:00/P6M", + "valid": true + }, + { + "description": "Valid - hours duration", + "data": "R12/2000-06-30T18:00:00/PT12H", + "valid": true + }, + { + "description": "Invalid - missing separator slash", + "data": "R12/1985-04-12T23:20:50P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - basic format datetime", + "data": "R12/19850412T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - missing duration", + "data": "R12/1985-04-12T23:20:50/", + "valid": false + }, + { + "description": "Invalid - missing start datetime", + "data": "R12//P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - only separator", + "data": "R12//", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "R12/", + "valid": false + }, + { + "description": "Invalid - spaces around separator", + "data": "R12/1985-04-12T23:20:50 / P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - start month 00", + "data": "R12/1985-00-12T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - start month 13", + "data": "R12/1985-13-12T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - start day 00", + "data": "R12/1985-04-00T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - start day 32", + "data": "R12/1985-04-32T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - start 31 April", + "data": "R12/1985-04-31T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - start 30 February", + "data": "R12/2023-02-30T12:00:00/P1Y", + "valid": false + }, + { + "description": "Invalid - start hour 24", + "data": "R12/1985-04-12T24:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - start minute 60", + "data": "R12/1985-04-12T23:60:50/P1Y", + "valid": false + }, + { + "description": "Invalid - start second 61", + "data": "R12/1985-04-12T23:20:61/P1Y", + "valid": false + }, + { + "description": "Invalid - missing T separator in start", + "data": "R12/1985-04-12 23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - lowercase t in start", + "data": "R12/1985-04-12t23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - end datetime instead of duration", + "data": "R12/1985-04-12T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - duration without P prefix", + "data": "R12/1985-04-12T23:20:50/1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - lowercase p in duration", + "data": "R12/1985-04-12T23:20:50/p1Y", + "valid": false + }, + { + "description": "Invalid - lowercase t in duration", + "data": "R12/1985-04-12T23:20:50/P1Dt1H", + "valid": false + }, + { + "description": "Invalid - empty duration (only P)", + "data": "R12/1985-04-12T23:20:50/P", + "valid": false + }, + { + "description": "Invalid - empty time duration (only PT)", + "data": "R12/1985-04-12T23:20:50/PT", + "valid": false + }, + { + "description": "Invalid - ordinal date instead of calendar", + "data": "R12/1985-102T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - week date instead of calendar", + "data": "R12/1985-W15-5T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - double slash separator", + "data": "R12/1985-04-12T23:20:50//P1Y", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "R12/1985-04-12T23:20:50\\P1Y", + "valid": false + }, + { + "description": "Valid - 29 February (leap year validation is consumer responsibility)", + "data": "R12/2023-02-29T12:00:00/P1Y", + "valid": true + }, + { + "description": "Valid - leap second in start", + "data": "R12/1985-04-12T23:59:60/P1D", + "valid": true + }, + { + "description": "Valid - zero duration components", + "data": "R12/2023-01-01T00:00:00/P0Y0M0DT0H0M0S", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in years", + "data": "R12/2023-01-01T12:00:00/P1.5Y", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in months", + "data": "R12/2023-01-01T12:00:00/P3M15DT2.5H", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in days", + "data": "R12/2023-01-01T12:00:00/P10.5D", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in hours", + "data": "R12/2023-01-01T12:00:00/PT2.5H", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in minutes", + "data": "R12/2023-01-01T12:00:00/PT45.5M", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in seconds", + "data": "R12/2023-01-01T12:00:00/PT10.123S", + "valid": true + }, + { + "description": "Valid - decimal weeks", + "data": "R12/2023-01-01T12:00:00/P1.5W", + "valid": true + }, + { + "description": "Invalid - duration wrong component order (M before Y)", + "data": "R12/1985-04-12T23:20:50/P6M3Y", + "valid": false + }, + { + "description": "Invalid - duration wrong component order (D before M)", + "data": "R12/1985-04-12T23:20:50/P15D6M", + "valid": false + }, + { + "description": "Invalid - duration time without T designator", + "data": "R12/1985-04-12T23:20:50/P1D1H", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with other units", + "data": "R12/1985-04-12T23:20:50/P1W2D", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with years", + "data": "R12/1985-04-12T23:20:50/P1Y2W", + "valid": false + }, + { + "description": "Invalid - duration weeks with time", + "data": "R12/1985-04-12T23:20:50/P1WT1H", + "valid": false + }, + { + "description": "Valid - large year value", + "data": "R12/2023-01-01T00:00:00/P500Y", + "valid": true + }, + { + "description": "Valid - large day value", + "data": "R12/2023-01-01T00:00:00/P500D", + "valid": true + }, + { + "description": "Valid - large hour value", + "data": "R12/2023-01-01T00:00:00/PT100H", + "valid": true + }, + { + "description": "Valid - 13 months", + "data": "R12/2023-01-01T00:00:00/P13M", + "valid": true + } + ] +} diff --git a/test/schemas/iso/datetime/2019/recurring/start-duration-ordinal-basic/v1.test.json b/test/schemas/iso/datetime/2019/recurring/start-duration-ordinal-basic/v1.test.json new file mode 100644 index 00000000..7dba191b --- /dev/null +++ b/test/schemas/iso/datetime/2019/recurring/start-duration-ordinal-basic/v1.test.json @@ -0,0 +1,360 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/recurring/start-duration-ordinal-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985102232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - R12 with interval", + "data": "R12/1985102T232050/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R without number (unbounded)", + "data": "R/1985102T232050/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R0 (zero recurrences)", + "data": "R0/1985102T232050/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R9999 (large number)", + "data": "R9999/1985102T232050/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R1 (single recurrence)", + "data": "R1/1985102T232050/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R52 weekly for a year", + "data": "R52/1985102T232050/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R24 every hour for a day", + "data": "R24/1985102T232050/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R7 daily for a week", + "data": "R7/1985102T232050/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Invalid - missing R prefix", + "data": "12/1985102T232050/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - lowercase r prefix", + "data": "r12/1985102T232050/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - space after R", + "data": "R 12/1985102T232050/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - negative recurrence number", + "data": "R-5/1985102T232050/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - decimal recurrence number", + "data": "R12.5/1985102T232050/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - double R", + "data": "RR12/1985102T232050/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - R with plus sign", + "data": "R+12/1985102T232050/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Valid - full duration with all components", + "data": "R12/1985102T232050/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - only years duration", + "data": "R12/2000001T000000/P1Y", + "valid": true + }, + { + "description": "Valid - only time component duration", + "data": "R12/2023166T120000/PT5H30M", + "valid": true + }, + { + "description": "Valid - weeks duration", + "data": "R12/1985365T235959/P2W", + "valid": true + }, + { + "description": "Valid - days and seconds duration", + "data": "R12/2023001T000000/P5DT30S", + "valid": true + }, + { + "description": "Valid - months duration", + "data": "R12/2023365T120000/P6M", + "valid": true + }, + { + "description": "Valid - hours duration", + "data": "R12/2000182T180000/PT12H", + "valid": true + }, + { + "description": "Invalid - missing separator slash", + "data": "R12/1985102T232050P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - extended format datetime", + "data": "R12/1985-102T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - missing duration", + "data": "R12/1985102T232050/", + "valid": false + }, + { + "description": "Invalid - missing start datetime", + "data": "R12//P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - only separator", + "data": "R12//", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "R12/", + "valid": false + }, + { + "description": "Invalid - spaces around separator", + "data": "R12/1985102T232050 / P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - start day 000", + "data": "R12/1985000T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - start day 367", + "data": "R12/1985367T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - start hour 24", + "data": "R12/1985102T242050/P1Y", + "valid": false + }, + { + "description": "Invalid - start minute 60", + "data": "R12/1985102T236050/P1Y", + "valid": false + }, + { + "description": "Invalid - start second 61", + "data": "R12/1985102T232061/P1Y", + "valid": false + }, + { + "description": "Invalid - missing T separator in start", + "data": "R12/1985102232050/P1Y", + "valid": false + }, + { + "description": "Invalid - lowercase t in start", + "data": "R12/1985102t232050/P1Y", + "valid": false + }, + { + "description": "Invalid - end datetime instead of duration", + "data": "R12/1985102T232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - duration without P prefix", + "data": "R12/1985102T232050/1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - lowercase p in duration", + "data": "R12/1985102T232050/p1Y", + "valid": false + }, + { + "description": "Invalid - lowercase t in duration", + "data": "R12/1985102T232050/P1Dt1H", + "valid": false + }, + { + "description": "Invalid - empty duration (only P)", + "data": "R12/1985102T232050/P", + "valid": false + }, + { + "description": "Invalid - empty time duration (only PT)", + "data": "R12/1985102T232050/PT", + "valid": false + }, + { + "description": "Invalid - calendar date instead of ordinal", + "data": "R12/19850412T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - week date instead of ordinal", + "data": "R12/1985W155T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - double slash separator", + "data": "R12/1985102T232050//P1Y", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "R12/1985102T232050\\P1Y", + "valid": false + }, + { + "description": "Valid - day 366 (leap year validation is consumer responsibility)", + "data": "R12/2020366T000000/P1Y", + "valid": true + }, + { + "description": "Valid - leap second in start", + "data": "R12/1985102T235960/P1D", + "valid": true + }, + { + "description": "Valid - zero duration components", + "data": "R12/2023001T000000/P0Y0M0DT0H0M0S", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in years", + "data": "R12/2023001T120000/P1.5Y", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in months", + "data": "R12/2023001T120000/P3M15DT2.5H", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in days", + "data": "R12/2023001T120000/P10.5D", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in hours", + "data": "R12/2023001T120000/PT2.5H", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in minutes", + "data": "R12/2023001T120000/PT45.5M", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in seconds", + "data": "R12/2023001T120000/PT10.123S", + "valid": true + }, + { + "description": "Valid - decimal weeks", + "data": "R12/2023001T120000/P1.5W", + "valid": true + }, + { + "description": "Invalid - duration wrong component order (M before Y)", + "data": "R12/1985102T232050/P6M3Y", + "valid": false + }, + { + "description": "Invalid - duration wrong component order (D before M)", + "data": "R12/1985102T232050/P15D6M", + "valid": false + }, + { + "description": "Invalid - duration time without T designator", + "data": "R12/1985102T232050/P1D1H", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with other units", + "data": "R12/1985102T232050/P1W2D", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with years", + "data": "R12/1985102T232050/P1Y2W", + "valid": false + }, + { + "description": "Invalid - duration weeks with time", + "data": "R12/1985102T232050/P1WT1H", + "valid": false + }, + { + "description": "Valid - large year value", + "data": "R12/2023001T000000/P500Y", + "valid": true + }, + { + "description": "Valid - large day value", + "data": "R12/2023001T000000/P500D", + "valid": true + }, + { + "description": "Valid - large hour value", + "data": "R12/2023001T000000/PT100H", + "valid": true + }, + { + "description": "Valid - 13 months", + "data": "R12/2023001T000000/P13M", + "valid": true + } + ] +} diff --git a/test/schemas/iso/datetime/2019/recurring/start-duration-ordinal-extended/v1.test.json b/test/schemas/iso/datetime/2019/recurring/start-duration-ordinal-extended/v1.test.json new file mode 100644 index 00000000..e1857a07 --- /dev/null +++ b/test/schemas/iso/datetime/2019/recurring/start-duration-ordinal-extended/v1.test.json @@ -0,0 +1,360 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/recurring/start-duration-ordinal-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985102232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - R12 with interval", + "data": "R12/1985-102T23:20:50/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R without number (unbounded)", + "data": "R/1985-102T23:20:50/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R0 (zero recurrences)", + "data": "R0/1985-102T23:20:50/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R9999 (large number)", + "data": "R9999/1985-102T23:20:50/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R1 (single recurrence)", + "data": "R1/1985-102T23:20:50/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R52 weekly for a year", + "data": "R52/1985-102T23:20:50/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R24 every hour for a day", + "data": "R24/1985-102T23:20:50/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R7 daily for a week", + "data": "R7/1985-102T23:20:50/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Invalid - missing R prefix", + "data": "12/1985-102T23:20:50/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - lowercase r prefix", + "data": "r12/1985-102T23:20:50/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - space after R", + "data": "R 12/1985-102T23:20:50/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - negative recurrence number", + "data": "R-5/1985-102T23:20:50/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - decimal recurrence number", + "data": "R12.5/1985-102T23:20:50/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - double R", + "data": "RR12/1985-102T23:20:50/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - R with plus sign", + "data": "R+12/1985-102T23:20:50/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Valid - full duration with all components", + "data": "R12/1985-102T23:20:50/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - only years duration", + "data": "R12/2000-001T00:00:00/P1Y", + "valid": true + }, + { + "description": "Valid - only time component duration", + "data": "R12/2023-166T12:00:00/PT5H30M", + "valid": true + }, + { + "description": "Valid - weeks duration", + "data": "R12/1985-365T23:59:59/P2W", + "valid": true + }, + { + "description": "Valid - days and seconds duration", + "data": "R12/2023-001T00:00:00/P5DT30S", + "valid": true + }, + { + "description": "Valid - months duration", + "data": "R12/2023-365T12:00:00/P6M", + "valid": true + }, + { + "description": "Valid - hours duration", + "data": "R12/2000-182T18:00:00/PT12H", + "valid": true + }, + { + "description": "Invalid - missing separator slash", + "data": "R12/1985-102T23:20:50P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - basic format datetime", + "data": "R12/1985102T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - missing duration", + "data": "R12/1985-102T23:20:50/", + "valid": false + }, + { + "description": "Invalid - missing start datetime", + "data": "R12//P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - only separator", + "data": "R12//", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "R12/", + "valid": false + }, + { + "description": "Invalid - spaces around separator", + "data": "R12/1985-102T23:20:50 / P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - start day 000", + "data": "R12/1985-000T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - start day 367", + "data": "R12/1985-367T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - start hour 24", + "data": "R12/1985-102T24:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - start minute 60", + "data": "R12/1985-102T23:60:50/P1Y", + "valid": false + }, + { + "description": "Invalid - start second 61", + "data": "R12/1985-102T23:20:61/P1Y", + "valid": false + }, + { + "description": "Invalid - missing T separator in start", + "data": "R12/1985-102 23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - lowercase t in start", + "data": "R12/1985-102t23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - end datetime instead of duration", + "data": "R12/1985-102T23:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - duration without P prefix", + "data": "R12/1985-102T23:20:50/1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - lowercase p in duration", + "data": "R12/1985-102T23:20:50/p1Y", + "valid": false + }, + { + "description": "Invalid - lowercase t in duration", + "data": "R12/1985-102T23:20:50/P1Dt1H", + "valid": false + }, + { + "description": "Invalid - empty duration (only P)", + "data": "R12/1985-102T23:20:50/P", + "valid": false + }, + { + "description": "Invalid - empty time duration (only PT)", + "data": "R12/1985-102T23:20:50/PT", + "valid": false + }, + { + "description": "Invalid - calendar date instead of ordinal", + "data": "R12/1985-04-12T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - week date instead of ordinal", + "data": "R12/1985-W15-5T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - double slash separator", + "data": "R12/1985-102T23:20:50//P1Y", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "R12/1985-102T23:20:50\\P1Y", + "valid": false + }, + { + "description": "Valid - day 366 (leap year validation is consumer responsibility)", + "data": "R12/2020-366T00:00:00/P1Y", + "valid": true + }, + { + "description": "Valid - leap second in start", + "data": "R12/1985-102T23:59:60/P1D", + "valid": true + }, + { + "description": "Valid - zero duration components", + "data": "R12/2023-001T00:00:00/P0Y0M0DT0H0M0S", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in years", + "data": "R12/2023-001T12:00:00/P1.5Y", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in months", + "data": "R12/2023-001T12:00:00/P3M15DT2.5H", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in days", + "data": "R12/2023-001T12:00:00/P10.5D", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in hours", + "data": "R12/2023-001T12:00:00/PT2.5H", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in minutes", + "data": "R12/2023-001T12:00:00/PT45.5M", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in seconds", + "data": "R12/2023-001T12:00:00/PT10.123S", + "valid": true + }, + { + "description": "Valid - decimal weeks", + "data": "R12/2023-001T12:00:00/P1.5W", + "valid": true + }, + { + "description": "Invalid - duration wrong component order (M before Y)", + "data": "R12/1985-102T23:20:50/P6M3Y", + "valid": false + }, + { + "description": "Invalid - duration wrong component order (D before M)", + "data": "R12/1985-102T23:20:50/P15D6M", + "valid": false + }, + { + "description": "Invalid - duration time without T designator", + "data": "R12/1985-102T23:20:50/P1D1H", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with other units", + "data": "R12/1985-102T23:20:50/P1W2D", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with years", + "data": "R12/1985-102T23:20:50/P1Y2W", + "valid": false + }, + { + "description": "Invalid - duration weeks with time", + "data": "R12/1985-102T23:20:50/P1WT1H", + "valid": false + }, + { + "description": "Valid - large year value", + "data": "R12/2023-001T00:00:00/P500Y", + "valid": true + }, + { + "description": "Valid - large day value", + "data": "R12/2023-001T00:00:00/P500D", + "valid": true + }, + { + "description": "Valid - large hour value", + "data": "R12/2023-001T00:00:00/PT100H", + "valid": true + }, + { + "description": "Valid - 13 months", + "data": "R12/2023-001T00:00:00/P13M", + "valid": true + } + ] +} diff --git a/test/schemas/iso/datetime/2019/recurring/start-duration-week-basic/v1.test.json b/test/schemas/iso/datetime/2019/recurring/start-duration-week-basic/v1.test.json new file mode 100644 index 00000000..a4da2e7c --- /dev/null +++ b/test/schemas/iso/datetime/2019/recurring/start-duration-week-basic/v1.test.json @@ -0,0 +1,500 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/recurring/start-duration-week-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985155232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - R12 with interval", + "data": "R12/1985W155T232050/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R without number (unbounded)", + "data": "R/1985W155T232050/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R0 (zero recurrences)", + "data": "R0/1985W155T232050/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R9999 (large number)", + "data": "R9999/1985W155T232050/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R1 (single recurrence)", + "data": "R1/1985W155T232050/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R52 weekly for a year", + "data": "R52/1985W155T232050/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R24 every hour for a day", + "data": "R24/1985W155T232050/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R7 daily for a week", + "data": "R7/1985W155T232050/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Invalid - missing R prefix", + "data": "12/1985W155T232050/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - lowercase r prefix", + "data": "r12/1985W155T232050/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - space after R", + "data": "R 12/1985W155T232050/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - negative recurrence number", + "data": "R-5/1985W155T232050/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - decimal recurrence number", + "data": "R12.5/1985W155T232050/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - double R", + "data": "RR12/1985W155T232050/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - R with plus sign", + "data": "R+12/1985W155T232050/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Valid - full duration with all components", + "data": "R12/1985W155T232050/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - only years duration", + "data": "R12/2000W011T000000/P1Y", + "valid": true + }, + { + "description": "Valid - only time component duration", + "data": "R12/2023W241T120000/PT5H30M", + "valid": true + }, + { + "description": "Valid - weeks duration", + "data": "R12/1985W527T235959/P2W", + "valid": true + }, + { + "description": "Valid - days and seconds duration", + "data": "R12/2023W011T000000/P5DT30S", + "valid": true + }, + { + "description": "Valid - months duration", + "data": "R12/2023W527T120000/P6M", + "valid": true + }, + { + "description": "Valid - hours duration", + "data": "R12/2000W265T180000/PT12H", + "valid": true + }, + { + "description": "Invalid - missing separator slash", + "data": "R12/1985W155T232050P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - extended format datetime", + "data": "R12/1985-W15-5T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - missing duration", + "data": "R12/1985W155T232050/", + "valid": false + }, + { + "description": "Invalid - missing start datetime", + "data": "R12//P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - only separator", + "data": "R12//", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "R12/", + "valid": false + }, + { + "description": "Invalid - spaces around separator", + "data": "R12/1985W155T232050 / P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - start week 00", + "data": "R12/1985W005T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - start week 54", + "data": "R12/1985W545T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - start day 0", + "data": "R12/1985W150T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - start day 8", + "data": "R12/1985W158T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - start hour 24", + "data": "R12/1985W155T242050/P1Y", + "valid": false + }, + { + "description": "Invalid - start hour 25", + "data": "R12/1985W155T252050/P1Y", + "valid": false + }, + { + "description": "Invalid - start hour 99", + "data": "R12/1985W155T992050/P1Y", + "valid": false + }, + { + "description": "Invalid - start minute 60", + "data": "R12/1985W155T236050/P1Y", + "valid": false + }, + { + "description": "Invalid - start minute 99", + "data": "R12/1985W155T239950/P1Y", + "valid": false + }, + { + "description": "Invalid - start second 61", + "data": "R12/1985W155T232061/P1Y", + "valid": false + }, + { + "description": "Invalid - start second 99", + "data": "R12/1985W155T232099/P1Y", + "valid": false + }, + { + "description": "Invalid - missing T separator in start", + "data": "R12/1985W155232050/P1Y", + "valid": false + }, + { + "description": "Invalid - lowercase t in start", + "data": "R12/1985W155t232050/P1Y", + "valid": false + }, + { + "description": "Invalid - lowercase w", + "data": "R12/1985w155T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - end datetime instead of duration", + "data": "R12/1985W155T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - duration without P prefix", + "data": "R12/1985W155T232050/1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - lowercase p in duration", + "data": "R12/1985W155T232050/p1Y", + "valid": false + }, + { + "description": "Invalid - lowercase t in duration", + "data": "R12/1985W155T232050/P1Dt1H", + "valid": false + }, + { + "description": "Invalid - empty duration (only P)", + "data": "R12/1985W155T232050/P", + "valid": false + }, + { + "description": "Invalid - empty time duration (only PT)", + "data": "R12/1985W155T232050/PT", + "valid": false + }, + { + "description": "Invalid - calendar date instead of week", + "data": "R12/19850412T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - ordinal date instead of week", + "data": "R12/1985102T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - double slash separator", + "data": "R12/1985W155T232050//P1Y", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "R12/1985W155T232050\\P1Y", + "valid": false + }, + { + "description": "Valid - week 53 (long year validation is consumer responsibility)", + "data": "R12/2020W531T000000/P1Y", + "valid": true + }, + { + "description": "Valid - leap second in start", + "data": "R12/1985W155T235960/P1D", + "valid": true + }, + { + "description": "Valid - zero duration components", + "data": "R12/2023W011T000000/P0Y0M0DT0H0M0S", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in years", + "data": "R12/2023W011T120000/P1.5Y", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in months", + "data": "R12/2023W011T120000/P3M15DT2.5H", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in days", + "data": "R12/2023W011T120000/P10.5D", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in hours", + "data": "R12/2023W011T120000/PT2.5H", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in minutes", + "data": "R12/2023W011T120000/PT45.5M", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in seconds", + "data": "R12/2023W011T120000/PT10.123S", + "valid": true + }, + { + "description": "Valid - decimal weeks", + "data": "R12/2023W011T120000/P1.5W", + "valid": true + }, + { + "description": "Invalid - duration wrong component order (M before Y)", + "data": "R12/1985W155T232050/P6M3Y", + "valid": false + }, + { + "description": "Invalid - duration wrong component order (D before M)", + "data": "R12/1985W155T232050/P15D6M", + "valid": false + }, + { + "description": "Invalid - duration time without T designator", + "data": "R12/1985W155T232050/P1D1H", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with other units", + "data": "R12/1985W155T232050/P1W2D", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with years", + "data": "R12/1985W155T232050/P1Y2W", + "valid": false + }, + { + "description": "Invalid - duration weeks with time", + "data": "R12/1985W155T232050/P1WT1H", + "valid": false + }, + { + "description": "Valid - large year value", + "data": "R12/2023W011T000000/P500Y", + "valid": true + }, + { + "description": "Valid - large day value", + "data": "R12/2023W011T000000/P500D", + "valid": true + }, + { + "description": "Valid - large hour value", + "data": "R12/2023W011T000000/PT100H", + "valid": true + }, + { + "description": "Valid - 13 months", + "data": "R12/2023W011T000000/P13M", + "valid": true + }, + { + "description": "Invalid - too short", + "data": "R12/1985W155T23205/P1Y", + "valid": false + }, + { + "description": "Invalid - too long", + "data": "R12/1985W155T2320500/P1Y", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "R12/1985W155T232050X/P1Y", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning", + "data": "R12/X1985W155T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - spaces in datetime", + "data": "R12/1985 W15 5T23 20 50/P1Y", + "valid": false + }, + { + "description": "Invalid - letter in year", + "data": "R12/I985W155T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - letter in week", + "data": "R12/1985WI55T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - letter in day", + "data": "R12/1985W15IT232050/P1Y", + "valid": false + }, + { + "description": "Invalid - letter in hour", + "data": "R12/1985W155TI32050/P1Y", + "valid": false + }, + { + "description": "Invalid - letter in minute", + "data": "R12/1985W155T23I050/P1Y", + "valid": false + }, + { + "description": "Invalid - letter in second", + "data": "R12/1985W155T2320I0/P1Y", + "valid": false + }, + { + "description": "Valid - week 01 day 1", + "data": "R12/2023W011T120000/P1Y", + "valid": true + }, + { + "description": "Valid - week 52 day 7", + "data": "R12/2023W527T120000/P1Y", + "valid": true + }, + { + "description": "Valid - year 0000", + "data": "R12/0000W011T120000/P1Y", + "valid": true + }, + { + "description": "Valid - year 9999", + "data": "R12/9999W527T235959/P1Y", + "valid": true + }, + { + "description": "Invalid - duration with spaces", + "data": "R12/1985W155T232050/P1Y 2M", + "valid": false + }, + { + "description": "Invalid - duration with extra slash", + "data": "R12/1985W155T232050/P1Y/2M", + "valid": false + }, + { + "description": "Valid - PT60M (durations can exceed calendar limits)", + "data": "R12/1985W155T232050/PT60M", + "valid": true + }, + { + "description": "Valid - PT60S (durations can exceed calendar limits)", + "data": "R12/1985W155T232050/PT60S", + "valid": true + }, + { + "description": "Valid - PT25H (durations can exceed calendar limits)", + "data": "R12/1985W155T232050/PT25H", + "valid": true + }, + { + "description": "Valid - P32D (durations can exceed calendar limits)", + "data": "R12/1985W155T232050/P32D", + "valid": true + } + ] +} diff --git a/test/schemas/iso/datetime/2019/recurring/start-duration-week-extended/v1.test.json b/test/schemas/iso/datetime/2019/recurring/start-duration-week-extended/v1.test.json new file mode 100644 index 00000000..ee3e046b --- /dev/null +++ b/test/schemas/iso/datetime/2019/recurring/start-duration-week-extended/v1.test.json @@ -0,0 +1,370 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/recurring/start-duration-week-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985155232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - R12 with interval", + "data": "R12/1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R without number (unbounded)", + "data": "R/1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R0 (zero recurrences)", + "data": "R0/1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R9999 (large number)", + "data": "R9999/1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R1 (single recurrence)", + "data": "R1/1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R52 weekly for a year", + "data": "R52/1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R24 every hour for a day", + "data": "R24/1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - R7 daily for a week", + "data": "R7/1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Invalid - missing R prefix", + "data": "12/1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - lowercase r prefix", + "data": "r12/1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - space after R", + "data": "R 12/1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - negative recurrence number", + "data": "R-5/1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - decimal recurrence number", + "data": "R12.5/1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - double R", + "data": "RR12/1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - R with plus sign", + "data": "R+12/1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Valid - full duration with all components", + "data": "R12/1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", + "valid": true + }, + { + "description": "Valid - only years duration", + "data": "R12/2000-W01-1T00:00:00/P1Y", + "valid": true + }, + { + "description": "Valid - only time component duration", + "data": "R12/2023-W24-1T12:00:00/PT5H30M", + "valid": true + }, + { + "description": "Valid - weeks duration", + "data": "R12/1985-W52-7T23:59:59/P2W", + "valid": true + }, + { + "description": "Valid - days and seconds duration", + "data": "R12/2023-W01-1T00:00:00/P5DT30S", + "valid": true + }, + { + "description": "Valid - months duration", + "data": "R12/2023-W52-7T12:00:00/P6M", + "valid": true + }, + { + "description": "Valid - hours duration", + "data": "R12/2000-W26-5T18:00:00/PT12H", + "valid": true + }, + { + "description": "Invalid - missing separator slash", + "data": "R12/1985-W15-5T23:20:50P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - basic format datetime", + "data": "R12/1985W155T232050/P1Y", + "valid": false + }, + { + "description": "Invalid - missing duration", + "data": "R12/1985-W15-5T23:20:50/", + "valid": false + }, + { + "description": "Invalid - missing start datetime", + "data": "R12//P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - only separator", + "data": "R12//", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "R12/", + "valid": false + }, + { + "description": "Invalid - spaces around separator", + "data": "R12/1985-W15-5T23:20:50 / P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - start week 00", + "data": "R12/1985-W00-5T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - start week 54", + "data": "R12/1985-W54-5T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - start day 0", + "data": "R12/1985-W15-0T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - start day 8", + "data": "R12/1985-W15-8T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - start hour 24", + "data": "R12/1985-W15-5T24:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - start minute 60", + "data": "R12/1985-W15-5T23:60:50/P1Y", + "valid": false + }, + { + "description": "Invalid - start second 61", + "data": "R12/1985-W15-5T23:20:61/P1Y", + "valid": false + }, + { + "description": "Invalid - missing T separator in start", + "data": "R12/1985-W15-5 23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - lowercase t in start", + "data": "R12/1985-W15-5t23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - end datetime instead of duration", + "data": "R12/1985-W15-5T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - duration without P prefix", + "data": "R12/1985-W15-5T23:20:50/1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - lowercase p in duration", + "data": "R12/1985-W15-5T23:20:50/p1Y", + "valid": false + }, + { + "description": "Invalid - lowercase t in duration", + "data": "R12/1985-W15-5T23:20:50/P1Dt1H", + "valid": false + }, + { + "description": "Invalid - empty duration (only P)", + "data": "R12/1985-W15-5T23:20:50/P", + "valid": false + }, + { + "description": "Invalid - empty time duration (only PT)", + "data": "R12/1985-W15-5T23:20:50/PT", + "valid": false + }, + { + "description": "Invalid - calendar date instead of week", + "data": "R12/1985-04-12T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - ordinal date instead of week", + "data": "R12/1985-102T23:20:50/P1Y", + "valid": false + }, + { + "description": "Invalid - double slash separator", + "data": "R12/1985-W15-5T23:20:50//P1Y", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "R12/1985-W15-5T23:20:50\\P1Y", + "valid": false + }, + { + "description": "Valid - week 53 (long year validation is consumer responsibility)", + "data": "R12/2020-W53-1T00:00:00/P1Y", + "valid": true + }, + { + "description": "Valid - leap second in start", + "data": "R12/1985-W15-5T23:59:60/P1D", + "valid": true + }, + { + "description": "Valid - zero duration components", + "data": "R12/2023-W01-1T00:00:00/P0Y0M0DT0H0M0S", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in years", + "data": "R12/2023-W01-1T12:00:00/P1.5Y", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in months", + "data": "R12/2023-W01-1T12:00:00/P3M15DT2.5H", + "valid": true + }, + { + "description": "Valid - duration with decimal fraction in days", + "data": "R12/2023-W01-1T12:00:00/P10.5D", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in hours", + "data": "R12/2023-W01-1T12:00:00/PT2.5H", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in minutes", + "data": "R12/2023-W01-1T12:00:00/PT45.5M", + "valid": true + }, + { + "description": "Valid - time duration with decimal fraction in seconds", + "data": "R12/2023-W01-1T12:00:00/PT10.123S", + "valid": true + }, + { + "description": "Valid - decimal weeks", + "data": "R12/2023-W01-1T12:00:00/P1.5W", + "valid": true + }, + { + "description": "Invalid - duration wrong component order (M before Y)", + "data": "R12/1985-W15-5T23:20:50/P6M3Y", + "valid": false + }, + { + "description": "Invalid - duration wrong component order (D before M)", + "data": "R12/1985-W15-5T23:20:50/P15D6M", + "valid": false + }, + { + "description": "Invalid - duration time without T designator", + "data": "R12/1985-W15-5T23:20:50/P1D1H", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with other units", + "data": "R12/1985-W15-5T23:20:50/P1W2D", + "valid": false + }, + { + "description": "Invalid - duration weeks mixed with years", + "data": "R12/1985-W15-5T23:20:50/P1Y2W", + "valid": false + }, + { + "description": "Invalid - duration weeks with time", + "data": "R12/1985-W15-5T23:20:50/P1WT1H", + "valid": false + }, + { + "description": "Valid - large year value", + "data": "R12/2023-W01-1T00:00:00/P500Y", + "valid": true + }, + { + "description": "Valid - large day value", + "data": "R12/2023-W01-1T00:00:00/P500D", + "valid": true + }, + { + "description": "Valid - large hour value", + "data": "R12/2023-W01-1T00:00:00/PT100H", + "valid": true + }, + { + "description": "Valid - 13 months", + "data": "R12/2023-W01-1T00:00:00/P13M", + "valid": true + } + ] +} diff --git a/test/schemas/iso/datetime/2019/recurring/start-end-calendar-basic/v1.test.json b/test/schemas/iso/datetime/2019/recurring/start-end-calendar-basic/v1.test.json new file mode 100644 index 00000000..51792bca --- /dev/null +++ b/test/schemas/iso/datetime/2019/recurring/start-end-calendar-basic/v1.test.json @@ -0,0 +1,815 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/recurring/start-end-calendar-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 19850412232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - R12 with interval", + "data": "R12/19850412T232050/19850625T103000", + "valid": true + }, + { + "description": "Valid - R without number (unbounded)", + "data": "R/20000101T000000/20001231T235959", + "valid": true + }, + { + "description": "Valid - R0 (zero recurrences)", + "data": "R0/20230101T120000/20230101T180000", + "valid": true + }, + { + "description": "Valid - R9999 (large number)", + "data": "R9999/19850412T232050/19850625T103000", + "valid": true + }, + { + "description": "Valid - R1 (single recurrence)", + "data": "R1/20230101T120000/20230102T120000", + "valid": true + }, + { + "description": "Valid - cross year boundary", + "data": "R5/20221231T230000/20230101T010000", + "valid": true + }, + { + "description": "Valid - 31 January to 28 February", + "data": "R3/20230131T000000/20230228T235959", + "valid": true + }, + { + "description": "Valid - leap year February 29", + "data": "R2/20200228T120000/20200229T120000", + "valid": true + }, + { + "description": "Valid - with leap second (60 seconds) in start", + "data": "R10/19850412T235960/19850413T000000", + "valid": true + }, + { + "description": "Valid - with leap second (60 seconds) in end", + "data": "R10/19850412T235959/19850413T000060", + "valid": true + }, + { + "description": "Valid - midnight to midnight", + "data": "R7/20230101T000000/20230102T000000", + "valid": true + }, + { + "description": "Valid - 31 May to 30 June", + "data": "R4/20230531T120000/20230630T120000", + "valid": true + }, + { + "description": "Valid - 31 August to 30 September", + "data": "R4/20230831T120000/20230930T120000", + "valid": true + }, + { + "description": "Valid - 31 October to 30 November", + "data": "R4/20231031T120000/20231130T120000", + "valid": true + }, + { + "description": "Valid - 29 February (leap year validation is consumer responsibility)", + "data": "R12/20230229T120000/20230331T120000", + "valid": true + }, + { + "description": "Valid - both start and end with 29 February", + "data": "R5/20230229T000000/20240229T235959", + "valid": true + }, + { + "description": "Valid - reversed order (end before start is syntactically valid per ISO 8601)", + "data": "R3/19850625T103000/19850412T232050", + "valid": true + }, + { + "description": "Invalid - missing R prefix", + "data": "12/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - lowercase r prefix", + "data": "r12/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - space after R", + "data": "R 12/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - space before first slash", + "data": "R12 /19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - negative recurrence number", + "data": "R-5/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - decimal recurrence number", + "data": "R12.5/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - letter in recurrence number", + "data": "R1A/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - missing separator slash between R and interval", + "data": "R1219850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - missing separator slash between start and end", + "data": "R12/19850412T23205019850625T103000", + "valid": false + }, + { + "description": "Invalid - extended format (contains hyphens)", + "data": "R12/1985-04-12T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - mixed formats (basic start, extended end)", + "data": "R12/19850412T232050/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - mixed formats (extended start, basic end)", + "data": "R12/1985-04-12T23:20:50/19850625T103000", + "valid": false + }, + { + "description": "Invalid - missing end datetime", + "data": "R12/19850412T232050/", + "valid": false + }, + { + "description": "Invalid - missing start datetime", + "data": "R12//19850625T103000", + "valid": false + }, + { + "description": "Invalid - only R and separator", + "data": "R12//", + "valid": false + }, + { + "description": "Invalid - only R", + "data": "R", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - spaces around interval separator", + "data": "R12/19850412T232050 / 19850625T103000", + "valid": false + }, + { + "description": "Invalid - start month 00", + "data": "R12/19850012T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - start month 13", + "data": "R12/19851312T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - end month 00", + "data": "R12/19850412T232050/19850025T103000", + "valid": false + }, + { + "description": "Invalid - end month 13", + "data": "R12/19850412T232050/19851325T103000", + "valid": false + }, + { + "description": "Invalid - start day 00", + "data": "R12/19850400T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - start day 32", + "data": "R12/19850432T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - end day 00", + "data": "R12/19850412T232050/19850600T103000", + "valid": false + }, + { + "description": "Invalid - end day 32", + "data": "R12/19850412T232050/19850632T103000", + "valid": false + }, + { + "description": "Invalid - start 31 April", + "data": "R12/19850431T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - start 31 June", + "data": "R12/19850631T232050/19850731T103000", + "valid": false + }, + { + "description": "Invalid - start 31 September", + "data": "R12/19850931T232050/19851031T103000", + "valid": false + }, + { + "description": "Invalid - start 31 November", + "data": "R12/19851131T232050/19851231T103000", + "valid": false + }, + { + "description": "Invalid - end 31 April", + "data": "R12/19850401T232050/19850431T103000", + "valid": false + }, + { + "description": "Invalid - end 31 June", + "data": "R12/19850601T232050/19850631T103000", + "valid": false + }, + { + "description": "Invalid - end 31 September", + "data": "R12/19850901T232050/19850931T103000", + "valid": false + }, + { + "description": "Invalid - end 31 November", + "data": "R12/19851101T232050/19851131T103000", + "valid": false + }, + { + "description": "Invalid - start 30 February", + "data": "R12/20230230T120000/20230331T120000", + "valid": false + }, + { + "description": "Invalid - end 30 February", + "data": "R12/20230131T120000/20230230T120000", + "valid": false + }, + { + "description": "Invalid - start hour 24", + "data": "R12/19850412T242050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - start hour 25", + "data": "R12/19850412T252050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - end hour 24", + "data": "R12/19850412T232050/19850625T243000", + "valid": false + }, + { + "description": "Invalid - start minute 60", + "data": "R12/19850412T236050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - end minute 60", + "data": "R12/19850412T232050/19850625T106000", + "valid": false + }, + { + "description": "Invalid - start second 61", + "data": "R12/19850412T232061/19850625T103000", + "valid": false + }, + { + "description": "Invalid - end second 61", + "data": "R12/19850412T232050/19850625T103061", + "valid": false + }, + { + "description": "Invalid - missing T separator in start", + "data": "R12/19850412232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - missing T separator in end", + "data": "R12/19850412T232050/19850625103000", + "valid": false + }, + { + "description": "Invalid - lowercase t in start", + "data": "R12/19850412t232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - lowercase t in end", + "data": "R12/19850412T232050/19850625t103000", + "valid": false + }, + { + "description": "Invalid - duration instead of end datetime", + "data": "R12/19850412T232050/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - duration instead of start datetime", + "data": "R12/P1Y2M15DT12H30M0S/19850625T103000", + "valid": false + }, + { + "description": "Invalid - letters in start date", + "data": "R12/ABCD0412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - letters in end date", + "data": "R12/19850412T232050/ABCD0625T103000", + "valid": false + }, + { + "description": "Invalid - letters in start time", + "data": "R12/19850412TABC050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - letters in end time", + "data": "R12/19850412T232050/19850625TABC000", + "valid": false + }, + { + "description": "Invalid - double slash separator", + "data": "R12/19850412T232050//19850625T103000", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "R12/19850412T232050\\19850625T103000", + "valid": false + }, + { + "description": "Invalid - start hour 99", + "data": "R12/19850412T992050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - end hour 99", + "data": "R12/19850412T232050/19850625T993000", + "valid": false + }, + { + "description": "Invalid - start minute 99", + "data": "R12/19850412T239950/19850625T103000", + "valid": false + }, + { + "description": "Invalid - end minute 99", + "data": "R12/19850412T232050/19850625T109900", + "valid": false + }, + { + "description": "Invalid - start second 99", + "data": "R12/19850412T232099/19850625T103000", + "valid": false + }, + { + "description": "Invalid - end second 99", + "data": "R12/19850412T232050/19850625T103099", + "valid": false + }, + { + "description": "Invalid - letter in start year", + "data": "R12/I9850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - letter in end year", + "data": "R12/19850412T232050/I9850625T103000", + "valid": false + }, + { + "description": "Invalid - letter in start month", + "data": "R12/1985O412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - letter in end month", + "data": "R12/19850412T232050/1985O625T103000", + "valid": false + }, + { + "description": "Invalid - letter in start day", + "data": "R12/198504I2T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - letter in end day", + "data": "R12/19850412T232050/198506I5T103000", + "valid": false + }, + { + "description": "Invalid - letter in start hour", + "data": "R12/19850412TI32050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - letter in end hour", + "data": "R12/19850412T232050/19850625TI03000", + "valid": false + }, + { + "description": "Invalid - letter in start minute", + "data": "R12/19850412T23I050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - letter in end minute", + "data": "R12/19850412T232050/19850625T10I000", + "valid": false + }, + { + "description": "Invalid - letter in start second", + "data": "R12/19850412T2320I0/19850625T103000", + "valid": false + }, + { + "description": "Invalid - letter in end second", + "data": "R12/19850412T232050/19850625T1030I0", + "valid": false + }, + { + "description": "Invalid - too short start", + "data": "R12/19850412T23205/19850625T103000", + "valid": false + }, + { + "description": "Invalid - too long start", + "data": "R12/19850412T2320500/19850625T103000", + "valid": false + }, + { + "description": "Invalid - too short end", + "data": "R12/19850412T232050/19850625T10300", + "valid": false + }, + { + "description": "Invalid - too long end", + "data": "R12/19850412T232050/19850625T1030000", + "valid": false + }, + { + "description": "Invalid - extra characters at beginning", + "data": "XR12/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - extra characters at end", + "data": "R12/19850412T232050/19850625T103000X", + "valid": false + }, + { + "description": "Invalid - spaces in start datetime", + "data": "R12/1985 04 12T23 20 50/19850625T103000", + "valid": false + }, + { + "description": "Invalid - spaces in end datetime", + "data": "R12/19850412T232050/1985 06 25T10 30 00", + "valid": false + }, + { + "description": "Invalid - double R", + "data": "RR12/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - R without slash", + "data": "R12", + "valid": false + }, + { + "description": "Valid - R52 weekly for a year", + "data": "R52/19850412T232050/19850625T103000", + "valid": true + }, + { + "description": "Valid - R24 every hour for a day", + "data": "R24/19850412T232050/19850625T103000", + "valid": true + }, + { + "description": "Valid - R7 daily for a week", + "data": "R7/19850412T232050/19850625T103000", + "valid": true + }, + { + "description": "Valid - R30 monthly pattern", + "data": "R30/19850412T232050/19850625T103000", + "valid": true + }, + { + "description": "Valid - R4 quarterly", + "data": "R4/19850412T232050/19850625T103000", + "valid": true + }, + { + "description": "Valid - R2 semi-annual", + "data": "R2/19850412T232050/19850625T103000", + "valid": true + }, + { + "description": "Valid - R365 daily for year", + "data": "R365/19850412T232050/19850625T103000", + "valid": true + }, + { + "description": "Valid - R1000 large recurrence", + "data": "R1000/19850412T232050/19850625T103000", + "valid": true + }, + { + "description": "Valid - R10000 very large recurrence", + "data": "R10000/19850412T232050/19850625T103000", + "valid": true + }, + { + "description": "Valid - R999999 maximum practical recurrence", + "data": "R999999/19850412T232050/19850625T103000", + "valid": true + }, + { + "description": "Invalid - R with plus sign", + "data": "R+12/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - R with trailing space", + "data": "R12 /19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - space in recurrence number", + "data": "R 1 2/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - R with comma separator", + "data": "R1,200/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - R with underscore", + "data": "R1_2/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - multiple R prefixes", + "data": "R12/R5/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - R in middle", + "data": "12/R/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - R at end", + "data": "12/19850412T232050/19850625T103000/R", + "valid": false + }, + { + "description": "Invalid - lowercase r with number", + "data": "r5/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - mixed case R", + "data": "r12/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - R with decimal point", + "data": "R12.0/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - R with fraction", + "data": "R1/2/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - R with scientific notation", + "data": "R1e2/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - R with hexadecimal", + "data": "R0x12/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - R followed by tab", + "data": "R\t12/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - R followed by newline", + "data": "R\n12/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - double slash after R", + "data": "R12//19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - backslash after R", + "data": "R12\\19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - missing both slashes", + "data": "R1219850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - R with parentheses", + "data": "R(12)/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - R with brackets", + "data": "R[12]/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - R with braces", + "data": "R{12}/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - extra character before R", + "data": "XR12/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - extra character after recurrence", + "data": "R12X/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - unicode R character", + "data": "ℜ12/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - R with asterisk", + "data": "R*/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - R with question mark", + "data": "R?/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - R with hash", + "data": "R#12/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - R with dollar sign", + "data": "R$12/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - R with percent", + "data": "R%12/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - R with ampersand", + "data": "R&12/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - R with at symbol", + "data": "R@12/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - R with caret", + "data": "R^12/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - R with tilde", + "data": "R~12/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - R with backtick", + "data": "R`12/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - R with pipe", + "data": "R|12/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - R with equals", + "data": "R=12/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - R with semicolon", + "data": "R;12/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - R with colon", + "data": "R:12/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - R with single quote", + "data": "R'12/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - R with double quote", + "data": "R\"12/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - R with less than", + "data": "R<12/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - R with greater than", + "data": "R>12/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - only R/", + "data": "R/", + "valid": false + }, + { + "description": "Invalid - R//interval", + "data": "R//19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - trailing slash", + "data": "R12/19850412T232050/19850625T103000/", + "valid": false + }, + { + "description": "Invalid - leading slash", + "data": "/R12/19850412T232050/19850625T103000", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/recurring/start-end-calendar-extended/v1.test.json b/test/schemas/iso/datetime/2019/recurring/start-end-calendar-extended/v1.test.json new file mode 100644 index 00000000..6aed8a93 --- /dev/null +++ b/test/schemas/iso/datetime/2019/recurring/start-end-calendar-extended/v1.test.json @@ -0,0 +1,570 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/recurring/start-end-calendar-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 19850412232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - R12 with interval", + "data": "R12/1985-04-12T23:20:50/1985-06-25T10:30:00", + "valid": true + }, + { + "description": "Valid - R without number (unbounded)", + "data": "R/1985-04-12T23:20:50/1985-06-25T10:30:00", + "valid": true + }, + { + "description": "Valid - R0 (zero recurrences)", + "data": "R0/1985-04-12T23:20:50/1985-06-25T10:30:00", + "valid": true + }, + { + "description": "Valid - R9999 (large number)", + "data": "R9999/1985-04-12T23:20:50/1985-06-25T10:30:00", + "valid": true + }, + { + "description": "Valid - R1 (single recurrence)", + "data": "R1/1985-04-12T23:20:50/1985-06-25T10:30:00", + "valid": true + }, + { + "description": "Valid - R52 weekly for a year", + "data": "R52/1985-04-12T23:20:50/1985-06-25T10:30:00", + "valid": true + }, + { + "description": "Valid - R24 every hour for a day", + "data": "R24/1985-04-12T23:20:50/1985-06-25T10:30:00", + "valid": true + }, + { + "description": "Valid - R7 daily for a week", + "data": "R7/1985-04-12T23:20:50/1985-06-25T10:30:00", + "valid": true + }, + { + "description": "Invalid - missing R prefix", + "data": "12/1985-04-12T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - lowercase r prefix", + "data": "r12/1985-04-12T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - space after R", + "data": "R 12/1985-04-12T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - negative recurrence number", + "data": "R-5/1985-04-12T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - decimal recurrence number", + "data": "R12.5/1985-04-12T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - double R", + "data": "RR12/1985-04-12T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - R with plus sign", + "data": "R+12/1985-04-12T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Valid - 12 April 1985 to 25 June 1985", + "data": "R12/1985-04-12T23:20:50/1985-06-25T10:30:00", + "valid": true + }, + { + "description": "Valid - 1 January 2000 to 31 December 2000", + "data": "R12/2000-01-01T00:00:00/2000-12-31T23:59:59", + "valid": true + }, + { + "description": "Valid - same day interval", + "data": "R12/2023-01-01T12:00:00/2023-01-01T18:00:00", + "valid": true + }, + { + "description": "Valid - cross year boundary", + "data": "R12/2022-12-31T23:00:00/2023-01-01T01:00:00", + "valid": true + }, + { + "description": "Valid - 31 January to 28 February", + "data": "R12/2023-01-31T00:00:00/2023-02-28T23:59:59", + "valid": true + }, + { + "description": "Valid - leap year February 29", + "data": "R12/2020-02-28T12:00:00/2020-02-29T12:00:00", + "valid": true + }, + { + "description": "Valid - with leap second (60 seconds)", + "data": "R12/1985-04-12T23:59:60/1985-04-13T00:00:00", + "valid": true + }, + { + "description": "Valid - midnight to midnight", + "data": "R12/2023-01-01T00:00:00/2023-01-02T00:00:00", + "valid": true + }, + { + "description": "Valid - 31 May to 30 June", + "data": "R12/2023-05-31T12:00:00/2023-06-30T12:00:00", + "valid": true + }, + { + "description": "Valid - 31 August to 30 September", + "data": "R12/2023-08-31T12:00:00/2023-09-30T12:00:00", + "valid": true + }, + { + "description": "Valid - 31 October to 30 November", + "data": "R12/2023-10-31T12:00:00/2023-11-30T12:00:00", + "valid": true + }, + { + "description": "Invalid - missing separator slash", + "data": "R12/1985-04-12T23:20:501985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - basic format (no hyphens or colons)", + "data": "R12/19850412T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - mixed formats (basic start, extended end)", + "data": "R12/19850412T232050/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - mixed formats (extended start, basic end)", + "data": "R12/1985-04-12T23:20:50/19850625T103000", + "valid": false + }, + { + "description": "Invalid - missing end datetime", + "data": "R12/1985-04-12T23:20:50/", + "valid": false + }, + { + "description": "Invalid - missing start datetime", + "data": "R12//1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - only separator", + "data": "R12//", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "R12/", + "valid": false + }, + { + "description": "Invalid - spaces around separator", + "data": "R12/1985-04-12T23:20:50 / 1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - start month 00", + "data": "R12/1985-00-12T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - start month 13", + "data": "R12/1985-13-12T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - end month 00", + "data": "R12/1985-04-12T23:20:50/1985-00-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - end month 13", + "data": "R12/1985-04-12T23:20:50/1985-13-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - start day 00", + "data": "R12/1985-04-00T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - start day 32", + "data": "R12/1985-04-32T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - end day 00", + "data": "R12/1985-04-12T23:20:50/1985-06-00T10:30:00", + "valid": false + }, + { + "description": "Invalid - end day 32", + "data": "R12/1985-04-12T23:20:50/1985-06-32T10:30:00", + "valid": false + }, + { + "description": "Invalid - start 31 April", + "data": "R12/1985-04-31T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - start 31 June", + "data": "R12/1985-06-31T23:20:50/1985-07-31T10:30:00", + "valid": false + }, + { + "description": "Invalid - start 31 September", + "data": "R12/1985-09-31T23:20:50/1985-10-31T10:30:00", + "valid": false + }, + { + "description": "Invalid - start 31 November", + "data": "R12/1985-11-31T23:20:50/1985-12-31T10:30:00", + "valid": false + }, + { + "description": "Invalid - end 31 April", + "data": "R12/1985-04-01T23:20:50/1985-04-31T10:30:00", + "valid": false + }, + { + "description": "Invalid - end 31 June", + "data": "R12/1985-06-01T23:20:50/1985-06-31T10:30:00", + "valid": false + }, + { + "description": "Invalid - end 31 September", + "data": "R12/1985-09-01T23:20:50/1985-09-31T10:30:00", + "valid": false + }, + { + "description": "Invalid - end 31 November", + "data": "R12/1985-11-01T23:20:50/1985-11-31T10:30:00", + "valid": false + }, + { + "description": "Invalid - start 30 February", + "data": "R12/2023-02-30T12:00:00/2023-03-31T12:00:00", + "valid": false + }, + { + "description": "Invalid - end 30 February", + "data": "R12/2023-01-31T12:00:00/2023-02-30T12:00:00", + "valid": false + }, + { + "description": "Invalid - start hour 24", + "data": "R12/1985-04-12T24:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - start hour 25", + "data": "R12/1985-04-12T25:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - end hour 24", + "data": "R12/1985-04-12T23:20:50/1985-06-25T24:30:00", + "valid": false + }, + { + "description": "Invalid - start minute 60", + "data": "R12/1985-04-12T23:60:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - end minute 60", + "data": "R12/1985-04-12T23:20:50/1985-06-25T10:60:00", + "valid": false + }, + { + "description": "Invalid - start second 61", + "data": "R12/1985-04-12T23:20:61/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - end second 61", + "data": "R12/1985-04-12T23:20:50/1985-06-25T10:30:61", + "valid": false + }, + { + "description": "Invalid - missing T separator in start", + "data": "R12/1985-04-1223:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - missing T separator in end", + "data": "R12/1985-04-12T23:20:50/1985-06-2510:30:00", + "valid": false + }, + { + "description": "Invalid - lowercase t in start", + "data": "R12/1985-04-12t23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - lowercase t in end", + "data": "R12/1985-04-12T23:20:50/1985-06-25t10:30:00", + "valid": false + }, + { + "description": "Invalid - duration instead of end datetime", + "data": "R12/1985-04-12T23:20:50/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - duration instead of start datetime", + "data": "R12/P1Y2M15DT12H30M0S/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - missing hyphen in start date", + "data": "R12/19850412T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - missing hyphen in end date", + "data": "R12/1985-04-12T23:20:50/19850625T10:30:00", + "valid": false + }, + { + "description": "Invalid - missing colon in start time", + "data": "R12/1985-04-12T232050/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - missing colon in end time", + "data": "R12/1985-04-12T23:20:50/1985-06-25T103000", + "valid": false + }, + { + "description": "Invalid - letters in start date", + "data": "R12/ABCD-04-12T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - letters in end date", + "data": "R12/1985-04-12T23:20:50/ABCD-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - letters in start time", + "data": "R12/1985-04-12TAB:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - letters in end time", + "data": "R12/1985-04-12T23:20:50/1985-06-25TAB:30:00", + "valid": false + }, + { + "description": "Valid - 29 February (leap year validation is consumer responsibility)", + "data": "R12/2023-02-29T12:00:00/2023-03-31T12:00:00", + "valid": true + }, + { + "description": "Valid - both start and end with 29 February", + "data": "R12/2023-02-29T00:00:00/2024-02-29T23:59:59", + "valid": true + }, + { + "description": "Invalid - double slash separator", + "data": "R12/1985-04-12T23:20:50//1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "R12/1985-04-12T23:20:50\\1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Valid - reversed order (end before start is syntactically valid per ISO 8601)", + "data": "R12/1985-06-25T10:30:00/1985-04-12T23:20:50", + "valid": true + }, + { + "description": "Invalid - start hour 99", + "data": "R12/1985-04-12T99:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - end hour 99", + "data": "R12/1985-04-12T23:20:50/1985-06-25T99:30:00", + "valid": false + }, + { + "description": "Invalid - start minute 99", + "data": "R12/1985-04-12T23:99:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - end minute 99", + "data": "R12/1985-04-12T23:20:50/1985-06-25T10:99:00", + "valid": false + }, + { + "description": "Invalid - start second 99", + "data": "R12/1985-04-12T23:20:99/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - end second 99", + "data": "R12/1985-04-12T23:20:50/1985-06-25T10:30:99", + "valid": false + }, + { + "description": "Invalid - letter in start year", + "data": "R12/I985-04-12T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in end year", + "data": "R12/1985-04-12T23:20:50/I985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in start month", + "data": "R12/1985-0I-12T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in end month", + "data": "R12/1985-04-12T23:20:50/1985-0I-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in start day", + "data": "R12/1985-04-I2T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in end day", + "data": "R12/1985-04-12T23:20:50/1985-06-I5T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in start hour", + "data": "R12/1985-04-12TI3:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in end hour", + "data": "R12/1985-04-12T23:20:50/1985-06-25TI0:30:00", + "valid": false + }, + { + "description": "Invalid - letter in start minute", + "data": "R12/1985-04-12T23:I0:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in end minute", + "data": "R12/1985-04-12T23:20:50/1985-06-25T10:I0:00", + "valid": false + }, + { + "description": "Invalid - letter in start second", + "data": "R12/1985-04-12T23:20:I0/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in end second", + "data": "R12/1985-04-12T23:20:50/1985-06-25T10:30:I0", + "valid": false + }, + { + "description": "Invalid - too short start datetime", + "data": "R12/1985-04-12T23:20:5/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - too short end datetime", + "data": "R12/1985-04-12T23:20:50/1985-06-25T10:30:0", + "valid": false + }, + { + "description": "Invalid - too long start datetime", + "data": "R12/1985-04-12T23:20:500/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - too long end datetime", + "data": "R12/1985-04-12T23:20:50/1985-06-25T10:30:000", + "valid": false + }, + { + "description": "Invalid - extra character at start", + "data": "R12/X1985-04-12T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - extra character at end", + "data": "R12/1985-04-12T23:20:50/1985-06-25T10:30:00X", + "valid": false + }, + { + "description": "Invalid - extra character in middle", + "data": "R12/1985-04-12T23:20:50X/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - space in start date", + "data": "R12/1985-04- 12T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - space in end date", + "data": "R12/1985-04-12T23:20:50/1985-06- 25T10:30:00", + "valid": false + }, + { + "description": "Invalid - space in start time", + "data": "R12/1985-04-12T23: 20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - space in end time", + "data": "R12/1985-04-12T23:20:50/1985-06-25T10: 30:00", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/recurring/start-end-ordinal-basic/v1.test.json b/test/schemas/iso/datetime/2019/recurring/start-end-ordinal-basic/v1.test.json new file mode 100644 index 00000000..097cabaa --- /dev/null +++ b/test/schemas/iso/datetime/2019/recurring/start-end-ordinal-basic/v1.test.json @@ -0,0 +1,490 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/recurring/start-end-ordinal-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985102232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - R12 with interval", + "data": "R12/1985102T232050/1985176T103000", + "valid": true + }, + { + "description": "Valid - R without number (unbounded)", + "data": "R/1985102T232050/1985176T103000", + "valid": true + }, + { + "description": "Valid - R0 (zero recurrences)", + "data": "R0/1985102T232050/1985176T103000", + "valid": true + }, + { + "description": "Valid - R9999 (large number)", + "data": "R9999/1985102T232050/1985176T103000", + "valid": true + }, + { + "description": "Valid - R1 (single recurrence)", + "data": "R1/1985102T232050/1985176T103000", + "valid": true + }, + { + "description": "Valid - R52 weekly for a year", + "data": "R52/1985102T232050/1985176T103000", + "valid": true + }, + { + "description": "Valid - R24 every hour for a day", + "data": "R24/1985102T232050/1985176T103000", + "valid": true + }, + { + "description": "Valid - R7 daily for a week", + "data": "R7/1985102T232050/1985176T103000", + "valid": true + }, + { + "description": "Invalid - missing R prefix", + "data": "12/1985102T232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - lowercase r prefix", + "data": "r12/1985102T232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - space after R", + "data": "R 12/1985102T232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - negative recurrence number", + "data": "R-5/1985102T232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - decimal recurrence number", + "data": "R12.5/1985102T232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - double R", + "data": "RR12/1985102T232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - R with plus sign", + "data": "R+12/1985102T232050/1985176T103000", + "valid": false + }, + { + "description": "Valid - day 102 to day 176 of 1985", + "data": "R12/1985102T232050/1985176T103000", + "valid": true + }, + { + "description": "Valid - day 1 to day 366 of 2000 (leap year)", + "data": "R12/2000001T000000/2000366T235959", + "valid": true + }, + { + "description": "Valid - day 1 to day 365 of 2023", + "data": "R12/2023001T120000/2023365T180000", + "valid": true + }, + { + "description": "Valid - same day interval", + "data": "R12/2023100T120000/2023100T180000", + "valid": true + }, + { + "description": "Valid - cross year boundary", + "data": "R12/2022365T230000/2023001T010000", + "valid": true + }, + { + "description": "Valid - first to last day of year", + "data": "R12/2020001T000000/2020366T235959", + "valid": true + }, + { + "description": "Valid - with leap second (60 seconds)", + "data": "R12/1985102T235960/1985103T000000", + "valid": true + }, + { + "description": "Valid - midnight to midnight", + "data": "R12/2023001T000000/2023002T000000", + "valid": true + }, + { + "description": "Valid - day 59 to day 60 (February 28-29 in leap year)", + "data": "R12/2020059T120000/2020060T120000", + "valid": true + }, + { + "description": "Invalid - missing separator slash", + "data": "R12/1985102T2320501985176T103000", + "valid": false + }, + { + "description": "Invalid - extended format (contains hyphens)", + "data": "R12/1985-102T23:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - mixed formats (basic start, extended end)", + "data": "R12/1985102T232050/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - mixed formats (extended start, basic end)", + "data": "R12/1985-102T23:20:50/1985176T103000", + "valid": false + }, + { + "description": "Invalid - missing end datetime", + "data": "R12/1985102T232050/", + "valid": false + }, + { + "description": "Invalid - missing start datetime", + "data": "R12//1985176T103000", + "valid": false + }, + { + "description": "Invalid - only separator", + "data": "R12//", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "R12/", + "valid": false + }, + { + "description": "Invalid - spaces around separator", + "data": "R12/1985102T232050 / 1985176T103000", + "valid": false + }, + { + "description": "Invalid - start day 000", + "data": "R12/1985000T232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - start day 367", + "data": "R12/1985367T232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - end day 000", + "data": "R12/1985102T232050/1985000T103000", + "valid": false + }, + { + "description": "Invalid - end day 367", + "data": "R12/1985102T232050/1985367T103000", + "valid": false + }, + { + "description": "Invalid - start hour 24", + "data": "R12/1985102T242050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - start hour 25", + "data": "R12/1985102T252050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - end hour 24", + "data": "R12/1985102T232050/1985176T243000", + "valid": false + }, + { + "description": "Invalid - start minute 60", + "data": "R12/1985102T236050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - end minute 60", + "data": "R12/1985102T232050/1985176T106000", + "valid": false + }, + { + "description": "Invalid - start second 61", + "data": "R12/1985102T232061/1985176T103000", + "valid": false + }, + { + "description": "Invalid - end second 61", + "data": "R12/1985102T232050/1985176T103061", + "valid": false + }, + { + "description": "Invalid - missing T separator in start", + "data": "R12/1985102232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - missing T separator in end", + "data": "R12/1985102T232050/1985176103000", + "valid": false + }, + { + "description": "Invalid - lowercase t in start", + "data": "R12/1985102t232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - lowercase t in end", + "data": "R12/1985102T232050/1985176t103000", + "valid": false + }, + { + "description": "Invalid - duration instead of end datetime", + "data": "R12/1985102T232050/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - duration instead of start datetime", + "data": "R12/P1Y2M15DT12H30M0S/1985176T103000", + "valid": false + }, + { + "description": "Invalid - calendar date instead of ordinal in start", + "data": "R12/19850412T232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - calendar date instead of ordinal in end", + "data": "R12/1985102T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - too few digits in start day", + "data": "R12/198502T232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - too many digits in start day", + "data": "R12/19851022T232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - letters in start date", + "data": "R12/ABCD102T232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - letters in end date", + "data": "R12/1985102T232050/ABCD176T103000", + "valid": false + }, + { + "description": "Invalid - letters in start time", + "data": "R12/1985102TABC050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - letters in end time", + "data": "R12/1985102T232050/1985176TABC000", + "valid": false + }, + { + "description": "Valid - day 366 in leap year", + "data": "R12/2020366T000000/2021001T000000", + "valid": true + }, + { + "description": "Valid - day 366 in non-leap year (validation is consumer responsibility)", + "data": "R12/2023366T120000/2024001T120000", + "valid": true + }, + { + "description": "Invalid - double slash separator", + "data": "R12/1985102T232050//1985176T103000", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "R12/1985102T232050\\1985176T103000", + "valid": false + }, + { + "description": "Valid - reversed order (end before start is syntactically valid per ISO 8601)", + "data": "R12/1985176T103000/1985102T232050", + "valid": true + }, + { + "description": "Invalid - week date format instead of ordinal in start", + "data": "R12/1985W155T232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - week date format instead of ordinal in end", + "data": "R12/1985102T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - start hour 99", + "data": "R12/1985102T992050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - end hour 99", + "data": "R12/1985102T232050/1985176T993000", + "valid": false + }, + { + "description": "Invalid - start minute 99", + "data": "R12/1985102T239950/1985176T103000", + "valid": false + }, + { + "description": "Invalid - end minute 99", + "data": "R12/1985102T232050/1985176T109900", + "valid": false + }, + { + "description": "Invalid - start second 99", + "data": "R12/1985102T232099/1985176T103000", + "valid": false + }, + { + "description": "Invalid - end second 99", + "data": "R12/1985102T232050/1985176T103099", + "valid": false + }, + { + "description": "Invalid - letter in start year", + "data": "R12/I985102T232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - letter in end year", + "data": "R12/1985102T232050/I985176T103000", + "valid": false + }, + { + "description": "Invalid - letter in start day", + "data": "R12/1985I02T232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - letter in end day", + "data": "R12/1985102T232050/1985I76T103000", + "valid": false + }, + { + "description": "Invalid - letter in start hour", + "data": "R12/1985102TI32050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - letter in end hour", + "data": "R12/1985102T232050/1985176TI03000", + "valid": false + }, + { + "description": "Invalid - letter in start minute", + "data": "R12/1985102T23I050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - letter in end minute", + "data": "R12/1985102T232050/1985176T10I000", + "valid": false + }, + { + "description": "Invalid - letter in start second", + "data": "R12/1985102T2320I0/1985176T103000", + "valid": false + }, + { + "description": "Invalid - letter in end second", + "data": "R12/1985102T232050/1985176T1030I0", + "valid": false + }, + { + "description": "Invalid - too short start datetime", + "data": "R12/1985102T23205/1985176T103000", + "valid": false + }, + { + "description": "Invalid - too short end datetime", + "data": "R12/1985102T232050/1985176T10300", + "valid": false + }, + { + "description": "Invalid - too long start datetime", + "data": "R12/1985102T2320500/1985176T103000", + "valid": false + }, + { + "description": "Invalid - too long end datetime", + "data": "R12/1985102T232050/1985176T1030000", + "valid": false + }, + { + "description": "Invalid - extra character at start", + "data": "R12/X1985102T232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - extra character at end", + "data": "R12/1985102T232050/1985176T103000X", + "valid": false + }, + { + "description": "Invalid - extra character in middle", + "data": "R12/1985102T232050X/1985176T103000", + "valid": false + }, + { + "description": "Invalid - space in start date", + "data": "R12/1985 102T232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - space in end date", + "data": "R12/1985102T232050/1985 176T103000", + "valid": false + }, + { + "description": "Invalid - space in start time", + "data": "R12/1985102T23 2050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - space in end time", + "data": "R12/1985102T232050/1985176T10 3000", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/recurring/start-end-ordinal-extended/v1.test.json b/test/schemas/iso/datetime/2019/recurring/start-end-ordinal-extended/v1.test.json new file mode 100644 index 00000000..832617d5 --- /dev/null +++ b/test/schemas/iso/datetime/2019/recurring/start-end-ordinal-extended/v1.test.json @@ -0,0 +1,475 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/recurring/start-end-ordinal-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985102232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - R12 with interval", + "data": "R12/1985-102T23:20:50/1985-176T10:30:00", + "valid": true + }, + { + "description": "Valid - R without number (unbounded)", + "data": "R/1985-102T23:20:50/1985-176T10:30:00", + "valid": true + }, + { + "description": "Valid - R0 (zero recurrences)", + "data": "R0/1985-102T23:20:50/1985-176T10:30:00", + "valid": true + }, + { + "description": "Valid - R9999 (large number)", + "data": "R9999/1985-102T23:20:50/1985-176T10:30:00", + "valid": true + }, + { + "description": "Valid - R1 (single recurrence)", + "data": "R1/1985-102T23:20:50/1985-176T10:30:00", + "valid": true + }, + { + "description": "Valid - R52 weekly for a year", + "data": "R52/1985-102T23:20:50/1985-176T10:30:00", + "valid": true + }, + { + "description": "Valid - R24 every hour for a day", + "data": "R24/1985-102T23:20:50/1985-176T10:30:00", + "valid": true + }, + { + "description": "Valid - R7 daily for a week", + "data": "R7/1985-102T23:20:50/1985-176T10:30:00", + "valid": true + }, + { + "description": "Invalid - missing R prefix", + "data": "12/1985-102T23:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - lowercase r prefix", + "data": "r12/1985-102T23:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - space after R", + "data": "R 12/1985-102T23:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - negative recurrence number", + "data": "R-5/1985-102T23:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - decimal recurrence number", + "data": "R12.5/1985-102T23:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - double R", + "data": "RR12/1985-102T23:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - R with plus sign", + "data": "R+12/1985-102T23:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Valid - day 102 to day 176 of 1985", + "data": "R12/1985-102T23:20:50/1985-176T10:30:00", + "valid": true + }, + { + "description": "Valid - day 1 to day 366 of 2000 (leap year)", + "data": "R12/2000-001T00:00:00/2000-366T23:59:59", + "valid": true + }, + { + "description": "Valid - day 1 to day 365 of 2023", + "data": "R12/2023-001T12:00:00/2023-365T18:00:00", + "valid": true + }, + { + "description": "Valid - same day interval", + "data": "R12/2023-100T12:00:00/2023-100T18:00:00", + "valid": true + }, + { + "description": "Valid - cross year boundary", + "data": "R12/2022-365T23:00:00/2023-001T01:00:00", + "valid": true + }, + { + "description": "Valid - with leap second (60 seconds)", + "data": "R12/1985-102T23:59:60/1985-103T00:00:00", + "valid": true + }, + { + "description": "Valid - midnight to midnight", + "data": "R12/2023-001T00:00:00/2023-002T00:00:00", + "valid": true + }, + { + "description": "Invalid - missing separator slash", + "data": "R12/1985-102T23:20:501985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - basic format (no hyphens or colons)", + "data": "R12/1985102T232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - mixed formats (basic start, extended end)", + "data": "R12/1985102T232050/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - mixed formats (extended start, basic end)", + "data": "R12/1985-102T23:20:50/1985176T103000", + "valid": false + }, + { + "description": "Invalid - missing end datetime", + "data": "R12/1985-102T23:20:50/", + "valid": false + }, + { + "description": "Invalid - missing start datetime", + "data": "R12//1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - only separator", + "data": "R12//", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "R12/", + "valid": false + }, + { + "description": "Invalid - spaces around separator", + "data": "R12/1985-102T23:20:50 / 1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - start day 000", + "data": "R12/1985-000T23:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - start day 367", + "data": "R12/1985-367T23:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - end day 000", + "data": "R12/1985-102T23:20:50/1985-000T10:30:00", + "valid": false + }, + { + "description": "Invalid - end day 367", + "data": "R12/1985-102T23:20:50/1985-367T10:30:00", + "valid": false + }, + { + "description": "Invalid - start hour 24", + "data": "R12/1985-102T24:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - end hour 24", + "data": "R12/1985-102T23:20:50/1985-176T24:30:00", + "valid": false + }, + { + "description": "Invalid - start minute 60", + "data": "R12/1985-102T23:60:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - end minute 60", + "data": "R12/1985-102T23:20:50/1985-176T10:60:00", + "valid": false + }, + { + "description": "Invalid - start second 61", + "data": "R12/1985-102T23:20:61/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - end second 61", + "data": "R12/1985-102T23:20:50/1985-176T10:30:61", + "valid": false + }, + { + "description": "Invalid - missing T separator in start", + "data": "R12/1985-10223:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - missing T separator in end", + "data": "R12/1985-102T23:20:50/1985-17610:30:00", + "valid": false + }, + { + "description": "Invalid - lowercase t in start", + "data": "R12/1985-102t23:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - lowercase t in end", + "data": "R12/1985-102T23:20:50/1985-176t10:30:00", + "valid": false + }, + { + "description": "Invalid - duration instead of end datetime", + "data": "R12/1985-102T23:20:50/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - duration instead of start datetime", + "data": "R12/P1Y2M15DT12H30M0S/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - calendar date instead of ordinal in start", + "data": "R12/1985-04-12T23:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - calendar date instead of ordinal in end", + "data": "R12/1985-102T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - missing hyphen in start date", + "data": "R12/1985102T23:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - missing hyphen in end date", + "data": "R12/1985-102T23:20:50/1985176T10:30:00", + "valid": false + }, + { + "description": "Invalid - missing colon in start time", + "data": "R12/1985-102T232050/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - missing colon in end time", + "data": "R12/1985-102T23:20:50/1985-176T103000", + "valid": false + }, + { + "description": "Invalid - letters in start date", + "data": "R12/ABCD-102T23:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - letters in end date", + "data": "R12/1985-102T23:20:50/ABCD-176T10:30:00", + "valid": false + }, + { + "description": "Valid - day 366 in leap year", + "data": "R12/2020-366T00:00:00/2021-001T00:00:00", + "valid": true + }, + { + "description": "Valid - day 366 in non-leap year (validation is consumer responsibility)", + "data": "R12/2023-366T12:00:00/2024-001T12:00:00", + "valid": true + }, + { + "description": "Invalid - double slash separator", + "data": "R12/1985-102T23:20:50//1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "R12/1985-102T23:20:50\\1985-176T10:30:00", + "valid": false + }, + { + "description": "Valid - reversed order (end before start is syntactically valid per ISO 8601)", + "data": "R12/1985-176T10:30:00/1985-102T23:20:50", + "valid": true + }, + { + "description": "Invalid - week date format instead of ordinal in start", + "data": "R12/1985-W15-5T23:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - week date format instead of ordinal in end", + "data": "R12/1985-102T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - start hour 99", + "data": "R12/1985-102T99:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - end hour 99", + "data": "R12/1985-102T23:20:50/1985-176T99:30:00", + "valid": false + }, + { + "description": "Invalid - start minute 99", + "data": "R12/1985-102T23:99:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - end minute 99", + "data": "R12/1985-102T23:20:50/1985-176T10:99:00", + "valid": false + }, + { + "description": "Invalid - start second 99", + "data": "R12/1985-102T23:20:99/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - end second 99", + "data": "R12/1985-102T23:20:50/1985-176T10:30:99", + "valid": false + }, + { + "description": "Invalid - letter in start year", + "data": "R12/I985-102T23:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in end year", + "data": "R12/1985-102T23:20:50/I985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in start day", + "data": "R12/1985-I02T23:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in end day", + "data": "R12/1985-102T23:20:50/1985-I76T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in start hour", + "data": "R12/1985-102TI3:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in end hour", + "data": "R12/1985-102T23:20:50/1985-176TI0:30:00", + "valid": false + }, + { + "description": "Invalid - letter in start minute", + "data": "R12/1985-102T23:I0:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in end minute", + "data": "R12/1985-102T23:20:50/1985-176T10:I0:00", + "valid": false + }, + { + "description": "Invalid - letter in start second", + "data": "R12/1985-102T23:20:I0/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in end second", + "data": "R12/1985-102T23:20:50/1985-176T10:30:I0", + "valid": false + }, + { + "description": "Invalid - too short start datetime", + "data": "R12/1985-102T23:20:5/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - too short end datetime", + "data": "R12/1985-102T23:20:50/1985-176T10:30:0", + "valid": false + }, + { + "description": "Invalid - too long start datetime", + "data": "R12/1985-102T23:20:500/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - too long end datetime", + "data": "R12/1985-102T23:20:50/1985-176T10:30:000", + "valid": false + }, + { + "description": "Invalid - extra character at start", + "data": "R12/X1985-102T23:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - extra character at end", + "data": "R12/1985-102T23:20:50/1985-176T10:30:00X", + "valid": false + }, + { + "description": "Invalid - extra character in middle", + "data": "R12/1985-102T23:20:50X/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - space in start date", + "data": "R12/1985- 102T23:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - space in end date", + "data": "R12/1985-102T23:20:50/1985- 176T10:30:00", + "valid": false + }, + { + "description": "Invalid - space in start time", + "data": "R12/1985-102T23: 20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - space in end time", + "data": "R12/1985-102T23:20:50/1985-176T10: 30:00", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/recurring/start-end-week-basic/v1.test.json b/test/schemas/iso/datetime/2019/recurring/start-end-week-basic/v1.test.json new file mode 100644 index 00000000..6ef6773d --- /dev/null +++ b/test/schemas/iso/datetime/2019/recurring/start-end-week-basic/v1.test.json @@ -0,0 +1,500 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/recurring/start-end-week-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985155232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - R12 with interval", + "data": "R12/1985W155T232050/1985W261T103000", + "valid": true + }, + { + "description": "Valid - R without number (unbounded)", + "data": "R/1985W155T232050/1985W261T103000", + "valid": true + }, + { + "description": "Valid - R0 (zero recurrences)", + "data": "R0/1985W155T232050/1985W261T103000", + "valid": true + }, + { + "description": "Valid - R9999 (large number)", + "data": "R9999/1985W155T232050/1985W261T103000", + "valid": true + }, + { + "description": "Valid - R1 (single recurrence)", + "data": "R1/1985W155T232050/1985W261T103000", + "valid": true + }, + { + "description": "Valid - R52 weekly for a year", + "data": "R52/1985W155T232050/1985W261T103000", + "valid": true + }, + { + "description": "Valid - R24 every hour for a day", + "data": "R24/1985W155T232050/1985W261T103000", + "valid": true + }, + { + "description": "Valid - R7 daily for a week", + "data": "R7/1985W155T232050/1985W261T103000", + "valid": true + }, + { + "description": "Invalid - missing R prefix", + "data": "12/1985W155T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - lowercase r prefix", + "data": "r12/1985W155T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - space after R", + "data": "R 12/1985W155T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - negative recurrence number", + "data": "R-5/1985W155T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - decimal recurrence number", + "data": "R12.5/1985W155T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - double R", + "data": "RR12/1985W155T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - R with plus sign", + "data": "R+12/1985W155T232050/1985W261T103000", + "valid": false + }, + { + "description": "Valid - week 15 day 5 to week 26 day 1 of 1985", + "data": "R12/1985W155T232050/1985W261T103000", + "valid": true + }, + { + "description": "Valid - week 01 day 1 to week 52 day 7 of 2000", + "data": "R12/2000W011T000000/2000W527T235959", + "valid": true + }, + { + "description": "Valid - week 01 day 1 to week 52 day 7 of 2023", + "data": "R12/2023W011T120000/2023W527T180000", + "valid": true + }, + { + "description": "Valid - same week interval", + "data": "R12/2023W151T120000/2023W155T180000", + "valid": true + }, + { + "description": "Valid - cross year boundary", + "data": "R12/2022W527T230000/2023W011T010000", + "valid": true + }, + { + "description": "Valid - with leap second (60 seconds)", + "data": "R12/1985W155T235960/1985W156T000000", + "valid": true + }, + { + "description": "Valid - midnight to midnight", + "data": "R12/2023W011T000000/2023W012T000000", + "valid": true + }, + { + "description": "Valid - week 53 (some years have 53 weeks)", + "data": "R12/2020W531T000000/2021W011T000000", + "valid": true + }, + { + "description": "Invalid - missing separator slash", + "data": "R12/1985W155T2320501985W261T103000", + "valid": false + }, + { + "description": "Invalid - extended format (contains hyphens)", + "data": "R12/1985-W15-5T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - mixed formats (basic start, extended end)", + "data": "R12/1985W155T232050/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - mixed formats (extended start, basic end)", + "data": "R12/1985-W15-5T23:20:50/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - missing end datetime", + "data": "R12/1985W155T232050/", + "valid": false + }, + { + "description": "Invalid - missing start datetime", + "data": "R12//1985W261T103000", + "valid": false + }, + { + "description": "Invalid - only separator", + "data": "R12//", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "R12/", + "valid": false + }, + { + "description": "Invalid - spaces around separator", + "data": "R12/1985W155T232050 / 1985W261T103000", + "valid": false + }, + { + "description": "Invalid - start week 00", + "data": "R12/1985W005T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - start week 54", + "data": "R12/1985W545T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - end week 00", + "data": "R12/1985W155T232050/1985W001T103000", + "valid": false + }, + { + "description": "Invalid - end week 54", + "data": "R12/1985W155T232050/1985W541T103000", + "valid": false + }, + { + "description": "Invalid - start day 0", + "data": "R12/1985W150T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - start day 8", + "data": "R12/1985W158T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - end day 0", + "data": "R12/1985W155T232050/1985W260T103000", + "valid": false + }, + { + "description": "Invalid - end day 8", + "data": "R12/1985W155T232050/1985W268T103000", + "valid": false + }, + { + "description": "Invalid - start hour 24", + "data": "R12/1985W155T242050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - end hour 24", + "data": "R12/1985W155T232050/1985W261T243000", + "valid": false + }, + { + "description": "Invalid - start minute 60", + "data": "R12/1985W155T236050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - end minute 60", + "data": "R12/1985W155T232050/1985W261T106000", + "valid": false + }, + { + "description": "Invalid - start second 61", + "data": "R12/1985W155T232061/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - end second 61", + "data": "R12/1985W155T232050/1985W261T103061", + "valid": false + }, + { + "description": "Invalid - missing T separator in start", + "data": "R12/1985W155232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - missing T separator in end", + "data": "R12/1985W155T232050/1985W261103000", + "valid": false + }, + { + "description": "Invalid - lowercase t in start", + "data": "R12/1985W155t232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - lowercase t in end", + "data": "R12/1985W155T232050/1985W261t103000", + "valid": false + }, + { + "description": "Invalid - lowercase w in start", + "data": "R12/1985w155T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - lowercase w in end", + "data": "R12/1985W155T232050/1985w261T103000", + "valid": false + }, + { + "description": "Invalid - missing W designator in start", + "data": "R12/1985155T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - missing W designator in end", + "data": "R12/1985W155T232050/1985261T103000", + "valid": false + }, + { + "description": "Invalid - duration instead of end datetime", + "data": "R12/1985W155T232050/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - duration instead of start datetime", + "data": "R12/P1Y2M15DT12H30M0S/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - calendar date instead of week in start", + "data": "R12/19850412T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - calendar date instead of week in end", + "data": "R12/1985W155T232050/19850625T103000", + "valid": false + }, + { + "description": "Invalid - ordinal date instead of week in start", + "data": "R12/1985102T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - ordinal date instead of week in end", + "data": "R12/1985W155T232050/1985176T103000", + "valid": false + }, + { + "description": "Invalid - letters in start date", + "data": "R12/ABCDW155T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - letters in end date", + "data": "R12/1985W155T232050/ABCDW261T103000", + "valid": false + }, + { + "description": "Invalid - double slash separator", + "data": "R12/1985W155T232050//1985W261T103000", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "R12/1985W155T232050\\1985W261T103000", + "valid": false + }, + { + "description": "Valid - reversed order (end before start is syntactically valid per ISO 8601)", + "data": "R12/1985W261T103000/1985W155T232050", + "valid": true + }, + { + "description": "Invalid - start hour 99", + "data": "R12/1985W155T992050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - end hour 99", + "data": "R12/1985W155T232050/1985W261T993000", + "valid": false + }, + { + "description": "Invalid - start minute 99", + "data": "R12/1985W155T239950/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - end minute 99", + "data": "R12/1985W155T232050/1985W261T109900", + "valid": false + }, + { + "description": "Invalid - start second 99", + "data": "R12/1985W155T232099/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - end second 99", + "data": "R12/1985W155T232050/1985W261T103099", + "valid": false + }, + { + "description": "Invalid - letter in start year", + "data": "R12/I985W155T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - letter in end year", + "data": "R12/1985W155T232050/I985W261T103000", + "valid": false + }, + { + "description": "Invalid - letter in start week", + "data": "R12/1985WI55T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - letter in end week", + "data": "R12/1985W155T232050/1985WI61T103000", + "valid": false + }, + { + "description": "Invalid - letter in start day", + "data": "R12/1985W15IT232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - letter in end day", + "data": "R12/1985W155T232050/1985W26IT103000", + "valid": false + }, + { + "description": "Invalid - letter in start hour", + "data": "R12/1985W155TI32050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - letter in end hour", + "data": "R12/1985W155T232050/1985W261TI03000", + "valid": false + }, + { + "description": "Invalid - letter in start minute", + "data": "R12/1985W155T23I050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - letter in end minute", + "data": "R12/1985W155T232050/1985W261T10I000", + "valid": false + }, + { + "description": "Invalid - letter in start second", + "data": "R12/1985W155T2320I0/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - letter in end second", + "data": "R12/1985W155T232050/1985W261T1030I0", + "valid": false + }, + { + "description": "Invalid - too short start datetime", + "data": "R12/1985W155T23205/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - too short end datetime", + "data": "R12/1985W155T232050/1985W261T10300", + "valid": false + }, + { + "description": "Invalid - too long start datetime", + "data": "R12/1985W155T2320500/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - too long end datetime", + "data": "R12/1985W155T232050/1985W261T1030000", + "valid": false + }, + { + "description": "Invalid - extra character at start", + "data": "R12/X1985W155T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - extra character at end", + "data": "R12/1985W155T232050/1985W261T103000X", + "valid": false + }, + { + "description": "Invalid - extra character in middle", + "data": "R12/1985W155T232050X/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - space in start date", + "data": "R12/1985W15 5T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - space in end date", + "data": "R12/1985W155T232050/1985W26 1T103000", + "valid": false + }, + { + "description": "Invalid - space in start time", + "data": "R12/1985W155T23 2050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - space in end time", + "data": "R12/1985W155T232050/1985W261T10 3000", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/recurring/start-end-week-extended/v1.test.json b/test/schemas/iso/datetime/2019/recurring/start-end-week-extended/v1.test.json new file mode 100644 index 00000000..0c49cb1f --- /dev/null +++ b/test/schemas/iso/datetime/2019/recurring/start-end-week-extended/v1.test.json @@ -0,0 +1,520 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/recurring/start-end-week-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 1985155232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - R12 with interval", + "data": "R12/1985-W15-5T23:20:50/1985-W26-1T10:30:00", + "valid": true + }, + { + "description": "Valid - R without number (unbounded)", + "data": "R/1985-W15-5T23:20:50/1985-W26-1T10:30:00", + "valid": true + }, + { + "description": "Valid - R0 (zero recurrences)", + "data": "R0/1985-W15-5T23:20:50/1985-W26-1T10:30:00", + "valid": true + }, + { + "description": "Valid - R9999 (large number)", + "data": "R9999/1985-W15-5T23:20:50/1985-W26-1T10:30:00", + "valid": true + }, + { + "description": "Valid - R1 (single recurrence)", + "data": "R1/1985-W15-5T23:20:50/1985-W26-1T10:30:00", + "valid": true + }, + { + "description": "Valid - R52 weekly for a year", + "data": "R52/1985-W15-5T23:20:50/1985-W26-1T10:30:00", + "valid": true + }, + { + "description": "Valid - R24 every hour for a day", + "data": "R24/1985-W15-5T23:20:50/1985-W26-1T10:30:00", + "valid": true + }, + { + "description": "Valid - R7 daily for a week", + "data": "R7/1985-W15-5T23:20:50/1985-W26-1T10:30:00", + "valid": true + }, + { + "description": "Invalid - missing R prefix", + "data": "12/1985-W15-5T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - lowercase r prefix", + "data": "r12/1985-W15-5T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - space after R", + "data": "R 12/1985-W15-5T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - negative recurrence number", + "data": "R-5/1985-W15-5T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - decimal recurrence number", + "data": "R12.5/1985-W15-5T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - double R", + "data": "RR12/1985-W15-5T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - R with plus sign", + "data": "R+12/1985-W15-5T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Valid - week 15 day 5 to week 26 day 1 of 1985", + "data": "R12/1985-W15-5T23:20:50/1985-W26-1T10:30:00", + "valid": true + }, + { + "description": "Valid - week 01 day 1 to week 52 day 7 of 2000", + "data": "R12/2000-W01-1T00:00:00/2000-W52-7T23:59:59", + "valid": true + }, + { + "description": "Valid - week 01 day 1 to week 52 day 7 of 2023", + "data": "R12/2023-W01-1T12:00:00/2023-W52-7T18:00:00", + "valid": true + }, + { + "description": "Valid - same week interval", + "data": "R12/2023-W15-1T12:00:00/2023-W15-5T18:00:00", + "valid": true + }, + { + "description": "Valid - cross year boundary", + "data": "R12/2022-W52-7T23:00:00/2023-W01-1T01:00:00", + "valid": true + }, + { + "description": "Valid - with leap second (60 seconds)", + "data": "R12/1985-W15-5T23:59:60/1985-W15-6T00:00:00", + "valid": true + }, + { + "description": "Valid - midnight to midnight", + "data": "R12/2023-W01-1T00:00:00/2023-W01-2T00:00:00", + "valid": true + }, + { + "description": "Valid - week 53 (some years have 53 weeks)", + "data": "R12/2020-W53-1T00:00:00/2021-W01-1T00:00:00", + "valid": true + }, + { + "description": "Invalid - missing separator slash", + "data": "R12/1985-W15-5T23:20:501985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - basic format (no hyphens or colons)", + "data": "R12/1985W155T232050/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - mixed formats (basic start, extended end)", + "data": "R12/1985W155T232050/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - mixed formats (extended start, basic end)", + "data": "R12/1985-W15-5T23:20:50/1985W261T103000", + "valid": false + }, + { + "description": "Invalid - missing end datetime", + "data": "R12/1985-W15-5T23:20:50/", + "valid": false + }, + { + "description": "Invalid - missing start datetime", + "data": "R12//1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - only separator", + "data": "R12//", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "R12/", + "valid": false + }, + { + "description": "Invalid - spaces around separator", + "data": "R12/1985-W15-5T23:20:50 / 1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - start week 00", + "data": "R12/1985-W00-5T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - start week 54", + "data": "R12/1985-W54-5T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - end week 00", + "data": "R12/1985-W15-5T23:20:50/1985-W00-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - end week 54", + "data": "R12/1985-W15-5T23:20:50/1985-W54-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - start day 0", + "data": "R12/1985-W15-0T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - start day 8", + "data": "R12/1985-W15-8T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - end day 0", + "data": "R12/1985-W15-5T23:20:50/1985-W26-0T10:30:00", + "valid": false + }, + { + "description": "Invalid - end day 8", + "data": "R12/1985-W15-5T23:20:50/1985-W26-8T10:30:00", + "valid": false + }, + { + "description": "Invalid - start hour 24", + "data": "R12/1985-W15-5T24:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - end hour 24", + "data": "R12/1985-W15-5T23:20:50/1985-W26-1T24:30:00", + "valid": false + }, + { + "description": "Invalid - start minute 60", + "data": "R12/1985-W15-5T23:60:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - end minute 60", + "data": "R12/1985-W15-5T23:20:50/1985-W26-1T10:60:00", + "valid": false + }, + { + "description": "Invalid - start second 61", + "data": "R12/1985-W15-5T23:20:61/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - end second 61", + "data": "R12/1985-W15-5T23:20:50/1985-W26-1T10:30:61", + "valid": false + }, + { + "description": "Invalid - missing T separator in start", + "data": "R12/1985-W15-523:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - missing T separator in end", + "data": "R12/1985-W15-5T23:20:50/1985-W26-110:30:00", + "valid": false + }, + { + "description": "Invalid - lowercase t in start", + "data": "R12/1985-W15-5t23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - lowercase t in end", + "data": "R12/1985-W15-5T23:20:50/1985-W26-1t10:30:00", + "valid": false + }, + { + "description": "Invalid - lowercase w in start", + "data": "R12/1985-w15-5T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - lowercase w in end", + "data": "R12/1985-W15-5T23:20:50/1985-w26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - missing W designator in start", + "data": "R12/1985-15-5T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - missing W designator in end", + "data": "R12/1985-W15-5T23:20:50/1985-26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - duration instead of end datetime", + "data": "R12/1985-W15-5T23:20:50/P1Y2M15DT12H30M0S", + "valid": false + }, + { + "description": "Invalid - duration instead of start datetime", + "data": "R12/P1Y2M15DT12H30M0S/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - calendar date instead of week in start", + "data": "R12/1985-04-12T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - calendar date instead of week in end", + "data": "R12/1985-W15-5T23:20:50/1985-06-25T10:30:00", + "valid": false + }, + { + "description": "Invalid - ordinal date instead of week in start", + "data": "R12/1985-102T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - ordinal date instead of week in end", + "data": "R12/1985-W15-5T23:20:50/1985-176T10:30:00", + "valid": false + }, + { + "description": "Invalid - missing hyphen in start date", + "data": "R12/1985W155T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - missing hyphen in end date", + "data": "R12/1985-W15-5T23:20:50/1985W261T10:30:00", + "valid": false + }, + { + "description": "Invalid - missing colon in start time", + "data": "R12/1985-W15-5T232050/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - missing colon in end time", + "data": "R12/1985-W15-5T23:20:50/1985-W26-1T103000", + "valid": false + }, + { + "description": "Invalid - letters in start date", + "data": "R12/ABCD-W15-5T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - letters in end date", + "data": "R12/1985-W15-5T23:20:50/ABCD-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - double slash separator", + "data": "R12/1985-W15-5T23:20:50//1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - backslash separator", + "data": "R12/1985-W15-5T23:20:50\\1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Valid - reversed order (end before start is syntactically valid per ISO 8601)", + "data": "R12/1985-W26-1T10:30:00/1985-W15-5T23:20:50", + "valid": true + }, + { + "description": "Invalid - start hour 99", + "data": "R12/1985-W15-5T99:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - end hour 99", + "data": "R12/1985-W15-5T23:20:50/1985-W26-1T99:30:00", + "valid": false + }, + { + "description": "Invalid - start minute 99", + "data": "R12/1985-W15-5T23:99:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - end minute 99", + "data": "R12/1985-W15-5T23:20:50/1985-W26-1T10:99:00", + "valid": false + }, + { + "description": "Invalid - start second 99", + "data": "R12/1985-W15-5T23:20:99/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - end second 99", + "data": "R12/1985-W15-5T23:20:50/1985-W26-1T10:30:99", + "valid": false + }, + { + "description": "Invalid - letter in start year", + "data": "R12/I985-W15-5T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in end year", + "data": "R12/1985-W15-5T23:20:50/I985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in start week", + "data": "R12/1985-WI5-5T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in end week", + "data": "R12/1985-W15-5T23:20:50/1985-WI6-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in start day", + "data": "R12/1985-W15-IT23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in end day", + "data": "R12/1985-W15-5T23:20:50/1985-W26-IT10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in start hour", + "data": "R12/1985-W15-5TI3:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in end hour", + "data": "R12/1985-W15-5T23:20:50/1985-W26-1TI0:30:00", + "valid": false + }, + { + "description": "Invalid - letter in start minute", + "data": "R12/1985-W15-5T23:I0:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in end minute", + "data": "R12/1985-W15-5T23:20:50/1985-W26-1T10:I0:00", + "valid": false + }, + { + "description": "Invalid - letter in start second", + "data": "R12/1985-W15-5T23:20:I0/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - letter in end second", + "data": "R12/1985-W15-5T23:20:50/1985-W26-1T10:30:I0", + "valid": false + }, + { + "description": "Invalid - too short start datetime", + "data": "R12/1985-W15-5T23:20:5/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - too short end datetime", + "data": "R12/1985-W15-5T23:20:50/1985-W26-1T10:30:0", + "valid": false + }, + { + "description": "Invalid - too long start datetime", + "data": "R12/1985-W15-5T23:20:500/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - too long end datetime", + "data": "R12/1985-W15-5T23:20:50/1985-W26-1T10:30:000", + "valid": false + }, + { + "description": "Invalid - extra character at start", + "data": "R12/X1985-W15-5T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - extra character at end", + "data": "R12/1985-W15-5T23:20:50/1985-W26-1T10:30:00X", + "valid": false + }, + { + "description": "Invalid - extra character in middle", + "data": "R12/1985-W15-5T23:20:50X/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - space in start date", + "data": "R12/1985-W15- 5T23:20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - space in end date", + "data": "R12/1985-W15-5T23:20:50/1985-W26- 1T10:30:00", + "valid": false + }, + { + "description": "Invalid - space in start time", + "data": "R12/1985-W15-5T23: 20:50/1985-W26-1T10:30:00", + "valid": false + }, + { + "description": "Invalid - space in end time", + "data": "R12/1985-W15-5T23:20:50/1985-W26-1T10: 30:00", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/time/beginning-day-basic/v1.test.json b/test/schemas/iso/datetime/2019/time/beginning-day-basic/v1.test.json new file mode 100644 index 00000000..9623afcb --- /dev/null +++ b/test/schemas/iso/datetime/2019/time/beginning-day-basic/v1.test.json @@ -0,0 +1,75 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/time/beginning-day-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 0, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - T000000", + "data": "T000000", + "valid": true + }, + { + "description": "Valid - 000000 without T", + "data": "000000", + "valid": true + }, + { + "description": "Invalid - lowercase t", + "data": "t000000", + "valid": false + }, + { + "description": "Invalid - any non-zero hour", + "data": "T010000", + "valid": false + }, + { + "description": "Invalid - any non-zero minute", + "data": "T000100", + "valid": false + }, + { + "description": "Invalid - any non-zero second", + "data": "T000001", + "valid": false + }, + { + "description": "Invalid - colons (extended format)", + "data": "T00:00:00", + "valid": false + }, + { + "description": "Invalid - 000000 with colons", + "data": "00:00:00", + "valid": false + }, + { + "description": "Invalid - too few digits", + "data": "T00000", + "valid": false + }, + { + "description": "Invalid - too many digits", + "data": "T0000000", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/time/beginning-day-extended/v1.test.json b/test/schemas/iso/datetime/2019/time/beginning-day-extended/v1.test.json new file mode 100644 index 00000000..eac65592 --- /dev/null +++ b/test/schemas/iso/datetime/2019/time/beginning-day-extended/v1.test.json @@ -0,0 +1,75 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/time/beginning-day-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 0, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - 00:00:00 without T", + "data": "00:00:00", + "valid": true + }, + { + "description": "Valid - T00:00:00 with T", + "data": "T00:00:00", + "valid": true + }, + { + "description": "Invalid - lowercase t", + "data": "t00:00:00", + "valid": false + }, + { + "description": "Invalid - any non-zero hour", + "data": "01:00:00", + "valid": false + }, + { + "description": "Invalid - any non-zero minute", + "data": "00:01:00", + "valid": false + }, + { + "description": "Invalid - any non-zero second", + "data": "00:00:01", + "valid": false + }, + { + "description": "Invalid - basic format (no colons)", + "data": "T000000", + "valid": false + }, + { + "description": "Invalid - 000000 without colons", + "data": "000000", + "valid": false + }, + { + "description": "Invalid - too few digits", + "data": "00:00:0", + "valid": false + }, + { + "description": "Invalid - too many digits", + "data": "00:00:000", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/time/decimal-hour-basic/v1.test.json b/test/schemas/iso/datetime/2019/time/decimal-hour-basic/v1.test.json new file mode 100644 index 00000000..8352650f --- /dev/null +++ b/test/schemas/iso/datetime/2019/time/decimal-hour-basic/v1.test.json @@ -0,0 +1,110 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/time/decimal-hour-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 23, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - decimal hour with comma", + "data": "T23,3", + "valid": true + }, + { + "description": "Valid - decimal hour with period", + "data": "T23.3", + "valid": true + }, + { + "description": "Valid - midnight with decimal", + "data": "T00,0", + "valid": true + }, + { + "description": "Valid - T12.5", + "data": "T12.5", + "valid": true + }, + { + "description": "Valid - multiple decimal digits", + "data": "T15,75", + "valid": true + }, + { + "description": "Invalid - no decimal part", + "data": "T23", + "valid": false + }, + { + "description": "Invalid - decimal sign without digits", + "data": "T23,", + "valid": false + }, + { + "description": "Invalid - decimal sign without digits (period)", + "data": "T23.", + "valid": false + }, + { + "description": "Invalid - missing T designator", + "data": "23,3", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "t23,3", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "T24,0", + "valid": false + }, + { + "description": "Invalid - hour 99", + "data": "T99,0", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "T00,0", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "T23,0", + "valid": true + }, + { + "description": "Invalid - includes minutes", + "data": "T2320,5", + "valid": false + }, + { + "description": "Invalid - with colon", + "data": "T23:30,5", + "valid": false + }, + { + "description": "Invalid - with Z designator", + "data": "T23,3Z", + "valid": false + }, + { + "description": "Invalid - with time shift", + "data": "T23,3+01", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/time/decimal-minute-basic/v1.test.json b/test/schemas/iso/datetime/2019/time/decimal-minute-basic/v1.test.json new file mode 100644 index 00000000..c517a62a --- /dev/null +++ b/test/schemas/iso/datetime/2019/time/decimal-minute-basic/v1.test.json @@ -0,0 +1,130 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/time/decimal-minute-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 2320, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - decimal minute with comma", + "data": "T2320,8", + "valid": true + }, + { + "description": "Valid - decimal minute with period", + "data": "T2320.8", + "valid": true + }, + { + "description": "Valid - midnight with decimal", + "data": "T0000,0", + "valid": true + }, + { + "description": "Valid - multiple decimal digits", + "data": "T2359,999", + "valid": true + }, + { + "description": "Valid - T1200.5", + "data": "T1200.5", + "valid": true + }, + { + "description": "Invalid - no decimal part", + "data": "T2320", + "valid": false + }, + { + "description": "Invalid - decimal sign without digits", + "data": "T2320,", + "valid": false + }, + { + "description": "Invalid - decimal sign without digits (period)", + "data": "T2320.", + "valid": false + }, + { + "description": "Invalid - missing T designator", + "data": "2320,8", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "t2320,8", + "valid": false + }, + { + "description": "Invalid - colons (extended format)", + "data": "T23:20,8", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "T2400,0", + "valid": false + }, + { + "description": "Invalid - hour 99", + "data": "T9900,0", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "T0060,0", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "T0099,0", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "T0000,0", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "T2300,0", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "T0000,0", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "T0059,0", + "valid": true + }, + { + "description": "Invalid - includes seconds", + "data": "T232030,5", + "valid": false + }, + { + "description": "Invalid - with Z designator", + "data": "T2320,8Z", + "valid": false + }, + { + "description": "Invalid - with time shift", + "data": "T2320,8+0100", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/time/decimal-minute-extended/v1.test.json b/test/schemas/iso/datetime/2019/time/decimal-minute-extended/v1.test.json new file mode 100644 index 00000000..181b090e --- /dev/null +++ b/test/schemas/iso/datetime/2019/time/decimal-minute-extended/v1.test.json @@ -0,0 +1,125 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/time/decimal-minute-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 2320, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - decimal minute with comma, no T", + "data": "23:20,8", + "valid": true + }, + { + "description": "Valid - decimal minute with period and T", + "data": "T23:20.8", + "valid": true + }, + { + "description": "Valid - midnight with decimal", + "data": "00:00,0", + "valid": true + }, + { + "description": "Valid - multiple decimal digits", + "data": "T23:59,999", + "valid": true + }, + { + "description": "Valid - 12:00.5", + "data": "12:00.5", + "valid": true + }, + { + "description": "Invalid - no decimal part", + "data": "23:20", + "valid": false + }, + { + "description": "Invalid - decimal sign without digits", + "data": "23:20,", + "valid": false + }, + { + "description": "Invalid - decimal sign without digits (period)", + "data": "23:20.", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "t23:20,8", + "valid": false + }, + { + "description": "Invalid - basic format (no colons)", + "data": "T2320,8", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "24:00,0", + "valid": false + }, + { + "description": "Invalid - hour 99", + "data": "99:00,0", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "00:60,0", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "00:99,0", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "00:00,0", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "23:00,0", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "00:00,0", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "00:59,0", + "valid": true + }, + { + "description": "Invalid - includes seconds", + "data": "23:20:30,5", + "valid": false + }, + { + "description": "Invalid - with Z designator", + "data": "23:20,8Z", + "valid": false + }, + { + "description": "Invalid - with time shift", + "data": "23:20,8+01:00", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/time/decimal-second-basic/v1.test.json b/test/schemas/iso/datetime/2019/time/decimal-second-basic/v1.test.json new file mode 100644 index 00000000..f66efde2 --- /dev/null +++ b/test/schemas/iso/datetime/2019/time/decimal-second-basic/v1.test.json @@ -0,0 +1,170 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/time/decimal-second-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 232030, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - decimal second with comma", + "data": "T232030,5", + "valid": true + }, + { + "description": "Valid - decimal second with period", + "data": "T232030.5", + "valid": true + }, + { + "description": "Valid - midnight with decimal", + "data": "T000000,0", + "valid": true + }, + { + "description": "Valid - multiple decimal digits with comma", + "data": "T235959,999", + "valid": true + }, + { + "description": "Valid - multiple decimal digits with period", + "data": "T120000.123456", + "valid": true + }, + { + "description": "Valid - single decimal digit", + "data": "T120000,1", + "valid": true + }, + { + "description": "Valid - many decimal digits", + "data": "T120000.123456789", + "valid": true + }, + { + "description": "Invalid - no decimal part", + "data": "T232030", + "valid": false + }, + { + "description": "Invalid - decimal sign without digits", + "data": "T232030,", + "valid": false + }, + { + "description": "Invalid - decimal sign without digits (period)", + "data": "T232030.", + "valid": false + }, + { + "description": "Invalid - missing T designator", + "data": "232030,5", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "t232030,5", + "valid": false + }, + { + "description": "Invalid - colons (extended format)", + "data": "T23:20:30,5", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "T240000,0", + "valid": false + }, + { + "description": "Invalid - hour 99", + "data": "T990000,0", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "T006000,0", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "T009900,0", + "valid": false + }, + { + "description": "Invalid - second 61", + "data": "T000061,0", + "valid": false + }, + { + "description": "Invalid - second 99", + "data": "T000099,0", + "valid": false + }, + { + "description": "Valid - leap second with decimal", + "data": "T235960,5", + "valid": true + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "T000000,0", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "T230000,0", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "T000000,0", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "T005900,0", + "valid": true + }, + { + "description": "Valid - second 00 (minimum)", + "data": "T000000,0", + "valid": true + }, + { + "description": "Valid - second 59", + "data": "T000059,0", + "valid": true + }, + { + "description": "Valid - second 60 (leap second)", + "data": "T000060,0", + "valid": true + }, + { + "description": "Invalid - both comma and period", + "data": "T232030,5.5", + "valid": false + }, + { + "description": "Invalid - with Z designator", + "data": "T232030,5Z", + "valid": false + }, + { + "description": "Invalid - with time shift", + "data": "T232030,5+0100", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/time/decimal-second-extended/v1.test.json b/test/schemas/iso/datetime/2019/time/decimal-second-extended/v1.test.json new file mode 100644 index 00000000..3e6fe638 --- /dev/null +++ b/test/schemas/iso/datetime/2019/time/decimal-second-extended/v1.test.json @@ -0,0 +1,165 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/time/decimal-second-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 232030, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - decimal second with comma, no T", + "data": "23:20:30,5", + "valid": true + }, + { + "description": "Valid - decimal second with period and T", + "data": "T23:20:30.5", + "valid": true + }, + { + "description": "Valid - midnight with decimal", + "data": "00:00:00,0", + "valid": true + }, + { + "description": "Valid - multiple decimal digits with comma", + "data": "T23:59:59,999", + "valid": true + }, + { + "description": "Valid - multiple decimal digits with period", + "data": "12:00:00.123456", + "valid": true + }, + { + "description": "Valid - single decimal digit", + "data": "12:00:00,1", + "valid": true + }, + { + "description": "Valid - many decimal digits", + "data": "T12:00:00.123456789", + "valid": true + }, + { + "description": "Invalid - no decimal part", + "data": "23:20:30", + "valid": false + }, + { + "description": "Invalid - decimal sign without digits", + "data": "23:20:30,", + "valid": false + }, + { + "description": "Invalid - decimal sign without digits (period)", + "data": "23:20:30.", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "t23:20:30,5", + "valid": false + }, + { + "description": "Invalid - basic format (no colons)", + "data": "T232030,5", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "24:00:00,0", + "valid": false + }, + { + "description": "Invalid - hour 99", + "data": "99:00:00,0", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "00:60:00,0", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "00:99:00,0", + "valid": false + }, + { + "description": "Invalid - second 61", + "data": "00:00:61,0", + "valid": false + }, + { + "description": "Invalid - second 99", + "data": "00:00:99,0", + "valid": false + }, + { + "description": "Valid - leap second with decimal", + "data": "23:59:60,5", + "valid": true + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "00:00:00,0", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "23:00:00,0", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "00:00:00,0", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "00:59:00,0", + "valid": true + }, + { + "description": "Valid - second 00 (minimum)", + "data": "00:00:00,0", + "valid": true + }, + { + "description": "Valid - second 59", + "data": "00:00:59,0", + "valid": true + }, + { + "description": "Valid - second 60 (leap second)", + "data": "00:00:60,0", + "valid": true + }, + { + "description": "Invalid - both comma and period", + "data": "23:20:30,5.5", + "valid": false + }, + { + "description": "Invalid - with Z designator", + "data": "23:20:30,5Z", + "valid": false + }, + { + "description": "Invalid - with time shift", + "data": "23:20:30,5+01:00", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/time/hour-basic/v1.test.json b/test/schemas/iso/datetime/2019/time/hour-basic/v1.test.json new file mode 100644 index 00000000..1c71687e --- /dev/null +++ b/test/schemas/iso/datetime/2019/time/hour-basic/v1.test.json @@ -0,0 +1,105 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/time/hour-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 23, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - T23", + "data": "T23", + "valid": true + }, + { + "description": "Valid - midnight T00", + "data": "T00", + "valid": true + }, + { + "description": "Valid - noon T12", + "data": "T12", + "valid": true + }, + { + "description": "Valid - T01", + "data": "T01", + "valid": true + }, + { + "description": "Valid - T15", + "data": "T15", + "valid": true + }, + { + "description": "Invalid - missing T designator", + "data": "23", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "t23", + "valid": false + }, + { + "description": "Invalid - too few digits", + "data": "T2", + "valid": false + }, + { + "description": "Invalid - too many digits (includes minutes)", + "data": "T2320", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "T24", + "valid": false + }, + { + "description": "Invalid - hour 99", + "data": "T99", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "T00", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "T23", + "valid": true + }, + { + "description": "Invalid - with Z designator", + "data": "T23Z", + "valid": false + }, + { + "description": "Invalid - with time shift", + "data": "T23+01", + "valid": false + }, + { + "description": "Invalid - decimal hour", + "data": "T23.5", + "valid": false + }, + { + "description": "Invalid - with colon", + "data": "T2:3", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/time/hour-minute-basic/v1.test.json b/test/schemas/iso/datetime/2019/time/hour-minute-basic/v1.test.json new file mode 100644 index 00000000..eaf3899f --- /dev/null +++ b/test/schemas/iso/datetime/2019/time/hour-minute-basic/v1.test.json @@ -0,0 +1,125 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/time/hour-minute-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 2320, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - T23:20", + "data": "T2320", + "valid": true + }, + { + "description": "Valid - midnight T00:00", + "data": "T0000", + "valid": true + }, + { + "description": "Valid - T23:59", + "data": "T2359", + "valid": true + }, + { + "description": "Valid - noon T12:00", + "data": "T1200", + "valid": true + }, + { + "description": "Valid - T01:01", + "data": "T0101", + "valid": true + }, + { + "description": "Invalid - missing T designator", + "data": "2320", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "t2320", + "valid": false + }, + { + "description": "Invalid - colons (extended format)", + "data": "T23:20", + "valid": false + }, + { + "description": "Invalid - too few digits", + "data": "T232", + "valid": false + }, + { + "description": "Invalid - too many digits (includes seconds)", + "data": "T232050", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "T2400", + "valid": false + }, + { + "description": "Invalid - hour 99", + "data": "T9900", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "T0060", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "T0099", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "T0000", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "T2300", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "T0000", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "T0059", + "valid": true + }, + { + "description": "Invalid - with Z designator", + "data": "T2320Z", + "valid": false + }, + { + "description": "Invalid - with time shift", + "data": "T2320+0100", + "valid": false + }, + { + "description": "Invalid - decimal minutes", + "data": "T2320.5", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/time/hour-minute-extended/v1.test.json b/test/schemas/iso/datetime/2019/time/hour-minute-extended/v1.test.json new file mode 100644 index 00000000..0d471c7a --- /dev/null +++ b/test/schemas/iso/datetime/2019/time/hour-minute-extended/v1.test.json @@ -0,0 +1,130 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/time/hour-minute-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 2320, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - 23:20 without T", + "data": "23:20", + "valid": true + }, + { + "description": "Valid - T23:20 with T", + "data": "T23:20", + "valid": true + }, + { + "description": "Valid - midnight 00:00", + "data": "00:00", + "valid": true + }, + { + "description": "Valid - T23:59", + "data": "T23:59", + "valid": true + }, + { + "description": "Valid - noon 12:00", + "data": "12:00", + "valid": true + }, + { + "description": "Valid - T01:01", + "data": "T01:01", + "valid": true + }, + { + "description": "Invalid - lowercase t", + "data": "t23:20", + "valid": false + }, + { + "description": "Invalid - basic format (no colons)", + "data": "T2320", + "valid": false + }, + { + "description": "Invalid - too few digits", + "data": "23:2", + "valid": false + }, + { + "description": "Invalid - too many digits (includes seconds)", + "data": "23:20:50", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "24:00", + "valid": false + }, + { + "description": "Invalid - hour 99", + "data": "99:00", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "00:60", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "00:99", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "00:00", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "23:00", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "00:00", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "00:59", + "valid": true + }, + { + "description": "Invalid - with Z designator", + "data": "23:20Z", + "valid": false + }, + { + "description": "Invalid - with time shift", + "data": "23:20+01:00", + "valid": false + }, + { + "description": "Invalid - decimal minutes", + "data": "23:20.5", + "valid": false + }, + { + "description": "Invalid - missing colon", + "data": "2320", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/time/local-day-basic/v1.test.json b/test/schemas/iso/datetime/2019/time/local-day-basic/v1.test.json new file mode 100644 index 00000000..e1e577fa --- /dev/null +++ b/test/schemas/iso/datetime/2019/time/local-day-basic/v1.test.json @@ -0,0 +1,205 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/time/local-day-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 23:20:50", + "data": "T232050", + "valid": true + }, + { + "description": "Valid - midnight 00:00:00", + "data": "T000000", + "valid": true + }, + { + "description": "Valid - leap second 23:59:60", + "data": "T235960", + "valid": true + }, + { + "description": "Valid - noon 12:00:00", + "data": "T120000", + "valid": true + }, + { + "description": "Valid - 01:01:01", + "data": "T010101", + "valid": true + }, + { + "description": "Valid - end of day 23:59:59", + "data": "T235959", + "valid": true + }, + { + "description": "Invalid - missing T designator", + "data": "232050", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "t232050", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - colons (extended format)", + "data": "T23:20:50", + "valid": false + }, + { + "description": "Invalid - spaces in time", + "data": "T23 20 50", + "valid": false + }, + { + "description": "Invalid - too few digits", + "data": "T23205", + "valid": false + }, + { + "description": "Invalid - too many digits", + "data": "T2320500", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "T240000", + "valid": false + }, + { + "description": "Invalid - hour 25", + "data": "T250000", + "valid": false + }, + { + "description": "Invalid - hour 99", + "data": "T990000", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "T006000", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "T009900", + "valid": false + }, + { + "description": "Invalid - second 61", + "data": "T000061", + "valid": false + }, + { + "description": "Invalid - second 99", + "data": "T000099", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "T000000", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "T230000", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "T000000", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "T005900", + "valid": true + }, + { + "description": "Valid - second 00 (minimum)", + "data": "T000000", + "valid": true + }, + { + "description": "Valid - second 59", + "data": "T000059", + "valid": true + }, + { + "description": "Valid - second 60 (leap second)", + "data": "T000060", + "valid": true + }, + { + "description": "Invalid - hour without leading zero", + "data": "T10000", + "valid": false + }, + { + "description": "Invalid - minute without leading zero", + "data": "T00100", + "valid": false + }, + { + "description": "Invalid - second without leading zero", + "data": "T00001", + "valid": false + }, + { + "description": "Invalid - with Z designator", + "data": "T232050Z", + "valid": false + }, + { + "description": "Invalid - with time shift", + "data": "T232050+0100", + "valid": false + }, + { + "description": "Invalid - decimal seconds", + "data": "T232050.5", + "valid": false + }, + { + "description": "Invalid - partial time (hour and minute only)", + "data": "T2320", + "valid": false + }, + { + "description": "Invalid - partial time (hour only)", + "data": "T23", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/time/local-day-extended/v1.test.json b/test/schemas/iso/datetime/2019/time/local-day-extended/v1.test.json new file mode 100644 index 00000000..2c7a197f --- /dev/null +++ b/test/schemas/iso/datetime/2019/time/local-day-extended/v1.test.json @@ -0,0 +1,215 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/time/local-day-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 232050, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - 23:20:50 without T", + "data": "23:20:50", + "valid": true + }, + { + "description": "Valid - T23:20:50 with T", + "data": "T23:20:50", + "valid": true + }, + { + "description": "Valid - midnight 00:00:00", + "data": "00:00:00", + "valid": true + }, + { + "description": "Valid - leap second T23:59:60", + "data": "T23:59:60", + "valid": true + }, + { + "description": "Valid - noon 12:00:00", + "data": "12:00:00", + "valid": true + }, + { + "description": "Valid - T01:01:01", + "data": "T01:01:01", + "valid": true + }, + { + "description": "Valid - end of day 23:59:59", + "data": "23:59:59", + "valid": true + }, + { + "description": "Invalid - lowercase t", + "data": "t23:20:50", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - basic format (no colons)", + "data": "T232050", + "valid": false + }, + { + "description": "Invalid - spaces in time", + "data": "23 20 50", + "valid": false + }, + { + "description": "Invalid - too few digits", + "data": "23:20:5", + "valid": false + }, + { + "description": "Invalid - too many digits", + "data": "23:20:500", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "24:00:00", + "valid": false + }, + { + "description": "Invalid - hour 25", + "data": "25:00:00", + "valid": false + }, + { + "description": "Invalid - hour 99", + "data": "99:00:00", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "00:60:00", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "00:99:00", + "valid": false + }, + { + "description": "Invalid - second 61", + "data": "00:00:61", + "valid": false + }, + { + "description": "Invalid - second 99", + "data": "00:00:99", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "00:00:00", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "23:00:00", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "00:00:00", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "00:59:00", + "valid": true + }, + { + "description": "Valid - second 00 (minimum)", + "data": "00:00:00", + "valid": true + }, + { + "description": "Valid - second 59", + "data": "00:00:59", + "valid": true + }, + { + "description": "Valid - second 60 (leap second)", + "data": "00:00:60", + "valid": true + }, + { + "description": "Invalid - hour without leading zero", + "data": "1:00:00", + "valid": false + }, + { + "description": "Invalid - minute without leading zero", + "data": "00:1:00", + "valid": false + }, + { + "description": "Invalid - second without leading zero", + "data": "00:00:1", + "valid": false + }, + { + "description": "Invalid - with Z designator", + "data": "23:20:50Z", + "valid": false + }, + { + "description": "Invalid - with time shift", + "data": "23:20:50+01:00", + "valid": false + }, + { + "description": "Invalid - decimal seconds", + "data": "23:20:50.5", + "valid": false + }, + { + "description": "Invalid - partial time (hour and minute only)", + "data": "23:20", + "valid": false + }, + { + "description": "Invalid - partial time (hour only)", + "data": "T23", + "valid": false + }, + { + "description": "Invalid - missing colons", + "data": "232050", + "valid": false + }, + { + "description": "Invalid - only one colon", + "data": "23:2050", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/time/local-day-shift-basic/v1.test.json b/test/schemas/iso/datetime/2019/time/local-day-shift-basic/v1.test.json new file mode 100644 index 00000000..9ceb9e9a --- /dev/null +++ b/test/schemas/iso/datetime/2019/time/local-day-shift-basic/v1.test.json @@ -0,0 +1,180 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/time/local-day-shift-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 152746, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - time with hour-minute shift and T", + "data": "T152746+0100", + "valid": true + }, + { + "description": "Valid - time with hour-minute shift, no T", + "data": "152746-0530", + "valid": true + }, + { + "description": "Valid - time with Z and T", + "data": "T152746Z", + "valid": true + }, + { + "description": "Valid - time with hour-only shift, no T", + "data": "152746+01", + "valid": true + }, + { + "description": "Valid - midnight with zero shift", + "data": "T000000+0000", + "valid": true + }, + { + "description": "Valid - leap second with negative shift", + "data": "235960-1200", + "valid": true + }, + { + "description": "Valid - time with Z, no T", + "data": "152746Z", + "valid": true + }, + { + "description": "Valid - time with hour-only shift and T", + "data": "T120000+05", + "valid": true + }, + { + "description": "Invalid - lowercase t", + "data": "t152746+0100", + "valid": false + }, + { + "description": "Invalid - lowercase z", + "data": "T152746z", + "valid": false + }, + { + "description": "Invalid - missing shift", + "data": "T152746", + "valid": false + }, + { + "description": "Invalid - colons in time (extended format)", + "data": "T15:27:46+0100", + "valid": false + }, + { + "description": "Invalid - colons in shift (extended format)", + "data": "T152746+01:00", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "T240000+0100", + "valid": false + }, + { + "description": "Invalid - hour 99", + "data": "T990000+0100", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "T006000+0100", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "T009900+0100", + "valid": false + }, + { + "description": "Invalid - second 61", + "data": "T000061+0100", + "valid": false + }, + { + "description": "Invalid - second 99", + "data": "T000099+0100", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "T000000Z", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "T230000Z", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "T000000Z", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "T005900Z", + "valid": true + }, + { + "description": "Valid - second 00 (minimum)", + "data": "T000000Z", + "valid": true + }, + { + "description": "Valid - second 59", + "data": "T000059Z", + "valid": true + }, + { + "description": "Valid - second 60 (leap second)", + "data": "T000060Z", + "valid": true + }, + { + "description": "Invalid - shift hour 24", + "data": "T120000+2400", + "valid": false + }, + { + "description": "Invalid - shift minute 60", + "data": "T120000+0060", + "valid": false + }, + { + "description": "Valid - maximum positive shift", + "data": "T120000+1400", + "valid": true + }, + { + "description": "Valid - negative shift", + "data": "T120000-0500", + "valid": true + }, + { + "description": "Invalid - partial time (hour-minute only)", + "data": "T1527+0100", + "valid": false + }, + { + "description": "Invalid - decimal seconds", + "data": "T152746.5+0100", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/time/local-day-shift-extended/v1.test.json b/test/schemas/iso/datetime/2019/time/local-day-shift-extended/v1.test.json new file mode 100644 index 00000000..802411ab --- /dev/null +++ b/test/schemas/iso/datetime/2019/time/local-day-shift-extended/v1.test.json @@ -0,0 +1,180 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/time/local-day-shift-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 152746, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - time with hour-minute shift, no T", + "data": "15:27:46+01:00", + "valid": true + }, + { + "description": "Valid - time with hour-minute shift and T", + "data": "T15:27:46-05:30", + "valid": true + }, + { + "description": "Valid - time with Z, no T", + "data": "15:27:46Z", + "valid": true + }, + { + "description": "Valid - time with hour-only shift and T", + "data": "T15:27:46+01", + "valid": true + }, + { + "description": "Valid - midnight with zero shift", + "data": "00:00:00+00:00", + "valid": true + }, + { + "description": "Valid - leap second with negative shift", + "data": "T23:59:60-12:00", + "valid": true + }, + { + "description": "Valid - time with Z and T", + "data": "T15:27:46Z", + "valid": true + }, + { + "description": "Valid - time with hour-only shift, no T", + "data": "12:00:00+05", + "valid": true + }, + { + "description": "Invalid - lowercase t", + "data": "t15:27:46+01:00", + "valid": false + }, + { + "description": "Invalid - lowercase z", + "data": "15:27:46z", + "valid": false + }, + { + "description": "Invalid - missing shift", + "data": "15:27:46", + "valid": false + }, + { + "description": "Invalid - basic format time (no colons in time)", + "data": "T152746+01:00", + "valid": false + }, + { + "description": "Invalid - basic format shift (no colons in shift)", + "data": "15:27:46+0100", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "24:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - hour 99", + "data": "99:00:00+01:00", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "00:60:00+01:00", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "00:99:00+01:00", + "valid": false + }, + { + "description": "Invalid - second 61", + "data": "00:00:61+01:00", + "valid": false + }, + { + "description": "Invalid - second 99", + "data": "00:00:99+01:00", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "00:00:00Z", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "23:00:00Z", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "00:00:00Z", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "00:59:00Z", + "valid": true + }, + { + "description": "Valid - second 00 (minimum)", + "data": "00:00:00Z", + "valid": true + }, + { + "description": "Valid - second 59", + "data": "00:00:59Z", + "valid": true + }, + { + "description": "Valid - second 60 (leap second)", + "data": "00:00:60Z", + "valid": true + }, + { + "description": "Invalid - shift hour 24", + "data": "12:00:00+24:00", + "valid": false + }, + { + "description": "Invalid - shift minute 60", + "data": "12:00:00+00:60", + "valid": false + }, + { + "description": "Valid - maximum positive shift", + "data": "12:00:00+14:00", + "valid": true + }, + { + "description": "Valid - negative shift", + "data": "12:00:00-05:00", + "valid": true + }, + { + "description": "Invalid - partial time (hour-minute only)", + "data": "15:27+01:00", + "valid": false + }, + { + "description": "Invalid - decimal seconds", + "data": "15:27:46.5+01:00", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/time/shift-basic/v1.test.json b/test/schemas/iso/datetime/2019/time/shift-basic/v1.test.json new file mode 100644 index 00000000..8a3437a8 --- /dev/null +++ b/test/schemas/iso/datetime/2019/time/shift-basic/v1.test.json @@ -0,0 +1,155 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/time/shift-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 100, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - positive shift hour and minute", + "data": "+0100", + "valid": true + }, + { + "description": "Valid - negative shift hour and minute", + "data": "-0530", + "valid": true + }, + { + "description": "Valid - positive shift hour only", + "data": "+00", + "valid": true + }, + { + "description": "Valid - negative shift hour only", + "data": "-12", + "valid": true + }, + { + "description": "Valid - Z (UTC)", + "data": "Z", + "valid": true + }, + { + "description": "Valid - maximum positive shift", + "data": "+1400", + "valid": true + }, + { + "description": "Invalid - negative zero shift -0000", + "data": "-0000", + "valid": false + }, + { + "description": "Invalid - negative zero shift -00", + "data": "-00", + "valid": false + }, + { + "description": "Valid - positive zero +0000", + "data": "+0000", + "valid": true + }, + { + "description": "Valid - positive zero +00", + "data": "+00", + "valid": true + }, + { + "description": "Invalid - lowercase z", + "data": "z", + "valid": false + }, + { + "description": "Invalid - missing sign", + "data": "0100", + "valid": false + }, + { + "description": "Invalid - colons (extended format)", + "data": "+01:00", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "+2400", + "valid": false + }, + { + "description": "Invalid - hour 99", + "data": "+9900", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "+0060", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "+0099", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "+0000", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "+2300", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "+0000", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "+0059", + "valid": true + }, + { + "description": "Invalid - three digits", + "data": "+010", + "valid": false + }, + { + "description": "Invalid - too many digits", + "data": "+01000", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - sign only", + "data": "+", + "valid": false + }, + { + "description": "Valid - negative hour only", + "data": "-05", + "valid": true + }, + { + "description": "Valid - positive hour only", + "data": "+01", + "valid": true + } + ] +} diff --git a/test/schemas/iso/datetime/2019/time/shift-extended/v1.test.json b/test/schemas/iso/datetime/2019/time/shift-extended/v1.test.json new file mode 100644 index 00000000..167fd7aa --- /dev/null +++ b/test/schemas/iso/datetime/2019/time/shift-extended/v1.test.json @@ -0,0 +1,130 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/time/shift-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 100, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - positive shift hour and minute", + "data": "+01:00", + "valid": true + }, + { + "description": "Valid - negative shift hour and minute", + "data": "-05:30", + "valid": true + }, + { + "description": "Valid - Z (UTC)", + "data": "Z", + "valid": true + }, + { + "description": "Valid - maximum positive shift", + "data": "+14:00", + "valid": true + }, + { + "description": "Invalid - negative zero shift", + "data": "-00:00", + "valid": false + }, + { + "description": "Valid - positive zero", + "data": "+00:00", + "valid": true + }, + { + "description": "Valid - +12:45", + "data": "+12:45", + "valid": true + }, + { + "description": "Invalid - lowercase z", + "data": "z", + "valid": false + }, + { + "description": "Invalid - missing sign", + "data": "01:00", + "valid": false + }, + { + "description": "Invalid - basic format (no colons)", + "data": "+0100", + "valid": false + }, + { + "description": "Invalid - hour only (extended format not applicable)", + "data": "+01", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "+24:00", + "valid": false + }, + { + "description": "Invalid - hour 99", + "data": "+99:00", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "+00:60", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "+00:99", + "valid": false + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "+00:00", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "+23:00", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "+00:00", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "+00:59", + "valid": true + }, + { + "description": "Invalid - missing colon", + "data": "+0100", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - sign only", + "data": "+", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/time/utc-day-basic/v1.test.json b/test/schemas/iso/datetime/2019/time/utc-day-basic/v1.test.json new file mode 100644 index 00000000..829154bc --- /dev/null +++ b/test/schemas/iso/datetime/2019/time/utc-day-basic/v1.test.json @@ -0,0 +1,165 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/time/utc-day-basic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 232030, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - complete time with Z and T", + "data": "T232030Z", + "valid": true + }, + { + "description": "Valid - hour and minute with Z and T", + "data": "T2320Z", + "valid": true + }, + { + "description": "Valid - hour only with Z and T", + "data": "T23Z", + "valid": true + }, + { + "description": "Valid - complete time with Z, no T", + "data": "232030Z", + "valid": true + }, + { + "description": "Valid - midnight", + "data": "T000000Z", + "valid": true + }, + { + "description": "Valid - noon", + "data": "T120000Z", + "valid": true + }, + { + "description": "Valid - hour-minute no T", + "data": "1200Z", + "valid": true + }, + { + "description": "Valid - hour only no T", + "data": "12Z", + "valid": true + }, + { + "description": "Invalid - lowercase z", + "data": "T232030z", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "t232030Z", + "valid": false + }, + { + "description": "Invalid - missing Z", + "data": "T232030", + "valid": false + }, + { + "description": "Invalid - colons (extended format)", + "data": "T23:20:30Z", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "T240000Z", + "valid": false + }, + { + "description": "Invalid - hour 99", + "data": "T990000Z", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "T006000Z", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "T009900Z", + "valid": false + }, + { + "description": "Invalid - second 61", + "data": "T000061Z", + "valid": false + }, + { + "description": "Invalid - second 99", + "data": "T000099Z", + "valid": false + }, + { + "description": "Valid - leap second", + "data": "T235960Z", + "valid": true + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "T000000Z", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "T230000Z", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "T000000Z", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "T005900Z", + "valid": true + }, + { + "description": "Valid - second 00 (minimum)", + "data": "T000000Z", + "valid": true + }, + { + "description": "Valid - second 59", + "data": "T000059Z", + "valid": true + }, + { + "description": "Valid - second 60 (leap second)", + "data": "T000060Z", + "valid": true + }, + { + "description": "Invalid - with time shift instead of Z", + "data": "T232030+0100", + "valid": false + }, + { + "description": "Invalid - decimal seconds", + "data": "T232030.5Z", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + } + ] +} diff --git a/test/schemas/iso/datetime/2019/time/utc-day-extended/v1.test.json b/test/schemas/iso/datetime/2019/time/utc-day-extended/v1.test.json new file mode 100644 index 00000000..9e4fd29a --- /dev/null +++ b/test/schemas/iso/datetime/2019/time/utc-day-extended/v1.test.json @@ -0,0 +1,165 @@ +{ + "target": "../../../../../../../schemas/iso/datetime/2019/time/utc-day-extended/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 232030, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Valid - complete time with Z, no T", + "data": "23:20:30Z", + "valid": true + }, + { + "description": "Valid - complete time with Z and T", + "data": "T23:20:30Z", + "valid": true + }, + { + "description": "Valid - hour and minute with Z, no T", + "data": "23:20Z", + "valid": true + }, + { + "description": "Valid - hour and minute with Z and T", + "data": "T23:20Z", + "valid": true + }, + { + "description": "Valid - midnight", + "data": "00:00:00Z", + "valid": true + }, + { + "description": "Valid - noon with T", + "data": "T12:00:00Z", + "valid": true + }, + { + "description": "Valid - hour-minute", + "data": "12:00Z", + "valid": true + }, + { + "description": "Invalid - lowercase z", + "data": "23:20:30z", + "valid": false + }, + { + "description": "Invalid - lowercase t", + "data": "t23:20:30Z", + "valid": false + }, + { + "description": "Invalid - missing Z", + "data": "23:20:30", + "valid": false + }, + { + "description": "Invalid - basic format (no colons)", + "data": "T232030Z", + "valid": false + }, + { + "description": "Invalid - hour only (extended format not applicable)", + "data": "T23Z", + "valid": false + }, + { + "description": "Invalid - hour only without T", + "data": "23Z", + "valid": false + }, + { + "description": "Invalid - hour 24", + "data": "24:00:00Z", + "valid": false + }, + { + "description": "Invalid - hour 99", + "data": "99:00:00Z", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "00:60:00Z", + "valid": false + }, + { + "description": "Invalid - minute 99", + "data": "00:99:00Z", + "valid": false + }, + { + "description": "Invalid - second 61", + "data": "00:00:61Z", + "valid": false + }, + { + "description": "Invalid - second 99", + "data": "00:00:99Z", + "valid": false + }, + { + "description": "Valid - leap second", + "data": "23:59:60Z", + "valid": true + }, + { + "description": "Valid - hour 00 (minimum)", + "data": "00:00:00Z", + "valid": true + }, + { + "description": "Valid - hour 23 (maximum)", + "data": "23:00:00Z", + "valid": true + }, + { + "description": "Valid - minute 00 (minimum)", + "data": "00:00:00Z", + "valid": true + }, + { + "description": "Valid - minute 59 (maximum)", + "data": "00:59:00Z", + "valid": true + }, + { + "description": "Valid - second 00 (minimum)", + "data": "00:00:00Z", + "valid": true + }, + { + "description": "Valid - second 59", + "data": "00:00:59Z", + "valid": true + }, + { + "description": "Valid - second 60 (leap second)", + "data": "00:00:60Z", + "valid": true + }, + { + "description": "Invalid - with time shift instead of Z", + "data": "23:20:30+01:00", + "valid": false + }, + { + "description": "Invalid - decimal seconds", + "data": "23:20:30.5Z", + "valid": false + } + ] +} diff --git a/test/schemas/iso/it/2015/byte/v1.test.json b/test/schemas/iso/it/2015/byte/v1.test.json new file mode 100644 index 00000000..71754e3a --- /dev/null +++ b/test/schemas/iso/it/2015/byte/v1.test.json @@ -0,0 +1,130 @@ +{ + "target": "../../../../../../schemas/iso/it/2015/byte/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "1024", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Invalid type - float", + "data": 1024.5, + "valid": false + }, + { + "description": "Valid - zero bytes", + "data": 0, + "valid": true + }, + { + "description": "Valid - one byte", + "data": 1, + "valid": true + }, + { + "description": "Valid - small number", + "data": 42, + "valid": true + }, + { + "description": "Valid - 1 KB (1024 bytes)", + "data": 1024, + "valid": true + }, + { + "description": "Valid - 1 MB (1048576 bytes)", + "data": 1048576, + "valid": true + }, + { + "description": "Valid - 1 GB (1073741824 bytes)", + "data": 1073741824, + "valid": true + }, + { + "description": "Valid - 1 TB (1099511627776 bytes)", + "data": 1099511627776, + "valid": true + }, + { + "description": "Valid - very large number", + "data": 9007199254740991, + "valid": true + }, + { + "description": "Valid - 512 bytes", + "data": 512, + "valid": true + }, + { + "description": "Valid - 4096 bytes (4 KB)", + "data": 4096, + "valid": true + }, + { + "description": "Valid - 8192 bytes (8 KB)", + "data": 8192, + "valid": true + }, + { + "description": "Valid - 65536 bytes (64 KB)", + "data": 65536, + "valid": true + }, + { + "description": "Invalid - negative one", + "data": -1, + "valid": false + }, + { + "description": "Invalid - negative small number", + "data": -100, + "valid": false + }, + { + "description": "Invalid - negative large number", + "data": -1048576, + "valid": false + }, + { + "description": "Invalid - decimal 0.5", + "data": 0.5, + "valid": false + }, + { + "description": "Invalid - decimal 1.1", + "data": 1.1, + "valid": false + }, + { + "description": "Invalid - decimal 999.99", + "data": 999.99, + "valid": false + }, + { + "description": "Invalid - negative decimal", + "data": -0.5, + "valid": false + } + ] +} diff --git a/test/schemas/iso/language/2023/set-1/v1.test.json b/test/schemas/iso/language/2023/set-1/v1.test.json new file mode 100644 index 00000000..ba4e89ba --- /dev/null +++ b/test/schemas/iso/language/2023/set-1/v1.test.json @@ -0,0 +1,125 @@ +{ + "target": "../../../../../../schemas/iso/language/2023/set-1/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - English", + "data": "en", + "valid": true + }, + { + "description": "Valid - Spanish", + "data": "es", + "valid": true + }, + { + "description": "Valid - French", + "data": "fr", + "valid": true + }, + { + "description": "Valid - German", + "data": "de", + "valid": true + }, + { + "description": "Valid - Japanese", + "data": "ja", + "valid": true + }, + { + "description": "Valid - Chinese", + "data": "zh", + "valid": true + }, + { + "description": "Valid - Arabic", + "data": "ar", + "valid": true + }, + { + "description": "Valid - Russian", + "data": "ru", + "valid": true + }, + { + "description": "Valid - Portuguese", + "data": "pt", + "valid": true + }, + { + "description": "Valid - Italian", + "data": "it", + "valid": true + }, + { + "description": "Invalid - uppercase", + "data": "EN", + "valid": false + }, + { + "description": "Invalid - mixed case", + "data": "En", + "valid": false + }, + { + "description": "Invalid - too short", + "data": "e", + "valid": false + }, + { + "description": "Invalid - too long (3 letters)", + "data": "eng", + "valid": false + }, + { + "description": "Invalid - non-existent code", + "data": "zz", + "valid": false + }, + { + "description": "Invalid - contains numbers", + "data": "e1", + "valid": false + }, + { + "description": "Invalid - contains special characters", + "data": "e-", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - spaces", + "data": "e n", + "valid": false + } + ] +} diff --git a/test/schemas/iso/language/2023/set-2-bibliographic/v1.test.json b/test/schemas/iso/language/2023/set-2-bibliographic/v1.test.json new file mode 100644 index 00000000..259b76c3 --- /dev/null +++ b/test/schemas/iso/language/2023/set-2-bibliographic/v1.test.json @@ -0,0 +1,165 @@ +{ + "target": "../../../../../../schemas/iso/language/2023/set-2-bibliographic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - English (bibliographic)", + "data": "eng", + "valid": true + }, + { + "description": "Valid - Spanish", + "data": "spa", + "valid": true + }, + { + "description": "Valid - French (bibliographic)", + "data": "fre", + "valid": true + }, + { + "description": "Valid - German (bibliographic)", + "data": "ger", + "valid": true + }, + { + "description": "Valid - Japanese", + "data": "jpn", + "valid": true + }, + { + "description": "Valid - Chinese", + "data": "chi", + "valid": true + }, + { + "description": "Valid - Arabic", + "data": "ara", + "valid": true + }, + { + "description": "Valid - Albanian (bibliographic)", + "data": "alb", + "valid": true + }, + { + "description": "Valid - Basque (bibliographic)", + "data": "baq", + "valid": true + }, + { + "description": "Invalid - uppercase", + "data": "ENG", + "valid": false + }, + { + "description": "Invalid - mixed case", + "data": "Eng", + "valid": false + }, + { + "description": "Invalid - too short (2 letters)", + "data": "en", + "valid": false + }, + { + "description": "Invalid - too long", + "data": "engl", + "valid": false + }, + { + "description": "Invalid - non-existent code", + "data": "xyz", + "valid": false + }, + { + "description": "Invalid - contains numbers", + "data": "en1", + "valid": false + }, + { + "description": "Invalid - contains special characters", + "data": "en-", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - spaces", + "data": "e n", + "valid": false + }, + { + "description": "Invalid - terminologic code (should use bibliographic)", + "data": "sqi", + "valid": false + }, + { + "description": "Valid - special code for uncoded languages", + "valid": true, + "data": "mis" + }, + { + "description": "Valid - special code for multiple languages", + "valid": true, + "data": "mul" + }, + { + "description": "Valid - collective code", + "valid": true, + "data": "ber" + }, + { + "description": "Valid - collective code for Himachali languages", + "valid": true, + "data": "him" + }, + { + "description": "Valid - reserved local-use code", + "valid": true, + "data": "qaa" + }, + { + "description": "Valid - reserved local-use code at the range end", + "valid": true, + "data": "qtz" + }, + { + "description": "Invalid - the reserved range marker is not a code", + "valid": false, + "data": "qaa-qtz" + }, + { + "description": "Invalid - outside the reserved range", + "valid": false, + "data": "qua" + } + ] +} diff --git a/test/schemas/iso/language/2023/set-2-terminologic/v1.test.json b/test/schemas/iso/language/2023/set-2-terminologic/v1.test.json new file mode 100644 index 00000000..82081bd2 --- /dev/null +++ b/test/schemas/iso/language/2023/set-2-terminologic/v1.test.json @@ -0,0 +1,140 @@ +{ + "target": "../../../../../../schemas/iso/language/2023/set-2-terminologic/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - Albanian (terminologic - native name)", + "data": "sqi", + "valid": true + }, + { + "description": "Valid - Basque (terminologic - native name)", + "data": "eus", + "valid": true + }, + { + "description": "Valid - Czech (terminologic)", + "data": "ces", + "valid": true + }, + { + "description": "Valid - Welsh (terminologic)", + "data": "cym", + "valid": true + }, + { + "description": "Valid - German (terminologic)", + "data": "deu", + "valid": true + }, + { + "description": "Valid - Greek (terminologic)", + "data": "ell", + "valid": true + }, + { + "description": "Valid - French (terminologic)", + "data": "fra", + "valid": true + }, + { + "description": "Invalid - uppercase", + "data": "SQI", + "valid": false + }, + { + "description": "Invalid - mixed case", + "data": "Sqi", + "valid": false + }, + { + "description": "Invalid - too short (2 letters)", + "data": "sq", + "valid": false + }, + { + "description": "Invalid - too long", + "data": "sqii", + "valid": false + }, + { + "description": "Invalid - non-existent code", + "data": "xyz", + "valid": false + }, + { + "description": "Invalid - contains numbers", + "data": "sq1", + "valid": false + }, + { + "description": "Invalid - contains special characters", + "data": "sq-", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - spaces", + "data": "s q", + "valid": false + }, + { + "description": "Invalid - bibliographic code (should use terminologic)", + "data": "alb", + "valid": false + }, + { + "description": "Valid - terminologic code equals bibliographic for most languages", + "valid": true, + "data": "eng" + }, + { + "description": "Valid - divergent terminologic code", + "valid": true, + "data": "deu" + }, + { + "description": "Invalid - divergent bibliographic code is not terminologic", + "valid": false, + "data": "ger" + }, + { + "description": "Valid - special code for uncoded languages", + "valid": true, + "data": "mis" + }, + { + "description": "Valid - reserved local-use code", + "valid": true, + "data": "qaa" + } + ] +} diff --git a/test/schemas/iso/language/2023/set-3/v1.test.json b/test/schemas/iso/language/2023/set-3/v1.test.json new file mode 100644 index 00000000..0a3b05dc --- /dev/null +++ b/test/schemas/iso/language/2023/set-3/v1.test.json @@ -0,0 +1,125 @@ +{ + "target": "../../../../../../schemas/iso/language/2023/set-3/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - English", + "data": "eng", + "valid": true + }, + { + "description": "Valid - Spanish", + "data": "spa", + "valid": true + }, + { + "description": "Valid - Afar", + "data": "aar", + "valid": true + }, + { + "description": "Valid - Ghotuo (no Set 1 or Set 2 code)", + "data": "aaa", + "valid": true + }, + { + "description": "Valid - Alumu-Tesu (no Set 1 or Set 2 code)", + "data": "aab", + "valid": true + }, + { + "description": "Valid - Arabic (macrolanguage)", + "data": "ara", + "valid": true + }, + { + "description": "Valid - Zulu", + "data": "zul", + "valid": true + }, + { + "description": "Valid - Multiple languages (special code)", + "data": "mul", + "valid": true + }, + { + "description": "Valid - Undetermined (special code)", + "data": "und", + "valid": true + }, + { + "description": "Valid - No linguistic content (special code)", + "data": "zxx", + "valid": true + }, + { + "description": "Invalid - uppercase", + "data": "ENG", + "valid": false + }, + { + "description": "Invalid - mixed case", + "data": "Eng", + "valid": false + }, + { + "description": "Invalid - too short (2 letters)", + "data": "en", + "valid": false + }, + { + "description": "Invalid - too long", + "data": "engl", + "valid": false + }, + { + "description": "Invalid - non-existent code", + "data": "zzz", + "valid": false + }, + { + "description": "Invalid - contains numbers", + "data": "en1", + "valid": false + }, + { + "description": "Invalid - contains special characters", + "data": "en-", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - spaces", + "data": "e n", + "valid": false + } + ] +} diff --git a/test/schemas/iso/language/2023/set-5/v1.test.json b/test/schemas/iso/language/2023/set-5/v1.test.json new file mode 100644 index 00000000..a319a7a8 --- /dev/null +++ b/test/schemas/iso/language/2023/set-5/v1.test.json @@ -0,0 +1,160 @@ +{ + "target": "../../../../../../schemas/iso/language/2023/set-5/v1.json", + "tests": [ + { + "description": "Invalid type - integer", + "data": 123, + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - Afro-Asiatic languages", + "data": "afa", + "valid": true + }, + { + "description": "Valid - Algonquian languages", + "data": "alg", + "valid": true + }, + { + "description": "Valid - Apache languages", + "data": "apa", + "valid": true + }, + { + "description": "Valid - Artificial languages", + "data": "art", + "valid": true + }, + { + "description": "Valid - Athapascan languages", + "data": "ath", + "valid": true + }, + { + "description": "Valid - Baltic languages", + "data": "bat", + "valid": true + }, + { + "description": "Valid - Berber languages", + "data": "ber", + "valid": true + }, + { + "description": "Valid - Celtic languages", + "data": "cel", + "valid": true + }, + { + "description": "Valid - Germanic languages", + "data": "gem", + "valid": true + }, + { + "description": "Valid - Slavic languages", + "data": "sla", + "valid": true + }, + { + "description": "Invalid - uppercase", + "data": "AFA", + "valid": false + }, + { + "description": "Invalid - mixed case", + "data": "Afa", + "valid": false + }, + { + "description": "Invalid - too short (2 letters)", + "data": "af", + "valid": false + }, + { + "description": "Invalid - too long", + "data": "afaa", + "valid": false + }, + { + "description": "Invalid - non-existent code", + "data": "xyz", + "valid": false + }, + { + "description": "Invalid - contains numbers", + "data": "af1", + "valid": false + }, + { + "description": "Invalid - contains special characters", + "data": "af-", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - spaces", + "data": "a f", + "valid": false + }, + { + "description": "Invalid - individual language code (not language family)", + "data": "eng", + "valid": false + }, + { + "description": "Valid - Austro-Asiatic languages", + "valid": true, + "data": "aav" + }, + { + "description": "Valid - Creoles and pidgins", + "valid": true, + "data": "crp" + }, + { + "description": "Valid - West Germanic languages", + "valid": true, + "data": "gmw" + }, + { + "description": "Invalid - Himachali is a collective code but not a language family", + "valid": false, + "data": "him" + }, + { + "description": "Invalid - uncoded languages is a special code, not a family", + "valid": false, + "data": "mis" + }, + { + "description": "Invalid - multiple languages is a special code, not a family", + "valid": false, + "data": "mul" + } + ] +} diff --git a/test/schemas/iso/units/2022/percentage/v1.test.json b/test/schemas/iso/units/2022/percentage/v1.test.json new file mode 100644 index 00000000..02d9ddbd --- /dev/null +++ b/test/schemas/iso/units/2022/percentage/v1.test.json @@ -0,0 +1,170 @@ +{ + "target": "../../../../../../schemas/iso/units/2022/percentage/v1.json", + "tests": [ + { + "description": "Invalid type - string", + "data": "50", + "valid": false + }, + { + "description": "Invalid type - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid type - null", + "data": null, + "valid": false + }, + { + "description": "Invalid type - array", + "data": [], + "valid": false + }, + { + "description": "Invalid type - object", + "data": {}, + "valid": false + }, + { + "description": "Valid - zero percent", + "data": 0, + "valid": true + }, + { + "description": "Valid - one percent", + "data": 1, + "valid": true + }, + { + "description": "Valid - fifty percent", + "data": 50, + "valid": true + }, + { + "description": "Valid - ninety-nine percent", + "data": 99, + "valid": true + }, + { + "description": "Valid - one hundred percent", + "data": 100, + "valid": true + }, + { + "description": "Valid - decimal 0.5 percent", + "data": 0.5, + "valid": true + }, + { + "description": "Valid - decimal 1.5 percent", + "data": 1.5, + "valid": true + }, + { + "description": "Valid - decimal 25.5 percent", + "data": 25.5, + "valid": true + }, + { + "description": "Valid - decimal 50.5 percent", + "data": 50.5, + "valid": true + }, + { + "description": "Valid - decimal 75.75 percent", + "data": 75.75, + "valid": true + }, + { + "description": "Valid - decimal 99.9 percent", + "data": 99.9, + "valid": true + }, + { + "description": "Valid - decimal 99.99 percent", + "data": 99.99, + "valid": true + }, + { + "description": "Valid - decimal 99.999 percent", + "data": 99.999, + "valid": true + }, + { + "description": "Valid - decimal 0.01 percent", + "data": 0.01, + "valid": true + }, + { + "description": "Valid - decimal 0.001 percent", + "data": 0.001, + "valid": true + }, + { + "description": "Valid - integer zero (boundary)", + "data": 0, + "valid": true + }, + { + "description": "Valid - integer one hundred (boundary)", + "data": 100, + "valid": true + }, + { + "description": "Valid - float zero (boundary)", + "data": 0.0, + "valid": true + }, + { + "description": "Valid - float one hundred (boundary)", + "data": 100.0, + "valid": true + }, + { + "description": "Invalid - negative one", + "data": -1, + "valid": false + }, + { + "description": "Invalid - negative small number", + "data": -0.1, + "valid": false + }, + { + "description": "Invalid - negative large number", + "data": -50, + "valid": false + }, + { + "description": "Invalid - one hundred and one", + "data": 101, + "valid": false + }, + { + "description": "Invalid - over one hundred small", + "data": 100.1, + "valid": false + }, + { + "description": "Invalid - over one hundred large", + "data": 150, + "valid": false + }, + { + "description": "Invalid - two hundred", + "data": 200, + "valid": false + }, + { + "description": "Invalid - very large number", + "data": 1000, + "valid": false + }, + { + "description": "Invalid - negative decimal", + "data": -0.01, + "valid": false + } + ] +} diff --git a/test/schemas/other/jsonrpc/v2.0/batch-request/v1.test.json b/test/schemas/other/jsonrpc/v2.0/batch-request/v1.test.json new file mode 100644 index 00000000..4a8fa50f --- /dev/null +++ b/test/schemas/other/jsonrpc/v2.0/batch-request/v1.test.json @@ -0,0 +1,289 @@ +{ + "target": "../../../../../../schemas/other/jsonrpc/v2.0/batch-request/v1.json", + "tests": [ + { + "data": [ + { + "id": "1", + "jsonrpc": "2.0", + "method": "sum", + "params": [ 1, 2, 4 ] + } + ], + "valid": true + }, + { + "data": [ + { + "id": "1", + "jsonrpc": "2.0", + "method": "sum", + "params": [ 1, 2, 4 ] + }, + { + "jsonrpc": "2.0", + "method": "notify_hello", + "params": [ 7 ] + } + ], + "valid": true + }, + { + "data": [ + { + "id": "1", + "jsonrpc": "2.0", + "method": "sum", + "params": [ 1, 2, 4 ] + }, + { + "jsonrpc": "2.0", + "method": "notify_hello", + "params": [ 7 ] + }, + { + "id": "2", + "jsonrpc": "2.0", + "method": "subtract", + "params": [ 42, 23 ] + } + ], + "valid": true + }, + { + "data": [ + { + "id": 1, + "jsonrpc": "2.0", + "method": "get_data" + } + ], + "valid": true + }, + { + "data": [ + { + "jsonrpc": "2.0", + "method": "notify_update" + } + ], + "valid": true + }, + { + "data": [ + { + "jsonrpc": "2.0", + "method": "notify_update" + }, + { + "id": "req-1", + "jsonrpc": "2.0", + "method": "fetch", + "params": { + "key": "value" + } + } + ], + "valid": true + }, + { + "data": [ + { + "jsonrpc": "2.0", + "method": "notify1" + }, + { + "jsonrpc": "2.0", + "method": "notify2" + }, + { + "jsonrpc": "2.0", + "method": "notify3" + } + ], + "valid": true + }, + { + "data": [ + { + "id": 1, + "jsonrpc": "2.0", + "method": "request1" + }, + { + "id": 2, + "jsonrpc": "2.0", + "method": "request2" + }, + { + "id": 3, + "jsonrpc": "2.0", + "method": "request3" + } + ], + "valid": true + }, + { + "data": [ + { + "id": "calc-1", + "jsonrpc": "2.0", + "method": "calculate", + "params": { + "x": 10, + "y": 20 + } + }, + { + "jsonrpc": "2.0", + "method": "log", + "params": [ "info", "test" ] + }, + { + "id": 100, + "jsonrpc": "2.0", + "method": "process", + "params": [] + }, + { + "jsonrpc": "2.0", + "method": "notify" + }, + { + "id": "q-1", + "jsonrpc": "2.0", + "method": "query" + } + ], + "valid": true + }, + { + "data": [ + { + "id": 1, + "jsonrpc": "2.0", + "method": "test1" + }, + { + "id": 2, + "jsonrpc": "2.0", + "method": "test2" + }, + { + "id": 3, + "jsonrpc": "2.0", + "method": "test3" + }, + { + "id": 4, + "jsonrpc": "2.0", + "method": "test4" + }, + { + "id": 5, + "jsonrpc": "2.0", + "method": "test5" + }, + { + "id": 6, + "jsonrpc": "2.0", + "method": "test6" + }, + { + "id": 7, + "jsonrpc": "2.0", + "method": "test7" + }, + { + "id": 8, + "jsonrpc": "2.0", + "method": "test8" + }, + { + "id": 9, + "jsonrpc": "2.0", + "method": "test9" + }, + { + "id": 10, + "jsonrpc": "2.0", + "method": "test10" + } + ], + "valid": true + }, + { + "data": [], + "valid": false + }, + { + "data": [ + { + "jsonrpc": "2.0", + "method": "test" + } + ], + "valid": true + }, + { + "data": [ + { + "id": 1, + "jsonrpc": "2.0" + } + ], + "valid": false + }, + { + "data": [ + { + "id": 1, + "method": "test" + } + ], + "valid": false + }, + { + "data": [ "not an object" ], + "valid": false + }, + { + "data": [ 42 ], + "valid": false + }, + { + "data": [ null ], + "valid": false + }, + { + "data": [ + { + "id": 1, + "jsonrpc": "2.0", + "method": "valid" + }, + { + "jsonrpc": "2.0", + "method": "notify" + } + ], + "valid": true + }, + { + "data": {}, + "valid": false + }, + { + "data": "batch", + "valid": false + }, + { + "data": 42, + "valid": false + }, + { + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/other/jsonrpc/v2.0/batch-response/v1.test.json b/test/schemas/other/jsonrpc/v2.0/batch-response/v1.test.json new file mode 100644 index 00000000..d3ea8d66 --- /dev/null +++ b/test/schemas/other/jsonrpc/v2.0/batch-response/v1.test.json @@ -0,0 +1,352 @@ +{ + "target": "../../../../../../schemas/other/jsonrpc/v2.0/batch-response/v1.json", + "tests": [ + { + "data": [ + { + "id": "1", + "jsonrpc": "2.0", + "result": 7 + } + ], + "valid": true + }, + { + "data": [ + { + "id": "1", + "jsonrpc": "2.0", + "result": 7 + }, + { + "id": "2", + "jsonrpc": "2.0", + "result": 19 + } + ], + "valid": true + }, + { + "data": [ + { + "id": "1", + "jsonrpc": "2.0", + "result": 7 + }, + { + "id": "2", + "jsonrpc": "2.0", + "result": 19 + }, + { + "id": null, + "error": { + "code": -32600, + "message": "Invalid Request" + }, + "jsonrpc": "2.0" + } + ], + "valid": true + }, + { + "data": [ + { + "id": 1, + "jsonrpc": "2.0", + "result": { + "status": "ok" + } + } + ], + "valid": true + }, + { + "data": [ + { + "id": "req-1", + "error": { + "code": -32601, + "message": "Method not found" + }, + "jsonrpc": "2.0" + } + ], + "valid": true + }, + { + "data": [ + { + "id": null, + "error": { + "code": -32700, + "message": "Parse error" + }, + "jsonrpc": "2.0" + }, + { + "id": null, + "error": { + "code": -32600, + "message": "Invalid Request" + }, + "jsonrpc": "2.0" + } + ], + "valid": true + }, + { + "data": [ + { + "id": 1, + "jsonrpc": "2.0", + "result": null + }, + { + "id": 2, + "jsonrpc": "2.0", + "result": true + }, + { + "id": 3, + "jsonrpc": "2.0", + "result": false + } + ], + "valid": true + }, + { + "data": [ + { + "id": 1, + "jsonrpc": "2.0", + "result": 100 + }, + { + "id": 2, + "jsonrpc": "2.0", + "result": 200 + }, + { + "id": 3, + "jsonrpc": "2.0", + "result": 300 + }, + { + "id": 4, + "error": { + "code": -32600, + "message": "Invalid Request" + }, + "jsonrpc": "2.0" + } + ], + "valid": true + }, + { + "data": [ + { + "id": "arr-1", + "jsonrpc": "2.0", + "result": [ 1, 2, 3 ] + }, + { + "id": "obj-1", + "jsonrpc": "2.0", + "result": { + "key": "value" + } + }, + { + "id": "str-1", + "jsonrpc": "2.0", + "result": "string result" + } + ], + "valid": true + }, + { + "data": [ + { + "id": 1, + "jsonrpc": "2.0", + "result": 1 + }, + { + "id": 2, + "jsonrpc": "2.0", + "result": 2 + }, + { + "id": 3, + "jsonrpc": "2.0", + "result": 3 + }, + { + "id": 4, + "jsonrpc": "2.0", + "result": 4 + }, + { + "id": 5, + "jsonrpc": "2.0", + "result": 5 + }, + { + "id": 6, + "jsonrpc": "2.0", + "result": 6 + }, + { + "id": 7, + "jsonrpc": "2.0", + "result": 7 + }, + { + "id": 8, + "jsonrpc": "2.0", + "result": 8 + }, + { + "id": 9, + "jsonrpc": "2.0", + "result": 9 + }, + { + "id": 10, + "jsonrpc": "2.0", + "result": 10 + } + ], + "valid": true + }, + { + "data": [ + { + "id": "err-1", + "error": { + "code": -32000, + "data": { + "details": "Internal failure" + }, + "message": "Server error" + }, + "jsonrpc": "2.0" + } + ], + "valid": true + }, + { + "data": [ + { + "id": 0, + "jsonrpc": "2.0", + "result": 0 + }, + { + "id": "empty", + "jsonrpc": "2.0", + "result": "" + }, + { + "id": "arr", + "jsonrpc": "2.0", + "result": [] + }, + { + "id": "obj", + "jsonrpc": "2.0", + "result": {} + } + ], + "valid": true + }, + { + "data": [], + "valid": false + }, + { + "data": [ + { + "id": 1, + "jsonrpc": "2.0" + } + ], + "valid": false + }, + { + "data": [ + { + "id": 1, + "error": { + "code": -32600, + "message": "Error" + }, + "jsonrpc": "2.0", + "result": 1 + } + ], + "valid": false + }, + { + "data": [ + { + "id": 1, + "result": 1 + } + ], + "valid": false + }, + { + "data": [ + { + "jsonrpc": "2.0", + "result": 1 + } + ], + "valid": false + }, + { + "data": [ "not an object" ], + "valid": false + }, + { + "data": [ 42 ], + "valid": false + }, + { + "data": [ null ], + "valid": false + }, + { + "data": [ + { + "id": 1, + "jsonrpc": "2.0", + "result": 1 + }, + { + "id": 2, + "jsonrpc": "2.0" + } + ], + "valid": false + }, + { + "data": {}, + "valid": false + }, + { + "data": "batch", + "valid": false + }, + { + "data": 42, + "valid": false + }, + { + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/other/jsonrpc/v2.0/code-predefined/v1.test.json b/test/schemas/other/jsonrpc/v2.0/code-predefined/v1.test.json new file mode 100644 index 00000000..728fb9ec --- /dev/null +++ b/test/schemas/other/jsonrpc/v2.0/code-predefined/v1.test.json @@ -0,0 +1,125 @@ +{ + "target": "../../../../../../schemas/other/jsonrpc/v2.0/code-predefined/v1.json", + "tests": [ + { + "data": -32700, + "valid": true + }, + { + "data": -32600, + "valid": true + }, + { + "data": -32601, + "valid": true + }, + { + "data": -32602, + "valid": true + }, + { + "data": -32603, + "valid": true + }, + { + "data": -32000, + "valid": true + }, + { + "data": -32001, + "valid": true + }, + { + "data": -32050, + "valid": true + }, + { + "data": -32098, + "valid": true + }, + { + "data": -32099, + "valid": true + }, + { + "data": -32701, + "valid": false + }, + { + "data": -32699, + "valid": false + }, + { + "data": -32604, + "valid": false + }, + { + "data": -32599, + "valid": false + }, + { + "data": -31999, + "valid": false + }, + { + "data": -32100, + "valid": false + }, + { + "data": 0, + "valid": false + }, + { + "data": 1, + "valid": false + }, + { + "data": 100, + "valid": false + }, + { + "data": -1, + "valid": false + }, + { + "data": -100, + "valid": false + }, + { + "data": 32000, + "valid": false + }, + { + "data": 32700, + "valid": false + }, + { + "data": -32700.5, + "valid": false + }, + { + "data": "error", + "valid": false + }, + { + "data": "-32600", + "valid": false + }, + { + "data": null, + "valid": false + }, + { + "data": true, + "valid": false + }, + { + "data": [], + "valid": false + }, + { + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/other/jsonrpc/v2.0/code/v1.test.json b/test/schemas/other/jsonrpc/v2.0/code/v1.test.json new file mode 100644 index 00000000..6badf7fc --- /dev/null +++ b/test/schemas/other/jsonrpc/v2.0/code/v1.test.json @@ -0,0 +1,129 @@ +{ + "target": "../../../../../../schemas/other/jsonrpc/v2.0/code/v1.json", + "tests": [ + { + "data": -32700, + "valid": true + }, + { + "data": -32600, + "valid": true + }, + { + "data": -32601, + "valid": true + }, + { + "data": -32602, + "valid": true + }, + { + "data": -32603, + "valid": true + }, + { + "data": -32000, + "valid": true + }, + { + "data": -32099, + "valid": true + }, + { + "data": 0, + "valid": true + }, + { + "data": 1, + "valid": true + }, + { + "data": -1, + "valid": true + }, + { + "data": 100, + "valid": true + }, + { + "data": -100, + "valid": true + }, + { + "data": 999, + "valid": true + }, + { + "data": -999, + "valid": true + }, + { + "data": 40000, + "valid": true + }, + { + "data": -40000, + "valid": true + }, + { + "data": 2147483647, + "valid": true + }, + { + "data": -2147483648, + "valid": true + }, + { + "data": -31999, + "valid": true + }, + { + "data": -32100, + "valid": true + }, + { + "data": -32701, + "valid": true + }, + { + "data": 1.5, + "valid": false + }, + { + "data": -32700.5, + "valid": false + }, + { + "data": 0.1, + "valid": false + }, + { + "data": "error", + "valid": false + }, + { + "data": "-32600", + "valid": false + }, + { + "data": null, + "valid": false + }, + { + "data": true, + "valid": false + }, + { + "data": false, + "valid": false + }, + { + "data": [], + "valid": false + }, + { + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/other/jsonrpc/v2.0/error/v1.test.json b/test/schemas/other/jsonrpc/v2.0/error/v1.test.json new file mode 100644 index 00000000..3a722edd --- /dev/null +++ b/test/schemas/other/jsonrpc/v2.0/error/v1.test.json @@ -0,0 +1,262 @@ +{ + "target": "../../../../../../schemas/other/jsonrpc/v2.0/error/v1.json", + "tests": [ + { + "data": { + "code": -32600, + "message": "Invalid Request" + }, + "valid": true + }, + { + "data": { + "code": -32601, + "message": "Method not found" + }, + "valid": true + }, + { + "data": { + "code": -32700, + "message": "Parse error" + }, + "valid": true + }, + { + "data": { + "code": -32602, + "message": "Invalid params" + }, + "valid": true + }, + { + "data": { + "code": -32603, + "message": "Internal error" + }, + "valid": true + }, + { + "data": { + "code": -32000, + "message": "Server error" + }, + "valid": true + }, + { + "data": { + "code": 100, + "message": "Application error" + }, + "valid": true + }, + { + "data": { + "code": -1, + "message": "Custom error" + }, + "valid": true + }, + { + "data": { + "code": 0, + "message": "" + }, + "valid": true + }, + { + "data": { + "code": -32600, + "data": "Additional info", + "message": "Invalid Request" + }, + "valid": true + }, + { + "data": { + "code": -32601, + "data": { + "method": "foo" + }, + "message": "Method not found" + }, + "valid": true + }, + { + "data": { + "code": -32000, + "data": { + "details": "Database connection failed" + }, + "message": "Server error" + }, + "valid": true + }, + { + "data": { + "code": 100, + "data": [ 1, 2, 3 ], + "message": "Error" + }, + "valid": true + }, + { + "data": { + "code": -32700, + "data": null, + "message": "Parse error" + }, + "valid": true + }, + { + "data": { + "code": 42, + "data": true, + "message": "Error" + }, + "valid": true + }, + { + "data": { + "code": -32602, + "data": 123, + "message": "Invalid params" + }, + "valid": true + }, + { + "data": { + "code": 1, + "message": "A very long error message with many characters describing the issue in detail" + }, + "valid": true + }, + { + "data": { + "code": -32600, + "message": "Error with unicode café" + }, + "valid": true + }, + { + "data": { + "code": 100, + "message": "Error with\nnewline" + }, + "valid": true + }, + { + "data": { + "code": -32600, + "data": { + "nested": { + "deep": { + "value": 42 + } + } + }, + "message": "Error" + }, + "valid": true + }, + { + "data": { + "message": "Missing code" + }, + "valid": false + }, + { + "data": { + "code": -32600 + }, + "valid": false + }, + { + "data": {}, + "valid": false + }, + { + "data": { + "code": "not-a-number", + "message": "Invalid code type" + }, + "valid": false + }, + { + "data": { + "code": -32600, + "message": 123 + }, + "valid": false + }, + { + "data": { + "code": null, + "message": "Null code" + }, + "valid": false + }, + { + "data": { + "code": -32600, + "message": null + }, + "valid": false + }, + { + "data": { + "code": -32600.5, + "message": "Fractional code" + }, + "valid": false + }, + { + "data": { + "code": -32000, + "custom": "extension", + "message": "Server error" + }, + "valid": true + }, + { + "data": { + "code": -32601, + "message": "Method not found", + "request_id": "req-123", + "timestamp": 1234567890 + }, + "valid": true + }, + { + "data": { + "x-trace": { + "column": 10, + "line": 42 + }, + "code": -32700, + "message": "Parse error" + }, + "valid": true + }, + { + "data": [], + "valid": false + }, + { + "data": "error", + "valid": false + }, + { + "data": 42, + "valid": false + }, + { + "data": null, + "valid": false + }, + { + "data": true, + "valid": false + } + ] +} diff --git a/test/schemas/other/jsonrpc/v2.0/identifier/v1.test.json b/test/schemas/other/jsonrpc/v2.0/identifier/v1.test.json new file mode 100644 index 00000000..1d5e60fc --- /dev/null +++ b/test/schemas/other/jsonrpc/v2.0/identifier/v1.test.json @@ -0,0 +1,139 @@ +{ + "target": "../../../../../../schemas/other/jsonrpc/v2.0/identifier/v1.json", + "tests": [ + { + "data": "abc123", + "valid": true + }, + { + "data": "request-1", + "valid": true + }, + { + "data": "req_001", + "valid": true + }, + { + "data": "", + "valid": true + }, + { + "data": "a", + "valid": true + }, + { + "data": "very-long-identifier-with-many-characters-0123456789", + "valid": true + }, + { + "data": "UUID-like-f47ac10b-58cc-4372-a567-0e02b2c3d479", + "valid": true + }, + { + "data": "with spaces", + "valid": true + }, + { + "data": "with\nnewline", + "valid": true + }, + { + "data": "with\ttab", + "valid": true + }, + { + "data": "unicode-café", + "valid": true + }, + { + "data": "emoji-🎉", + "valid": true + }, + { + "data": 0, + "valid": true + }, + { + "data": 1, + "valid": true + }, + { + "data": -1, + "valid": true + }, + { + "data": 42, + "valid": true + }, + { + "data": -42, + "valid": true + }, + { + "data": 999999, + "valid": true + }, + { + "data": -999999, + "valid": true + }, + { + "data": 2147483647, + "valid": true + }, + { + "data": -2147483648, + "valid": true + }, + { + "data": null, + "valid": true + }, + { + "data": 1.5, + "valid": true, + "description": "Valid - fractional numbers are allowed (SHOULD NOT, not MUST NOT)" + }, + { + "data": 3.14, + "valid": true, + "description": "Valid - fractional numbers are allowed (SHOULD NOT, not MUST NOT)" + }, + { + "data": 0.1, + "valid": true, + "description": "Valid - fractional numbers are allowed (SHOULD NOT, not MUST NOT)" + }, + { + "data": -0.5, + "valid": true, + "description": "Valid - fractional numbers are allowed (SHOULD NOT, not MUST NOT)" + }, + { + "data": true, + "valid": false + }, + { + "data": false, + "valid": false + }, + { + "data": [], + "valid": false + }, + { + "data": [ 1 ], + "valid": false + }, + { + "data": {}, + "valid": false + }, + { + "data": { + "id": 1 + }, + "valid": false + } + ] +} diff --git a/test/schemas/other/jsonrpc/v2.0/method-internal/v1.test.json b/test/schemas/other/jsonrpc/v2.0/method-internal/v1.test.json new file mode 100644 index 00000000..c8a9c72f --- /dev/null +++ b/test/schemas/other/jsonrpc/v2.0/method-internal/v1.test.json @@ -0,0 +1,113 @@ +{ + "target": "../../../../../../schemas/other/jsonrpc/v2.0/method-internal/v1.json", + "tests": [ + { + "data": "rpc.", + "valid": true + }, + { + "data": "rpc.discover", + "valid": true + }, + { + "data": "rpc.introspect", + "valid": true + }, + { + "data": "rpc.system", + "valid": true + }, + { + "data": "rpc.system.info", + "valid": true + }, + { + "data": "rpc.system.listMethods", + "valid": true + }, + { + "data": "rpc.server.version", + "valid": true + }, + { + "data": "rpc.a", + "valid": true + }, + { + "data": "rpc.with-dash", + "valid": true + }, + { + "data": "rpc.with_underscore", + "valid": true + }, + { + "data": "rpc.123", + "valid": true + }, + { + "data": "rpc.deeply.nested.method.name", + "valid": true + }, + { + "data": "rpc", + "valid": false + }, + { + "data": "Rpc.", + "valid": false + }, + { + "data": "RPC.", + "valid": false + }, + { + "data": "rPc.", + "valid": false + }, + { + "data": "method", + "valid": false + }, + { + "data": "subtract", + "valid": false + }, + { + "data": "update", + "valid": false + }, + { + "data": ".rpc", + "valid": false + }, + { + "data": "prefix.rpc.", + "valid": false + }, + { + "data": "", + "valid": false + }, + { + "data": 42, + "valid": false + }, + { + "data": null, + "valid": false + }, + { + "data": true, + "valid": false + }, + { + "data": [], + "valid": false + }, + { + "data": {}, + "valid": false + } + ] +} diff --git a/test/schemas/other/jsonrpc/v2.0/method/v1.test.json b/test/schemas/other/jsonrpc/v2.0/method/v1.test.json new file mode 100644 index 00000000..a54957a2 --- /dev/null +++ b/test/schemas/other/jsonrpc/v2.0/method/v1.test.json @@ -0,0 +1,131 @@ +{ + "target": "../../../../../../schemas/other/jsonrpc/v2.0/method/v1.json", + "tests": [ + { + "data": "subtract", + "valid": true + }, + { + "data": "update", + "valid": true + }, + { + "data": "notify_hello", + "valid": true + }, + { + "data": "sum", + "valid": true + }, + { + "data": "get_data", + "valid": true + }, + { + "data": "foobar", + "valid": true + }, + { + "data": "method-with-dashes", + "valid": true + }, + { + "data": "method.with.dots", + "valid": true + }, + { + "data": "MethodWithCamelCase", + "valid": true + }, + { + "data": "method123", + "valid": true + }, + { + "data": "123method", + "valid": true + }, + { + "data": "a", + "valid": true + }, + { + "data": "", + "valid": true + }, + { + "data": "rpc.discover", + "valid": true + }, + { + "data": "rpc.introspect", + "valid": true + }, + { + "data": "rpc.system.info", + "valid": true + }, + { + "data": "rpc.", + "valid": true + }, + { + "data": "unicode-café", + "valid": true + }, + { + "data": "emoji-🎉", + "valid": true + }, + { + "data": "with spaces", + "valid": true + }, + { + "data": "with\ttab", + "valid": true + }, + { + "data": "with\nnewline", + "valid": true + }, + { + "data": 42, + "valid": false + }, + { + "data": 0, + "valid": false + }, + { + "data": null, + "valid": false + }, + { + "data": true, + "valid": false + }, + { + "data": false, + "valid": false + }, + { + "data": [], + "valid": false + }, + { + "data": [ "method" ], + "valid": false + }, + { + "data": {}, + "valid": false + }, + { + "data": { + "method": "test" + }, + "valid": false + } + ] +} diff --git a/test/schemas/other/jsonrpc/v2.0/notification/v1.test.json b/test/schemas/other/jsonrpc/v2.0/notification/v1.test.json new file mode 100644 index 00000000..c78079d5 --- /dev/null +++ b/test/schemas/other/jsonrpc/v2.0/notification/v1.test.json @@ -0,0 +1,263 @@ +{ + "target": "../../../../../../schemas/other/jsonrpc/v2.0/notification/v1.json", + "tests": [ + { + "data": { + "jsonrpc": "2.0", + "method": "update" + }, + "valid": true + }, + { + "data": { + "jsonrpc": "2.0", + "method": "notify_hello" + }, + "valid": true + }, + { + "data": { + "jsonrpc": "2.0", + "method": "notify" + }, + "valid": true + }, + { + "data": { + "jsonrpc": "2.0", + "method": "log" + }, + "valid": true + }, + { + "data": { + "jsonrpc": "2.0", + "method": "notify_hello", + "params": [ 7 ] + }, + "valid": true + }, + { + "data": { + "jsonrpc": "2.0", + "method": "notify_sum", + "params": { + "a": 1, + "b": 2 + } + }, + "valid": true + }, + { + "data": { + "jsonrpc": "2.0", + "method": "update", + "params": [] + }, + "valid": true + }, + { + "data": { + "jsonrpc": "2.0", + "method": "notify", + "params": {} + }, + "valid": true + }, + { + "data": { + "jsonrpc": "2.0", + "method": "event", + "params": [ 1, 2, 3, 4, 5 ] + }, + "valid": true + }, + { + "data": { + "jsonrpc": "2.0", + "method": "notify", + "params": { + "x": 10, + "y": 20 + } + }, + "valid": true + }, + { + "data": { + "jsonrpc": "2.0", + "method": "rpc.notify" + }, + "valid": true + }, + { + "data": { + "jsonrpc": "2.0", + "method": "rpc.system.event", + "params": { + "type": "shutdown" + } + }, + "valid": true + }, + { + "data": { + "jsonrpc": "2.0", + "method": "notify_with_complex_params", + "params": { + "nested": { + "data": [ 1, 2, 3 ] + } + } + }, + "valid": true + }, + { + "data": { + "id": 1, + "jsonrpc": "2.0", + "method": "update" + }, + "valid": false + }, + { + "data": { + "id": "req-1", + "jsonrpc": "2.0", + "method": "notify" + }, + "valid": false + }, + { + "data": { + "id": null, + "jsonrpc": "2.0", + "method": "event" + }, + "valid": false + }, + { + "data": { + "id": 0, + "jsonrpc": "2.0", + "method": "notify" + }, + "valid": false + }, + { + "data": { + "method": "update" + }, + "valid": false + }, + { + "data": { + "jsonrpc": "2.0" + }, + "valid": false + }, + { + "data": {}, + "valid": false + }, + { + "data": { + "jsonrpc": "1.0", + "method": "update" + }, + "valid": false + }, + { + "data": { + "jsonrpc": "3.0", + "method": "update" + }, + "valid": false + }, + { + "data": { + "jsonrpc": 2.0, + "method": "update" + }, + "valid": false + }, + { + "data": { + "jsonrpc": "2.0", + "method": 123 + }, + "valid": false + }, + { + "data": { + "jsonrpc": "2.0", + "method": null + }, + "valid": false + }, + { + "data": { + "jsonrpc": "2.0", + "method": "notify", + "params": "invalid" + }, + "valid": false + }, + { + "data": { + "jsonrpc": "2.0", + "method": "notify", + "params": 42 + }, + "valid": false + }, + { + "data": { + "jsonrpc": "2.0", + "method": "notify", + "params": null + }, + "valid": false + }, + { + "data": { + "custom": "extension", + "jsonrpc": "2.0", + "method": "update" + }, + "valid": true + }, + { + "data": { + "jsonrpc": "2.0", + "method": "log", + "params": [ "message" ], + "priority": "low", + "timestamp": 1234567890 + }, + "valid": true + }, + { + "data": { + "x-metadata": { + "source": "system" + }, + "jsonrpc": "2.0", + "method": "notify_event" + }, + "valid": true + }, + { + "data": [], + "valid": false + }, + { + "data": "notification", + "valid": false + }, + { + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/other/jsonrpc/v2.0/parameters/v1.test.json b/test/schemas/other/jsonrpc/v2.0/parameters/v1.test.json new file mode 100644 index 00000000..6f2fdb07 --- /dev/null +++ b/test/schemas/other/jsonrpc/v2.0/parameters/v1.test.json @@ -0,0 +1,144 @@ +{ + "target": "../../../../../../schemas/other/jsonrpc/v2.0/parameters/v1.json", + "tests": [ + { + "data": [], + "valid": true + }, + { + "data": [ 1 ], + "valid": true + }, + { + "data": [ 1, 2, 3 ], + "valid": true + }, + { + "data": [ "foo" ], + "valid": true + }, + { + "data": [ "foo", "bar" ], + "valid": true + }, + { + "data": [ null ], + "valid": true + }, + { + "data": [ true, false ], + "valid": true + }, + { + "data": [ 42, "test", null, true ], + "valid": true + }, + { + "data": [ + [ 1, 2 ], + [ 3, 4 ] + ], + "valid": true + }, + { + "data": [ + { + "nested": "object" + } + ], + "valid": true + }, + { + "data": {}, + "valid": true + }, + { + "data": { + "name": "John" + }, + "valid": true + }, + { + "data": { + "age": 30, + "name": "John" + }, + "valid": true + }, + { + "data": { + "a": 1, + "b": 2, + "c": 3 + }, + "valid": true + }, + { + "data": { + "value": null + }, + "valid": true + }, + { + "data": { + "flag": true + }, + "valid": true + }, + { + "data": { + "nested": { + "deep": { + "value": 42 + } + } + }, + "valid": true + }, + { + "data": { + "array": [ 1, 2, 3 ] + }, + "valid": true + }, + { + "data": { + "minuend": 42, + "subtrahend": 23 + }, + "valid": true + }, + { + "data": { + "x": 10, + "label": "point", + "y": 20 + }, + "valid": true + }, + { + "data": "string", + "valid": false + }, + { + "data": 42, + "valid": false + }, + { + "data": 0, + "valid": false + }, + { + "data": true, + "valid": false + }, + { + "data": false, + "valid": false + }, + { + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/other/jsonrpc/v2.0/request/v1.test.json b/test/schemas/other/jsonrpc/v2.0/request/v1.test.json new file mode 100644 index 00000000..7f885957 --- /dev/null +++ b/test/schemas/other/jsonrpc/v2.0/request/v1.test.json @@ -0,0 +1,330 @@ +{ + "target": "../../../../../../schemas/other/jsonrpc/v2.0/request/v1.json", + "tests": [ + { + "data": { + "id": 1, + "jsonrpc": "2.0", + "method": "subtract" + }, + "valid": true + }, + { + "data": { + "id": 1, + "jsonrpc": "2.0", + "method": "subtract", + "params": [ 42, 23 ] + }, + "valid": true + }, + { + "data": { + "id": 3, + "jsonrpc": "2.0", + "method": "subtract", + "params": { + "minuend": 42, + "subtrahend": 23 + } + }, + "valid": true + }, + { + "data": { + "id": "req-001", + "jsonrpc": "2.0", + "method": "update", + "params": [ 1, 2, 3, 4, 5 ] + }, + "valid": true + }, + { + "data": { + "id": "1", + "jsonrpc": "2.0", + "method": "sum", + "params": [ 1, 2, 4 ] + }, + "valid": true + }, + { + "data": { + "id": 0, + "jsonrpc": "2.0", + "method": "get_data" + }, + "valid": true + }, + { + "data": { + "id": -1, + "jsonrpc": "2.0", + "method": "fetch" + }, + "valid": true + }, + { + "data": { + "id": 999999, + "jsonrpc": "2.0", + "method": "query" + }, + "valid": true + }, + { + "data": { + "id": "", + "jsonrpc": "2.0", + "method": "test" + }, + "valid": true + }, + { + "data": { + "id": "uuid-f47ac10b-58cc-4372-a567-0e02b2c3d479", + "jsonrpc": "2.0", + "method": "execute" + }, + "valid": true + }, + { + "data": { + "id": null, + "jsonrpc": "2.0", + "method": "process" + }, + "valid": true + }, + { + "data": { + "id": 42, + "jsonrpc": "2.0", + "method": "run", + "params": [] + }, + "valid": true + }, + { + "data": { + "id": "test", + "jsonrpc": "2.0", + "method": "execute", + "params": {} + }, + "valid": true + }, + { + "data": { + "id": 1, + "jsonrpc": "2.0", + "method": "rpc.discover" + }, + "valid": true + }, + { + "data": { + "id": "sys-1", + "jsonrpc": "2.0", + "method": "rpc.system.info", + "params": { + "verbose": true + } + }, + "valid": true + }, + { + "data": { + "id": 100, + "jsonrpc": "2.0", + "method": "calculate", + "params": { + "x": 10, + "op": "add", + "y": 20 + } + }, + "valid": true + }, + { + "data": { + "id": "batch-1", + "jsonrpc": "2.0", + "method": "batch_process", + "params": [ + [ 1, 2 ], + [ 3, 4 ] + ] + }, + "valid": true + }, + { + "data": { + "jsonrpc": "2.0", + "method": "subtract" + }, + "valid": false + }, + { + "data": { + "id": 1, + "jsonrpc": "2.0" + }, + "valid": false + }, + { + "data": { + "id": 1, + "method": "subtract" + }, + "valid": false + }, + { + "data": {}, + "valid": false + }, + { + "data": { + "id": 1, + "jsonrpc": "1.0", + "method": "subtract" + }, + "valid": false + }, + { + "data": { + "id": 1, + "jsonrpc": "3.0", + "method": "subtract" + }, + "valid": false + }, + { + "data": { + "id": 1, + "jsonrpc": 2.0, + "method": "subtract" + }, + "valid": false + }, + { + "data": { + "id": 1, + "jsonrpc": "2.0", + "method": 123 + }, + "valid": false + }, + { + "data": { + "id": 1, + "jsonrpc": "2.0", + "method": null + }, + "valid": false + }, + { + "data": { + "id": true, + "jsonrpc": "2.0", + "method": "test" + }, + "valid": false + }, + { + "data": { + "id": [], + "jsonrpc": "2.0", + "method": "test" + }, + "valid": false + }, + { + "data": { + "id": {}, + "jsonrpc": "2.0", + "method": "test" + }, + "valid": false + }, + { + "data": { + "id": 1.5, + "jsonrpc": "2.0", + "method": "test" + }, + "valid": true, + "description": "Valid - fractional id is allowed (SHOULD NOT, not MUST NOT)" + }, + { + "data": { + "id": 1, + "jsonrpc": "2.0", + "method": "test", + "params": "invalid" + }, + "valid": false + }, + { + "data": { + "id": 1, + "jsonrpc": "2.0", + "method": "test", + "params": 42 + }, + "valid": false + }, + { + "data": { + "id": 1, + "jsonrpc": "2.0", + "method": "test", + "params": null + }, + "valid": false + }, + { + "data": { + "id": 1, + "custom": "extension", + "jsonrpc": "2.0", + "method": "test" + }, + "valid": true + }, + { + "data": { + "id": "req-1", + "jsonrpc": "2.0", + "method": "process", + "params": [ 1, 2, 3 ], + "priority": "high", + "timeout": 5000 + }, + "valid": true + }, + { + "data": { + "id": 42, + "x-custom-header": { + "trace-id": "abc123" + }, + "jsonrpc": "2.0", + "method": "query" + }, + "valid": true + }, + { + "data": [], + "valid": false + }, + { + "data": "request", + "valid": false + }, + { + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/other/jsonrpc/v2.0/response/v1.test.json b/test/schemas/other/jsonrpc/v2.0/response/v1.test.json new file mode 100644 index 00000000..3dfb33a7 --- /dev/null +++ b/test/schemas/other/jsonrpc/v2.0/response/v1.test.json @@ -0,0 +1,357 @@ +{ + "target": "../../../../../../schemas/other/jsonrpc/v2.0/response/v1.json", + "tests": [ + { + "data": { + "id": 1, + "jsonrpc": "2.0", + "result": 19 + }, + "valid": true + }, + { + "data": { + "id": 2, + "jsonrpc": "2.0", + "result": 0 + }, + "valid": true + }, + { + "data": { + "id": 3, + "jsonrpc": "2.0", + "result": -1 + }, + "valid": true + }, + { + "data": { + "id": "req-1", + "jsonrpc": "2.0", + "result": "success" + }, + "valid": true + }, + { + "data": { + "id": 1, + "jsonrpc": "2.0", + "result": "" + }, + "valid": true + }, + { + "data": { + "id": 1, + "jsonrpc": "2.0", + "result": null + }, + "valid": true + }, + { + "data": { + "id": 2, + "jsonrpc": "2.0", + "result": true + }, + "valid": true + }, + { + "data": { + "id": 3, + "jsonrpc": "2.0", + "result": false + }, + "valid": true + }, + { + "data": { + "id": "req-002", + "jsonrpc": "2.0", + "result": [ 7, 8, 9 ] + }, + "valid": true + }, + { + "data": { + "id": 1, + "jsonrpc": "2.0", + "result": [] + }, + "valid": true + }, + { + "data": { + "id": 1, + "jsonrpc": "2.0", + "result": { + "status": "ok" + } + }, + "valid": true + }, + { + "data": { + "id": 2, + "jsonrpc": "2.0", + "result": {} + }, + "valid": true + }, + { + "data": { + "id": "test", + "jsonrpc": "2.0", + "result": { + "data": { + "nested": "value" + } + } + }, + "valid": true + }, + { + "data": { + "id": 3, + "error": { + "code": -32601, + "message": "Method not found" + }, + "jsonrpc": "2.0" + }, + "valid": true + }, + { + "data": { + "id": null, + "error": { + "code": -32600, + "message": "Invalid Request" + }, + "jsonrpc": "2.0" + }, + "valid": true + }, + { + "data": { + "id": "req-1", + "error": { + "code": -32700, + "message": "Parse error" + }, + "jsonrpc": "2.0" + }, + "valid": true + }, + { + "data": { + "id": 1, + "error": { + "code": -32000, + "data": { + "details": "failed" + }, + "message": "Server error" + }, + "jsonrpc": "2.0" + }, + "valid": true + }, + { + "data": { + "id": 42, + "error": { + "code": 100, + "message": "Application error" + }, + "jsonrpc": "2.0" + }, + "valid": true + }, + { + "data": { + "id": 0, + "jsonrpc": "2.0", + "result": 42 + }, + "valid": true + }, + { + "data": { + "id": -1, + "jsonrpc": "2.0", + "result": [ 1, 2, 3, 4, 5 ] + }, + "valid": true + }, + { + "data": { + "id": 1, + "jsonrpc": "2.0" + }, + "valid": false + }, + { + "data": { + "id": 1, + "error": { + "code": -32600, + "message": "Error" + }, + "jsonrpc": "2.0", + "result": 19 + }, + "valid": false + }, + { + "data": { + "jsonrpc": "2.0", + "result": 19 + }, + "valid": false + }, + { + "data": { + "error": { + "code": -32600, + "message": "Error" + }, + "jsonrpc": "2.0" + }, + "valid": false + }, + { + "data": { + "id": 1, + "result": 19 + }, + "valid": false + }, + { + "data": { + "id": 1, + "jsonrpc": "1.0", + "result": 19 + }, + "valid": false + }, + { + "data": { + "id": 1, + "jsonrpc": 2.0, + "result": 19 + }, + "valid": false + }, + { + "data": { + "id": true, + "jsonrpc": "2.0", + "result": 19 + }, + "valid": false + }, + { + "data": { + "id": [], + "jsonrpc": "2.0", + "result": 19 + }, + "valid": false + }, + { + "data": { + "id": {}, + "jsonrpc": "2.0", + "result": 19 + }, + "valid": false + }, + { + "data": { + "id": 1.5, + "jsonrpc": "2.0", + "result": 19 + }, + "valid": true, + "description": "Valid - fractional id is allowed (SHOULD NOT, not MUST NOT)" + }, + { + "data": { + "id": 1, + "error": "not an object", + "jsonrpc": "2.0" + }, + "valid": false + }, + { + "data": { + "id": 1, + "error": { + "code": "invalid" + }, + "jsonrpc": "2.0" + }, + "valid": false + }, + { + "data": { + "id": 1, + "error": { + "message": "Missing code" + }, + "jsonrpc": "2.0" + }, + "valid": false + }, + { + "data": { + "id": 1, + "custom": "extension", + "jsonrpc": "2.0", + "result": 42 + }, + "valid": true + }, + { + "data": { + "id": "req-1", + "jsonrpc": "2.0", + "result": "success", + "timing": { + "duration": 150 + } + }, + "valid": true + }, + { + "data": { + "id": 2, + "x-request-id": "abc123", + "error": { + "code": -32600, + "message": "Error" + }, + "jsonrpc": "2.0" + }, + "valid": true + }, + { + "data": {}, + "valid": false + }, + { + "data": [], + "valid": false + }, + { + "data": "response", + "valid": false + }, + { + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/any-uri/v1.test.json b/test/schemas/w3c/xmlschema/2001/any-uri/v1.test.json new file mode 100644 index 00000000..92f6f038 --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/any-uri/v1.test.json @@ -0,0 +1,395 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/any-uri/v1.json", + "tests": [ + { + "description": "Valid - empty string", + "data": "", + "valid": true + }, + { + "description": "Valid - HTTP URL", + "data": "http://www.example.com", + "valid": true + }, + { + "description": "Valid - HTTPS URL", + "data": "https://www.example.com/path/to/resource", + "valid": true + }, + { + "description": "Valid - FTP URL", + "data": "ftp://ftp.example.com/file.txt", + "valid": true + }, + { + "description": "Valid - mailto URL", + "data": "mailto:user@example.com", + "valid": true + }, + { + "description": "Valid - file URL", + "data": "file:///path/to/file.txt", + "valid": true + }, + { + "description": "Valid - relative path", + "data": "../relative/path.html", + "valid": true + }, + { + "description": "Valid - absolute path", + "data": "/absolute/path/to/resource", + "valid": true + }, + { + "description": "Valid - with fragment", + "data": "http://www.example.com#fragment", + "valid": true + }, + { + "description": "Valid - with query string", + "data": "http://www.example.com?key=value&foo=bar", + "valid": true + }, + { + "description": "Valid - with port", + "data": "http://www.example.com:8080/path", + "valid": true + }, + { + "description": "Valid - URN", + "data": "urn:isbn:0-395-36341-1", + "valid": true + }, + { + "description": "Valid - data URI", + "data": "data:text/plain;charset=UTF-8;page=21,the%20data:1234,5678", + "valid": true + }, + { + "description": "Valid - with encoded characters", + "data": "http://www.example.com/%C3%A9dition.html", + "valid": true + }, + { + "description": "Valid - with non-ASCII characters", + "data": "http://www.example.com/édition.html", + "valid": true + }, + { + "description": "Valid - with non-ASCII host and path", + "data": "https://例え.jp/パス", + "valid": true + }, + { + "description": "Valid - relative with dot segments", + "data": "./file.txt", + "valid": true + }, + { + "description": "Valid - relative with parent", + "data": "../../file.txt", + "valid": true + }, + { + "description": "Valid - just filename", + "data": "file.txt", + "valid": true + }, + { + "description": "Valid - spaces are within the XSD anyURI lexical space", + "data": "http://www.example.com/file with spaces.txt", + "valid": true + }, + { + "description": "Valid - IPv6 host", + "data": "http://[2001:db8::1]:8080/path", + "valid": true + }, + { + "description": "Valid - fragment only", + "data": "#section", + "valid": true + }, + { + "description": "Valid - query only", + "data": "?query=value", + "valid": true + }, + { + "description": "Valid - tel URI", + "data": "tel:+1-816-555-1212", + "valid": true + }, + { + "description": "Valid - javascript protocol", + "data": "javascript:alert('test')", + "valid": true + }, + { + "description": "Invalid - number type", + "data": 123, + "valid": false + }, + { + "description": "Invalid - boolean type", + "data": true, + "valid": false + }, + { + "description": "Invalid - null type", + "data": null, + "valid": false + }, + { + "description": "Invalid - object type", + "data": {}, + "valid": false + }, + { + "description": "Invalid - array type", + "data": [], + "valid": false + }, + { + "description": "Valid - HTTPS with path and query", + "data": "https://example.com/path?key=value", + "valid": true + }, + { + "description": "Valid - FTP with username", + "data": "ftp://user@ftp.example.com/file", + "valid": true + }, + { + "description": "Valid - HTTP with port and path", + "data": "http://example.com:3000/api", + "valid": true + }, + { + "description": "Valid - file protocol Unix path", + "data": "file:///usr/local/bin/app", + "valid": true + }, + { + "description": "Valid - file protocol Windows path", + "data": "file:///C:/Users/test/file.txt", + "valid": true + }, + { + "description": "Valid - mailto with subject", + "data": "mailto:test@example.com?subject=Hello", + "valid": true + }, + { + "description": "Valid - tel with extension", + "data": "tel:+1-816-555-1212;ext=123", + "valid": true + }, + { + "description": "Valid - data URI base64", + "data": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA", + "valid": true + }, + { + "description": "Valid - news protocol", + "data": "news:comp.infosystems.www.servers.unix", + "valid": true + }, + { + "description": "Valid - nntp protocol", + "data": "nntp://news.example.com/example.group.this", + "valid": true + }, + { + "description": "Valid - telnet protocol", + "data": "telnet://192.0.2.16:80/", + "valid": true + }, + { + "description": "Valid - wais protocol", + "data": "wais://example.com/database", + "valid": true + }, + { + "description": "Valid - prospero protocol", + "data": "prospero://host.dom/link", + "valid": true + }, + { + "description": "Valid - relative path with query", + "data": "path/to/file?query=string", + "valid": true + }, + { + "description": "Valid - relative path with fragment", + "data": "page.html#section", + "valid": true + }, + { + "description": "Valid - absolute path with query and fragment", + "data": "/path/page?q=1#top", + "valid": true + }, + { + "description": "Valid - current directory reference", + "data": "./file.txt", + "valid": true + }, + { + "description": "Valid - parent directory multiple levels", + "data": "../../../file.txt", + "valid": true + }, + { + "description": "Valid - complex relative path", + "data": "../dir1/./dir2/../file.txt", + "valid": true + }, + { + "description": "Valid - URN ISBN", + "data": "urn:isbn:0451450523", + "valid": true + }, + { + "description": "Valid - URN ISSN", + "data": "urn:issn:0167-6423", + "valid": true + }, + { + "description": "Valid - URN UUID", + "data": "urn:uuid:6e8bc430-9c3a-11d9-9669-0800200c9a66", + "valid": true + }, + { + "description": "Valid - URN OID", + "data": "urn:oid:2.16.840", + "valid": true + }, + { + "description": "Valid - HTTP with authentication", + "data": "http://user:pass@example.com/", + "valid": true + }, + { + "description": "Valid - IPv4 address", + "data": "http://192.168.1.1/", + "valid": true + }, + { + "description": "Valid - IPv4 with port", + "data": "http://192.168.1.1:8080/path", + "valid": true + }, + { + "description": "Valid - IPv6 localhost", + "data": "http://[::1]/", + "valid": true + }, + { + "description": "Valid - IPv6 full address", + "data": "http://[2001:0db8:85a3:0000:0000:8a2e:0370:7334]/", + "valid": true + }, + { + "description": "Valid - IPv6 compressed", + "data": "http://[2001:db8::1]/", + "valid": true + }, + { + "description": "Valid - query string only", + "data": "?query=value", + "valid": true + }, + { + "description": "Valid - fragment only", + "data": "#anchor", + "valid": true + }, + { + "description": "Valid - multiple query parameters", + "data": "http://example.com?a=1&b=2&c=3", + "valid": true + }, + { + "description": "Valid - encoded characters in path", + "data": "http://example.com/path%20with%20spaces", + "valid": true + }, + { + "description": "Valid - encoded characters in query", + "data": "http://example.com?key=value%20here", + "valid": true + }, + { + "description": "Valid - complex query with encoded chars", + "data": "http://example.com?a=b&c=%2Fd%2Fe", + "valid": true + }, + { + "description": "Valid - long subdomain chain", + "data": "http://sub1.sub2.sub3.example.com/", + "valid": true + }, + { + "description": "Valid - hyphenated domain", + "data": "http://my-domain.example.com/", + "valid": true + }, + { + "description": "Valid - numbered subdomain", + "data": "http://server1.example.com/", + "valid": true + }, + { + "description": "Valid - TLD only", + "data": "http://localhost/", + "valid": true + }, + { + "description": "Valid - custom scheme", + "data": "myapp://open/document", + "valid": true + }, + { + "description": "Valid - scheme with plus", + "data": "git+https://github.com/user/repo.git", + "valid": true + }, + { + "description": "Valid - scheme with dot", + "data": "my.scheme://example", + "valid": true + }, + { + "description": "Valid - scheme with hyphen", + "data": "my-scheme://example", + "valid": true + }, + { + "description": "Valid - path with tilde", + "data": "http://example.com/~user/", + "valid": true + }, + { + "description": "Valid - path with dot files", + "data": "http://example.com/.well-known/", + "valid": true + }, + { + "description": "Valid - empty path after domain", + "data": "http://example.com", + "valid": true + }, + { + "description": "Valid - trailing slash", + "data": "http://example.com/", + "valid": true + }, + { + "description": "Valid - no trailing slash on path", + "data": "http://example.com/path", + "valid": true + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/base64-binary/v1.test.json b/test/schemas/w3c/xmlschema/2001/base64-binary/v1.test.json new file mode 100644 index 00000000..b56c21bb --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/base64-binary/v1.test.json @@ -0,0 +1,525 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/base64-binary/v1.json", + "tests": [ + { + "description": "Valid - empty string", + "data": "", + "valid": true + }, + { + "description": "Valid - single char with padding", + "data": "YQ==", + "valid": true + }, + { + "description": "Valid - two chars with padding", + "data": "YWI=", + "valid": true + }, + { + "description": "Valid - three chars no padding", + "data": "YWJj", + "valid": true + }, + { + "description": "Valid - four chars", + "data": "YWJjZA==", + "valid": true + }, + { + "description": "Valid - Hello World", + "data": "SGVsbG8gV29ybGQh", + "valid": true + }, + { + "description": "Invalid - insufficient chars in final group", + "data": "a+b/c==", + "valid": false + }, + { + "description": "Valid - with plus sign", + "data": "a+b/cg==", + "valid": true + }, + { + "description": "Invalid - final quad has non-zero discarded bits (f not in B16)", + "data": "abc/def=", + "valid": false + }, + { + "description": "Valid - all uppercase", + "data": "QUJDRA==", + "valid": true + }, + { + "description": "Valid - all lowercase", + "data": "cXdlcg==", + "valid": true + }, + { + "description": "Valid - all digits", + "data": "MTIzNDU2Nzg5MA==", + "valid": true + }, + { + "description": "Valid - GIF header", + "data": "R0lGODlhAQABAAAAACw=", + "valid": true + }, + { + "description": "Valid - multiple of 4 chars", + "data": "YWJjZGVmZ2hpamtsbW5vcA==", + "valid": true + }, + { + "description": "Valid - long string", + "data": "VGhpcyBpcyBhIGxvbmcgYmFzZTY0IGVuY29kZWQgc3RyaW5nIHRoYXQgc2hvdWxkIGJlIHZhbGlk", + "valid": true + }, + { + "description": "Invalid - one equals padding only", + "data": "YWI==", + "valid": false + }, + { + "description": "Invalid - three equals", + "data": "YQ===", + "valid": false + }, + { + "description": "Invalid - padding in middle", + "data": "YQ==YWI=", + "valid": false + }, + { + "description": "Invalid - padding not at end", + "data": "Y=WI", + "valid": false + }, + { + "description": "Invalid - single character without padding (insufficient data)", + "data": "Y", + "valid": false + }, + { + "description": "Invalid - two characters without required padding", + "data": "YW", + "valid": false + }, + { + "description": "Invalid - three characters without required padding", + "data": "YWJ", + "valid": false + }, + { + "description": "Valid - single space between characters per the XSD grammar", + "data": "YWJj ZA==", + "valid": true + }, + { + "description": "Invalid - contains dash", + "data": "YWJj-ZA==", + "valid": false + }, + { + "description": "Invalid - contains underscore", + "data": "YWJj_ZA==", + "valid": false + }, + { + "description": "Invalid - contains period", + "data": "YWJj.ZA==", + "valid": false + }, + { + "description": "Invalid - contains comma", + "data": "YWJj,ZA==", + "valid": false + }, + { + "description": "Invalid - contains special char", + "data": "YWJj@ZA==", + "valid": false + }, + { + "description": "Invalid - number type", + "data": 123, + "valid": false + }, + { + "description": "Invalid - boolean type", + "data": true, + "valid": false + }, + { + "description": "Invalid - null type", + "data": null, + "valid": false + }, + { + "description": "Valid - only uppercase letters", + "data": "ABCDEFGH", + "valid": true + }, + { + "description": "Valid - only lowercase letters", + "data": "abcdefgh", + "valid": true + }, + { + "description": "Valid - only digits", + "data": "01234567", + "valid": true + }, + { + "description": "Valid - plus at start", + "data": "+ABC", + "valid": true + }, + { + "description": "Valid - slash at start", + "data": "/ABC", + "valid": true + }, + { + "description": "Valid - plus at end", + "data": "ABC+", + "valid": true + }, + { + "description": "Valid - slash at end", + "data": "ABC/", + "valid": true + }, + { + "description": "Valid - multiple plus signs", + "data": "A+B+C+D+", + "valid": true + }, + { + "description": "Valid - multiple slashes", + "data": "A/B/C/D/", + "valid": true + }, + { + "description": "Valid - plus and slash mixed", + "data": "A+B/C+D/", + "valid": true + }, + { + "description": "Valid - 8 chars no padding", + "data": "ABCDEFGH", + "valid": true + }, + { + "description": "Valid - 12 chars no padding", + "data": "ABCDEFGHIJKL", + "valid": true + }, + { + "description": "Valid - 16 chars no padding", + "data": "ABCDEFGHIJKLMNOP", + "valid": true + }, + { + "description": "Invalid - 5 chars without required padding", + "data": "ABCDE", + "valid": false + }, + { + "description": "Invalid - 6 chars without required padding", + "data": "ABCDEF", + "valid": false + }, + { + "description": "Invalid - 7 chars without required padding", + "data": "ABCDEFG", + "valid": false + }, + { + "description": "Invalid - 10 chars without required padding", + "data": "ABCDEFGHIJ", + "valid": false + }, + { + "description": "Invalid - character before double padding must be A, Q, g, or w", + "data": "AB==", + "valid": false + }, + { + "description": "Invalid - character before single padding must be from the B16 class", + "data": "ABC=", + "valid": false + }, + { + "description": "Valid - 8 chars then padding", + "data": "ABCDEFGH/w==", + "valid": true + }, + { + "description": "Valid - all char types", + "data": "AZ09+/AB", + "valid": true + }, + { + "description": "Valid - repeated patterns", + "data": "AAAABBBBCCCCDDDD", + "valid": true + }, + { + "description": "Valid - zeros encoded", + "data": "AAAA", + "valid": true + }, + { + "description": "Valid - max values encoded", + "data": "////", + "valid": true + }, + { + "description": "Valid - alternating chars", + "data": "AaAaAaAa", + "valid": true + }, + { + "description": "Invalid - padding at beginning", + "data": "==ABCD", + "valid": false + }, + { + "description": "Invalid - padding in first position", + "data": "=ABC", + "valid": false + }, + { + "description": "Invalid - only equals", + "data": "====", + "valid": false + }, + { + "description": "Invalid - single equals", + "data": "=", + "valid": false + }, + { + "description": "Invalid - double equals alone", + "data": "==", + "valid": false + }, + { + "description": "Invalid - four equals", + "data": "ABCD====", + "valid": false + }, + { + "description": "Invalid - padding then more chars", + "data": "AB==CD", + "valid": false + }, + { + "description": "Invalid - padding then padding", + "data": "AB===", + "valid": false + }, + { + "description": "Invalid - mixed padding positions", + "data": "A=B=", + "valid": false + }, + { + "description": "Invalid - three chars with two equals", + "data": "ABC==", + "valid": false + }, + { + "description": "Invalid - two chars with one equal", + "data": "AB=", + "valid": false + }, + { + "description": "Invalid - five chars with padding", + "data": "ABCDE=", + "valid": false + }, + { + "description": "Valid - uppercase G", + "data": "ABCG", + "valid": true + }, + { + "description": "Valid - lowercase g", + "data": "ABCg", + "valid": true + }, + { + "description": "Invalid - contains (", + "data": "ABC(", + "valid": false + }, + { + "description": "Invalid - contains )", + "data": "ABC)", + "valid": false + }, + { + "description": "Invalid - contains [", + "data": "ABC[", + "valid": false + }, + { + "description": "Invalid - contains ]", + "data": "ABC]", + "valid": false + }, + { + "description": "Invalid - contains {", + "data": "ABC{", + "valid": false + }, + { + "description": "Invalid - contains }", + "data": "ABC}", + "valid": false + }, + { + "description": "Invalid - contains !", + "data": "ABC!", + "valid": false + }, + { + "description": "Invalid - contains ?", + "data": "ABC?", + "valid": false + }, + { + "description": "Invalid - contains *", + "data": "ABC*", + "valid": false + }, + { + "description": "Invalid - contains &", + "data": "ABC&", + "valid": false + }, + { + "description": "Invalid - contains $", + "data": "ABC$", + "valid": false + }, + { + "description": "Invalid - contains %", + "data": "ABC%", + "valid": false + }, + { + "description": "Invalid - contains #", + "data": "ABC#", + "valid": false + }, + { + "description": "Invalid - contains ^", + "data": "ABC^", + "valid": false + }, + { + "description": "Invalid - contains ~", + "data": "ABC~", + "valid": false + }, + { + "description": "Invalid - contains `", + "data": "ABC`", + "valid": false + }, + { + "description": "Invalid - contains |", + "data": "ABC|", + "valid": false + }, + { + "description": "Invalid - contains \\", + "data": "ABC\\", + "valid": false + }, + { + "description": "Invalid - contains ;", + "data": "ABC;", + "valid": false + }, + { + "description": "Invalid - contains :", + "data": "ABC:", + "valid": false + }, + { + "description": "Invalid - contains '", + "data": "ABC'", + "valid": false + }, + { + "description": "Invalid - contains \"", + "data": "ABC\"", + "valid": false + }, + { + "description": "Invalid - contains <", + "data": "ABC<", + "valid": false + }, + { + "description": "Invalid - contains >", + "data": "ABC>", + "valid": false + }, + { + "description": "Invalid - leading tab", + "data": "\tABCD", + "valid": false + }, + { + "description": "Invalid - trailing tab", + "data": "ABCD\t", + "valid": false + }, + { + "description": "Invalid - tab in middle", + "data": "AB\tCD", + "valid": false + }, + { + "description": "Invalid - leading space", + "data": " ABCD", + "valid": false + }, + { + "description": "Invalid - trailing space", + "data": "ABCD ", + "valid": false + }, + { + "description": "Invalid - multiple spaces", + "data": "AB CD", + "valid": false + }, + { + "description": "Invalid - contains carriage return", + "data": "AB\rCD", + "valid": false + }, + { + "description": "Invalid - non-ASCII character", + "data": "ABCé", + "valid": false + }, + { + "description": "Invalid - emoji", + "data": "ABC😀", + "valid": false + }, + { + "description": "Valid - very long valid base64", + "data": "VGhpcyBpcyBhIHZlcnkgbG9uZyBiYXNlNjQgZW5jb2RlZCBzdHJpbmcgdGhhdCB3ZSBhcmUgdXNpbmcgdG8gdGVzdCB0aGUgdmFsaWRhdGlvbiBvZiBsb25nZXIgaW5wdXRzIHRvIG1ha2Ugc3VyZSBvdXIgcGF0dGVybiB3b3JrcyBjb3JyZWN0bHk=", + "valid": true + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/boolean/v1.test.json b/test/schemas/w3c/xmlschema/2001/boolean/v1.test.json new file mode 100644 index 00000000..26c63cb9 --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/boolean/v1.test.json @@ -0,0 +1,45 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/boolean/v1.json", + "tests": [ + { + "description": "Valid - true", + "data": true, + "valid": true + }, + { + "description": "Valid - false", + "data": false, + "valid": true + }, + { + "description": "Invalid - string true", + "data": "true", + "valid": false + }, + { + "description": "Invalid - string false", + "data": "false", + "valid": false + }, + { + "description": "Invalid - number 1", + "data": 1, + "valid": false + }, + { + "description": "Invalid - number 0", + "data": 0, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/byte/v1.test.json b/test/schemas/w3c/xmlschema/2001/byte/v1.test.json new file mode 100644 index 00000000..45eface0 --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/byte/v1.test.json @@ -0,0 +1,75 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/byte/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive one", + "data": 1, + "valid": true + }, + { + "description": "Valid - negative one", + "data": -1, + "valid": true + }, + { + "description": "Valid - maximum (127)", + "data": 127, + "valid": true + }, + { + "description": "Valid - minimum (-128)", + "data": -128, + "valid": true + }, + { + "description": "Valid - arbitrary positive", + "data": 42, + "valid": true + }, + { + "description": "Valid - arbitrary negative", + "data": -99, + "valid": true + }, + { + "description": "Invalid: too large (128)", + "data": 128, + "valid": false + }, + { + "description": "Invalid: too small (-129)", + "data": -129, + "valid": false + }, + { + "description": "Invalid: much too large", + "data": 1000, + "valid": false + }, + { + "description": "Invalid: decimal number", + "data": 1.5, + "valid": false + }, + { + "description": "Invalid: string", + "data": "42", + "valid": false + }, + { + "description": "Invalid: boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid: null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/date-time/v1.test.json b/test/schemas/w3c/xmlschema/2001/date-time/v1.test.json new file mode 100644 index 00000000..ac6877e5 --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/date-time/v1.test.json @@ -0,0 +1,130 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/date-time/v1.json", + "tests": [ + { + "description": "Valid - basic datetime", + "data": "2023-05-15T14:30:00", + "valid": true + }, + { + "description": "Valid - datetime with Z timezone", + "data": "2023-05-15T14:30:00Z", + "valid": true + }, + { + "description": "Valid - datetime with positive offset", + "data": "2023-05-15T14:30:00+05:30", + "valid": true + }, + { + "description": "Valid - datetime with negative offset", + "data": "2023-05-15T14:30:00-08:00", + "valid": true + }, + { + "description": "Valid - datetime with fractional seconds", + "data": "2023-05-15T14:30:00.123", + "valid": true + }, + { + "description": "Valid - datetime with fractional seconds and timezone", + "data": "2023-05-15T14:30:00.123456Z", + "valid": true + }, + { + "description": "Valid - midnight", + "data": "2023-05-15T00:00:00", + "valid": true + }, + { + "description": "Valid - end of day", + "data": "2023-05-15T23:59:59", + "valid": true + }, + { + "description": "Invalid - leap second is not an XSD dateTime", + "data": "2023-12-31T23:59:60Z", + "valid": false + }, + { + "description": "Valid - negative year", + "data": "-0001-12-31T23:59:59", + "valid": true + }, + { + "description": "Valid - February 29 in leap year 2020", + "data": "2020-02-29T12:00:00", + "valid": true + }, + { + "description": "Valid - February 29 (leap year validation is consumer responsibility)", + "data": "2023-02-29T12:00:00", + "valid": true + }, + { + "description": "Invalid - year 0000 (not allowed in XML Schema 1.0)", + "data": "0000-01-01T00:00:00", + "valid": false + }, + { + "description": "Invalid - year 0000 with timezone", + "data": "0000-06-15T12:00:00Z", + "valid": false + }, + { + "description": "Invalid - negative year 0000", + "data": "-0000-12-31T23:59:59", + "valid": false + }, + { + "description": "Invalid - day 31 in 30-day month", + "data": "2023-04-31T12:00:00", + "valid": false + }, + { + "description": "Invalid - February 30", + "data": "2023-02-30T12:00:00", + "valid": false + }, + { + "description": "Valid - hour 24 as midnight", + "data": "2023-05-15T24:00:00", + "valid": true + }, + { + "description": "Invalid - minute 60", + "data": "2023-05-15T14:60:00", + "valid": false + }, + { + "description": "Invalid - second 61", + "data": "2023-05-15T14:30:61", + "valid": false + }, + { + "description": "Invalid - missing time separator T", + "data": "2023-05-15 14:30:00", + "valid": false + }, + { + "description": "Invalid - date only", + "data": "2023-05-15", + "valid": false + }, + { + "description": "Invalid - time only", + "data": "T14:30:00", + "valid": false + }, + { + "description": "Invalid - number type", + "data": 1684162200, + "valid": false + }, + { + "description": "Valid - years may have more than four digits", + "valid": true, + "data": "12000-10-10T12:00:00Z" + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/date/v1.test.json b/test/schemas/w3c/xmlschema/2001/date/v1.test.json new file mode 100644 index 00000000..70158b13 --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/date/v1.test.json @@ -0,0 +1,125 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/date/v1.json", + "tests": [ + { + "description": "Valid - basic date", + "data": "2023-05-15", + "valid": true + }, + { + "description": "Valid - date with Z timezone", + "data": "2023-05-15Z", + "valid": true + }, + { + "description": "Valid - date with positive offset", + "data": "2023-05-15+05:30", + "valid": true + }, + { + "description": "Valid - date with negative offset", + "data": "2023-05-15-08:00", + "valid": true + }, + { + "description": "Valid - January 1", + "data": "2023-01-01", + "valid": true + }, + { + "description": "Valid - December 31", + "data": "2023-12-31", + "valid": true + }, + { + "description": "Valid - February 29 in leap year 2020", + "data": "2020-02-29", + "valid": true + }, + { + "description": "Valid - February 29 (leap year validation is consumer responsibility)", + "data": "2023-02-29", + "valid": true + }, + { + "description": "Valid - negative year", + "data": "-0001-12-31", + "valid": true + }, + { + "description": "Valid - negative year with timezone", + "data": "-2023-05-15Z", + "valid": true + }, + { + "description": "Invalid - year 0000 (not allowed in XML Schema 1.0)", + "data": "0000-01-01", + "valid": false + }, + { + "description": "Invalid - year 0000 with timezone", + "data": "0000-06-15Z", + "valid": false + }, + { + "description": "Invalid - negative year 0000", + "data": "-0000-12-31", + "valid": false + }, + { + "description": "Invalid - February 30", + "data": "2023-02-30", + "valid": false + }, + { + "description": "Invalid - day 31 in 30-day month", + "data": "2023-04-31", + "valid": false + }, + { + "description": "Invalid - day 32", + "data": "2023-05-32", + "valid": false + }, + { + "description": "Invalid - month 13", + "data": "2023-13-01", + "valid": false + }, + { + "description": "Invalid - month 00", + "data": "2023-00-01", + "valid": false + }, + { + "description": "Invalid - day 00", + "data": "2023-05-00", + "valid": false + }, + { + "description": "Invalid - three digit year", + "data": "999-05-15", + "valid": false + }, + { + "description": "Valid - years may have more than four digits", + "data": "10000-05-15", + "valid": true + }, + { + "description": "Invalid - with time component", + "data": "2023-05-15T14:30:00", + "valid": false + }, + { + "description": "Invalid - number type", + "data": 20230515, + "valid": false + }, + { + "description": "Invalid - timezone offset beyond the fourteen hour cap", + "valid": false, + "data": "2002-10-10+15:00" + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/decimal/v1.test.json b/test/schemas/w3c/xmlschema/2001/decimal/v1.test.json new file mode 100644 index 00000000..73665a11 --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/decimal/v1.test.json @@ -0,0 +1,162 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/decimal/v1.json", + "tests": [ + { + "description": "Valid - positive integer", + "data": 123, + "valid": true + }, + { + "description": "Valid - negative integer", + "data": -456, + "valid": true + }, + { + "description": "Valid - positive decimal", + "data": 123.45, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -123.45, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - zero with decimal", + "data": 0.0, + "valid": true + }, + { + "description": "Valid - many digits", + "data": 123456789012345, + "valid": true + }, + { + "description": "Valid - single digit", + "data": 5, + "valid": true + }, + { + "description": "Valid - trailing zeros after decimal", + "data": 123.0, + "valid": true + }, + { + "description": "Valid - many decimal places", + "data": 1.12346, + "valid": true + }, + { + "description": "Valid - negative zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - only zero before decimal", + "data": 0.1, + "valid": true + }, + { + "description": "Valid - single zero after decimal", + "data": 1.0, + "valid": true + }, + { + "description": "Valid - large decimal", + "data": 123457, + "valid": true + }, + { + "description": "Valid - small decimal", + "data": 1e-6, + "valid": true + }, + { + "description": "Valid - arbitrary precision 18 digits integer", + "data": 123456789012345678, + "valid": true + }, + { + "description": "Valid - arbitrary precision 19 digits integer", + "data": 1234567890123456789, + "valid": true + }, + { + "description": "Valid - arbitrary precision 20 digits integer", + "data": 1.2345678901234567890e+19, + "valid": true + }, + { + "description": "Valid - arbitrary precision large negative", + "data": -1.2345678901234567890e+19, + "valid": true + }, + { + "description": "Valid - arbitrary precision 25 digits", + "data": 1.234567890123456789012345e+24, + "valid": true + }, + { + "description": "Valid - arbitrary precision with decimals", + "data": 1.234567890123456800e+17, + "valid": true + }, + { + "description": "Valid - arbitrary precision negative with decimals", + "data": -1.234567890123456800e+17, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "123.45", + "valid": false + }, + { + "description": "Invalid - string with plus sign", + "data": "+123.45", + "valid": false + }, + { + "description": "Invalid - string integer", + "data": "123", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - text", + "data": "abc", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + }, + { + "description": "Invalid - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid - array", + "data": [ 123.45 ], + "valid": false + }, + { + "description": "Invalid - object", + "data": { + "value": 123.45 + }, + "valid": false + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/double/v1.test.json b/test/schemas/w3c/xmlschema/2001/double/v1.test.json new file mode 100644 index 00000000..d7535eed --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/double/v1.test.json @@ -0,0 +1,95 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/double/v1.json", + "tests": [ + { + "description": "Valid - positive double", + "data": 3.14159, + "valid": true + }, + { + "description": "Valid - negative double", + "data": -2.71828, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0.0, + "valid": true + }, + { + "description": "Valid - negative zero", + "data": 0.0, + "valid": true + }, + { + "description": "Valid - integer", + "data": 42, + "valid": true + }, + { + "description": "Valid - very large number", + "data": 1.797693134862315708145274237317043567980705675258449965989174768031572607800285387605895586327668781715404589535143824642343213268894641827684675467035375169860499105765512820762454900903893289440758685084551339423045832369032229481658085593321233482747978262041447231687381771809192998812504040261841248583680e+308, + "valid": true + }, + { + "description": "Valid - very small number", + "data": 2.23e-308, + "valid": true + }, + { + "description": "Valid - positive infinity", + "data": "INF", + "valid": true + }, + { + "description": "Valid - negative infinity", + "data": "-INF", + "valid": true + }, + { + "description": "Valid - not a number", + "data": "NaN", + "valid": true + }, + { + "description": "Invalid - IEEE 754-2019 positive infinity", + "data": "+Inf", + "valid": false + }, + { + "description": "Invalid - IEEE 754-2019 negative infinity", + "data": "-Inf", + "valid": false + }, + { + "description": "Invalid - C23 INFINITY", + "data": "INFINITY", + "valid": false + }, + { + "description": "Invalid - C23 -INFINITY", + "data": "-INFINITY", + "valid": false + }, + { + "description": "Invalid - C23 NAN", + "data": "NAN", + "valid": false + }, + { + "description": "Invalid - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + }, + { + "description": "Invalid - string number", + "data": "123.45", + "valid": false + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/duration/v1.test.json b/test/schemas/w3c/xmlschema/2001/duration/v1.test.json new file mode 100644 index 00000000..4e32914a --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/duration/v1.test.json @@ -0,0 +1,100 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/duration/v1.json", + "tests": [ + { + "description": "Valid - years only", + "data": "P1Y", + "valid": true + }, + { + "description": "Valid - months only", + "data": "P6M", + "valid": true + }, + { + "description": "Valid - days only", + "data": "P100D", + "valid": true + }, + { + "description": "Valid - hours only", + "data": "PT5H", + "valid": true + }, + { + "description": "Valid - minutes only", + "data": "PT30M", + "valid": true + }, + { + "description": "Valid - seconds only", + "data": "PT45S", + "valid": true + }, + { + "description": "Valid - full date and time", + "data": "P1Y2M3DT4H5M6S", + "valid": true + }, + { + "description": "Valid - decimal seconds", + "data": "PT1.5S", + "valid": true + }, + { + "description": "Valid - negative duration years", + "data": "-P1Y", + "valid": true + }, + { + "description": "Valid - negative duration full", + "data": "-P1Y2M3DT4H5M6S", + "valid": true + }, + { + "description": "Invalid - decimal fraction only allowed on seconds", + "data": "-PT30.5M", + "valid": false + }, + { + "description": "Invalid - empty P", + "data": "P", + "valid": false + }, + { + "description": "Invalid - empty PT", + "data": "PT", + "valid": false + }, + { + "description": "Invalid - empty -P", + "data": "-P", + "valid": false + }, + { + "description": "Invalid - empty -PT", + "data": "-PT", + "valid": false + }, + { + "description": "Invalid - missing P", + "data": "1Y2M3D", + "valid": false + }, + { + "description": "Invalid - missing T for time", + "data": "P1Y2M3D4H5M6S", + "valid": false + }, + { + "description": "Invalid - number type", + "data": 100, + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/entities/v1.test.json b/test/schemas/w3c/xmlschema/2001/entities/v1.test.json new file mode 100644 index 00000000..1b31359a --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/entities/v1.test.json @@ -0,0 +1,186 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/entities/v1.json", + "tests": [ + { + "description": "Valid - two entities", + "data": [ "entity1", "entity2" ], + "valid": true + }, + { + "description": "Valid - single entity", + "data": [ "singleEntity" ], + "valid": true + }, + { + "description": "Valid - multiple entities", + "data": [ "_img1", "_img2", "_img3" ], + "valid": true + }, + { + "description": "Valid - entities with special chars", + "data": [ "logo-main", "banner.v2", "icon_small" ], + "valid": true + }, + { + "description": "Valid - many entities", + "data": [ "e1", "e2", "e3", "e4", "e5" ], + "valid": true + }, + { + "description": "Valid - Unicode entities", + "data": [ "логотип", "изображение", "アイコン" ], + "valid": true + }, + { + "description": "Valid - mixed script entities", + "data": [ "image", "画像", "зображення" ], + "valid": true + }, + { + "description": "Valid - long list", + "data": [ + "entity0", + "entity1", + "entity2", + "entity3", + "entity4", + "entity5", + "entity6", + "entity7", + "entity8", + "entity9", + "entity10", + "entity11", + "entity12", + "entity13", + "entity14", + "entity15", + "entity16", + "entity17", + "entity18", + "entity19", + "entity20", + "entity21", + "entity22", + "entity23", + "entity24", + "entity25", + "entity26", + "entity27", + "entity28", + "entity29", + "entity30", + "entity31", + "entity32", + "entity33", + "entity34", + "entity35", + "entity36", + "entity37", + "entity38", + "entity39", + "entity40", + "entity41", + "entity42", + "entity43", + "entity44", + "entity45", + "entity46", + "entity47", + "entity48", + "entity49" + ], + "valid": true + }, + { + "description": "Invalid: empty array", + "data": [], + "valid": false + }, + { + "description": "Invalid: entity contains colon", + "data": [ "valid", "ns:entity" ], + "valid": false + }, + { + "description": "Invalid: entity starts with digit", + "data": [ "valid", "5entity" ], + "valid": false + }, + { + "description": "Invalid: entity contains space", + "data": [ "valid", "my entity" ], + "valid": false + }, + { + "description": "Invalid: entity is empty", + "data": [ "valid", "" ], + "valid": false + }, + { + "description": "Invalid: entity contains special char", + "data": [ "valid", "entity$ref" ], + "valid": false + }, + { + "description": "Invalid: not an array (string)", + "data": "entity1 entity2", + "valid": false + }, + { + "description": "Invalid: not an array (number)", + "data": 999, + "valid": false + }, + { + "description": "Invalid: not an array (boolean)", + "data": true, + "valid": false + }, + { + "description": "Invalid: not an array (null)", + "data": null, + "valid": false + }, + { + "description": "Invalid: not an array (object)", + "data": { + "entities": [ "a", "b" ] + }, + "valid": false + }, + { + "description": "Invalid: array contains number", + "data": [ "valid", 111 ], + "valid": false + }, + { + "description": "Invalid: array contains boolean", + "data": [ "valid", true ], + "valid": false + }, + { + "description": "Invalid: array contains null", + "data": [ "valid", null ], + "valid": false + }, + { + "description": "Invalid: array contains object", + "data": [ + "valid", + { + "entity": "x" + } + ], + "valid": false + }, + { + "description": "Invalid: array contains array", + "data": [ + "valid", + [ "nested" ] + ], + "valid": false + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/entity/v1.test.json b/test/schemas/w3c/xmlschema/2001/entity/v1.test.json new file mode 100644 index 00000000..edf2a44f --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/entity/v1.test.json @@ -0,0 +1,107 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/entity/v1.json", + "tests": [ + { + "description": "Valid - simple entity", + "data": "logo", + "valid": true + }, + { + "description": "Valid - with underscore", + "data": "_image1", + "valid": true + }, + { + "description": "Valid - CamelCase", + "data": "MyEntity", + "valid": true + }, + { + "description": "Valid - with hyphen", + "data": "banner-img", + "valid": true + }, + { + "description": "Valid - with period", + "data": "icon.v2", + "valid": true + }, + { + "description": "Valid - with digits", + "data": "entity99", + "valid": true + }, + { + "description": "Valid - single letter", + "data": "e", + "valid": true + }, + { + "description": "Valid - complex entity", + "data": "unparsed_entity-ref.1", + "valid": true + }, + { + "description": "Valid - Unicode", + "data": "сутність", + "valid": true + }, + { + "description": "Invalid: contains colon", + "data": "ns:entity", + "valid": false + }, + { + "description": "Invalid: starts with digit", + "data": "7entity", + "valid": false + }, + { + "description": "Invalid: starts with hyphen", + "data": "-entity", + "valid": false + }, + { + "description": "Invalid: empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid: contains space", + "data": "my entity", + "valid": false + }, + { + "description": "Invalid: contains special char $", + "data": "entity$ref", + "valid": false + }, + { + "description": "Invalid: number type", + "data": 789, + "valid": false + }, + { + "description": "Invalid: boolean type", + "data": true, + "valid": false + }, + { + "description": "Invalid: null type", + "data": null, + "valid": false + }, + { + "description": "Invalid: array type", + "data": [ "entity" ], + "valid": false + }, + { + "description": "Invalid: object type", + "data": { + "entity": "value" + }, + "valid": false + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/float/v1.test.json b/test/schemas/w3c/xmlschema/2001/float/v1.test.json new file mode 100644 index 00000000..a712afbf --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/float/v1.test.json @@ -0,0 +1,85 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/float/v1.json", + "tests": [ + { + "description": "Valid - positive float", + "data": 3.14, + "valid": true + }, + { + "description": "Valid - negative float", + "data": -2.718, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0.0, + "valid": true + }, + { + "description": "Valid - negative zero", + "data": 0.0, + "valid": true + }, + { + "description": "Valid - integer", + "data": 42, + "valid": true + }, + { + "description": "Valid - positive infinity", + "data": "INF", + "valid": true + }, + { + "description": "Valid - negative infinity", + "data": "-INF", + "valid": true + }, + { + "description": "Valid - not a number", + "data": "NaN", + "valid": true + }, + { + "description": "Invalid - IEEE 754-2019 positive infinity", + "data": "+Inf", + "valid": false + }, + { + "description": "Invalid - IEEE 754-2019 negative infinity", + "data": "-Inf", + "valid": false + }, + { + "description": "Invalid - C23 INFINITY", + "data": "INFINITY", + "valid": false + }, + { + "description": "Invalid - C23 -INFINITY", + "data": "-INFINITY", + "valid": false + }, + { + "description": "Invalid - C23 NAN", + "data": "NAN", + "valid": false + }, + { + "description": "Invalid - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + }, + { + "description": "Invalid - string number", + "data": "123.45", + "valid": false + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/g-day/v1.test.json b/test/schemas/w3c/xmlschema/2001/g-day/v1.test.json new file mode 100644 index 00000000..ab4c733a --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/g-day/v1.test.json @@ -0,0 +1,80 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/g-day/v1.json", + "tests": [ + { + "description": "Valid - basic day", + "data": "---15", + "valid": true + }, + { + "description": "Valid - day with Z timezone", + "data": "---15Z", + "valid": true + }, + { + "description": "Valid - day with positive offset", + "data": "---15+05:30", + "valid": true + }, + { + "description": "Valid - day with negative offset", + "data": "---15-08:00", + "valid": true + }, + { + "description": "Valid - day 01", + "data": "---01", + "valid": true + }, + { + "description": "Valid - day 31", + "data": "---31", + "valid": true + }, + { + "description": "Invalid - day 00", + "data": "---00", + "valid": false + }, + { + "description": "Invalid - day 32", + "data": "---32", + "valid": false + }, + { + "description": "Invalid - single digit day", + "data": "---5", + "valid": false + }, + { + "description": "Invalid - two dashes", + "data": "--15", + "valid": false + }, + { + "description": "Invalid - four dashes", + "data": "----15", + "valid": false + }, + { + "description": "Invalid - with month", + "data": "---05-15", + "valid": false + }, + { + "description": "Invalid - number type", + "data": 15, + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - timezone offset beyond the fourteen hour cap", + "valid": false, + "data": "---15+23:59" + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/g-month-day/v1.test.json b/test/schemas/w3c/xmlschema/2001/g-month-day/v1.test.json new file mode 100644 index 00000000..ce1df691 --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/g-month-day/v1.test.json @@ -0,0 +1,100 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/g-month-day/v1.json", + "tests": [ + { + "description": "Valid - basic month-day", + "data": "--05-15", + "valid": true + }, + { + "description": "Valid - month-day with Z timezone", + "data": "--05-15Z", + "valid": true + }, + { + "description": "Valid - month-day with positive offset", + "data": "--05-15+05:30", + "valid": true + }, + { + "description": "Valid - month-day with negative offset", + "data": "--05-15-08:00", + "valid": true + }, + { + "description": "Valid - January 1", + "data": "--01-01", + "valid": true + }, + { + "description": "Valid - December 31", + "data": "--12-31", + "valid": true + }, + { + "description": "Valid - February 29", + "data": "--02-29", + "valid": true + }, + { + "description": "Valid - April 30", + "data": "--04-30", + "valid": true + }, + { + "description": "Invalid - February 30", + "data": "--02-30", + "valid": false + }, + { + "description": "Invalid - April 31", + "data": "--04-31", + "valid": false + }, + { + "description": "Invalid - day 32", + "data": "--05-32", + "valid": false + }, + { + "description": "Invalid - month 13", + "data": "--13-01", + "valid": false + }, + { + "description": "Invalid - month 00", + "data": "--00-01", + "valid": false + }, + { + "description": "Invalid - day 00", + "data": "--05-00", + "valid": false + }, + { + "description": "Invalid - single dash prefix", + "data": "-05-15", + "valid": false + }, + { + "description": "Invalid - triple dash prefix", + "data": "---05-15", + "valid": false + }, + { + "description": "Invalid - with year", + "data": "--2023-05-15", + "valid": false + }, + { + "description": "Invalid - number type", + "data": 515, + "valid": false + }, + { + "description": "Invalid - timezone offset beyond the fourteen hour cap", + "valid": false, + "data": "--09-14+23:00" + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/g-month/v1.test.json b/test/schemas/w3c/xmlschema/2001/g-month/v1.test.json new file mode 100644 index 00000000..10468323 --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/g-month/v1.test.json @@ -0,0 +1,85 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/g-month/v1.json", + "tests": [ + { + "description": "Valid - basic month", + "data": "--05", + "valid": true + }, + { + "description": "Valid - month with Z timezone", + "data": "--05Z", + "valid": true + }, + { + "description": "Valid - month with positive offset", + "data": "--05+05:30", + "valid": true + }, + { + "description": "Valid - month with negative offset", + "data": "--05-08:00", + "valid": true + }, + { + "description": "Valid - January", + "data": "--01", + "valid": true + }, + { + "description": "Valid - December", + "data": "--12", + "valid": true + }, + { + "description": "Invalid - month 00", + "data": "--00", + "valid": false + }, + { + "description": "Invalid - month 13", + "data": "--13", + "valid": false + }, + { + "description": "Invalid - single digit month", + "data": "--5", + "valid": false + }, + { + "description": "Invalid - single dash", + "data": "-05", + "valid": false + }, + { + "description": "Invalid - triple dash", + "data": "---05", + "valid": false + }, + { + "description": "Invalid - with day", + "data": "--05-15", + "valid": false + }, + { + "description": "Invalid - with year", + "data": "2023--05", + "valid": false + }, + { + "description": "Invalid - number type", + "data": 5, + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - timezone offset beyond the fourteen hour cap", + "valid": false, + "data": "--11+15:00" + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/g-year-month/v1.test.json b/test/schemas/w3c/xmlschema/2001/g-year-month/v1.test.json new file mode 100644 index 00000000..77cfbd3c --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/g-year-month/v1.test.json @@ -0,0 +1,100 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/g-year-month/v1.json", + "tests": [ + { + "description": "Valid - basic year-month", + "data": "2023-05", + "valid": true + }, + { + "description": "Valid - year-month with Z timezone", + "data": "2023-05Z", + "valid": true + }, + { + "description": "Valid - year-month with positive offset", + "data": "2023-05+05:30", + "valid": true + }, + { + "description": "Valid - year-month with negative offset", + "data": "2023-05-08:00", + "valid": true + }, + { + "description": "Valid - January", + "data": "2023-01", + "valid": true + }, + { + "description": "Valid - December", + "data": "2023-12", + "valid": true + }, + { + "description": "Valid - negative year", + "data": "-0001-12", + "valid": true + }, + { + "description": "Valid - negative year with timezone", + "data": "-2023-05Z", + "valid": true + }, + { + "description": "Invalid - year 0000 (not allowed in XML Schema 1.0)", + "data": "0000-01", + "valid": false + }, + { + "description": "Invalid - year 0000 with timezone", + "data": "0000-05Z", + "valid": false + }, + { + "description": "Invalid - negative year 0000", + "data": "-0000-12", + "valid": false + }, + { + "description": "Invalid - month 13", + "data": "2023-13", + "valid": false + }, + { + "description": "Invalid - month 00", + "data": "2023-00", + "valid": false + }, + { + "description": "Invalid - three digit year", + "data": "999-05", + "valid": false + }, + { + "description": "Valid - years may have more than four digits", + "data": "10000-05", + "valid": true + }, + { + "description": "Invalid - with day component", + "data": "2023-05-15", + "valid": false + }, + { + "description": "Invalid - single digit month", + "data": "2023-5", + "valid": false + }, + { + "description": "Invalid - number type", + "data": 202305, + "valid": false + }, + { + "description": "Invalid - timezone offset beyond the fourteen hour cap", + "valid": false, + "data": "1999-05+22:00" + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/g-year/v1.test.json b/test/schemas/w3c/xmlschema/2001/g-year/v1.test.json new file mode 100644 index 00000000..ac462a0b --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/g-year/v1.test.json @@ -0,0 +1,90 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/g-year/v1.json", + "tests": [ + { + "description": "Valid - basic year", + "data": "2023", + "valid": true + }, + { + "description": "Valid - year with Z timezone", + "data": "2023Z", + "valid": true + }, + { + "description": "Valid - year with positive offset", + "data": "2023+05:30", + "valid": true + }, + { + "description": "Valid - year with negative offset", + "data": "2023-08:00", + "valid": true + }, + { + "description": "Valid - year 9999", + "data": "9999", + "valid": true + }, + { + "description": "Invalid - year 0000 (not allowed in XML Schema 1.0)", + "data": "0000", + "valid": false + }, + { + "description": "Invalid - year 0000 with timezone", + "data": "0000Z", + "valid": false + }, + { + "description": "Invalid - negative year 0000", + "data": "-0000", + "valid": false + }, + { + "description": "Valid - negative year", + "data": "-0001", + "valid": true + }, + { + "description": "Valid - negative year with timezone", + "data": "-2023Z", + "valid": true + }, + { + "description": "Invalid - three digit year", + "data": "999", + "valid": false + }, + { + "description": "Valid - years may have more than four digits", + "data": "10000", + "valid": true + }, + { + "description": "Invalid - with month component", + "data": "2023-05", + "valid": false + }, + { + "description": "Invalid - with full date", + "data": "2023-05-15", + "valid": false + }, + { + "description": "Invalid - number type", + "data": 2023, + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - timezone offset beyond the fourteen hour cap", + "valid": false, + "data": "1999+23:59" + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/hex-binary/v1.test.json b/test/schemas/w3c/xmlschema/2001/hex-binary/v1.test.json new file mode 100644 index 00000000..2fbb741b --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/hex-binary/v1.test.json @@ -0,0 +1,500 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/hex-binary/v1.json", + "tests": [ + { + "description": "Valid - empty string", + "data": "", + "valid": true + }, + { + "description": "Valid - single byte lowercase", + "data": "0f", + "valid": true + }, + { + "description": "Valid - single byte uppercase", + "data": "0F", + "valid": true + }, + { + "description": "Valid - single byte mixed case", + "data": "0F", + "valid": true + }, + { + "description": "Valid - two bytes", + "data": "0FB7", + "valid": true + }, + { + "description": "Valid - all lowercase", + "data": "deadbeef", + "valid": true + }, + { + "description": "Valid - all uppercase", + "data": "DEADBEEF", + "valid": true + }, + { + "description": "Valid - mixed case", + "data": "DeAdBeEf", + "valid": true + }, + { + "description": "Valid - all hex digits lowercase", + "data": "0123456789abcdef", + "valid": true + }, + { + "description": "Valid - all hex digits uppercase", + "data": "0123456789ABCDEF", + "valid": true + }, + { + "description": "Valid - many bytes", + "data": "0123456789ABCDEF0123456789ABCDEF", + "valid": true + }, + { + "description": "Valid - zeros", + "data": "0000", + "valid": true + }, + { + "description": "Valid - FFs", + "data": "FFFF", + "valid": true + }, + { + "description": "Invalid - odd number of digits", + "data": "0FB", + "valid": false + }, + { + "description": "Invalid - single digit", + "data": "F", + "valid": false + }, + { + "description": "Invalid - three digits", + "data": "ABC", + "valid": false + }, + { + "description": "Invalid - contains G", + "data": "0G", + "valid": false + }, + { + "description": "Invalid - contains Z", + "data": "0Z", + "valid": false + }, + { + "description": "Invalid - contains space", + "data": "0F B7", + "valid": false + }, + { + "description": "Invalid - contains dash", + "data": "0F-B7", + "valid": false + }, + { + "description": "Invalid - contains colon", + "data": "0F:B7", + "valid": false + }, + { + "description": "Invalid - leading space", + "data": " 0FB7", + "valid": false + }, + { + "description": "Invalid - trailing space", + "data": "0FB7 ", + "valid": false + }, + { + "description": "Invalid - contains lowercase g", + "data": "0g", + "valid": false + }, + { + "description": "Invalid - contains non-hex letter", + "data": "HELLO", + "valid": false + }, + { + "description": "Invalid - number type", + "data": 123, + "valid": false + }, + { + "description": "Invalid - boolean type", + "data": true, + "valid": false + }, + { + "description": "Invalid - null type", + "data": null, + "valid": false + }, + { + "description": "Invalid - contains special chars", + "data": "0F@B", + "valid": false + }, + { + "description": "Invalid - contains plus", + "data": "0F+B7", + "valid": false + }, + { + "description": "Invalid - contains slash", + "data": "0F/B7", + "valid": false + }, + { + "description": "Invalid - contains equals", + "data": "0F=B7", + "valid": false + }, + { + "description": "Valid - 4 bytes", + "data": "ABCD1234", + "valid": true + }, + { + "description": "Valid - 8 bytes", + "data": "0123456789ABCDEF", + "valid": true + }, + { + "description": "Valid - 16 bytes", + "data": "0123456789ABCDEF0123456789ABCDEF", + "valid": true + }, + { + "description": "Valid - 32 bytes", + "data": "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF", + "valid": true + }, + { + "description": "Valid - all F uppercase", + "data": "FFFFFFFF", + "valid": true + }, + { + "description": "Valid - all f lowercase", + "data": "ffffffff", + "valid": true + }, + { + "description": "Valid - all zeros", + "data": "00000000", + "valid": true + }, + { + "description": "Valid - alternating hex digits", + "data": "0A0B0C0D", + "valid": true + }, + { + "description": "Valid - sequential hex", + "data": "0123456789ABCDEF", + "valid": true + }, + { + "description": "Valid - mixed case sequential", + "data": "0123456789AbCdEf", + "valid": true + }, + { + "description": "Valid - lowercase sequential", + "data": "0123456789abcdef", + "valid": true + }, + { + "description": "Valid - only digits", + "data": "01234567", + "valid": true + }, + { + "description": "Valid - only uppercase letters", + "data": "ABCDEF", + "valid": true + }, + { + "description": "Valid - only lowercase letters", + "data": "abcdef", + "valid": true + }, + { + "description": "Valid - start with 0", + "data": "00AB", + "valid": true + }, + { + "description": "Valid - start with F", + "data": "FFAB", + "valid": true + }, + { + "description": "Valid - end with 0", + "data": "AB00", + "valid": true + }, + { + "description": "Valid - end with F", + "data": "ABFF", + "valid": true + }, + { + "description": "Valid - repeated pattern", + "data": "ABABABAB", + "valid": true + }, + { + "description": "Valid - all same byte", + "data": "AAAAAAAA", + "valid": true + }, + { + "description": "Invalid - single 0", + "data": "0", + "valid": false + }, + { + "description": "Invalid - single A", + "data": "A", + "valid": false + }, + { + "description": "Invalid - three chars", + "data": "0AB", + "valid": false + }, + { + "description": "Invalid - five chars", + "data": "0ABCD", + "valid": false + }, + { + "description": "Invalid - seven chars", + "data": "0ABCDEF", + "valid": false + }, + { + "description": "Invalid - nine chars", + "data": "0ABCDEF12", + "valid": false + }, + { + "description": "Invalid - eleven chars", + "data": "0ABCDEF1234", + "valid": false + }, + { + "description": "Invalid - G at start", + "data": "G0AB", + "valid": false + }, + { + "description": "Invalid - G at end", + "data": "AB0G", + "valid": false + }, + { + "description": "Invalid - G in middle", + "data": "0GBC", + "valid": false + }, + { + "description": "Invalid - lowercase g at start", + "data": "g0ab", + "valid": false + }, + { + "description": "Invalid - H", + "data": "0HAB", + "valid": false + }, + { + "description": "Invalid - I", + "data": "0IAB", + "valid": false + }, + { + "description": "Invalid - J", + "data": "0JAB", + "valid": false + }, + { + "description": "Invalid - Z", + "data": "0ZAB", + "valid": false + }, + { + "description": "Invalid - lowercase h", + "data": "0hab", + "valid": false + }, + { + "description": "Invalid - lowercase z", + "data": "0zab", + "valid": false + }, + { + "description": "Invalid - contains .", + "data": "0A.B", + "valid": false + }, + { + "description": "Invalid - contains ,", + "data": "0A,BC", + "valid": false + }, + { + "description": "Invalid - contains ;", + "data": "0A;B", + "valid": false + }, + { + "description": "Invalid - contains !", + "data": "0A!B", + "valid": false + }, + { + "description": "Invalid - contains ?", + "data": "0A?B", + "valid": false + }, + { + "description": "Invalid - contains @", + "data": "0A@B", + "valid": false + }, + { + "description": "Invalid - contains #", + "data": "0A#B", + "valid": false + }, + { + "description": "Invalid - contains $", + "data": "0A$B", + "valid": false + }, + { + "description": "Invalid - contains %", + "data": "0A%B", + "valid": false + }, + { + "description": "Invalid - contains &", + "data": "0A&B", + "valid": false + }, + { + "description": "Invalid - contains *", + "data": "0A*B", + "valid": false + }, + { + "description": "Invalid - contains (", + "data": "0A(B", + "valid": false + }, + { + "description": "Invalid - contains )", + "data": "0A)B", + "valid": false + }, + { + "description": "Invalid - contains [", + "data": "0A[B", + "valid": false + }, + { + "description": "Invalid - contains ]", + "data": "0A]B", + "valid": false + }, + { + "description": "Invalid - contains {", + "data": "0A{B", + "valid": false + }, + { + "description": "Invalid - contains }", + "data": "0A}B", + "valid": false + }, + { + "description": "Invalid - contains |", + "data": "0A|B", + "valid": false + }, + { + "description": "Invalid - contains \\", + "data": "0A\\B", + "valid": false + }, + { + "description": "Invalid - contains ~", + "data": "0A~B", + "valid": false + }, + { + "description": "Invalid - contains `", + "data": "0A`B", + "valid": false + }, + { + "description": "Invalid - contains ^", + "data": "0A^B", + "valid": false + }, + { + "description": "Invalid - contains <", + "data": "0A", + "data": "0A>B", + "valid": false + }, + { + "description": "Invalid - contains tab", + "data": "0A\tBC", + "valid": false + }, + { + "description": "Invalid - contains carriage return", + "data": "0A\rBC", + "valid": false + }, + { + "description": "Invalid - non-ASCII", + "data": "0Aé", + "valid": false + }, + { + "description": "Invalid - emoji", + "data": "0A😀", + "valid": false + }, + { + "description": "Invalid - underscore", + "data": "0A_B", + "valid": false + }, + { + "description": "Invalid - equals mixed in", + "data": "0A=B", + "valid": false + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/id/v1.test.json b/test/schemas/w3c/xmlschema/2001/id/v1.test.json new file mode 100644 index 00000000..5285073d --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/id/v1.test.json @@ -0,0 +1,112 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/id/v1.json", + "tests": [ + { + "description": "Valid - simple identifier", + "data": "id123", + "valid": true + }, + { + "description": "Valid - with underscore", + "data": "_privateId", + "valid": true + }, + { + "description": "Valid - CamelCase", + "data": "MyUniqueId", + "valid": true + }, + { + "description": "Valid - with hyphen", + "data": "user-id", + "valid": true + }, + { + "description": "Valid - with period", + "data": "id.v2", + "valid": true + }, + { + "description": "Valid - with digits", + "data": "element123", + "valid": true + }, + { + "description": "Valid - single letter", + "data": "x", + "valid": true + }, + { + "description": "Valid - complex id", + "data": "user_profile-v2.1", + "valid": true + }, + { + "description": "Valid - Unicode", + "data": "ідентифікатор", + "valid": true + }, + { + "description": "Invalid: contains colon", + "data": "ns:id", + "valid": false + }, + { + "description": "Invalid: starts with digit", + "data": "9id", + "valid": false + }, + { + "description": "Invalid: starts with hyphen", + "data": "-id", + "valid": false + }, + { + "description": "Invalid: starts with period", + "data": ".id", + "valid": false + }, + { + "description": "Invalid: empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid: contains space", + "data": "my id", + "valid": false + }, + { + "description": "Invalid: contains special char @", + "data": "id@123", + "valid": false + }, + { + "description": "Invalid: number type", + "data": 123, + "valid": false + }, + { + "description": "Invalid: boolean type", + "data": true, + "valid": false + }, + { + "description": "Invalid: null type", + "data": null, + "valid": false + }, + { + "description": "Invalid: array type", + "data": [ "id" ], + "valid": false + }, + { + "description": "Invalid: object type", + "data": { + "id": "value" + }, + "valid": false + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/idref/v1.test.json b/test/schemas/w3c/xmlschema/2001/idref/v1.test.json new file mode 100644 index 00000000..7e30c739 --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/idref/v1.test.json @@ -0,0 +1,107 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/idref/v1.json", + "tests": [ + { + "description": "Valid - simple reference", + "data": "ref123", + "valid": true + }, + { + "description": "Valid - with underscore", + "data": "_refToId", + "valid": true + }, + { + "description": "Valid - CamelCase", + "data": "MyReference", + "valid": true + }, + { + "description": "Valid - with hyphen", + "data": "user-ref", + "valid": true + }, + { + "description": "Valid - with period", + "data": "ref.v1", + "valid": true + }, + { + "description": "Valid - with digits", + "data": "target42", + "valid": true + }, + { + "description": "Valid - single letter", + "data": "a", + "valid": true + }, + { + "description": "Valid - complex ref", + "data": "link_to-item.1", + "valid": true + }, + { + "description": "Valid - Unicode", + "data": "посилання", + "valid": true + }, + { + "description": "Invalid: contains colon", + "data": "ns:ref", + "valid": false + }, + { + "description": "Invalid: starts with digit", + "data": "1ref", + "valid": false + }, + { + "description": "Invalid: starts with hyphen", + "data": "-ref", + "valid": false + }, + { + "description": "Invalid: empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid: contains space", + "data": "my ref", + "valid": false + }, + { + "description": "Invalid: contains special char #", + "data": "ref#123", + "valid": false + }, + { + "description": "Invalid: number type", + "data": 456, + "valid": false + }, + { + "description": "Invalid: boolean type", + "data": false, + "valid": false + }, + { + "description": "Invalid: null type", + "data": null, + "valid": false + }, + { + "description": "Invalid: array type", + "data": [ "ref" ], + "valid": false + }, + { + "description": "Invalid: object type", + "data": { + "ref": "value" + }, + "valid": false + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/idrefs/v1.test.json b/test/schemas/w3c/xmlschema/2001/idrefs/v1.test.json new file mode 100644 index 00000000..85280cc0 --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/idrefs/v1.test.json @@ -0,0 +1,186 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/idrefs/v1.json", + "tests": [ + { + "description": "Valid - two references", + "data": [ "ref1", "ref2" ], + "valid": true + }, + { + "description": "Valid - single reference", + "data": [ "singleRef" ], + "valid": true + }, + { + "description": "Valid - multiple references", + "data": [ "_id1", "_id2", "_id3" ], + "valid": true + }, + { + "description": "Valid - references with special chars", + "data": [ "link-a", "link.b", "link_c" ], + "valid": true + }, + { + "description": "Valid - many references", + "data": [ "r1", "r2", "r3", "r4", "r5" ], + "valid": true + }, + { + "description": "Valid - Unicode references", + "data": [ "реф1", "réf2", "参照3" ], + "valid": true + }, + { + "description": "Valid - mixed script references", + "data": [ "ref", "参照", "リンク" ], + "valid": true + }, + { + "description": "Valid - long list", + "data": [ + "ref0", + "ref1", + "ref2", + "ref3", + "ref4", + "ref5", + "ref6", + "ref7", + "ref8", + "ref9", + "ref10", + "ref11", + "ref12", + "ref13", + "ref14", + "ref15", + "ref16", + "ref17", + "ref18", + "ref19", + "ref20", + "ref21", + "ref22", + "ref23", + "ref24", + "ref25", + "ref26", + "ref27", + "ref28", + "ref29", + "ref30", + "ref31", + "ref32", + "ref33", + "ref34", + "ref35", + "ref36", + "ref37", + "ref38", + "ref39", + "ref40", + "ref41", + "ref42", + "ref43", + "ref44", + "ref45", + "ref46", + "ref47", + "ref48", + "ref49" + ], + "valid": true + }, + { + "description": "Invalid: empty array", + "data": [], + "valid": false + }, + { + "description": "Invalid: reference contains colon", + "data": [ "valid", "ns:ref" ], + "valid": false + }, + { + "description": "Invalid: reference starts with digit", + "data": [ "valid", "9ref" ], + "valid": false + }, + { + "description": "Invalid: reference contains space", + "data": [ "valid", "has space" ], + "valid": false + }, + { + "description": "Invalid: reference is empty", + "data": [ "valid", "" ], + "valid": false + }, + { + "description": "Invalid: reference contains special char", + "data": [ "valid", "ref@123" ], + "valid": false + }, + { + "description": "Invalid: not an array (string)", + "data": "ref1 ref2", + "valid": false + }, + { + "description": "Invalid: not an array (number)", + "data": 456, + "valid": false + }, + { + "description": "Invalid: not an array (boolean)", + "data": false, + "valid": false + }, + { + "description": "Invalid: not an array (null)", + "data": null, + "valid": false + }, + { + "description": "Invalid: not an array (object)", + "data": { + "refs": [ "a", "b" ] + }, + "valid": false + }, + { + "description": "Invalid: array contains number", + "data": [ "valid", 789 ], + "valid": false + }, + { + "description": "Invalid: array contains boolean", + "data": [ "valid", false ], + "valid": false + }, + { + "description": "Invalid: array contains null", + "data": [ "valid", null ], + "valid": false + }, + { + "description": "Invalid: array contains object", + "data": [ + "valid", + { + "ref": "x" + } + ], + "valid": false + }, + { + "description": "Invalid: array contains array", + "data": [ + "valid", + [ "nested" ] + ], + "valid": false + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/int/v1.test.json b/test/schemas/w3c/xmlschema/2001/int/v1.test.json new file mode 100644 index 00000000..1494d26d --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/int/v1.test.json @@ -0,0 +1,75 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/int/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive one", + "data": 1, + "valid": true + }, + { + "description": "Valid - negative one", + "data": -1, + "valid": true + }, + { + "description": "Valid - maximum (2147483647)", + "data": 2147483647, + "valid": true + }, + { + "description": "Valid - minimum (-2147483648)", + "data": -2147483648, + "valid": true + }, + { + "description": "Valid - arbitrary positive", + "data": 42, + "valid": true + }, + { + "description": "Valid - arbitrary negative", + "data": -999, + "valid": true + }, + { + "description": "Invalid: too large (2147483648)", + "data": 2147483648, + "valid": false + }, + { + "description": "Invalid: too small (-2147483649)", + "data": -2147483649, + "valid": false + }, + { + "description": "Invalid: much too large", + "data": 10000000000, + "valid": false + }, + { + "description": "Invalid: decimal number", + "data": 1.5, + "valid": false + }, + { + "description": "Invalid: string", + "data": "42", + "valid": false + }, + { + "description": "Invalid: boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid: null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/integer/v1.test.json b/test/schemas/w3c/xmlschema/2001/integer/v1.test.json new file mode 100644 index 00000000..de517c5f --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/integer/v1.test.json @@ -0,0 +1,127 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/integer/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive small", + "data": 1, + "valid": true + }, + { + "description": "Valid - negative small", + "data": -1, + "valid": true + }, + { + "description": "Valid - positive large", + "data": 9223372036854775807, + "valid": true + }, + { + "description": "Valid - negative large", + "data": -9223372036854775808, + "valid": true + }, + { + "description": "Valid - arbitrary positive", + "data": 42, + "valid": true + }, + { + "description": "Valid - arbitrary negative", + "data": -273, + "valid": true + }, + { + "description": "Valid - medium positive", + "data": 1000000, + "valid": true + }, + { + "description": "Valid - medium negative", + "data": -1000000, + "valid": true + }, + { + "description": "Valid - arbitrary precision beyond int64", + "data": 1.2345678901234567890e+19, + "valid": true + }, + { + "description": "Valid - arbitrary precision large positive", + "data": 9.9999999999999999999e+19, + "valid": true + }, + { + "description": "Valid - arbitrary precision large negative", + "data": -9.9999999999999999999e+19, + "valid": true + }, + { + "description": "Valid - arbitrary precision 25 digits positive", + "data": 1.234567890123456789012345e+24, + "valid": true + }, + { + "description": "Valid - arbitrary precision 25 digits negative", + "data": -1.234567890123456789012345e+24, + "valid": true + }, + { + "description": "Valid - arbitrary precision 30 digits", + "data": 1.23456789012345678901234567890e+29, + "valid": true + }, + { + "description": "Invalid - decimal number", + "data": 123.45, + "valid": false + }, + { + "description": "Invalid - string type", + "data": "123", + "valid": false + }, + { + "description": "Invalid - string with plus sign", + "data": "+123", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - text", + "data": "abc", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + }, + { + "description": "Invalid - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid - array", + "data": [ 123 ], + "valid": false + }, + { + "description": "Invalid - object", + "data": { + "value": 123 + }, + "valid": false + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/language/v1.test.json b/test/schemas/w3c/xmlschema/2001/language/v1.test.json new file mode 100644 index 00000000..83dcced1 --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/language/v1.test.json @@ -0,0 +1,70 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/language/v1.json", + "tests": [ + { + "description": "Valid - English", + "data": "en", + "valid": true + }, + { + "description": "Valid - English US", + "data": "en-US", + "valid": true + }, + { + "description": "Valid - French", + "data": "fr", + "valid": true + }, + { + "description": "Valid - German Germany", + "data": "de-DE", + "valid": true + }, + { + "description": "Valid - Chinese", + "data": "zh-CN", + "valid": true + }, + { + "description": "Valid - Japanese", + "data": "ja", + "valid": true + }, + { + "description": "Valid - private use", + "data": "x-private", + "valid": true + }, + { + "description": "Valid - multiple subtags", + "data": "en-US-x-twain", + "valid": true + }, + { + "description": "Invalid: empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid: too long primary", + "data": "abcdefghi", + "valid": false + }, + { + "description": "Invalid: contains space", + "data": "en US", + "valid": false + }, + { + "description": "Invalid: contains underscore", + "data": "en_US", + "valid": false + }, + { + "description": "Type validation: not a string", + "data": 123, + "valid": false + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/long/v1.test.json b/test/schemas/w3c/xmlschema/2001/long/v1.test.json new file mode 100644 index 00000000..26390397 --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/long/v1.test.json @@ -0,0 +1,70 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/long/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive one", + "data": 1, + "valid": true + }, + { + "description": "Valid - negative one", + "data": -1, + "valid": true + }, + { + "description": "Valid - maximum (9223372036854775807)", + "data": 9223372036854775807, + "valid": true + }, + { + "description": "Valid - minimum (-9223372036854775808)", + "data": -9223372036854775808, + "valid": true + }, + { + "description": "Valid - arbitrary positive", + "data": 1000000000, + "valid": true + }, + { + "description": "Valid - arbitrary negative", + "data": -1000000000, + "valid": true + }, + { + "description": "Valid - within int32 range", + "data": 2147483647, + "valid": true + }, + { + "description": "Valid - beyond int32 range", + "data": 2147483648, + "valid": true + }, + { + "description": "Invalid: decimal number", + "data": 1.5, + "valid": false + }, + { + "description": "Invalid: string", + "data": "1000000000", + "valid": false + }, + { + "description": "Invalid: boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid: null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/name/v1.test.json b/test/schemas/w3c/xmlschema/2001/name/v1.test.json new file mode 100644 index 00000000..0a4daea8 --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/name/v1.test.json @@ -0,0 +1,647 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/name/v1.json", + "tests": [ + { + "description": "Valid - simple ASCII letters", + "data": "element", + "valid": true + }, + { + "description": "Valid - with underscore prefix", + "data": "_private", + "valid": true + }, + { + "description": "Valid - with colon (namespace)", + "data": "my:name", + "valid": true + }, + { + "description": "Valid - CamelCase", + "data": "CamelCase", + "valid": true + }, + { + "description": "Valid - with hyphen", + "data": "element-name", + "valid": true + }, + { + "description": "Valid - with period", + "data": "element.name", + "valid": true + }, + { + "description": "Valid - with digits", + "data": "element123", + "valid": true + }, + { + "description": "Valid - single letter", + "data": "a", + "valid": true + }, + { + "description": "Valid - single underscore", + "data": "_", + "valid": true + }, + { + "description": "Valid - single colon", + "data": ":", + "valid": true + }, + { + "description": "Valid - uppercase letters", + "data": "ELEMENT", + "valid": true + }, + { + "description": "Valid - lowercase letters", + "data": "element", + "valid": true + }, + { + "description": "Valid - Greek letters", + "data": "στοιχείο", + "valid": true + }, + { + "description": "Valid - Cyrillic letters", + "data": "элемент", + "valid": true + }, + { + "description": "Valid - Chinese characters", + "data": "数据", + "valid": true + }, + { + "description": "Valid - Japanese katakana", + "data": "データ", + "valid": true + }, + { + "description": "Valid - Arabic characters", + "data": "عنصر", + "valid": true + }, + { + "description": "Valid - Hebrew characters", + "data": "רכיב", + "valid": true + }, + { + "description": "Valid - French with accents", + "data": "données", + "valid": true + }, + { + "description": "Valid - German with umlauts", + "data": "Größe", + "valid": true + }, + { + "description": "Valid - complex name", + "data": "my:element-name_v2.0", + "valid": true + }, + { + "description": "Invalid: starts with digit", + "data": "9element", + "valid": false + }, + { + "description": "Invalid: starts with hyphen", + "data": "-element", + "valid": false + }, + { + "description": "Invalid: starts with period", + "data": ".element", + "valid": false + }, + { + "description": "Invalid: empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid: whitespace only", + "data": " ", + "valid": false + }, + { + "description": "Invalid: contains space", + "data": "my element", + "valid": false + }, + { + "description": "Invalid: contains tab", + "data": "my\telement", + "valid": false + }, + { + "description": "Invalid: contains newline", + "data": "my\nelement", + "valid": false + }, + { + "description": "Invalid: leading space", + "data": " element", + "valid": false + }, + { + "description": "Invalid: trailing space", + "data": "element ", + "valid": false + }, + { + "description": "Invalid: contains @", + "data": "my@element", + "valid": false + }, + { + "description": "Invalid: contains #", + "data": "my#element", + "valid": false + }, + { + "description": "Invalid: contains $", + "data": "my$element", + "valid": false + }, + { + "description": "Invalid: contains %", + "data": "my%element", + "valid": false + }, + { + "description": "Invalid: contains &", + "data": "my&element", + "valid": false + }, + { + "description": "Invalid: contains *", + "data": "my*element", + "valid": false + }, + { + "description": "Invalid: contains +", + "data": "my+element", + "valid": false + }, + { + "description": "Invalid: contains =", + "data": "my=element", + "valid": false + }, + { + "description": "Invalid: contains !", + "data": "my!element", + "valid": false + }, + { + "description": "Invalid: contains ?", + "data": "my?element", + "valid": false + }, + { + "description": "Invalid: contains brackets", + "data": "my[element]", + "valid": false + }, + { + "description": "Invalid: contains parentheses", + "data": "my(element)", + "valid": false + }, + { + "description": "Invalid: contains braces", + "data": "my{element}", + "valid": false + }, + { + "description": "Invalid: contains angle brackets", + "data": "", + "valid": false + }, + { + "description": "Invalid: contains slash", + "data": "my/element", + "valid": false + }, + { + "description": "Invalid: contains backslash", + "data": "my\\element", + "valid": false + }, + { + "description": "Invalid: contains pipe", + "data": "my|element", + "valid": false + }, + { + "description": "Invalid: contains semicolon", + "data": "my;element", + "valid": false + }, + { + "description": "Invalid: contains comma", + "data": "my,element", + "valid": false + }, + { + "description": "Invalid: contains quote", + "data": "my\"element", + "valid": false + }, + { + "description": "Invalid: contains apostrophe", + "data": "my'element", + "valid": false + }, + { + "description": "Invalid: number type", + "data": 123, + "valid": false + }, + { + "description": "Invalid: boolean type", + "data": true, + "valid": false + }, + { + "description": "Invalid: null type", + "data": null, + "valid": false + }, + { + "description": "Invalid: array type", + "data": [ "element" ], + "valid": false + }, + { + "description": "Invalid: object type", + "data": { + "name": "element" + }, + "valid": false + }, + { + "description": "Valid - with combining grave accent", + "data": "àb", + "valid": true + }, + { + "description": "Valid - with combining acute accent", + "data": "élement", + "valid": true + }, + { + "description": "Valid - with combining diacritical mark", + "data": "tesẗing", + "valid": true + }, + { + "description": "Valid - letter with combining at end", + "data": "dataͯ", + "valid": true + }, + { + "description": "Invalid: starts with combining character", + "data": "̀element", + "valid": false + }, + { + "description": "Invalid: starts with combining acute", + "data": "́test", + "valid": false + }, + { + "description": "Valid - with undertie ‿", + "data": "a‿b", + "valid": true + }, + { + "description": "Valid - with character tie ⁀", + "data": "x⁀y", + "valid": true + }, + { + "description": "Invalid: starts with undertie", + "data": "‿element", + "valid": false + }, + { + "description": "Invalid: starts with character tie", + "data": "⁀element", + "valid": false + }, + { + "description": "Valid - with ZWNJ", + "data": "ele‌ment", + "valid": true + }, + { + "description": "Valid - with ZWJ", + "data": "ele‍ment", + "valid": true + }, + { + "description": "Valid - starting with ZWNJ", + "data": "‌start", + "valid": true + }, + { + "description": "Valid - starting with ZWJ", + "data": "‍start", + "valid": true + }, + { + "description": "Invalid: contains carriage return", + "data": "data\rvalue", + "valid": false + }, + { + "description": "Invalid: contains null character", + "data": "data\u0000value", + "valid": false + }, + { + "description": "Invalid: contains vertical tab", + "data": "data\u000Bvalue", + "valid": false + }, + { + "description": "Invalid: contains form feed", + "data": "data\fvalue", + "valid": false + }, + { + "description": "Invalid: contains bell character", + "data": "data\u0007value", + "valid": false + }, + { + "description": "Invalid: contains escape character", + "data": "data\u001Bvalue", + "valid": false + }, + { + "description": "Invalid: starts with null", + "data": "\u0000data", + "valid": false + }, + { + "description": "Valid - U+00C0 (À) start of Latin-1 Supplement", + "data": "À", + "valid": true + }, + { + "description": "Valid - U+D7FF last before surrogate block", + "data": "퟿", + "valid": true + }, + { + "description": "Valid - U+F900 start of CJK Compatibility", + "data": "豈", + "valid": true + }, + { + "description": "Valid - U+FDCF end of Arabic Presentation", + "data": "﷏", + "valid": true + }, + { + "description": "Valid - U+FDF0 start of Arabic Presentation-B", + "data": "ﷰ", + "valid": true + }, + { + "description": "Valid - U+FFFD replacement character", + "data": "�", + "valid": true + }, + { + "description": "Valid - multiple colons", + "data": "a:b:c:d", + "valid": true + }, + { + "description": "Valid - consecutive colons", + "data": "a::b", + "valid": true + }, + { + "description": "Valid - alternating special chars", + "data": "a-b.c_d:e", + "valid": true + }, + { + "description": "Valid - middle dot in middle", + "data": "a·b", + "valid": true + }, + { + "description": "Valid - middle dot at end", + "data": "test·", + "valid": true + }, + { + "description": "Invalid: starts with middle dot", + "data": "·test", + "valid": false + }, + { + "description": "Valid - very long ASCII", + "data": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "valid": true + }, + { + "description": "Valid - very long Unicode", + "data": "中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中", + "valid": true + }, + { + "description": "Valid - very long with allowed chars", + "data": "aZ09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·", + "valid": true + }, + { + "description": "Valid - mixed Latin and Greek", + "data": "testδοκιμή123", + "valid": true + }, + { + "description": "Valid - mixed Arabic and digits", + "data": "test123بيانات456", + "valid": true + }, + { + "description": "Valid - mixed scripts with special chars", + "data": "test_中文_データ_тест", + "valid": true + }, + { + "description": "Valid - colon at start", + "data": ":name", + "valid": true + }, + { + "description": "Valid - colon at end", + "data": "name:", + "valid": true + }, + { + "description": "Valid - multiple colons at start", + "data": "::name", + "valid": true + }, + { + "description": "Valid - multiple underscores", + "data": "___test___", + "valid": true + }, + { + "description": "Valid - underscore at end", + "data": "test_", + "valid": true + }, + { + "description": "Invalid: contains DEL character", + "data": "datavalue", + "valid": false + }, + { + "description": "Invalid: starts with 0", + "data": "0element", + "valid": false + }, + { + "description": "Invalid: starts with multiple digits", + "data": "123element", + "valid": false + }, + { + "description": "Valid - only underscores", + "data": "___", + "valid": true + }, + { + "description": "Valid - only colons", + "data": ":::", + "valid": true + }, + { + "description": "Valid - digit after first char", + "data": "a0", + "valid": true + }, + { + "description": "Valid - hyphen after first char", + "data": "a-", + "valid": true + }, + { + "description": "Valid - period after first char", + "data": "a.", + "valid": true + }, + { + "description": "Valid - Deseret Capital Letter Long I (U+10400)", + "data": "𐐀test", + "valid": true + }, + { + "description": "Valid - Linear B Syllable (U+10000)", + "data": "𐀀element", + "valid": true + }, + { + "description": "Valid - Gothic Letter (U+10330)", + "data": "𐌰name", + "valid": true + }, + { + "description": "Valid - Old Italic Letter (U+10300)", + "data": "𐌀id", + "valid": true + }, + { + "description": "Valid - CJK Unified Ideographs Extension B (U+20000)", + "data": "𠀀字", + "valid": true + }, + { + "description": "Valid - CJK Extension B character (U+20BB7)", + "data": "𠮷野", + "valid": true + }, + { + "description": "Valid - CJK Extension C (U+2A700)", + "data": "𪜀文", + "valid": true + }, + { + "description": "Valid - Mathematical Bold Capital A (U+1D400)", + "data": "𝐀var", + "valid": true + }, + { + "description": "Valid - Mathematical Italic Small X (U+1D465)", + "data": "𝑥coord", + "valid": true + }, + { + "description": "Valid - Phoenician Letter (U+10900)", + "data": "𐤀text", + "valid": true + }, + { + "description": "Valid - Lydian Letter (U+10920)", + "data": "𐤠name", + "valid": true + }, + { + "description": "Valid - 4-byte character in middle", + "data": "test𐐀middle", + "valid": true + }, + { + "description": "Valid - 4-byte character at end", + "data": "end𐐀", + "valid": true + }, + { + "description": "Valid - multiple 4-byte characters", + "data": "𐐀test𠀀name𐌰", + "valid": true + }, + { + "description": "Valid - 4-byte with hyphen", + "data": "𐐀-test", + "valid": true + }, + { + "description": "Valid - 4-byte with period", + "data": "𐐀.name", + "valid": true + }, + { + "description": "Valid - 4-byte with digits", + "data": "𐐀123", + "valid": true + }, + { + "description": "Valid - 4-byte with underscore", + "data": "𐐀_id", + "valid": true + }, + { + "description": "Invalid - extender character cannot start a name", + "valid": false, + "data": "ːname" + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/ncname/v1.test.json b/test/schemas/w3c/xmlschema/2001/ncname/v1.test.json new file mode 100644 index 00000000..e322b845 --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/ncname/v1.test.json @@ -0,0 +1,875 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/ncname/v1.json", + "tests": [ + { + "description": "Valid - simple ASCII element name", + "data": "myElement", + "valid": true + }, + { + "description": "Valid - starts with underscore", + "data": "_myElement", + "valid": true + }, + { + "description": "Valid - with period", + "data": "my.Element", + "valid": true + }, + { + "description": "Valid - with hyphen", + "data": "my-element", + "valid": true + }, + { + "description": "Valid - with underscore in middle", + "data": "my_element", + "valid": true + }, + { + "description": "Valid - with ASCII digits", + "data": "element123", + "valid": true + }, + { + "description": "Valid - ASCII complex mix", + "data": "my.complex-name_45", + "valid": true + }, + { + "description": "Valid - single ASCII letter", + "data": "a", + "valid": true + }, + { + "description": "Valid - single underscore", + "data": "_", + "valid": true + }, + { + "description": "Valid - Extended Latin - À (U+00C0)", + "data": "Àlement", + "valid": true + }, + { + "description": "Valid - Extended Latin - Ö (U+00D6)", + "data": "Ölement", + "valid": true + }, + { + "description": "Valid - Extended Latin - Ø (U+00D8)", + "data": "Ølement", + "valid": true + }, + { + "description": "Valid - Extended Latin - ö (U+00F6)", + "data": "ölement", + "valid": true + }, + { + "description": "Valid - Extended Latin - ÿ (U+00FF)", + "data": "ÿlement", + "valid": true + }, + { + "description": "Valid - Extended Latin - Ā (U+0100)", + "data": "Ālement", + "valid": true + }, + { + "description": "Valid - Extended Latin - ı (U+0131 dotless i)", + "data": "ılement", + "valid": true + }, + { + "description": "Valid - Greek - Α (U+0391 Alpha)", + "data": "Αlement", + "valid": true + }, + { + "description": "Valid - Greek - Ω (U+03A9 Omega)", + "data": "Ωlement", + "valid": true + }, + { + "description": "Valid - Greek - α (U+03B1 alpha)", + "data": "αlement", + "valid": true + }, + { + "description": "Valid - Greek - ω (U+03C9 omega)", + "data": "ωlement", + "valid": true + }, + { + "description": "Valid - Cyrillic - А (U+0410 A)", + "data": "Аlement", + "valid": true + }, + { + "description": "Valid - Cyrillic - Я (U+042F Ya)", + "data": "Яlement", + "valid": true + }, + { + "description": "Valid - Cyrillic - а (U+0430 a)", + "data": "аlement", + "valid": true + }, + { + "description": "Valid - Cyrillic - я (U+044F ya)", + "data": "яlement", + "valid": true + }, + { + "description": "Valid - Hebrew - א (U+05D0 Alef)", + "data": "אlement", + "valid": true + }, + { + "description": "Valid - Hebrew - ת (U+05EA Tav)", + "data": "תlement", + "valid": true + }, + { + "description": "Valid - Arabic - ا (U+0627 Alef)", + "data": "اlement", + "valid": true + }, + { + "description": "Valid - Arabic - ي (U+064A Ya)", + "data": "يlement", + "valid": true + }, + { + "description": "Valid - Devanagari - अ (U+0905 A)", + "data": "अlement", + "valid": true + }, + { + "description": "Valid - Devanagari - ह (U+0939 Ha)", + "data": "हlement", + "valid": true + }, + { + "description": "Valid - Bengali - অ (U+0985 A)", + "data": "অlement", + "valid": true + }, + { + "description": "Valid - Tamil - அ (U+0B85 A)", + "data": "அlement", + "valid": true + }, + { + "description": "Valid - Thai - ก (U+0E01 Ko Kai)", + "data": "กlement", + "valid": true + }, + { + "description": "Valid - Tibetan - ཀ (U+0F40 Ka)", + "data": "ཀlement", + "valid": true + }, + { + "description": "Valid - Georgian - ა (U+10D0 An)", + "data": "აlement", + "valid": true + }, + { + "description": "Valid - Hangul - 가 (U+AC00)", + "data": "가element", + "valid": true + }, + { + "description": "Valid - Hangul - 힣 (U+D7A3)", + "data": "힣element", + "valid": true + }, + { + "description": "Valid - CJK Ideographic - 一 (U+4E00)", + "data": "一element", + "valid": true + }, + { + "description": "Valid - CJK Ideographic - 龥 (U+9FA5)", + "data": "龥element", + "valid": true + }, + { + "description": "Valid - CJK Ideographic - 〇 (U+3007)", + "data": "〇element", + "valid": true + }, + { + "description": "Valid - CJK Ideographic - 〡 (U+3021)", + "data": "〡element", + "valid": true + }, + { + "description": "Valid - CJK Ideographic - 〩 (U+3029)", + "data": "〩element", + "valid": true + }, + { + "description": "Valid - Arabic-Indic digit ٠ (U+0660) in middle", + "data": "element٠", + "valid": true + }, + { + "description": "Valid - Arabic-Indic digit ٩ (U+0669) in middle", + "data": "element٩", + "valid": true + }, + { + "description": "Valid - Extended Arabic-Indic digit ۰ (U+06F0)", + "data": "element۰", + "valid": true + }, + { + "description": "Valid - Extended Arabic-Indic digit ۹ (U+06F9)", + "data": "element۹", + "valid": true + }, + { + "description": "Valid - Devanagari digit ० (U+0966)", + "data": "element०", + "valid": true + }, + { + "description": "Valid - Devanagari digit ९ (U+096F)", + "data": "element९", + "valid": true + }, + { + "description": "Valid - Bengali digit ০ (U+09E6)", + "data": "element০", + "valid": true + }, + { + "description": "Valid - Bengali digit ৯ (U+09EF)", + "data": "element৯", + "valid": true + }, + { + "description": "Valid - Thai digit ๐ (U+0E50)", + "data": "element๐", + "valid": true + }, + { + "description": "Valid - Thai digit ๙ (U+0E59)", + "data": "element๙", + "valid": true + }, + { + "description": "Valid - Tibetan digit ༠ (U+0F20)", + "data": "element༠", + "valid": true + }, + { + "description": "Valid - Tibetan digit ༩ (U+0F29)", + "data": "element༩", + "valid": true + }, + { + "description": "Invalid - Digit at start - ASCII 0", + "data": "0element", + "valid": false + }, + { + "description": "Invalid - Digit at start - Arabic-Indic ٠ (U+0660)", + "data": "٠element", + "valid": false + }, + { + "description": "Invalid - Digit at start - Devanagari ० (U+0966)", + "data": "०element", + "valid": false + }, + { + "description": "Valid - CombiningChar after letter - ̀ (U+0300 grave)", + "data": "element̀", + "valid": true + }, + { + "description": "Valid - CombiningChar after letter - ́ (U+0301 acute)", + "data": "element́", + "valid": true + }, + { + "description": "Valid - CombiningChar after letter - ̃ (U+0303 tilde)", + "data": "element̃", + "valid": true + }, + { + "description": "Valid - CombiningChar after letter - ̈ (U+0308 diaeresis)", + "data": "elemenẗ", + "valid": true + }, + { + "description": "Valid - CombiningChar range end - ͅ (U+0345 ypogegrammeni)", + "data": "elementͅ", + "valid": true + }, + { + "description": "Valid - CombiningChar - ͠ (U+0360 double tilde)", + "data": "element͠", + "valid": true + }, + { + "description": "Valid - CombiningChar - ͡ (U+0361 double inverted breve)", + "data": "element͡", + "valid": true + }, + { + "description": "Valid - CombiningChar Cyrillic - ҃ (U+0483 titlo)", + "data": "element҃", + "valid": true + }, + { + "description": "Valid - CombiningChar Hebrew - ְ (U+05B0 sheva)", + "data": "elementְ", + "valid": true + }, + { + "description": "Valid - CombiningChar Hebrew - ֿ (U+05BF rafe)", + "data": "elementֿ", + "valid": true + }, + { + "description": "Valid - CombiningChar Arabic - ً (U+064B fathatan)", + "data": "elementً", + "valid": true + }, + { + "description": "Valid - CombiningChar Arabic - ْ (U+0652 sukun)", + "data": "elementْ", + "valid": true + }, + { + "description": "Valid - CombiningChar Devanagari - ँ (U+0901 candrabindu)", + "data": "elementँ", + "valid": true + }, + { + "description": "Valid - CombiningChar Devanagari - ः (U+0903 visarga)", + "data": "elementः", + "valid": true + }, + { + "description": "Valid - CombiningChar Devanagari - ़ (U+093C nukta)", + "data": "element़", + "valid": true + }, + { + "description": "Valid - CombiningChar Thai - ฺ (U+0E3A phinthu)", + "data": "elementฺ", + "valid": true + }, + { + "description": "Valid - CombiningChar Tibetan - ༘ (U+0F18)", + "data": "element༘", + "valid": true + }, + { + "description": "Valid - Extender - · (U+00B7 middle dot)", + "data": "element·more", + "valid": true + }, + { + "description": "Valid - Extender - ː (U+02D0 modifier letter triangular colon)", + "data": "elementːmore", + "valid": true + }, + { + "description": "Valid - Extender - ˑ (U+02D1 modifier letter half triangular colon)", + "data": "elementˑmore", + "valid": true + }, + { + "description": "Valid - Extender - · (U+0387 Greek ano teleia)", + "data": "element·more", + "valid": true + }, + { + "description": "Valid - Extender - ـ (U+0640 Arabic tatweel)", + "data": "elementـmore", + "valid": true + }, + { + "description": "Valid - Extender - ๆ (U+0E46 Thai maiyamok)", + "data": "elementๆmore", + "valid": true + }, + { + "description": "Valid - Extender - ໆ (U+0EC6 Lao ko la)", + "data": "elementໆmore", + "valid": true + }, + { + "description": "Valid - Extender - 々 (U+3005 ideographic iteration mark)", + "data": "element々more", + "valid": true + }, + { + "description": "Valid - Extender - 〱 (U+3031)", + "data": "element〱more", + "valid": true + }, + { + "description": "Valid - Extender - 〵 (U+3035)", + "data": "element〵more", + "valid": true + }, + { + "description": "Valid - Extender - ゝ (U+309D hiragana iteration mark)", + "data": "elementゝmore", + "valid": true + }, + { + "description": "Valid - Extender - ゞ (U+309E hiragana voiced iteration mark)", + "data": "elementゞmore", + "valid": true + }, + { + "description": "Valid - Extender - ー (U+30FC katakana-hiragana prolonged sound)", + "data": "elementーmore", + "valid": true + }, + { + "description": "Valid - Extender - ヾ (U+30FE katakana voiced iteration mark)", + "data": "elementヾmore", + "valid": true + }, + { + "description": "Invalid - Extender at start - · (U+00B7)", + "data": "·element", + "valid": false + }, + { + "description": "Invalid - Extender at start - ー (U+30FC)", + "data": "ーelement", + "valid": false + }, + { + "description": "Invalid - CombiningChar at start - ̀ (U+0300)", + "data": "̀element", + "valid": false + }, + { + "description": "Valid - Complex Unicode name with CJK", + "data": "element漢字", + "valid": true + }, + { + "description": "Valid - Complex Unicode name with Arabic", + "data": "element_العربية", + "valid": true + }, + { + "description": "Valid - Complex Unicode name with Hebrew", + "data": "element_עברית", + "valid": true + }, + { + "description": "Valid - Complex Unicode name with Cyrillic", + "data": "element_русский", + "valid": true + }, + { + "description": "Valid - Complex Unicode name with Greek", + "data": "element_Ελληνικά", + "valid": true + }, + { + "description": "Valid - Complex Unicode name with Thai", + "data": "element_ไทย", + "valid": true + }, + { + "description": "Valid - Complex Unicode name with Devanagari", + "data": "element_हिन्दी", + "valid": true + }, + { + "description": "Valid - Mixed scripts and combining chars", + "data": "café_Москва", + "valid": true + }, + { + "description": "Valid - Letter with combining + digit", + "data": "element̃123", + "valid": true + }, + { + "description": "Valid - Extender in middle", + "data": "my·element", + "valid": true + }, + { + "description": "Valid - Multiple extenders", + "data": "my·element·name", + "valid": true + }, + { + "description": "Valid - Unicode digits after ASCII letter", + "data": "element०१२३", + "valid": true + }, + { + "description": "Valid - All valid ASCII special chars", + "data": "a._-", + "valid": true + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - starts with ASCII digit", + "data": "9element", + "valid": false + }, + { + "description": "Invalid - starts with hyphen", + "data": "-element", + "valid": false + }, + { + "description": "Invalid - starts with period", + "data": ".element", + "valid": false + }, + { + "description": "Invalid - contains colon (key NCName restriction)", + "data": "pre:myElement", + "valid": false + }, + { + "description": "Invalid - colon at start", + "data": ":element", + "valid": false + }, + { + "description": "Invalid - colon at end", + "data": "element:", + "valid": false + }, + { + "description": "Invalid - colon in middle", + "data": "my:element", + "valid": false + }, + { + "description": "Invalid - multiple colons", + "data": "ns:my:element", + "valid": false + }, + { + "description": "Invalid - contains space", + "data": "my element", + "valid": false + }, + { + "description": "Invalid - leading space", + "data": " myElement", + "valid": false + }, + { + "description": "Invalid - trailing space", + "data": "myElement ", + "valid": false + }, + { + "description": "Invalid - contains tab", + "data": "my\telement", + "valid": false + }, + { + "description": "Invalid - contains newline", + "data": "my\nelement", + "valid": false + }, + { + "description": "Invalid - contains carriage return", + "data": "my\relement", + "valid": false + }, + { + "description": "Invalid - contains @", + "data": "my@element", + "valid": false + }, + { + "description": "Invalid - contains $", + "data": "my$element", + "valid": false + }, + { + "description": "Invalid - contains %", + "data": "my%element", + "valid": false + }, + { + "description": "Invalid - contains &", + "data": "my&element", + "valid": false + }, + { + "description": "Invalid - contains *", + "data": "my*element", + "valid": false + }, + { + "description": "Invalid - contains +", + "data": "my+element", + "valid": false + }, + { + "description": "Invalid - contains =", + "data": "my=element", + "valid": false + }, + { + "description": "Invalid - contains /", + "data": "my/element", + "valid": false + }, + { + "description": "Invalid - contains \\", + "data": "my\\element", + "valid": false + }, + { + "description": "Invalid - contains ?", + "data": "my?element", + "valid": false + }, + { + "description": "Invalid - contains !", + "data": "my!element", + "valid": false + }, + { + "description": "Invalid - contains #", + "data": "my#element", + "valid": false + }, + { + "description": "Invalid - contains ^", + "data": "my^element", + "valid": false + }, + { + "description": "Invalid - contains ~", + "data": "my~element", + "valid": false + }, + { + "description": "Invalid - contains `", + "data": "my`element", + "valid": false + }, + { + "description": "Invalid - contains |", + "data": "my|element", + "valid": false + }, + { + "description": "Invalid - contains (", + "data": "my(element", + "valid": false + }, + { + "description": "Invalid - contains )", + "data": "my)element", + "valid": false + }, + { + "description": "Invalid - contains [", + "data": "my[element", + "valid": false + }, + { + "description": "Invalid - contains ]", + "data": "my]element", + "valid": false + }, + { + "description": "Invalid - contains {", + "data": "my{element", + "valid": false + }, + { + "description": "Invalid - contains }", + "data": "my}element", + "valid": false + }, + { + "description": "Invalid - contains <", + "data": "my", + "data": "my>element", + "valid": false + }, + { + "description": "Invalid - contains ,", + "data": "my,element", + "valid": false + }, + { + "description": "Invalid - contains ;", + "data": "my;element", + "valid": false + }, + { + "description": "Invalid - contains '", + "data": "my'element", + "valid": false + }, + { + "description": "Invalid - contains \"", + "data": "my\"element", + "valid": false + }, + { + "description": "Invalid - number type", + "data": 123, + "valid": false + }, + { + "description": "Invalid - boolean type", + "data": true, + "valid": false + }, + { + "description": "Invalid - null type", + "data": null, + "valid": false + }, + { + "description": "Invalid - object type", + "data": {}, + "valid": false + }, + { + "description": "Invalid - array type", + "data": [], + "valid": false + }, + { + "description": "Valid - typical XML element name", + "data": "book", + "valid": true + }, + { + "description": "Valid - typical XML attribute name", + "data": "id", + "valid": true + }, + { + "description": "Valid - namespace prefix would be NCName", + "data": "xsd", + "valid": true + }, + { + "description": "Invalid - QName with namespace (has colon)", + "data": "xsd:element", + "valid": false + }, + { + "description": "Valid - Japanese hiragana name", + "data": "こんにちは", + "valid": true + }, + { + "description": "Valid - Japanese katakana name", + "data": "カタカナ", + "valid": true + }, + { + "description": "Valid - Korean Hangul name", + "data": "한글", + "valid": true + }, + { + "description": "Valid - Chinese name", + "data": "中文", + "valid": true + }, + { + "description": "Valid - Deseret Capital Letter (U+10400)", + "data": "𐐀element", + "valid": true + }, + { + "description": "Valid - Linear B Syllable (U+10000)", + "data": "𐀀name", + "valid": true + }, + { + "description": "Valid - Gothic Letter (U+10330)", + "data": "𐌰test", + "valid": true + }, + { + "description": "Valid - CJK Extension B (U+20000)", + "data": "𠀀字符", + "valid": true + }, + { + "description": "Valid - CJK Extension B (U+20BB7)", + "data": "𠮷田", + "valid": true + }, + { + "description": "Valid - Mathematical Bold (U+1D400)", + "data": "𝐀identifier", + "valid": true + }, + { + "description": "Valid - Phoenician Letter (U+10900)", + "data": "𐤀name", + "valid": true + }, + { + "description": "Valid - 4-byte in middle", + "data": "test𐐀middle", + "valid": true + }, + { + "description": "Valid - 4-byte at end", + "data": "end𐐀", + "valid": true + }, + { + "description": "Valid - multiple 4-byte", + "data": "𐐀test𠀀", + "valid": true + }, + { + "description": "Valid - 4-byte with hyphen", + "data": "𐐀-name", + "valid": true + }, + { + "description": "Valid - 4-byte with period", + "data": "𐐀.element", + "valid": true + }, + { + "description": "Valid - 4-byte with underscore", + "data": "𐐀_id", + "valid": true + }, + { + "description": "Valid - 4-byte with digits", + "data": "𐐀123", + "valid": true + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/negative-integer/v1.test.json b/test/schemas/w3c/xmlschema/2001/negative-integer/v1.test.json new file mode 100644 index 00000000..ec8c34ab --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/negative-integer/v1.test.json @@ -0,0 +1,90 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/negative-integer/v1.json", + "tests": [ + { + "description": "Valid - negative one", + "data": -1, + "valid": true + }, + { + "description": "Valid - negative two", + "data": -2, + "valid": true + }, + { + "description": "Valid - small negative", + "data": -42, + "valid": true + }, + { + "description": "Valid - large negative", + "data": -9223372036854775808, + "valid": true + }, + { + "description": "Valid - medium negative", + "data": -1000, + "valid": true + }, + { + "description": "Valid - arbitrary precision beyond int64", + "data": -1.2345678901234567890e+19, + "valid": true + }, + { + "description": "Valid - arbitrary precision large negative", + "data": -9.9999999999999999999e+19, + "valid": true + }, + { + "description": "Valid - arbitrary precision 25 digits negative", + "data": -1.234567890123456789012345e+24, + "valid": true + }, + { + "description": "Valid - arbitrary precision 30 digits negative", + "data": -1.23456789012345678901234567890e+29, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - positive one", + "data": 1, + "valid": false + }, + { + "description": "Invalid - small positive", + "data": 42, + "valid": false + }, + { + "description": "Invalid - large positive", + "data": 9223372036854775807, + "valid": false + }, + { + "description": "Invalid - decimal number", + "data": -1.5, + "valid": false + }, + { + "description": "Invalid - string type", + "data": "-1", + "valid": false + }, + { + "description": "Invalid - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/nmtoken/v1.test.json b/test/schemas/w3c/xmlschema/2001/nmtoken/v1.test.json new file mode 100644 index 00000000..38a4187f --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/nmtoken/v1.test.json @@ -0,0 +1,577 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/nmtoken/v1.json", + "tests": [ + { + "description": "Valid - simple ASCII letters", + "data": "abc", + "valid": true + }, + { + "description": "Valid - mixed case ASCII", + "data": "AbCdEf", + "valid": true + }, + { + "description": "Valid - digits only", + "data": "123", + "valid": true + }, + { + "description": "Valid - letters and digits", + "data": "abc123", + "valid": true + }, + { + "description": "Valid - with hyphen", + "data": "data-value", + "valid": true + }, + { + "description": "Valid - with period", + "data": "element.name", + "valid": true + }, + { + "description": "Valid - with colon", + "data": "with:colon", + "valid": true + }, + { + "description": "Valid - with underscore", + "data": "_underscore", + "valid": true + }, + { + "description": "Valid - CamelCase", + "data": "CamelCase", + "valid": true + }, + { + "description": "Valid - starting with digit", + "data": "9abc", + "valid": true + }, + { + "description": "Valid - starting with hyphen", + "data": "-value", + "valid": true + }, + { + "description": "Valid - starting with period", + "data": ".value", + "valid": true + }, + { + "description": "Valid - single character", + "data": "a", + "valid": true + }, + { + "description": "Valid - single digit", + "data": "9", + "valid": true + }, + { + "description": "Valid - Greek letters", + "data": "με", + "valid": true + }, + { + "description": "Valid - Cyrillic letters", + "data": "данные", + "valid": true + }, + { + "description": "Valid - Chinese characters", + "data": "中文", + "valid": true + }, + { + "description": "Valid - Japanese hiragana", + "data": "データ", + "valid": true + }, + { + "description": "Valid - Arabic characters", + "data": "بيانات", + "valid": true + }, + { + "description": "Valid - Hebrew characters", + "data": "נתונים", + "valid": true + }, + { + "description": "Valid - mixed Latin Extended", + "data": "café", + "valid": true + }, + { + "description": "Valid - with middle dot (·)", + "data": "l·l", + "valid": true + }, + { + "description": "Valid - complex mixed", + "data": "element-name_123.value:type", + "valid": true + }, + { + "description": "Invalid: empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid: whitespace only", + "data": " ", + "valid": false + }, + { + "description": "Invalid: contains space", + "data": "data value", + "valid": false + }, + { + "description": "Invalid: contains tab", + "data": "data\tvalue", + "valid": false + }, + { + "description": "Invalid: contains newline", + "data": "data\nvalue", + "valid": false + }, + { + "description": "Invalid: leading space", + "data": " data", + "valid": false + }, + { + "description": "Invalid: trailing space", + "data": "data ", + "valid": false + }, + { + "description": "Invalid: contains special char @", + "data": "data@value", + "valid": false + }, + { + "description": "Invalid: contains special char #", + "data": "data#value", + "valid": false + }, + { + "description": "Invalid: contains special char $", + "data": "data$value", + "valid": false + }, + { + "description": "Invalid: contains special char %", + "data": "data%value", + "valid": false + }, + { + "description": "Invalid: contains special char &", + "data": "data&value", + "valid": false + }, + { + "description": "Invalid: contains special char *", + "data": "data*value", + "valid": false + }, + { + "description": "Invalid: contains special char +", + "data": "data+value", + "valid": false + }, + { + "description": "Invalid: contains special char =", + "data": "data=value", + "valid": false + }, + { + "description": "Invalid: contains special char !", + "data": "data!value", + "valid": false + }, + { + "description": "Invalid: contains special char ?", + "data": "data?value", + "valid": false + }, + { + "description": "Invalid: contains brackets", + "data": "data[value]", + "valid": false + }, + { + "description": "Invalid: contains parentheses", + "data": "data(value)", + "valid": false + }, + { + "description": "Invalid: contains braces", + "data": "data{value}", + "valid": false + }, + { + "description": "Invalid: contains angle brackets", + "data": "data", + "valid": false + }, + { + "description": "Invalid: contains slash", + "data": "data/value", + "valid": false + }, + { + "description": "Invalid: contains backslash", + "data": "data\\value", + "valid": false + }, + { + "description": "Invalid: contains pipe", + "data": "data|value", + "valid": false + }, + { + "description": "Invalid: contains semicolon", + "data": "data;value", + "valid": false + }, + { + "description": "Invalid: contains comma", + "data": "data,value", + "valid": false + }, + { + "description": "Invalid: contains quote", + "data": "data\"value", + "valid": false + }, + { + "description": "Invalid: contains apostrophe", + "data": "data'value", + "valid": false + }, + { + "description": "Invalid: number type", + "data": 123, + "valid": false + }, + { + "description": "Invalid: boolean type", + "data": true, + "valid": false + }, + { + "description": "Invalid: null type", + "data": null, + "valid": false + }, + { + "description": "Invalid: array type", + "data": [ "value" ], + "valid": false + }, + { + "description": "Invalid: object type", + "data": { + "name": "value" + }, + "valid": false + }, + { + "description": "Valid - with combining grave accent", + "data": "àb", + "valid": true + }, + { + "description": "Valid - with combining acute accent", + "data": "élement", + "valid": true + }, + { + "description": "Valid - with combining diacritical mark", + "data": "tesẗing", + "valid": true + }, + { + "description": "Valid - letter with combining at end", + "data": "dataͯ", + "valid": true + }, + { + "description": "Valid - with undertie ‿", + "data": "a‿b", + "valid": true + }, + { + "description": "Valid - with character tie ⁀", + "data": "x⁀y", + "valid": true + }, + { + "description": "Valid - with ZWNJ", + "data": "ele‌ment", + "valid": true + }, + { + "description": "Valid - with ZWJ", + "data": "ele‍ment", + "valid": true + }, + { + "description": "Valid - starting with ZWNJ", + "data": "‌start", + "valid": true + }, + { + "description": "Valid - starting with ZWJ", + "data": "‍start", + "valid": true + }, + { + "description": "Invalid: contains carriage return", + "data": "data\rvalue", + "valid": false + }, + { + "description": "Invalid: contains null character", + "data": "data\u0000value", + "valid": false + }, + { + "description": "Invalid: contains vertical tab", + "data": "data\u000Bvalue", + "valid": false + }, + { + "description": "Invalid: contains form feed", + "data": "data\fvalue", + "valid": false + }, + { + "description": "Invalid: contains bell character", + "data": "data\u0007value", + "valid": false + }, + { + "description": "Invalid: contains escape character", + "data": "data\u001Bvalue", + "valid": false + }, + { + "description": "Invalid: starts with null", + "data": "\u0000data", + "valid": false + }, + { + "description": "Valid - U+00C0 (À) start of Latin-1 Supplement", + "data": "À", + "valid": true + }, + { + "description": "Valid - U+D7FF last before surrogate block", + "data": "퟿", + "valid": true + }, + { + "description": "Valid - U+F900 start of CJK Compatibility", + "data": "豈", + "valid": true + }, + { + "description": "Valid - U+FDCF end of Arabic Presentation", + "data": "﷏", + "valid": true + }, + { + "description": "Valid - U+FDF0 start of Arabic Presentation-B", + "data": "ﷰ", + "valid": true + }, + { + "description": "Valid - U+FFFD replacement character", + "data": "�", + "valid": true + }, + { + "description": "Valid - multiple colons", + "data": "a:b:c:d", + "valid": true + }, + { + "description": "Valid - consecutive colons", + "data": "a::b", + "valid": true + }, + { + "description": "Valid - colon only", + "data": ":", + "valid": true + }, + { + "description": "Valid - multiple underscores", + "data": "___test___", + "valid": true + }, + { + "description": "Valid - alternating special chars", + "data": "a-b.c_d:e", + "valid": true + }, + { + "description": "Valid - starting with middle dot", + "data": "·test", + "valid": true + }, + { + "description": "Valid - ending with middle dot", + "data": "test·", + "valid": true + }, + { + "description": "Valid - multiple middle dots", + "data": "a·b·c", + "valid": true + }, + { + "description": "Valid - very long ASCII", + "data": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "valid": true + }, + { + "description": "Valid - very long Unicode", + "data": "中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中", + "valid": true + }, + { + "description": "Valid - very long with all allowed chars", + "data": "aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·", + "valid": true + }, + { + "description": "Valid - mixed Latin and Greek", + "data": "testδοκιμή123", + "valid": true + }, + { + "description": "Valid - mixed Arabic and digits", + "data": "test123بيانات456", + "valid": true + }, + { + "description": "Valid - mixed scripts with special chars", + "data": "test_中文_データ_тест", + "valid": true + }, + { + "description": "Valid - hyphen only", + "data": "-", + "valid": true + }, + { + "description": "Valid - period only", + "data": ".", + "valid": true + }, + { + "description": "Valid - middle dot only", + "data": "·", + "valid": true + }, + { + "description": "Invalid: contains DEL character", + "data": "datavalue", + "valid": false + }, + { + "description": "Valid - Deseret Capital Letter (U+10400)", + "data": "𐐀test", + "valid": true + }, + { + "description": "Valid - Linear B Syllable (U+10000)", + "data": "𐀀token", + "valid": true + }, + { + "description": "Valid - Gothic Letter (U+10330)", + "data": "𐌰data", + "valid": true + }, + { + "description": "Valid - CJK Extension B (U+20000)", + "data": "𠀀字", + "valid": true + }, + { + "description": "Valid - CJK Extension B (U+20BB7)", + "data": "𠮷野", + "valid": true + }, + { + "description": "Valid - Mathematical Bold A (U+1D400)", + "data": "𝐀𝐁𝐂", + "valid": true + }, + { + "description": "Valid - Mathematical Italic (U+1D465)", + "data": "𝑥𝑦𝑧", + "valid": true + }, + { + "description": "Valid - 4-byte at start", + "data": "𐐀start", + "valid": true + }, + { + "description": "Valid - 4-byte in middle", + "data": "mid𐐀dle", + "valid": true + }, + { + "description": "Valid - 4-byte at end", + "data": "end𐐀", + "valid": true + }, + { + "description": "Valid - only 4-byte characters", + "data": "𐐀𠀀𐌰", + "valid": true + }, + { + "description": "Valid - 4-byte with leading digit", + "data": "9𐐀test", + "valid": true + }, + { + "description": "Valid - 4-byte with leading hyphen", + "data": "-𐐀test", + "valid": true + }, + { + "description": "Valid - 4-byte with leading period", + "data": ".𐐀test", + "valid": true + }, + { + "description": "Valid - 4-byte with special chars", + "data": "𐐀-test.value_123", + "valid": true + }, + { + "description": "Valid - 4-byte with middle dot", + "data": "𐐀·𠀀", + "valid": true + }, + { + "description": "Valid - 4-byte with colon", + "data": "𐐀:token", + "valid": true + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/nmtokens/v1.test.json b/test/schemas/w3c/xmlschema/2001/nmtokens/v1.test.json new file mode 100644 index 00000000..ca836f11 --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/nmtokens/v1.test.json @@ -0,0 +1,251 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/nmtokens/v1.json", + "tests": [ + { + "description": "Valid - two tokens", + "data": [ "token1", "token2" ], + "valid": true + }, + { + "description": "Valid - single token", + "data": [ "single" ], + "valid": true + }, + { + "description": "Valid - multiple mixed tokens", + "data": [ "abc", "123", "data-value" ], + "valid": true + }, + { + "description": "Valid - tokens with special chars", + "data": [ "a:b", "c.d", "e-f", "_g" ], + "valid": true + }, + { + "description": "Valid - many tokens", + "data": [ "one", "two", "three", "four", "five" ], + "valid": true + }, + { + "description": "Valid - Unicode tokens", + "data": [ "中文", "データ", "тест" ], + "valid": true + }, + { + "description": "Valid - mixed scripts", + "data": [ "test", "测试", "テスト" ], + "valid": true + }, + { + "description": "Valid - tokens starting with digits", + "data": [ "9abc", "123", ".test" ], + "valid": true + }, + { + "description": "Valid - tokens with middle dot", + "data": [ "a·b", "test·token" ], + "valid": true + }, + { + "description": "Valid - long list", + "data": [ + "t0", + "t1", + "t2", + "t3", + "t4", + "t5", + "t6", + "t7", + "t8", + "t9", + "t10", + "t11", + "t12", + "t13", + "t14", + "t15", + "t16", + "t17", + "t18", + "t19", + "t20", + "t21", + "t22", + "t23", + "t24", + "t25", + "t26", + "t27", + "t28", + "t29", + "t30", + "t31", + "t32", + "t33", + "t34", + "t35", + "t36", + "t37", + "t38", + "t39", + "t40", + "t41", + "t42", + "t43", + "t44", + "t45", + "t46", + "t47", + "t48", + "t49", + "t50", + "t51", + "t52", + "t53", + "t54", + "t55", + "t56", + "t57", + "t58", + "t59", + "t60", + "t61", + "t62", + "t63", + "t64", + "t65", + "t66", + "t67", + "t68", + "t69", + "t70", + "t71", + "t72", + "t73", + "t74", + "t75", + "t76", + "t77", + "t78", + "t79", + "t80", + "t81", + "t82", + "t83", + "t84", + "t85", + "t86", + "t87", + "t88", + "t89", + "t90", + "t91", + "t92", + "t93", + "t94", + "t95", + "t96", + "t97", + "t98", + "t99" + ], + "valid": true + }, + { + "description": "Invalid: empty array", + "data": [], + "valid": false + }, + { + "description": "Invalid: token contains space", + "data": [ "valid", "has space" ], + "valid": false + }, + { + "description": "Invalid: token is empty string", + "data": [ "valid", "" ], + "valid": false + }, + { + "description": "Invalid: token contains newline", + "data": [ "valid", "has\nnewline" ], + "valid": false + }, + { + "description": "Invalid: token contains tab", + "data": [ "valid", "has\ttab" ], + "valid": false + }, + { + "description": "Invalid: token contains special char @", + "data": [ "valid", "has@sign" ], + "valid": false + }, + { + "description": "Invalid: token contains null char", + "data": [ "valid", "has\u0000null" ], + "valid": false + }, + { + "description": "Invalid: not an array (string)", + "data": "token1 token2", + "valid": false + }, + { + "description": "Invalid: not an array (number)", + "data": 123, + "valid": false + }, + { + "description": "Invalid: not an array (boolean)", + "data": true, + "valid": false + }, + { + "description": "Invalid: not an array (null)", + "data": null, + "valid": false + }, + { + "description": "Invalid: not an array (object)", + "data": { + "tokens": [ "a", "b" ] + }, + "valid": false + }, + { + "description": "Invalid: array contains number", + "data": [ "valid", 123 ], + "valid": false + }, + { + "description": "Invalid: array contains boolean", + "data": [ "valid", true ], + "valid": false + }, + { + "description": "Invalid: array contains null", + "data": [ "valid", null ], + "valid": false + }, + { + "description": "Invalid: array contains object", + "data": [ + "valid", + { + "key": "value" + } + ], + "valid": false + }, + { + "description": "Invalid: array contains array", + "data": [ + "valid", + [ "nested" ] + ], + "valid": false + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/non-negative-integer/v1.test.json b/test/schemas/w3c/xmlschema/2001/non-negative-integer/v1.test.json new file mode 100644 index 00000000..f49b518e --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/non-negative-integer/v1.test.json @@ -0,0 +1,85 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/non-negative-integer/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - one", + "data": 1, + "valid": true + }, + { + "description": "Valid - small positive", + "data": 42, + "valid": true + }, + { + "description": "Valid - large positive", + "data": 9223372036854775807, + "valid": true + }, + { + "description": "Valid - medium positive", + "data": 1000, + "valid": true + }, + { + "description": "Valid - arbitrary precision beyond uint64", + "data": 1.8446744073709551616e+19, + "valid": true + }, + { + "description": "Valid - arbitrary precision large positive", + "data": 9.9999999999999999999e+19, + "valid": true + }, + { + "description": "Valid - arbitrary precision 25 digits", + "data": 1.234567890123456789012345e+24, + "valid": true + }, + { + "description": "Valid - arbitrary precision 30 digits", + "data": 1.23456789012345678901234567890e+29, + "valid": true + }, + { + "description": "Invalid - negative one", + "data": -1, + "valid": false + }, + { + "description": "Invalid - small negative", + "data": -42, + "valid": false + }, + { + "description": "Invalid - large negative", + "data": -9223372036854775808, + "valid": false + }, + { + "description": "Invalid - decimal number", + "data": 1.5, + "valid": false + }, + { + "description": "Invalid - string type", + "data": "0", + "valid": false + }, + { + "description": "Invalid - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/non-positive-integer/v1.test.json b/test/schemas/w3c/xmlschema/2001/non-positive-integer/v1.test.json new file mode 100644 index 00000000..409df394 --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/non-positive-integer/v1.test.json @@ -0,0 +1,85 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/non-positive-integer/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - negative one", + "data": -1, + "valid": true + }, + { + "description": "Valid - small negative", + "data": -42, + "valid": true + }, + { + "description": "Valid - large negative", + "data": -9223372036854775808, + "valid": true + }, + { + "description": "Valid - medium negative", + "data": -1000, + "valid": true + }, + { + "description": "Valid - arbitrary precision beyond int64", + "data": -1.2345678901234567890e+19, + "valid": true + }, + { + "description": "Valid - arbitrary precision large negative", + "data": -9.9999999999999999999e+19, + "valid": true + }, + { + "description": "Valid - arbitrary precision 25 digits negative", + "data": -1.234567890123456789012345e+24, + "valid": true + }, + { + "description": "Valid - arbitrary precision 30 digits negative", + "data": -1.23456789012345678901234567890e+29, + "valid": true + }, + { + "description": "Invalid - positive one", + "data": 1, + "valid": false + }, + { + "description": "Invalid - small positive", + "data": 42, + "valid": false + }, + { + "description": "Invalid - large positive", + "data": 9223372036854775807, + "valid": false + }, + { + "description": "Invalid - decimal number", + "data": -1.5, + "valid": false + }, + { + "description": "Invalid - string type", + "data": "0", + "valid": false + }, + { + "description": "Invalid - boolean", + "data": false, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/normalized-string/v1.test.json b/test/schemas/w3c/xmlschema/2001/normalized-string/v1.test.json new file mode 100644 index 00000000..c62cbfa6 --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/normalized-string/v1.test.json @@ -0,0 +1,337 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/normalized-string/v1.json", + "tests": [ + { + "description": "Valid - empty string", + "data": "", + "valid": true + }, + { + "description": "Valid - simple text", + "data": "Hello World", + "valid": true + }, + { + "description": "Valid - single word", + "data": "Hello", + "valid": true + }, + { + "description": "Valid - text with single spaces", + "data": "This is a test", + "valid": true + }, + { + "description": "Valid - text with multiple consecutive spaces", + "data": "Multiple spaces are allowed", + "valid": true + }, + { + "description": "Valid - text with many consecutive spaces", + "data": "Many spaces here", + "valid": true + }, + { + "description": "Valid - leading space", + "data": " Leading space", + "valid": true + }, + { + "description": "Valid - trailing space", + "data": "Trailing space ", + "valid": true + }, + { + "description": "Valid - leading and trailing spaces", + "data": " Both sides ", + "valid": true + }, + { + "description": "Valid - multiple leading spaces", + "data": " Multiple leading", + "valid": true + }, + { + "description": "Valid - multiple trailing spaces", + "data": "Multiple trailing ", + "valid": true + }, + { + "description": "Valid - only spaces", + "data": " ", + "valid": true + }, + { + "description": "Valid - single space", + "data": " ", + "valid": true + }, + { + "description": "Valid - text with numbers", + "data": "Order 123 confirmed", + "valid": true + }, + { + "description": "Valid - numbers only", + "data": "123456", + "valid": true + }, + { + "description": "Valid - special characters", + "data": "Special: @#$%^&*()", + "valid": true + }, + { + "description": "Valid - punctuation", + "data": "Hello, World! How are you?", + "valid": true + }, + { + "description": "Valid - hyphens and underscores", + "data": "hello-world_test", + "valid": true + }, + { + "description": "Valid - dots and commas", + "data": "first.name, last.name", + "valid": true + }, + { + "description": "Valid - parentheses and brackets", + "data": "Text (with) [brackets] {braces}", + "valid": true + }, + { + "description": "Valid - quotes", + "data": "He said \"hello\" and 'goodbye'", + "valid": true + }, + { + "description": "Valid - slashes", + "data": "path/to/file or back\\slash", + "valid": true + }, + { + "description": "Valid - equals and plus", + "data": "a=b+c", + "valid": true + }, + { + "description": "Valid - angle brackets", + "data": "content", + "valid": true + }, + { + "description": "Valid - Unicode Latin Extended", + "data": "Café résumé naïve", + "valid": true + }, + { + "description": "Valid - Unicode Greek", + "data": "Γεια σου κόσμε", + "valid": true + }, + { + "description": "Valid - Unicode Cyrillic", + "data": "Привет мир", + "valid": true + }, + { + "description": "Valid - Unicode Chinese", + "data": "你好世界", + "valid": true + }, + { + "description": "Valid - Unicode Japanese", + "data": "こんにちは世界", + "valid": true + }, + { + "description": "Valid - Unicode Korean", + "data": "안녕하세요 세계", + "valid": true + }, + { + "description": "Valid - Unicode Arabic", + "data": "مرحبا بالعالم", + "valid": true + }, + { + "description": "Valid - Unicode Hebrew", + "data": "שלום עולם", + "valid": true + }, + { + "description": "Valid - Unicode Emoji", + "data": "Hello 👋 World 🌍", + "valid": true + }, + { + "description": "Valid - mixed Unicode scripts", + "data": "Hello 世界 мир κόσμος", + "valid": true + }, + { + "description": "Valid - very long string with spaces", + "data": "This is a very long normalized string with many words separated by single spaces and it should still be valid", + "valid": true + }, + { + "description": "Invalid: contains line feed at start", + "data": "\nHello", + "valid": false + }, + { + "description": "Invalid: contains line feed at end", + "data": "Hello\n", + "valid": false + }, + { + "description": "Invalid: contains line feed in middle", + "data": "Hello\nWorld", + "valid": false + }, + { + "description": "Invalid: contains multiple line feeds", + "data": "Line1\nLine2\nLine3", + "valid": false + }, + { + "description": "Invalid: only line feed", + "data": "\n", + "valid": false + }, + { + "description": "Invalid: contains carriage return at start", + "data": "\rHello", + "valid": false + }, + { + "description": "Invalid: contains carriage return at end", + "data": "Hello\r", + "valid": false + }, + { + "description": "Invalid: contains carriage return in middle", + "data": "Hello\rWorld", + "valid": false + }, + { + "description": "Invalid: contains multiple carriage returns", + "data": "Line1\rLine2\rLine3", + "valid": false + }, + { + "description": "Invalid: only carriage return", + "data": "\r", + "valid": false + }, + { + "description": "Invalid: contains CRLF", + "data": "Hello\r\nWorld", + "valid": false + }, + { + "description": "Invalid: contains tab at start", + "data": "\tHello", + "valid": false + }, + { + "description": "Invalid: contains tab at end", + "data": "Hello\t", + "valid": false + }, + { + "description": "Invalid: contains tab in middle", + "data": "Hello\tWorld", + "valid": false + }, + { + "description": "Invalid: contains multiple tabs", + "data": "Col1\tCol2\tCol3", + "valid": false + }, + { + "description": "Invalid: only tab", + "data": "\t", + "valid": false + }, + { + "description": "Invalid: tab used for indentation", + "data": "\tIndented text", + "valid": false + }, + { + "description": "Invalid: multiple tabs for indentation", + "data": "\t\tDouble indented", + "valid": false + }, + { + "description": "Invalid: mixed whitespace with tab", + "data": "Hello \tWorld", + "valid": false + }, + { + "description": "Invalid: mixed whitespace with newline", + "data": "Hello \nWorld", + "valid": false + }, + { + "description": "Invalid: all three prohibited characters", + "data": "Line1\r\nLine2\tTabbed", + "valid": false + }, + { + "description": "Invalid: tab between words", + "data": "Word1\tWord2", + "valid": false + }, + { + "description": "Invalid: newline in Unicode text", + "data": "你好\n世界", + "valid": false + }, + { + "description": "Invalid: tab in Unicode text", + "data": "你好\t世界", + "valid": false + }, + { + "description": "Invalid: multiline paragraph", + "data": "First line\nSecond line\nThird line", + "valid": false + }, + { + "description": "Invalid: text with line breaks for formatting", + "data": "Name:\nJohn Doe\nAge: 30", + "valid": false + }, + { + "description": "Type validation: not a string (number)", + "data": 123, + "valid": false + }, + { + "description": "Type validation: not a string (boolean)", + "data": true, + "valid": false + }, + { + "description": "Type validation: not a string (null)", + "data": null, + "valid": false + }, + { + "description": "Type validation: not a string (array)", + "data": [ "Hello", "World" ], + "valid": false + }, + { + "description": "Type validation: not a string (object)", + "data": { + "text": "Hello World" + }, + "valid": false + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/notation/v1.test.json b/test/schemas/w3c/xmlschema/2001/notation/v1.test.json new file mode 100644 index 00000000..ca20652f --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/notation/v1.test.json @@ -0,0 +1,148 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/notation/v1.json", + "tests": [ + { + "description": "Valid - simple unprefixed notation name", + "data": "jpeg", + "valid": true + }, + { + "description": "Valid - unprefixed notation name", + "data": "png", + "valid": true + }, + { + "description": "Valid - unprefixed with hyphen", + "data": "image-jpeg", + "valid": true + }, + { + "description": "Valid - unprefixed with dot", + "data": "text.plain", + "valid": true + }, + { + "description": "Valid - unprefixed with underscore", + "data": "video_mpeg", + "valid": true + }, + { + "description": "Valid - prefixed notation name", + "data": "mime:image-jpeg", + "valid": true + }, + { + "description": "Valid - prefixed with namespace", + "data": "format:pdf", + "valid": true + }, + { + "description": "Valid - prefixed with uppercase", + "data": "MIME:JPEG", + "valid": true + }, + { + "description": "Valid - prefixed complex name", + "data": "media.type:application-xml", + "valid": true + }, + { + "description": "Valid - single character", + "data": "x", + "valid": true + }, + { + "description": "Valid - Unicode notation name", + "data": "图像", + "valid": true + }, + { + "description": "Valid - prefixed Unicode", + "data": "类型:图像", + "valid": true + }, + { + "description": "Invalid: empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid: starts with digit", + "data": "123format", + "valid": false + }, + { + "description": "Invalid: starts with hyphen", + "data": "-format", + "valid": false + }, + { + "description": "Invalid: contains space", + "data": "image jpeg", + "valid": false + }, + { + "description": "Invalid: contains tab", + "data": "image\tjpeg", + "valid": false + }, + { + "description": "Invalid: multiple colons", + "data": "mime:type:jpeg", + "valid": false + }, + { + "description": "Invalid: colon at start", + "data": ":jpeg", + "valid": false + }, + { + "description": "Invalid: colon at end", + "data": "jpeg:", + "valid": false + }, + { + "description": "Invalid: contains special character", + "data": "image@jpeg", + "valid": false + }, + { + "description": "Invalid: prefix starts with digit", + "data": "123mime:jpeg", + "valid": false + }, + { + "description": "Invalid: local part starts with digit", + "data": "mime:123jpeg", + "valid": false + }, + { + "description": "Type validation: not a string (number)", + "data": 123, + "valid": false + }, + { + "description": "Type validation: not a string (boolean)", + "data": true, + "valid": false + }, + { + "description": "Type validation: not a string (null)", + "data": null, + "valid": false + }, + { + "description": "Type validation: not a string (array)", + "data": [ "mime", "jpeg" ], + "valid": false + }, + { + "description": "Type validation: not a string (object)", + "data": { + "prefix": "mime", + "localPart": "jpeg" + }, + "valid": false + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/positive-integer/v1.test.json b/test/schemas/w3c/xmlschema/2001/positive-integer/v1.test.json new file mode 100644 index 00000000..dda78dfb --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/positive-integer/v1.test.json @@ -0,0 +1,95 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/positive-integer/v1.json", + "tests": [ + { + "description": "Valid - one", + "data": 1, + "valid": true + }, + { + "description": "Valid - two", + "data": 2, + "valid": true + }, + { + "description": "Valid - small positive", + "data": 42, + "valid": true + }, + { + "description": "Valid - large positive", + "data": 9223372036854775807, + "valid": true + }, + { + "description": "Valid - medium positive", + "data": 1000, + "valid": true + }, + { + "description": "Valid - arbitrary precision beyond uint64", + "data": 1.8446744073709551616e+19, + "valid": true + }, + { + "description": "Valid - arbitrary precision large positive", + "data": 9.9999999999999999999e+19, + "valid": true + }, + { + "description": "Valid - arbitrary precision 25 digits", + "data": 1.234567890123456789012345e+24, + "valid": true + }, + { + "description": "Valid - arbitrary precision 30 digits", + "data": 1.23456789012345678901234567890e+29, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative one", + "data": -1, + "valid": false + }, + { + "description": "Invalid - small negative", + "data": -42, + "valid": false + }, + { + "description": "Invalid - large negative", + "data": -9223372036854775808, + "valid": false + }, + { + "description": "Invalid - decimal number", + "data": 1.5, + "valid": false + }, + { + "description": "Invalid - string type", + "data": "1", + "valid": false + }, + { + "description": "Invalid - string with leading zeros", + "data": "01", + "valid": false + }, + { + "description": "Invalid - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/qname/v1.test.json b/test/schemas/w3c/xmlschema/2001/qname/v1.test.json new file mode 100644 index 00000000..c74bbe8a --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/qname/v1.test.json @@ -0,0 +1,933 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/qname/v1.json", + "tests": [ + { + "description": "Valid - simple unprefixed ASCII", + "data": "myElement", + "valid": true + }, + { + "description": "Valid - unprefixed starts with underscore", + "data": "_myElement", + "valid": true + }, + { + "description": "Valid - unprefixed with period", + "data": "my.Element", + "valid": true + }, + { + "description": "Valid - unprefixed with hyphen", + "data": "my-element", + "valid": true + }, + { + "description": "Valid - unprefixed with underscore in middle", + "data": "my_element", + "valid": true + }, + { + "description": "Valid - unprefixed with ASCII digits", + "data": "element123", + "valid": true + }, + { + "description": "Valid - unprefixed ASCII complex mix", + "data": "my.complex-name_45", + "valid": true + }, + { + "description": "Valid - unprefixed single ASCII letter", + "data": "a", + "valid": true + }, + { + "description": "Valid - unprefixed single underscore", + "data": "_", + "valid": true + }, + { + "description": "Valid - prefixed simple ASCII", + "data": "ns:element", + "valid": true + }, + { + "description": "Valid - prefixed with uppercase", + "data": "html:HTML", + "valid": true + }, + { + "description": "Valid - prefixed with numbers in local part", + "data": "ns:element123", + "valid": true + }, + { + "description": "Valid - prefixed with hyphen", + "data": "my-ns:my-element", + "valid": true + }, + { + "description": "Valid - prefixed with dot", + "data": "ns.v1:element.name", + "valid": true + }, + { + "description": "Valid - prefixed with underscore in prefix", + "data": "_ns:element", + "valid": true + }, + { + "description": "Valid - prefixed with underscore in local part", + "data": "ns:_element", + "valid": true + }, + { + "description": "Valid - prefixed single characters", + "data": "x:y", + "valid": true + }, + { + "description": "Valid - prefixed underscore prefix", + "data": "_:element", + "valid": true + }, + { + "description": "Valid - prefixed underscore local part", + "data": "ns:_", + "valid": true + }, + { + "description": "Valid - Extended Latin - À (U+00C0) unprefixed", + "data": "Àlement", + "valid": true + }, + { + "description": "Valid - Extended Latin - Ö (U+00D6) unprefixed", + "data": "Ölement", + "valid": true + }, + { + "description": "Valid - Extended Latin - Ø (U+00D8) unprefixed", + "data": "Ølement", + "valid": true + }, + { + "description": "Valid - Extended Latin - ö (U+00F6) unprefixed", + "data": "ölement", + "valid": true + }, + { + "description": "Valid - Extended Latin - ÿ (U+00FF) unprefixed", + "data": "ÿlement", + "valid": true + }, + { + "description": "Valid - Extended Latin - Ā (U+0100) unprefixed", + "data": "Ālement", + "valid": true + }, + { + "description": "Valid - Extended Latin - ı (U+0131 dotless i) unprefixed", + "data": "ılement", + "valid": true + }, + { + "description": "Valid - Extended Latin - Über prefixed", + "data": "Über:element", + "valid": true + }, + { + "description": "Valid - Extended Latin - both parts", + "data": "Àlement:Öther", + "valid": true + }, + { + "description": "Valid - Greek - Α (U+0391 Alpha) unprefixed", + "data": "Αlement", + "valid": true + }, + { + "description": "Valid - Greek - Ω (U+03A9 Omega) unprefixed", + "data": "Ωlement", + "valid": true + }, + { + "description": "Valid - Greek - α (U+03B1 alpha) unprefixed", + "data": "αlement", + "valid": true + }, + { + "description": "Valid - Greek - ω (U+03C9 omega) unprefixed", + "data": "ωlement", + "valid": true + }, + { + "description": "Valid - Greek - full word unprefixed", + "data": "ελληνικά", + "valid": true + }, + { + "description": "Valid - Greek - prefixed", + "data": "ελληνικά:στοιχείο", + "valid": true + }, + { + "description": "Valid - Cyrillic - А (U+0410) unprefixed", + "data": "Аlement", + "valid": true + }, + { + "description": "Valid - Cyrillic - Я (U+042F) unprefixed", + "data": "Яlement", + "valid": true + }, + { + "description": "Valid - Cyrillic - а (U+0430) unprefixed", + "data": "аlement", + "valid": true + }, + { + "description": "Valid - Cyrillic - я (U+044F) unprefixed", + "data": "яlement", + "valid": true + }, + { + "description": "Valid - Cyrillic - Ё (U+0401) unprefixed", + "data": "Ёlement", + "valid": true + }, + { + "description": "Valid - Cyrillic - prefixed", + "data": "элемент:имя", + "valid": true + }, + { + "description": "Valid - Hebrew - א (U+05D0 Alef) unprefixed", + "data": "אlement", + "valid": true + }, + { + "description": "Valid - Hebrew - ת (U+05EA Tav) unprefixed", + "data": "תlement", + "valid": true + }, + { + "description": "Valid - Hebrew - ש (U+05E9 Shin) unprefixed", + "data": "שlement", + "valid": true + }, + { + "description": "Valid - Hebrew - full word unprefixed", + "data": "עברית", + "valid": true + }, + { + "description": "Valid - Hebrew - prefixed", + "data": "עברית:רכיב", + "valid": true + }, + { + "description": "Valid - Arabic - ا (U+0627 Alif) unprefixed", + "data": "اlement", + "valid": true + }, + { + "description": "Valid - Arabic - ي (U+064A Ya) unprefixed", + "data": "يlement", + "valid": true + }, + { + "description": "Valid - Arabic - ع (U+0639 Ain) unprefixed", + "data": "عlement", + "valid": true + }, + { + "description": "Valid - Arabic - ص (U+0635 Sad) unprefixed", + "data": "صlement", + "valid": true + }, + { + "description": "Valid - Arabic - ق (U+0642 Qaf) unprefixed", + "data": "قlement", + "valid": true + }, + { + "description": "Valid - Arabic - م (U+0645 Meem) unprefixed", + "data": "مlement", + "valid": true + }, + { + "description": "Valid - Arabic - ن (U+0646 Noon) unprefixed", + "data": "نlement", + "valid": true + }, + { + "description": "Valid - Arabic - ه (U+0647 Ha) unprefixed", + "data": "هlement", + "valid": true + }, + { + "description": "Valid - Arabic - full word unprefixed", + "data": "عنصر", + "valid": true + }, + { + "description": "Valid - Arabic - prefixed", + "data": "عربي:عنصر", + "valid": true + }, + { + "description": "Valid - Devanagari - अ (U+0905) unprefixed", + "data": "अlement", + "valid": true + }, + { + "description": "Valid - Devanagari - क (U+0915 Ka) unprefixed", + "data": "कlement", + "valid": true + }, + { + "description": "Valid - Devanagari - त (U+0924 Ta) unprefixed", + "data": "तlement", + "valid": true + }, + { + "description": "Valid - Devanagari - द (U+0926 Da) unprefixed", + "data": "दlement", + "valid": true + }, + { + "description": "Valid - Devanagari - न (U+0928 Na) unprefixed", + "data": "नlement", + "valid": true + }, + { + "description": "Valid - Devanagari - प (U+092A Pa) unprefixed", + "data": "पlement", + "valid": true + }, + { + "description": "Valid - Devanagari - म (U+092E Ma) unprefixed", + "data": "मlement", + "valid": true + }, + { + "description": "Valid - Devanagari - र (U+0930 Ra) unprefixed", + "data": "रlement", + "valid": true + }, + { + "description": "Valid - Devanagari - full word unprefixed", + "data": "तत्व", + "valid": true + }, + { + "description": "Valid - Devanagari - prefixed", + "data": "नाम:तत्व", + "valid": true + }, + { + "description": "Valid - Bengali - অ (U+0985) unprefixed", + "data": "অlement", + "valid": true + }, + { + "description": "Valid - Bengali - ক (U+0995 Ka) unprefixed", + "data": "কlement", + "valid": true + }, + { + "description": "Valid - Bengali - prefixed", + "data": "বাংলা:উপাদান", + "valid": true + }, + { + "description": "Valid - Tamil - அ (U+0B85) unprefixed", + "data": "அlement", + "valid": true + }, + { + "description": "Valid - Tamil - க (U+0B95 Ka) unprefixed", + "data": "கlement", + "valid": true + }, + { + "description": "Valid - Tamil - prefixed", + "data": "தமிழ்:உறுப்பு", + "valid": true + }, + { + "description": "Valid - Thai - ก (U+0E01) unprefixed", + "data": "กlement", + "valid": true + }, + { + "description": "Valid - Thai - ข (U+0E02) unprefixed", + "data": "ขlement", + "valid": true + }, + { + "description": "Valid - Thai - ค (U+0E04) unprefixed", + "data": "คlement", + "valid": true + }, + { + "description": "Valid - Thai - ด (U+0E14) unprefixed", + "data": "ดlement", + "valid": true + }, + { + "description": "Valid - Thai - full word unprefixed", + "data": "องค์ประกอบ", + "valid": true + }, + { + "description": "Valid - Thai - prefixed", + "data": "ไทย:องค์ประกอบ", + "valid": true + }, + { + "description": "Valid - Tibetan - ཀ (U+0F40 Ka) unprefixed", + "data": "ཀlement", + "valid": true + }, + { + "description": "Valid - Tibetan - ག (U+0F42 Ga) unprefixed", + "data": "གlement", + "valid": true + }, + { + "description": "Valid - Tibetan - ད (U+0F51 Da) unprefixed", + "data": "དlement", + "valid": true + }, + { + "description": "Valid - Tibetan - prefixed", + "data": "ཀlement:དlement", + "valid": true + }, + { + "description": "Valid - Georgian - ა (U+10D0) unprefixed", + "data": "აlement", + "valid": true + }, + { + "description": "Valid - Georgian - prefixed", + "data": "ქართული:ელემენტი", + "valid": true + }, + { + "description": "Valid - Hangul - ᄀ (U+1100) unprefixed", + "data": "ᄀlement", + "valid": true + }, + { + "description": "Valid - Hangul - 가 (U+AC00) unprefixed", + "data": "가element", + "valid": true + }, + { + "description": "Valid - Hangul - full word unprefixed", + "data": "한글요소", + "valid": true + }, + { + "description": "Valid - Hangul - prefixed", + "data": "이름공간:요소", + "valid": true + }, + { + "description": "Valid - CJK Ideographic - 一 (U+4E00) unprefixed", + "data": "一element", + "valid": true + }, + { + "description": "Valid - CJK Ideographic - 中 (U+4E2D) unprefixed", + "data": "中element", + "valid": true + }, + { + "description": "Valid - CJK Ideographic - 文 (U+6587) unprefixed", + "data": "文element", + "valid": true + }, + { + "description": "Valid - CJK Ideographic - 日 (U+65E5) unprefixed", + "data": "日element", + "valid": true + }, + { + "description": "Valid - CJK Ideographic - full word unprefixed", + "data": "中文元素", + "valid": true + }, + { + "description": "Valid - CJK Ideographic - prefixed", + "data": "命名空间:元素", + "valid": true + }, + { + "description": "Valid - Mixed scripts unprefixed", + "data": "ns中文element한글", + "valid": true + }, + { + "description": "Valid - Mixed scripts prefixed", + "data": "ns中文:element한글", + "valid": true + }, + { + "description": "Valid - Unicode digit ० (U+0966) in continuation", + "data": "element०", + "valid": true + }, + { + "description": "Valid - Unicode digit १ (U+0967) in continuation", + "data": "element१", + "valid": true + }, + { + "description": "Valid - Unicode digit sequence in continuation", + "data": "element०१२३", + "valid": true + }, + { + "description": "Valid - Unicode digits in prefixed QName", + "data": "ns१२३:elem४५६", + "valid": true + }, + { + "description": "Valid - Arabic-Indic digit ٠ (U+0660) in continuation", + "data": "element٠", + "valid": true + }, + { + "description": "Valid - Arabic-Indic digits in continuation", + "data": "element٠١٢", + "valid": true + }, + { + "description": "Valid - Bengali digit ০ (U+09E6) in continuation", + "data": "element০", + "valid": true + }, + { + "description": "Valid - Thai digit ๐ (U+0E50) in continuation", + "data": "element๐", + "valid": true + }, + { + "description": "Valid - Tibetan digit ༠ (U+0F20) in continuation", + "data": "element༠", + "valid": true + }, + { + "description": "Valid - Combining acute accent (U+0301) unprefixed", + "data": "café", + "valid": true + }, + { + "description": "Valid - Combining grave accent (U+0300) unprefixed", + "data": "cafè", + "valid": true + }, + { + "description": "Valid - Combining tilde (U+0303) unprefixed", + "data": "año", + "valid": true + }, + { + "description": "Valid - Multiple combining characters unprefixed", + "data": "é̂lement", + "valid": true + }, + { + "description": "Valid - Combining characters prefixed", + "data": "café:naïve", + "valid": true + }, + { + "description": "Valid - Devanagari combining (U+093C) in continuation", + "data": "element़", + "valid": true + }, + { + "description": "Valid - Arabic combining (U+064B) in continuation", + "data": "elementً", + "valid": true + }, + { + "description": "Valid - Thai combining (U+0E31) in continuation", + "data": "elementั", + "valid": true + }, + { + "description": "Valid - Extender middle dot · (U+00B7) in continuation", + "data": "ele·ment", + "valid": true + }, + { + "description": "Valid - Extender ː (U+02D0) in continuation", + "data": "eleːment", + "valid": true + }, + { + "description": "Valid - Extender ˑ (U+02D1) in continuation", + "data": "eleˑment", + "valid": true + }, + { + "description": "Valid - Extender · (U+0387 Greek middle dot) in continuation", + "data": "ele·ment", + "valid": true + }, + { + "description": "Valid - Extender ـ (U+0640 Arabic tatweel) in continuation", + "data": "eleـment", + "valid": true + }, + { + "description": "Valid - Extender ๆ (U+0E46 Thai) in continuation", + "data": "eleๆment", + "valid": true + }, + { + "description": "Valid - Extender ໆ (U+0EC6 Lao) in continuation", + "data": "eleໆment", + "valid": true + }, + { + "description": "Valid - Extender 々 (U+3005 Ideographic iteration mark) in continuation", + "data": "ele々ment", + "valid": true + }, + { + "description": "Valid - Extender ゝ (U+309D Hiragana) in continuation", + "data": "eleゝment", + "valid": true + }, + { + "description": "Valid - Extender ゞ (U+309E Hiragana voiced) in continuation", + "data": "eleゞment", + "valid": true + }, + { + "description": "Valid - Extender ー (U+30FC Katakana) in continuation", + "data": "eleーment", + "valid": true + }, + { + "description": "Valid - Extender ヽ (U+30FD Katakana) in continuation", + "data": "eleヽment", + "valid": true + }, + { + "description": "Valid - Extender ヾ (U+30FE Katakana voiced) in continuation", + "data": "eleヾment", + "valid": true + }, + { + "description": "Valid - Extenders in prefixed QName", + "data": "ele·ment:na·me", + "valid": true + }, + { + "description": "Valid - Long complex unprefixed QName", + "data": "very.long-element_name.with-many.parts_123", + "valid": true + }, + { + "description": "Valid - Long complex prefixed QName", + "data": "very.long-namespace_123:very.long-element_name.with-many.parts", + "valid": true + }, + { + "description": "Invalid: empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid: unprefixed starts with digit", + "data": "123element", + "valid": false + }, + { + "description": "Invalid: unprefixed starts with hyphen", + "data": "-element", + "valid": false + }, + { + "description": "Invalid: unprefixed starts with dot", + "data": ".element", + "valid": false + }, + { + "description": "Invalid: unprefixed contains space", + "data": "my element", + "valid": false + }, + { + "description": "Invalid: unprefixed contains tab", + "data": "my\telement", + "valid": false + }, + { + "description": "Invalid: unprefixed contains newline", + "data": "my\nelement", + "valid": false + }, + { + "description": "Invalid: multiple colons", + "data": "ns:sub:element", + "valid": false + }, + { + "description": "Invalid: colon at start", + "data": ":element", + "valid": false + }, + { + "description": "Invalid: colon at end", + "data": "element:", + "valid": false + }, + { + "description": "Invalid: only colon", + "data": ":", + "valid": false + }, + { + "description": "Invalid: prefix starts with digit", + "data": "123ns:element", + "valid": false + }, + { + "description": "Invalid: prefix starts with hyphen", + "data": "-ns:element", + "valid": false + }, + { + "description": "Invalid: prefix starts with dot", + "data": ".ns:element", + "valid": false + }, + { + "description": "Invalid: local part starts with digit", + "data": "ns:123element", + "valid": false + }, + { + "description": "Invalid: local part starts with hyphen", + "data": "ns:-element", + "valid": false + }, + { + "description": "Invalid: local part starts with dot", + "data": "ns:.element", + "valid": false + }, + { + "description": "Invalid: unprefixed contains @", + "data": "my@element", + "valid": false + }, + { + "description": "Invalid: unprefixed contains #", + "data": "my#element", + "valid": false + }, + { + "description": "Invalid: unprefixed contains $", + "data": "my$element", + "valid": false + }, + { + "description": "Invalid: unprefixed contains %", + "data": "my%element", + "valid": false + }, + { + "description": "Invalid: unprefixed contains <", + "data": "my", + "data": "my>element", + "valid": false + }, + { + "description": "Invalid: prefix contains <", + "data": "ns<:element", + "valid": false + }, + { + "description": "Invalid: local part contains >", + "data": "ns:elem>ent", + "valid": false + }, + { + "description": "Invalid: unprefixed contains /", + "data": "my/element", + "valid": false + }, + { + "description": "Invalid: unprefixed contains \\", + "data": "my\\element", + "valid": false + }, + { + "description": "Invalid: unprefixed contains ?", + "data": "my?element", + "valid": false + }, + { + "description": "Invalid: unprefixed contains !", + "data": "my!element", + "valid": false + }, + { + "description": "Invalid: unprefixed contains ,", + "data": "my,element", + "valid": false + }, + { + "description": "Invalid: unprefixed contains ;", + "data": "my;element", + "valid": false + }, + { + "description": "Invalid: unprefixed contains \"", + "data": "my\"element", + "valid": false + }, + { + "description": "Invalid: unprefixed contains '", + "data": "my'element", + "valid": false + }, + { + "description": "Invalid: unprefixed contains (", + "data": "my(element", + "valid": false + }, + { + "description": "Invalid: unprefixed contains )", + "data": "my)element", + "valid": false + }, + { + "description": "Invalid: unprefixed contains [", + "data": "my[element", + "valid": false + }, + { + "description": "Invalid: unprefixed contains ]", + "data": "my]element", + "valid": false + }, + { + "description": "Invalid: unprefixed contains {", + "data": "my{element", + "valid": false + }, + { + "description": "Invalid: unprefixed contains }", + "data": "my}element", + "valid": false + }, + { + "description": "Invalid: prefix contains special character", + "data": "ns@:element", + "valid": false + }, + { + "description": "Invalid: local part contains special character", + "data": "ns:elem#ent", + "valid": false + }, + { + "description": "Invalid: unprefixed contains control character U+0001", + "data": "my\u0001element", + "valid": false + }, + { + "description": "Invalid: unprefixed contains null character U+0000", + "data": "my\u0000element", + "valid": false + }, + { + "description": "Invalid: unprefixed contains control character U+001F", + "data": "my\u001Felement", + "valid": false + }, + { + "description": "Invalid: prefix with space", + "data": "my ns:element", + "valid": false + }, + { + "description": "Invalid: local part with space", + "data": "ns:my element", + "valid": false + }, + { + "description": "Invalid: space before colon", + "data": "ns :element", + "valid": false + }, + { + "description": "Invalid: space after colon", + "data": "ns: element", + "valid": false + }, + { + "description": "Invalid: prefix with tab", + "data": "ns\t:element", + "valid": false + }, + { + "description": "Invalid: local part with tab", + "data": "ns:\telement", + "valid": false + }, + { + "description": "Invalid: prefix with newline", + "data": "ns\n:element", + "valid": false + }, + { + "description": "Invalid: local part with newline", + "data": "ns:\nelement", + "valid": false + }, + { + "description": "Type validation: not a string (number)", + "data": 123, + "valid": false + }, + { + "description": "Type validation: not a string (boolean)", + "data": true, + "valid": false + }, + { + "description": "Type validation: not a string (null)", + "data": null, + "valid": false + }, + { + "description": "Type validation: not a string (array)", + "data": [ "ns", "element" ], + "valid": false + }, + { + "description": "Type validation: not a string (object)", + "data": { + "namespace": "ns", + "localPart": "element" + }, + "valid": false + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/short/v1.test.json b/test/schemas/w3c/xmlschema/2001/short/v1.test.json new file mode 100644 index 00000000..81f0d472 --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/short/v1.test.json @@ -0,0 +1,75 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/short/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - positive one", + "data": 1, + "valid": true + }, + { + "description": "Valid - negative one", + "data": -1, + "valid": true + }, + { + "description": "Valid - maximum (32767)", + "data": 32767, + "valid": true + }, + { + "description": "Valid - minimum (-32768)", + "data": -32768, + "valid": true + }, + { + "description": "Valid - arbitrary positive", + "data": 1000, + "valid": true + }, + { + "description": "Valid - arbitrary negative", + "data": -1000, + "valid": true + }, + { + "description": "Invalid: too large (32768)", + "data": 32768, + "valid": false + }, + { + "description": "Invalid: too small (-32769)", + "data": -32769, + "valid": false + }, + { + "description": "Invalid: much too large", + "data": 100000, + "valid": false + }, + { + "description": "Invalid: decimal number", + "data": 1.5, + "valid": false + }, + { + "description": "Invalid: string", + "data": "1000", + "valid": false + }, + { + "description": "Invalid: boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid: null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/string/v1.test.json b/test/schemas/w3c/xmlschema/2001/string/v1.test.json new file mode 100644 index 00000000..9663ae57 --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/string/v1.test.json @@ -0,0 +1,70 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/string/v1.json", + "tests": [ + { + "description": "Valid - simple string", + "data": "hello world", + "valid": true + }, + { + "description": "Valid - empty string", + "data": "", + "valid": true + }, + { + "description": "Valid - string with special characters", + "data": "Hello, 世界! @#$%^&*()", + "valid": true + }, + { + "description": "Valid - string with whitespace", + "data": " spaces and\ttabs\nand newlines ", + "valid": true + }, + { + "description": "Valid - numeric string", + "data": "12345", + "valid": true + }, + { + "description": "Invalid - number type", + "data": 123, + "valid": false + }, + { + "description": "Invalid - boolean type", + "data": true, + "valid": false + }, + { + "description": "Invalid - null type", + "data": null, + "valid": false + }, + { + "description": "Invalid - object type", + "data": {}, + "valid": false + }, + { + "description": "Invalid - array type", + "data": [], + "valid": false + }, + { + "description": "Invalid - control character outside the XML Char production", + "valid": false, + "data": "a\u0007b" + }, + { + "description": "Invalid - the noncharacter U+FFFE", + "valid": false, + "data": "a￾b" + }, + { + "description": "Valid - tab, newline, and carriage return are XML Chars", + "valid": true, + "data": "a\t\n\rb" + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/time/v1.test.json b/test/schemas/w3c/xmlschema/2001/time/v1.test.json new file mode 100644 index 00000000..cb4bd041 --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/time/v1.test.json @@ -0,0 +1,100 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/time/v1.json", + "tests": [ + { + "description": "Valid - basic time", + "data": "14:30:00", + "valid": true + }, + { + "description": "Valid - time with Z timezone", + "data": "14:30:00Z", + "valid": true + }, + { + "description": "Valid - time with positive offset", + "data": "14:30:00+05:30", + "valid": true + }, + { + "description": "Valid - time with negative offset", + "data": "14:30:00-08:00", + "valid": true + }, + { + "description": "Valid - time with fractional seconds", + "data": "14:30:00.123", + "valid": true + }, + { + "description": "Valid - time with fractional seconds and timezone", + "data": "14:30:00.123456Z", + "valid": true + }, + { + "description": "Valid - midnight", + "data": "00:00:00", + "valid": true + }, + { + "description": "Valid - end of day", + "data": "23:59:59", + "valid": true + }, + { + "description": "Valid - 24:00:00", + "data": "24:00:00", + "valid": true + }, + { + "description": "Invalid - leap second is not an XSD time", + "data": "23:59:60", + "valid": false + }, + { + "description": "Invalid - hour 25", + "data": "25:00:00", + "valid": false + }, + { + "description": "Invalid - minute 60", + "data": "14:60:00", + "valid": false + }, + { + "description": "Invalid - second 61", + "data": "14:30:61", + "valid": false + }, + { + "description": "Invalid - 24:00:01", + "data": "24:00:01", + "valid": false + }, + { + "description": "Invalid - 24:01:00", + "data": "24:01:00", + "valid": false + }, + { + "description": "Invalid - missing seconds", + "data": "14:30", + "valid": false + }, + { + "description": "Invalid - single digit hour", + "data": "9:30:00", + "valid": false + }, + { + "description": "Invalid - number type", + "data": 143000, + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/token/v1.test.json b/test/schemas/w3c/xmlschema/2001/token/v1.test.json new file mode 100644 index 00000000..a397b10e --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/token/v1.test.json @@ -0,0 +1,427 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/token/v1.json", + "tests": [ + { + "description": "Valid - empty string", + "data": "", + "valid": true + }, + { + "description": "Valid - single word", + "data": "Hello", + "valid": true + }, + { + "description": "Valid - two words with single space", + "data": "Hello World", + "valid": true + }, + { + "description": "Valid - three words with single spaces", + "data": "This is text", + "valid": true + }, + { + "description": "Valid - multiple words with single spaces", + "data": "Multiple words separated by single spaces", + "valid": true + }, + { + "description": "Valid - sentence with punctuation", + "data": "Hello, World! How are you?", + "valid": true + }, + { + "description": "Valid - single space between punctuation", + "data": "First, second, third, fourth", + "valid": true + }, + { + "description": "Valid - text with numbers", + "data": "Order 123 confirmed", + "valid": true + }, + { + "description": "Valid - numbers only", + "data": "123456", + "valid": true + }, + { + "description": "Valid - hyphenated words", + "data": "well-known up-to-date", + "valid": true + }, + { + "description": "Valid - no spaces just hyphens", + "data": "no-spaces-just-hyphens", + "valid": true + }, + { + "description": "Valid - underscores", + "data": "snake_case_identifier", + "valid": true + }, + { + "description": "Valid - mixed case", + "data": "MixedCase123", + "valid": true + }, + { + "description": "Valid - dots", + "data": "file.name.extension", + "valid": true + }, + { + "description": "Valid - special characters without spaces", + "data": "@#$%^&*()", + "valid": true + }, + { + "description": "Valid - special characters with single spaces", + "data": "special @ characters # here", + "valid": true + }, + { + "description": "Valid - path-like without spaces", + "data": "path/to/file", + "valid": true + }, + { + "description": "Valid - URL-like", + "data": "https://example.com/path", + "valid": true + }, + { + "description": "Valid - email-like", + "data": "user@example.com", + "valid": true + }, + { + "description": "Valid - quoted text with single spaces", + "data": "He said \"hello\" and left", + "valid": true + }, + { + "description": "Valid - Unicode single word", + "data": "你好", + "valid": true + }, + { + "description": "Valid - Unicode with single spaces", + "data": "你好 世界", + "valid": true + }, + { + "description": "Valid - Unicode Greek with spaces", + "data": "Γεια σου κόσμε", + "valid": true + }, + { + "description": "Valid - Unicode Cyrillic with spaces", + "data": "Привет мир", + "valid": true + }, + { + "description": "Valid - Unicode Japanese with spaces", + "data": "こんにちは 世界", + "valid": true + }, + { + "description": "Valid - Unicode Korean with spaces", + "data": "안녕하세요 세계", + "valid": true + }, + { + "description": "Valid - Unicode Arabic with spaces", + "data": "مرحبا بالعالم", + "valid": true + }, + { + "description": "Valid - Unicode Hebrew with spaces", + "data": "שלום עולם", + "valid": true + }, + { + "description": "Valid - Unicode Emoji with single spaces", + "data": "Hello 👋 World 🌍", + "valid": true + }, + { + "description": "Valid - mixed scripts with single spaces", + "data": "Hello 世界 мир κόσμος", + "valid": true + }, + { + "description": "Valid - Latin Extended with single spaces", + "data": "Café résumé naïve", + "valid": true + }, + { + "description": "Valid - long sentence with single spaces", + "data": "This is a very long tokenized string with many words separated by single spaces only", + "valid": true + }, + { + "description": "Valid - single character", + "data": "a", + "valid": true + }, + { + "description": "Valid - single digit", + "data": "5", + "valid": true + }, + { + "description": "Invalid: leading space", + "data": " Hello", + "valid": false + }, + { + "description": "Invalid: trailing space", + "data": "Hello ", + "valid": false + }, + { + "description": "Invalid: leading and trailing spaces", + "data": " Hello ", + "valid": false + }, + { + "description": "Invalid: multiple leading spaces", + "data": " Hello", + "valid": false + }, + { + "description": "Invalid: multiple trailing spaces", + "data": "Hello ", + "valid": false + }, + { + "description": "Invalid: single space only", + "data": " ", + "valid": false + }, + { + "description": "Invalid: multiple spaces only", + "data": " ", + "valid": false + }, + { + "description": "Invalid: two consecutive spaces in middle", + "data": "Hello World", + "valid": false + }, + { + "description": "Invalid: three consecutive spaces in middle", + "data": "Hello World", + "valid": false + }, + { + "description": "Invalid: many consecutive spaces in middle", + "data": "Hello World", + "valid": false + }, + { + "description": "Invalid: double spaces between multiple words", + "data": "First second third", + "valid": false + }, + { + "description": "Invalid: mixed single and double spaces", + "data": "One two three four", + "valid": false + }, + { + "description": "Invalid: leading space with valid spacing after", + "data": " Hello World", + "valid": false + }, + { + "description": "Invalid: trailing space with valid spacing before", + "data": "Hello World ", + "valid": false + }, + { + "description": "Invalid: both leading and double space", + "data": " Hello World", + "valid": false + }, + { + "description": "Invalid: both trailing and double space", + "data": "Hello World ", + "valid": false + }, + { + "description": "Invalid: all spacing violations", + "data": " Hello World ", + "valid": false + }, + { + "description": "Invalid: double space in Unicode text", + "data": "你好 世界", + "valid": false + }, + { + "description": "Invalid: leading space in Unicode text", + "data": " 你好", + "valid": false + }, + { + "description": "Invalid: trailing space in Unicode text", + "data": "你好 ", + "valid": false + }, + { + "description": "Invalid: contains line feed at start", + "data": "\nHello", + "valid": false + }, + { + "description": "Invalid: contains line feed at end", + "data": "Hello\n", + "valid": false + }, + { + "description": "Invalid: contains line feed in middle", + "data": "Hello\nWorld", + "valid": false + }, + { + "description": "Invalid: contains multiple line feeds", + "data": "Line1\nLine2\nLine3", + "valid": false + }, + { + "description": "Invalid: only line feed", + "data": "\n", + "valid": false + }, + { + "description": "Invalid: contains carriage return at start", + "data": "\rHello", + "valid": false + }, + { + "description": "Invalid: contains carriage return at end", + "data": "Hello\r", + "valid": false + }, + { + "description": "Invalid: contains carriage return in middle", + "data": "Hello\rWorld", + "valid": false + }, + { + "description": "Invalid: contains multiple carriage returns", + "data": "Line1\rLine2\rLine3", + "valid": false + }, + { + "description": "Invalid: only carriage return", + "data": "\r", + "valid": false + }, + { + "description": "Invalid: contains CRLF", + "data": "Hello\r\nWorld", + "valid": false + }, + { + "description": "Invalid: contains tab at start", + "data": "\tHello", + "valid": false + }, + { + "description": "Invalid: contains tab at end", + "data": "Hello\t", + "valid": false + }, + { + "description": "Invalid: contains tab in middle", + "data": "Hello\tWorld", + "valid": false + }, + { + "description": "Invalid: contains multiple tabs", + "data": "Col1\tCol2\tCol3", + "valid": false + }, + { + "description": "Invalid: only tab", + "data": "\t", + "valid": false + }, + { + "description": "Invalid: tab used for spacing", + "data": "Hello\tWorld", + "valid": false + }, + { + "description": "Invalid: mixed whitespace with tab", + "data": "Hello \tWorld", + "valid": false + }, + { + "description": "Invalid: mixed whitespace with newline", + "data": "Hello \nWorld", + "valid": false + }, + { + "description": "Invalid: all prohibited characters", + "data": "Line1\r\nLine2\tTabbed", + "valid": false + }, + { + "description": "Invalid: newline in Unicode text", + "data": "你好\n世界", + "valid": false + }, + { + "description": "Invalid: tab in Unicode text", + "data": "你好\t世界", + "valid": false + }, + { + "description": "Invalid: multiline paragraph", + "data": "First line\nSecond line\nThird line", + "valid": false + }, + { + "description": "Invalid: leading space and newline", + "data": " Hello\nWorld", + "valid": false + }, + { + "description": "Invalid: trailing space and tab", + "data": "Hello\tWorld ", + "valid": false + }, + { + "description": "Type validation: not a string (number)", + "data": 123, + "valid": false + }, + { + "description": "Type validation: not a string (boolean)", + "data": true, + "valid": false + }, + { + "description": "Type validation: not a string (null)", + "data": null, + "valid": false + }, + { + "description": "Type validation: not a string (array)", + "data": [ "Hello", "World" ], + "valid": false + }, + { + "description": "Type validation: not a string (object)", + "data": { + "text": "Hello World" + }, + "valid": false + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/unsigned-byte/v1.test.json b/test/schemas/w3c/xmlschema/2001/unsigned-byte/v1.test.json new file mode 100644 index 00000000..4af1addf --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/unsigned-byte/v1.test.json @@ -0,0 +1,70 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/unsigned-byte/v1.json", + "tests": [ + { + "description": "Valid - zero (minimum)", + "data": 0, + "valid": true + }, + { + "description": "Valid - one", + "data": 1, + "valid": true + }, + { + "description": "Valid - maximum (255)", + "data": 255, + "valid": true + }, + { + "description": "Valid - mid-range (128)", + "data": 128, + "valid": true + }, + { + "description": "Valid - arbitrary", + "data": 42, + "valid": true + }, + { + "description": "Invalid: too large (256)", + "data": 256, + "valid": false + }, + { + "description": "Invalid: much too large", + "data": 1000, + "valid": false + }, + { + "description": "Invalid: negative one", + "data": -1, + "valid": false + }, + { + "description": "Invalid: negative value", + "data": -100, + "valid": false + }, + { + "description": "Invalid: decimal number", + "data": 1.5, + "valid": false + }, + { + "description": "Invalid: string", + "data": "42", + "valid": false + }, + { + "description": "Invalid: boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid: null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/unsigned-int/v1.test.json b/test/schemas/w3c/xmlschema/2001/unsigned-int/v1.test.json new file mode 100644 index 00000000..cbebceb1 --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/unsigned-int/v1.test.json @@ -0,0 +1,70 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/unsigned-int/v1.json", + "tests": [ + { + "description": "Valid - zero (minimum)", + "data": 0, + "valid": true + }, + { + "description": "Valid - one", + "data": 1, + "valid": true + }, + { + "description": "Valid - maximum (4294967295)", + "data": 4294967295, + "valid": true + }, + { + "description": "Valid - mid-range (2147483648)", + "data": 2147483648, + "valid": true + }, + { + "description": "Valid - arbitrary", + "data": 42, + "valid": true + }, + { + "description": "Invalid: too large (4294967296)", + "data": 4294967296, + "valid": false + }, + { + "description": "Invalid: much too large", + "data": 10000000000, + "valid": false + }, + { + "description": "Invalid: negative one", + "data": -1, + "valid": false + }, + { + "description": "Invalid: negative value", + "data": -1000, + "valid": false + }, + { + "description": "Invalid: decimal number", + "data": 1.5, + "valid": false + }, + { + "description": "Invalid: string", + "data": "42", + "valid": false + }, + { + "description": "Invalid: boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid: null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/unsigned-long/v1.test.json b/test/schemas/w3c/xmlschema/2001/unsigned-long/v1.test.json new file mode 100644 index 00000000..3922939d --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/unsigned-long/v1.test.json @@ -0,0 +1,105 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/unsigned-long/v1.json", + "tests": [ + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - one", + "data": 1, + "valid": true + }, + { + "description": "Valid - int64 max", + "data": 9223372036854775807, + "valid": true + }, + { + "description": "Valid - uint32 max", + "data": 4294967296, + "valid": true + }, + { + "description": "Valid - arbitrary", + "data": 42, + "valid": true + }, + { + "description": "Valid - large value", + "data": 123456789012345, + "valid": true + }, + { + "description": "Valid - uint64 maximum", + "data": 1.8446744073709551615e+19, + "valid": true + }, + { + "description": "Valid - just above int64 max", + "data": 9.223372036854775808e+18, + "valid": true + }, + { + "description": "Valid - near uint64 maximum", + "data": 1.8446744073709551614e+19, + "valid": true + }, + { + "description": "Valid - large mid-range value", + "data": 1.0000000000000000000e+19, + "valid": true + }, + { + "description": "Invalid - above uint64 maximum", + "data": 1.8446744073709551616e+19, + "valid": false + }, + { + "description": "Invalid - large above maximum", + "data": 2.0000000000000000000e+19, + "valid": false + }, + { + "description": "Invalid - negative one", + "data": -1, + "valid": false + }, + { + "description": "Invalid - negative value", + "data": -1000, + "valid": false + }, + { + "description": "Invalid - decimal point", + "data": 1.5, + "valid": false + }, + { + "description": "Invalid - string type", + "data": "42", + "valid": false + }, + { + "description": "Invalid - string with leading zeros", + "data": "01", + "valid": false + }, + { + "description": "Invalid - boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + } + ] +} diff --git a/test/schemas/w3c/xmlschema/2001/unsigned-short/v1.test.json b/test/schemas/w3c/xmlschema/2001/unsigned-short/v1.test.json new file mode 100644 index 00000000..e2b01b71 --- /dev/null +++ b/test/schemas/w3c/xmlschema/2001/unsigned-short/v1.test.json @@ -0,0 +1,70 @@ +{ + "target": "../../../../../../schemas/w3c/xmlschema/2001/unsigned-short/v1.json", + "tests": [ + { + "description": "Valid - zero (minimum)", + "data": 0, + "valid": true + }, + { + "description": "Valid - one", + "data": 1, + "valid": true + }, + { + "description": "Valid - maximum (65535)", + "data": 65535, + "valid": true + }, + { + "description": "Valid - mid-range (32768)", + "data": 32768, + "valid": true + }, + { + "description": "Valid - arbitrary", + "data": 1000, + "valid": true + }, + { + "description": "Invalid: too large (65536)", + "data": 65536, + "valid": false + }, + { + "description": "Invalid: much too large", + "data": 100000, + "valid": false + }, + { + "description": "Invalid: negative one", + "data": -1, + "valid": false + }, + { + "description": "Invalid: negative value", + "data": -1000, + "valid": false + }, + { + "description": "Invalid: decimal number", + "data": 1.5, + "valid": false + }, + { + "description": "Invalid: string", + "data": "1000", + "valid": false + }, + { + "description": "Invalid: boolean", + "data": true, + "valid": false + }, + { + "description": "Invalid: null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/area-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/area-item-type/v1.test.json new file mode 100644 index 00000000..6b47d382 --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/area-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/area-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/datetime-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/datetime-item-type/v1.test.json new file mode 100644 index 00000000..d7bc54db --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/datetime-item-type/v1.test.json @@ -0,0 +1,45 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/datetime-item-type/v1.json", + "tests": [ + { + "description": "Valid - datetime with timezone", + "data": "2023-12-31T23:59:59Z", + "valid": true + }, + { + "description": "Valid - datetime with offset", + "data": "2024-01-01T00:00:00-05:00", + "valid": true + }, + { + "description": "Valid - datetime without timezone", + "data": "2024-06-15T12:30:00", + "valid": true + }, + { + "description": "Valid - datetime with fractional seconds", + "data": "2024-01-01T12:00:00.123Z", + "valid": true + }, + { + "description": "Invalid - date only (no time)", + "data": "2023-12-31", + "valid": false + }, + { + "description": "Invalid - year 0000", + "data": "0000-01-01T00:00:00", + "valid": false + }, + { + "description": "Invalid - number type", + "data": 20231231, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/domain-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/domain-item-type/v1.test.json new file mode 100644 index 00000000..29c87999 --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/domain-item-type/v1.test.json @@ -0,0 +1,25 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/domain-item-type/v1.json", + "tests": [ + { + "description": "Valid - empty string", + "data": "", + "valid": true + }, + { + "description": "Invalid - non-empty string", + "data": "domain", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + }, + { + "description": "Invalid - number type", + "data": 0, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/electric-charge-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/electric-charge-item-type/v1.test.json new file mode 100644 index 00000000..8370d82b --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/electric-charge-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/electric-charge-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/electric-current-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/electric-current-item-type/v1.test.json new file mode 100644 index 00000000..b9f17493 --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/electric-current-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/electric-current-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/energy-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/energy-item-type/v1.test.json new file mode 100644 index 00000000..db1d383a --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/energy-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/energy-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/energy-per-monetary-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/energy-per-monetary-item-type/v1.test.json new file mode 100644 index 00000000..3de55f3a --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/energy-per-monetary-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/energy-per-monetary-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/escaped-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/escaped-item-type/v1.test.json new file mode 100644 index 00000000..7b892314 --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/escaped-item-type/v1.test.json @@ -0,0 +1,30 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/escaped-item-type/v1.json", + "tests": [ + { + "description": "Valid - simple string", + "data": "Some text content", + "valid": true + }, + { + "description": "Valid - empty string", + "data": "", + "valid": true + }, + { + "description": "Valid - long text", + "data": "This is a longer text example", + "valid": true + }, + { + "description": "Invalid - number type", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/flow-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/flow-item-type/v1.test.json new file mode 100644 index 00000000..8c42b858 --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/flow-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/flow-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/force-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/force-item-type/v1.test.json new file mode 100644 index 00000000..85803014 --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/force-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/force-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/frequency-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/frequency-item-type/v1.test.json new file mode 100644 index 00000000..2b8d1802 --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/frequency-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/frequency-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/ghg-emissions-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/ghg-emissions-item-type/v1.test.json new file mode 100644 index 00000000..1f083f14 --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/ghg-emissions-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/ghg-emissions-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/ghg-emissions-per-monetary-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/ghg-emissions-per-monetary-item-type/v1.test.json new file mode 100644 index 00000000..6e62ae10 --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/ghg-emissions-per-monetary-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/ghg-emissions-per-monetary-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/guidance-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/guidance-item-type/v1.test.json new file mode 100644 index 00000000..548e2c71 --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/guidance-item-type/v1.test.json @@ -0,0 +1,30 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/guidance-item-type/v1.json", + "tests": [ + { + "description": "Valid - simple string", + "data": "Some text content", + "valid": true + }, + { + "description": "Valid - empty string", + "data": "", + "valid": true + }, + { + "description": "Valid - long text", + "data": "This is a longer text example", + "valid": true + }, + { + "description": "Invalid - number type", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/gyear-list-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/gyear-list-item-type/v1.test.json new file mode 100644 index 00000000..36853d53 --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/gyear-list-item-type/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/gyear-list-item-type/v1.json", + "tests": [ + { + "description": "Valid - single year", + "valid": true, + "data": "2020" + }, + { + "description": "Valid - multiple years", + "valid": true, + "data": "2020 2021 2022" + }, + { + "description": "Valid - negative and long years", + "valid": true, + "data": "-1999 1000 12026" + }, + { + "description": "Valid - empty list", + "valid": true, + "data": "" + }, + { + "description": "Valid - surrounding whitespace", + "valid": true, + "data": " 2020 2021 " + }, + { + "description": "Invalid - timezone designator", + "valid": false, + "data": "2024Z" + }, + { + "description": "Invalid - three digit year", + "valid": false, + "data": "202" + }, + { + "description": "Invalid - comma separated", + "valid": false, + "data": "2020,2021" + }, + { + "description": "Invalid - JSON array of years", + "valid": false, + "data": [ "2020", "2021" ] + }, + { + "description": "Invalid - number", + "valid": false, + "data": 2020 + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/insolation-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/insolation-item-type/v1.test.json new file mode 100644 index 00000000..7956bcd5 --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/insolation-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/insolation-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/irradiance-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/irradiance-item-type/v1.test.json new file mode 100644 index 00000000..ae81b24a --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/irradiance-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/irradiance-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/length-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/length-item-type/v1.test.json new file mode 100644 index 00000000..69b24191 --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/length-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/length-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/mass-flow-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/mass-flow-item-type/v1.test.json new file mode 100644 index 00000000..94e37136 --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/mass-flow-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/mass-flow-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/mass-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/mass-item-type/v1.test.json new file mode 100644 index 00000000..24aea069 --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/mass-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/mass-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/memory-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/memory-item-type/v1.test.json new file mode 100644 index 00000000..9deebe0f --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/memory-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/memory-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/monetary-per-area-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/monetary-per-area-item-type/v1.test.json new file mode 100644 index 00000000..a7991d64 --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/monetary-per-area-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/monetary-per-area-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/monetary-per-duration-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/monetary-per-duration-item-type/v1.test.json new file mode 100644 index 00000000..15932395 --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/monetary-per-duration-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/monetary-per-duration-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/monetary-per-energy-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/monetary-per-energy-item-type/v1.test.json new file mode 100644 index 00000000..2a1225b5 --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/monetary-per-energy-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/monetary-per-energy-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/monetary-per-length-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/monetary-per-length-item-type/v1.test.json new file mode 100644 index 00000000..8bacd904 --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/monetary-per-length-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/monetary-per-length-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/monetary-per-mass-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/monetary-per-mass-item-type/v1.test.json new file mode 100644 index 00000000..2870eace --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/monetary-per-mass-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/monetary-per-mass-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/monetary-per-volume-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/monetary-per-volume-item-type/v1.test.json new file mode 100644 index 00000000..b001939d --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/monetary-per-volume-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/monetary-per-volume-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/no-decimals-monetary-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/no-decimals-monetary-item-type/v1.test.json new file mode 100644 index 00000000..b7b4401a --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/no-decimals-monetary-item-type/v1.test.json @@ -0,0 +1,88 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/no-decimals-monetary-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive integer monetary value", + "data": { + "value": 100, + "currency": "USD" + }, + "valid": true + }, + { + "description": "Valid - negative integer monetary value", + "data": { + "value": -25, + "currency": "EUR" + }, + "valid": true + }, + { + "description": "Valid - zero", + "data": { + "value": 0, + "currency": "GBP" + }, + "valid": true + }, + { + "description": "Valid - large integer", + "data": { + "value": 999999999, + "currency": "JPY" + }, + "valid": true + }, + { + "description": "Invalid - decimal value with cents", + "data": { + "value": 100.5, + "currency": "USD" + }, + "valid": false + }, + { + "description": "Invalid - small decimal", + "data": { + "value": 0.01, + "currency": "USD" + }, + "valid": false + }, + { + "description": "Invalid - negative decimal", + "data": { + "value": -10.99, + "currency": "EUR" + }, + "valid": false + }, + { + "description": "Invalid - missing currency", + "data": { + "value": 100 + }, + "valid": false + }, + { + "description": "Invalid - missing value", + "data": { + "currency": "USD" + }, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + }, + { + "description": "Invalid - string value", + "data": { + "value": "100", + "currency": "USD" + }, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/no-lang-string-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/no-lang-string-item-type/v1.test.json new file mode 100644 index 00000000..ce23922a --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/no-lang-string-item-type/v1.test.json @@ -0,0 +1,30 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/no-lang-string-item-type/v1.json", + "tests": [ + { + "description": "Valid - simple string", + "data": "Some text content", + "valid": true + }, + { + "description": "Valid - empty string", + "data": "", + "valid": true + }, + { + "description": "Valid - long text", + "data": "This is a longer text example", + "valid": true + }, + { + "description": "Invalid - number type", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/no-lang-token-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/no-lang-token-item-type/v1.test.json new file mode 100644 index 00000000..c16783a2 --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/no-lang-token-item-type/v1.test.json @@ -0,0 +1,25 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/no-lang-token-item-type/v1.json", + "tests": [ + { + "description": "Valid - simple token", + "data": "token123", + "valid": true + }, + { + "description": "Valid - another token", + "data": "IDENTIFIER", + "valid": true + }, + { + "description": "Invalid - number type", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/non-negative-monetary-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/non-negative-monetary-item-type/v1.test.json new file mode 100644 index 00000000..36536b8e --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/non-negative-monetary-item-type/v1.test.json @@ -0,0 +1,88 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/non-negative-monetary-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive monetary value", + "data": { + "value": 100.5, + "currency": "USD" + }, + "valid": true + }, + { + "description": "Valid - zero", + "data": { + "value": 0, + "currency": "EUR" + }, + "valid": true + }, + { + "description": "Valid - decimal value", + "data": { + "value": 25.75, + "currency": "GBP" + }, + "valid": true + }, + { + "description": "Valid - large positive value", + "data": { + "value": 1000000.0, + "currency": "JPY" + }, + "valid": true + }, + { + "description": "Valid - very small positive value", + "data": { + "value": 0.01, + "currency": "USD" + }, + "valid": true + }, + { + "description": "Invalid - negative value", + "data": { + "value": -10.5, + "currency": "USD" + }, + "valid": false + }, + { + "description": "Invalid - negative integer", + "data": { + "value": -1, + "currency": "EUR" + }, + "valid": false + }, + { + "description": "Invalid - large negative value", + "data": { + "value": -1000000.0, + "currency": "USD" + }, + "valid": false + }, + { + "description": "Invalid - missing currency", + "data": { + "value": 100 + }, + "valid": false + }, + { + "description": "Invalid - missing value", + "data": { + "currency": "USD" + }, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/non-negative-no-decimals-monetary-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/non-negative-no-decimals-monetary-item-type/v1.test.json new file mode 100644 index 00000000..93d9a20a --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/non-negative-no-decimals-monetary-item-type/v1.test.json @@ -0,0 +1,96 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/non-negative-no-decimals-monetary-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive integer monetary value", + "data": { + "value": 100, + "currency": "USD" + }, + "valid": true + }, + { + "description": "Valid - zero", + "data": { + "value": 0, + "currency": "EUR" + }, + "valid": true + }, + { + "description": "Valid - large positive integer", + "data": { + "value": 999999999, + "currency": "JPY" + }, + "valid": true + }, + { + "description": "Invalid - negative integer value", + "data": { + "value": -10, + "currency": "USD" + }, + "valid": false + }, + { + "description": "Invalid - negative large integer", + "data": { + "value": -999999, + "currency": "EUR" + }, + "valid": false + }, + { + "description": "Invalid - positive decimal value (has cents)", + "data": { + "value": 100.5, + "currency": "USD" + }, + "valid": false + }, + { + "description": "Invalid - small positive decimal", + "data": { + "value": 0.01, + "currency": "USD" + }, + "valid": false + }, + { + "description": "Invalid - negative decimal", + "data": { + "value": -10.99, + "currency": "EUR" + }, + "valid": false + }, + { + "description": "Invalid - missing currency", + "data": { + "value": 100 + }, + "valid": false + }, + { + "description": "Invalid - missing value", + "data": { + "currency": "USD" + }, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + }, + { + "description": "Invalid - string value", + "data": { + "value": "100", + "currency": "USD" + }, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/per-share-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/per-share-item-type/v1.test.json new file mode 100644 index 00000000..a5449f39 --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/per-share-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/per-share-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/percent-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/percent-item-type/v1.test.json new file mode 100644 index 00000000..30cf3911 --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/percent-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/percent-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/plane-angle-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/plane-angle-item-type/v1.test.json new file mode 100644 index 00000000..6213d922 --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/plane-angle-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/plane-angle-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/power-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/power-item-type/v1.test.json new file mode 100644 index 00000000..f8d1d858 --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/power-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/power-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/prefixed-content-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/prefixed-content-item-type/v1.test.json new file mode 100644 index 00000000..8728b8c5 --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/prefixed-content-item-type/v1.test.json @@ -0,0 +1,25 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/prefixed-content-item-type/v1.json", + "tests": [ + { + "description": "Valid - simple token", + "data": "token123", + "valid": true + }, + { + "description": "Valid - another token", + "data": "IDENTIFIER", + "valid": true + }, + { + "description": "Invalid - number type", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/pressure-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/pressure-item-type/v1.test.json new file mode 100644 index 00000000..a9f0ba1c --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/pressure-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/pressure-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/speed-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/speed-item-type/v1.test.json new file mode 100644 index 00000000..98b32b29 --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/speed-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/speed-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/sqname-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/sqname-item-type/v1.test.json new file mode 100644 index 00000000..5e6e44e6 --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/sqname-item-type/v1.test.json @@ -0,0 +1,80 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/sqname-item-type/v1.json", + "tests": [ + { + "description": "Valid - simple QName", + "data": "xbrli:monetary", + "valid": true + }, + { + "description": "Valid - currency code QName", + "data": "iso4217:USD", + "valid": true + }, + { + "description": "Valid - custom prefix", + "data": "custom:MyElement", + "valid": true + }, + { + "description": "Valid - underscore in prefix", + "data": "my_prefix:element", + "valid": true + }, + { + "description": "Valid - hyphen in local part", + "data": "ns:my-element", + "valid": true + }, + { + "description": "Valid - single character prefix", + "data": "a:element", + "valid": true + }, + { + "description": "Invalid - no colon separator", + "data": "xbrlimonetary", + "valid": false + }, + { + "description": "Invalid - starts with number", + "data": "123:element", + "valid": false + }, + { + "description": "Invalid - starts with colon", + "data": ":element", + "valid": false + }, + { + "description": "Invalid - contains space in prefix", + "data": "my prefix:element", + "valid": false + }, + { + "description": "Invalid - contains space after colon", + "data": "xbrli: monetary", + "valid": false + }, + { + "description": "Valid - multiple colons in local part allowed", + "data": "ns:my:element", + "valid": true + }, + { + "description": "Invalid - empty local part", + "data": "ns:", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + }, + { + "description": "Invalid - number type", + "data": 123, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/sqnames-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/sqnames-item-type/v1.test.json new file mode 100644 index 00000000..8f525a6b --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/sqnames-item-type/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/sqnames-item-type/v1.json", + "tests": [ + { + "description": "Valid - single QName", + "data": [ "xbrli:monetary" ], + "valid": true + }, + { + "description": "Valid - multiple QNames", + "data": [ "iso4217:USD", "custom:MyElement" ], + "valid": true + }, + { + "description": "Valid - three QNames", + "data": [ "ns1:foo", "ns2:bar", "ns3:baz" ], + "valid": true + }, + { + "description": "Valid - empty array", + "data": [], + "valid": true + }, + { + "description": "Valid - QNames with colons in local part", + "data": [ "ns:my:element", "prefix:a:b:c" ], + "valid": true + }, + { + "description": "Invalid - array with non-QName string", + "data": [ "xbrlimonetary", "custom:Element" ], + "valid": false + }, + { + "description": "Invalid - array with item starting with number", + "data": [ "123:element", "ns:foo" ], + "valid": false + }, + { + "description": "Invalid - not an array", + "data": "xbrli:monetary", + "valid": false + }, + { + "description": "Invalid - array with null item", + "data": [ "xbrli:monetary", null ], + "valid": false + }, + { + "description": "Invalid - array with number item", + "data": [ "xbrli:monetary", 123 ], + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/temperature-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/temperature-item-type/v1.test.json new file mode 100644 index 00000000..ef56488f --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/temperature-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/temperature-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/text-block-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/text-block-item-type/v1.test.json new file mode 100644 index 00000000..7e1e070c --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/text-block-item-type/v1.test.json @@ -0,0 +1,30 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/text-block-item-type/v1.json", + "tests": [ + { + "description": "Valid - simple string", + "data": "Some text content", + "valid": true + }, + { + "description": "Valid - empty string", + "data": "", + "valid": true + }, + { + "description": "Valid - long text", + "data": "This is a longer text example", + "valid": true + }, + { + "description": "Invalid - number type", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/voltage-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/voltage-item-type/v1.test.json new file mode 100644 index 00000000..0415ccb0 --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/voltage-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/voltage-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/volume-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/volume-item-type/v1.test.json new file mode 100644 index 00000000..75deeaf1 --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/volume-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/volume-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/volume-per-monetary-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/volume-per-monetary-item-type/v1.test.json new file mode 100644 index 00000000..77dffdf3 --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/volume-per-monetary-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/volume-per-monetary-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/weight-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/weight-item-type/v1.test.json new file mode 100644 index 00000000..e8130a9d --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/weight-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/weight-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/xml-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/xml-item-type/v1.test.json new file mode 100644 index 00000000..dd99e9d7 --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/xml-item-type/v1.test.json @@ -0,0 +1,30 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/xml-item-type/v1.json", + "tests": [ + { + "description": "Valid - simple string", + "data": "Some text content", + "valid": true + }, + { + "description": "Valid - empty string", + "data": "", + "valid": true + }, + { + "description": "Valid - long text", + "data": "This is a longer text example", + "valid": true + }, + { + "description": "Invalid - number type", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/dtr/type/2024-01-31/xml-nodes-item-type/v1.test.json b/test/schemas/xbrl/dtr/type/2024-01-31/xml-nodes-item-type/v1.test.json new file mode 100644 index 00000000..6bd9f989 --- /dev/null +++ b/test/schemas/xbrl/dtr/type/2024-01-31/xml-nodes-item-type/v1.test.json @@ -0,0 +1,30 @@ +{ + "target": "../../../../../../../schemas/xbrl/dtr/type/2024-01-31/xml-nodes-item-type/v1.json", + "tests": [ + { + "description": "Valid - simple string", + "data": "Some text content", + "valid": true + }, + { + "description": "Valid - empty string", + "data": "", + "valid": true + }, + { + "description": "Valid - long text", + "data": "This is a longer text example", + "valid": true + }, + { + "description": "Invalid - number type", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/any-uri-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/any-uri-item-type/v1.test.json new file mode 100644 index 00000000..eab2ec60 --- /dev/null +++ b/test/schemas/xbrl/instance/2003/any-uri-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/any-uri-item-type/v1.json", + "tests": [ + { + "description": "Valid - http URL", + "data": "http://example.com", + "valid": true + }, + { + "description": "Valid - https URL", + "data": "https://example.com/path?query=value", + "valid": true + }, + { + "description": "Valid - relative URI", + "data": "../path/to/resource", + "valid": true + }, + { + "description": "Valid - empty string", + "data": "", + "valid": true + }, + { + "description": "Valid - spaces are within the XSD anyURI lexical space", + "data": "http://example.com/path with spaces", + "valid": true + }, + { + "description": "Invalid - number instead of string", + "data": 123, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/base64-binary-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/base64-binary-item-type/v1.test.json new file mode 100644 index 00000000..1e60e945 --- /dev/null +++ b/test/schemas/xbrl/instance/2003/base64-binary-item-type/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/base64-binary-item-type/v1.json", + "tests": [ + { + "description": "Valid - base64 encoded string", + "data": "SGVsbG8gV29ybGQ=", + "valid": true + }, + { + "description": "Valid - base64 with double padding", + "data": "YQ==", + "valid": true + }, + { + "description": "Valid - empty string", + "data": "", + "valid": true + }, + { + "description": "Valid - longer base64 string", + "data": "VGhpcyBpcyBhIHRlc3Q=", + "valid": true + }, + { + "description": "Invalid - invalid base64 characters", + "data": "Hello@World", + "valid": false + }, + { + "description": "Invalid - improper padding", + "data": "SGVsbG8", + "valid": false + }, + { + "description": "Invalid - number instead of string", + "data": 123, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/boolean-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/boolean-item-type/v1.test.json new file mode 100644 index 00000000..b219a0fe --- /dev/null +++ b/test/schemas/xbrl/instance/2003/boolean-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/boolean-item-type/v1.json", + "tests": [ + { + "description": "Valid - true", + "data": true, + "valid": true + }, + { + "description": "Valid - false", + "data": false, + "valid": true + }, + { + "description": "Invalid - string 'true'", + "data": "true", + "valid": false + }, + { + "description": "Invalid - string 'false'", + "data": "false", + "valid": false + }, + { + "description": "Invalid - number 1", + "data": 1, + "valid": false + }, + { + "description": "Invalid - number 0", + "data": 0, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/byte-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/byte-item-type/v1.test.json new file mode 100644 index 00000000..6eab6a8f --- /dev/null +++ b/test/schemas/xbrl/instance/2003/byte-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/byte-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive byte", + "data": 42, + "valid": true + }, + { + "description": "Valid - negative byte", + "data": -10, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Invalid - string instead of number", + "data": "42", + "valid": false + }, + { + "description": "Invalid - decimal value", + "data": 4.2, + "valid": false + }, + { + "description": "Invalid - non-numeric string", + "data": "abc", + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/date-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/date-item-type/v1.test.json new file mode 100644 index 00000000..0e32bb5a --- /dev/null +++ b/test/schemas/xbrl/instance/2003/date-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/date-item-type/v1.json", + "tests": [ + { + "description": "Valid - basic date", + "data": "2023-10-15", + "valid": true + }, + { + "description": "Valid - date with timezone", + "data": "2023-10-15Z", + "valid": true + }, + { + "description": "Valid - date with offset", + "data": "2023-10-15-05:00", + "valid": true + }, + { + "description": "Valid - negative year", + "data": "-0001-01-01", + "valid": true + }, + { + "description": "Invalid - invalid month", + "data": "2023-13-01", + "valid": false + }, + { + "description": "Invalid - random string", + "data": "not-a-date", + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/date-time-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/date-time-item-type/v1.test.json new file mode 100644 index 00000000..8f2754ef --- /dev/null +++ b/test/schemas/xbrl/instance/2003/date-time-item-type/v1.test.json @@ -0,0 +1,45 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/date-time-item-type/v1.json", + "tests": [ + { + "description": "Valid - date format", + "data": "2002-10-10", + "valid": true + }, + { + "description": "Valid - dateTime with timezone offset", + "data": "2002-10-10T12:00:00-05:00", + "valid": true + }, + { + "description": "Valid - date with Z timezone", + "data": "2002-10-10Z", + "valid": true + }, + { + "description": "Valid - dateTime without timezone", + "data": "2002-05-30T09:00:00", + "valid": true + }, + { + "description": "Valid - dateTime with Z timezone", + "data": "2023-01-15T14:30:00Z", + "valid": true + }, + { + "description": "Invalid - invalid month", + "data": "2002-13-10", + "valid": false + }, + { + "description": "Invalid - random string", + "data": "not-a-date-or-time", + "valid": false + }, + { + "description": "Invalid - number instead of string", + "data": 20021010, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/decimal-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/decimal-item-type/v1.test.json new file mode 100644 index 00000000..3fb750d8 --- /dev/null +++ b/test/schemas/xbrl/instance/2003/decimal-item-type/v1.test.json @@ -0,0 +1,65 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/decimal-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 123.45, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -67.89, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - high precision decimal", + "data": 3.14159, + "valid": true + }, + { + "description": "Valid - arbitrary precision 20 digit integer", + "data": 1.2345678901234567890e+19, + "valid": true + }, + { + "description": "Valid - arbitrary precision 25 digits", + "data": 1.234567890123456789012345e+24, + "valid": true + }, + { + "description": "Valid - arbitrary precision with decimals", + "data": 1.234567890123456800e+17, + "valid": true + }, + { + "description": "Valid - arbitrary precision negative", + "data": -1.2345678901234567890e+19, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "123.45", + "valid": false + }, + { + "description": "Invalid - text", + "data": "abc", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/double-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/double-item-type/v1.test.json new file mode 100644 index 00000000..893687f1 --- /dev/null +++ b/test/schemas/xbrl/instance/2003/double-item-type/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/double-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive double", + "data": 123.45, + "valid": true + }, + { + "description": "Valid - negative double", + "data": -67.89, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0.0, + "valid": true + }, + { + "description": "Valid - integer as double", + "data": 42, + "valid": true + }, + { + "description": "Invalid - string instead of number", + "data": "123.45", + "valid": false + }, + { + "description": "Invalid - non-numeric string", + "data": "abc", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/duration-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/duration-item-type/v1.test.json new file mode 100644 index 00000000..6a1cf84a --- /dev/null +++ b/test/schemas/xbrl/instance/2003/duration-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/duration-item-type/v1.json", + "tests": [ + { + "description": "Valid - duration in days", + "data": "P1D", + "valid": true + }, + { + "description": "Valid - duration in years and months", + "data": "P1Y2M", + "valid": true + }, + { + "description": "Valid - duration with time component", + "data": "PT5H30M", + "valid": true + }, + { + "description": "Valid - negative duration", + "data": "-P1D", + "valid": true + }, + { + "description": "Invalid - missing P prefix", + "data": "1D", + "valid": false + }, + { + "description": "Invalid - random string", + "data": "not-a-duration", + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/float-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/float-item-type/v1.test.json new file mode 100644 index 00000000..abb91a52 --- /dev/null +++ b/test/schemas/xbrl/instance/2003/float-item-type/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/float-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive float", + "data": 123.45, + "valid": true + }, + { + "description": "Valid - negative float", + "data": -67.89, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0.0, + "valid": true + }, + { + "description": "Valid - integer as float", + "data": 42, + "valid": true + }, + { + "description": "Invalid - string instead of number", + "data": "123.45", + "valid": false + }, + { + "description": "Invalid - non-numeric string", + "data": "abc", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/fraction-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/fraction-item-type/v1.test.json new file mode 100644 index 00000000..4a2ce54d --- /dev/null +++ b/test/schemas/xbrl/instance/2003/fraction-item-type/v1.test.json @@ -0,0 +1,150 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/fraction-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive numerator and positive denominator", + "data": [ 1.5, 2 ], + "valid": true + }, + { + "description": "Valid - negative numerator and positive denominator", + "data": [ -100, 3.5 ], + "valid": true + }, + { + "description": "Valid - positive numerator and negative denominator", + "data": [ 5, -2.5 ], + "valid": true + }, + { + "description": "Valid - negative numerator and negative denominator", + "data": [ -7, -3 ], + "valid": true + }, + { + "description": "Valid - zero numerator with positive denominator", + "data": [ 0, 1 ], + "valid": true + }, + { + "description": "Valid - zero numerator with negative denominator", + "data": [ 0, -5 ], + "valid": true + }, + { + "description": "Valid - zero numerator as decimal with positive denominator", + "data": [ 0.0, 2 ], + "valid": true + }, + { + "description": "Valid - whole number numerator and denominator", + "data": [ 3, 4 ], + "valid": true + }, + { + "description": "Valid - large positive values", + "data": [ 1000000.0, 123457 ], + "valid": true + }, + { + "description": "Valid - large negative denominator", + "data": [ 1, -1000000.0 ], + "valid": true + }, + { + "description": "Valid - very small fractional denominator", + "data": [ 100, 0.001 ], + "valid": true + }, + { + "description": "Valid - very small negative fractional denominator", + "data": [ 100, -0.001 ], + "valid": true + }, + { + "description": "Valid - arbitrary precision numerator 20 digits", + "data": [ 1.2345678901234567890e+19, 1 ], + "valid": true + }, + { + "description": "Valid - arbitrary precision denominator 20 digits", + "data": [ 1, 1.2345678901234567890e+19 ], + "valid": true + }, + { + "description": "Valid - arbitrary precision both values 25 digits", + "data": [ 1.234567890123456789012345e+24, 9.876543210987654321098765e+24 ], + "valid": true + }, + { + "description": "Valid - arbitrary precision numerator with decimals", + "data": [ 1.234567890123456800e+17, 1 ], + "valid": true + }, + { + "description": "Valid - arbitrary precision denominator with decimals", + "data": [ 1, 1.234567890123456800e+17 ], + "valid": true + }, + { + "description": "Valid - arbitrary precision negative numerator", + "data": [ -1.2345678901234567890e+19, 1 ], + "valid": true + }, + { + "description": "Invalid - zero denominator", + "data": [ 1, 0 ], + "valid": false + }, + { + "description": "Invalid - zero denominator as 0.0", + "data": [ 1, 0.0 ], + "valid": false + }, + { + "description": "Invalid - zero denominator as negative zero", + "data": [ 3, 0 ], + "valid": false + }, + { + "description": "Invalid - only one element", + "data": [ 1 ], + "valid": false + }, + { + "description": "Invalid - three elements", + "data": [ 1, 2, 3 ], + "valid": false + }, + { + "description": "Invalid - empty array", + "data": [], + "valid": false + }, + { + "description": "Invalid - string types instead of numbers", + "data": [ "1.5", "2" ], + "valid": false + }, + { + "description": "Invalid - string numerator", + "data": [ "abc", 2 ], + "valid": false + }, + { + "description": "Invalid - string denominator", + "data": [ 1, "xyz" ], + "valid": false + }, + { + "description": "Invalid - null numerator", + "data": [ null, 1 ], + "valid": false + }, + { + "description": "Invalid - null denominator", + "data": [ 1, null ], + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/g-day-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/g-day-item-type/v1.test.json new file mode 100644 index 00000000..49020351 --- /dev/null +++ b/test/schemas/xbrl/instance/2003/g-day-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/g-day-item-type/v1.json", + "tests": [ + { + "description": "Valid - basic day", + "data": "---15", + "valid": true + }, + { + "description": "Valid - day with timezone", + "data": "---15Z", + "valid": true + }, + { + "description": "Valid - day with offset", + "data": "---15-05:00", + "valid": true + }, + { + "description": "Valid - first day of month", + "data": "---01", + "valid": true + }, + { + "description": "Invalid - day 00", + "data": "---00", + "valid": false + }, + { + "description": "Invalid - day 32", + "data": "---32", + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/g-month-day-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/g-month-day-item-type/v1.test.json new file mode 100644 index 00000000..83ebf74d --- /dev/null +++ b/test/schemas/xbrl/instance/2003/g-month-day-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/g-month-day-item-type/v1.json", + "tests": [ + { + "description": "Valid - basic month-day", + "data": "--10-15", + "valid": true + }, + { + "description": "Valid - month-day with timezone", + "data": "--10-15Z", + "valid": true + }, + { + "description": "Valid - month-day with offset", + "data": "--10-15-05:00", + "valid": true + }, + { + "description": "Valid - February 29th", + "data": "--02-29", + "valid": true + }, + { + "description": "Invalid - invalid month", + "data": "--13-01", + "valid": false + }, + { + "description": "Invalid - random string", + "data": "not-a-month-day", + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/g-month-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/g-month-item-type/v1.test.json new file mode 100644 index 00000000..0744dc1d --- /dev/null +++ b/test/schemas/xbrl/instance/2003/g-month-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/g-month-item-type/v1.json", + "tests": [ + { + "description": "Valid - basic month", + "data": "--05", + "valid": true + }, + { + "description": "Valid - month with timezone", + "data": "--05Z", + "valid": true + }, + { + "description": "Valid - month with offset", + "data": "--05-05:00", + "valid": true + }, + { + "description": "Valid - December", + "data": "--12", + "valid": true + }, + { + "description": "Invalid - month 00", + "data": "--00", + "valid": false + }, + { + "description": "Invalid - month 13", + "data": "--13", + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/g-year-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/g-year-item-type/v1.test.json new file mode 100644 index 00000000..a6e50b56 --- /dev/null +++ b/test/schemas/xbrl/instance/2003/g-year-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/g-year-item-type/v1.json", + "tests": [ + { + "description": "Valid - basic year", + "data": "2023", + "valid": true + }, + { + "description": "Valid - year with timezone", + "data": "2023Z", + "valid": true + }, + { + "description": "Valid - year with offset", + "data": "2023-05:00", + "valid": true + }, + { + "description": "Valid - negative year", + "data": "-0001", + "valid": true + }, + { + "description": "Invalid - year too short", + "data": "23", + "valid": false + }, + { + "description": "Invalid - random string", + "data": "not-a-year", + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/g-year-month-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/g-year-month-item-type/v1.test.json new file mode 100644 index 00000000..045ec45c --- /dev/null +++ b/test/schemas/xbrl/instance/2003/g-year-month-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/g-year-month-item-type/v1.json", + "tests": [ + { + "description": "Valid - basic year-month", + "data": "2023-10", + "valid": true + }, + { + "description": "Valid - year-month with timezone", + "data": "2023-10Z", + "valid": true + }, + { + "description": "Valid - year-month with offset", + "data": "2023-10-05:00", + "valid": true + }, + { + "description": "Valid - negative year", + "data": "-0001-01", + "valid": true + }, + { + "description": "Invalid - invalid month", + "data": "2023-13", + "valid": false + }, + { + "description": "Invalid - random string", + "data": "not-a-year-month", + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/hex-binary-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/hex-binary-item-type/v1.test.json new file mode 100644 index 00000000..cb296250 --- /dev/null +++ b/test/schemas/xbrl/instance/2003/hex-binary-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/hex-binary-item-type/v1.json", + "tests": [ + { + "description": "Valid - hex binary", + "data": "48656C6C6F", + "valid": true + }, + { + "description": "Valid - lowercase hex", + "data": "deadbeef", + "valid": true + }, + { + "description": "Valid - empty string", + "data": "", + "valid": true + }, + { + "description": "Invalid - odd number of characters", + "data": "123", + "valid": false + }, + { + "description": "Invalid - non-hex characters", + "data": "GHIJ", + "valid": false + }, + { + "description": "Invalid - number instead of string", + "data": 123, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/int-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/int-item-type/v1.test.json new file mode 100644 index 00000000..e2f47f87 --- /dev/null +++ b/test/schemas/xbrl/instance/2003/int-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/int-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive int", + "data": 42, + "valid": true + }, + { + "description": "Valid - negative int", + "data": -100, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Invalid - string instead of number", + "data": "42", + "valid": false + }, + { + "description": "Invalid - decimal value", + "data": 42.5, + "valid": false + }, + { + "description": "Invalid - non-numeric string", + "data": "abc", + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/integer-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/integer-item-type/v1.test.json new file mode 100644 index 00000000..b69aa3ea --- /dev/null +++ b/test/schemas/xbrl/instance/2003/integer-item-type/v1.test.json @@ -0,0 +1,75 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/integer-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive integer", + "data": 42, + "valid": true + }, + { + "description": "Valid - negative integer", + "data": -100, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large integer", + "data": 999999999999999, + "valid": true + }, + { + "description": "Valid - arbitrary precision beyond int64", + "data": 1.2345678901234567890e+19, + "valid": true + }, + { + "description": "Valid - arbitrary precision large positive", + "data": 9.9999999999999999999e+19, + "valid": true + }, + { + "description": "Valid - arbitrary precision large negative", + "data": -9.9999999999999999999e+19, + "valid": true + }, + { + "description": "Valid - arbitrary precision 25 digits positive", + "data": 1.234567890123456789012345e+24, + "valid": true + }, + { + "description": "Valid - arbitrary precision 25 digits negative", + "data": -1.234567890123456789012345e+24, + "valid": true + }, + { + "description": "Invalid - decimal value", + "data": 123.45, + "valid": false + }, + { + "description": "Invalid - string type", + "data": "42", + "valid": false + }, + { + "description": "Invalid - non-numeric string", + "data": "abc", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + }, + { + "description": "Invalid - boolean", + "data": true, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/language-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/language-item-type/v1.test.json new file mode 100644 index 00000000..882905c9 --- /dev/null +++ b/test/schemas/xbrl/instance/2003/language-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/language-item-type/v1.json", + "tests": [ + { + "description": "Valid - simple language code", + "data": "en", + "valid": true + }, + { + "description": "Valid - language with region", + "data": "en-US", + "valid": true + }, + { + "description": "Valid - complex language tag", + "data": "zh-Hant-HK", + "valid": true + }, + { + "description": "Valid - lowercase language code", + "data": "fr", + "valid": true + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - invalid characters", + "data": "en_US", + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/long-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/long-item-type/v1.test.json new file mode 100644 index 00000000..e9a7c0ab --- /dev/null +++ b/test/schemas/xbrl/instance/2003/long-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/long-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive long", + "data": 123456789, + "valid": true + }, + { + "description": "Valid - negative long", + "data": -987654321, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Invalid - string instead of number", + "data": "123456789", + "valid": false + }, + { + "description": "Invalid - decimal value", + "data": 123.45, + "valid": false + }, + { + "description": "Invalid - non-numeric string", + "data": "abc", + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/monetary-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/monetary-item-type/v1.test.json new file mode 100644 index 00000000..a17236e4 --- /dev/null +++ b/test/schemas/xbrl/instance/2003/monetary-item-type/v1.test.json @@ -0,0 +1,154 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/monetary-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive monetary value in USD", + "data": { + "value": 1234.56, + "currency": "USD" + }, + "valid": true + }, + { + "description": "Valid - negative monetary value in EUR", + "data": { + "value": -789.12, + "currency": "EUR" + }, + "valid": true + }, + { + "description": "Valid - zero in GBP", + "data": { + "value": 0, + "currency": "GBP" + }, + "valid": true + }, + { + "description": "Valid - high precision in JPY", + "data": { + "value": 12345.1, + "currency": "JPY" + }, + "valid": true + }, + { + "description": "Valid - large value in CHF", + "data": { + "value": 1000000000.0, + "currency": "CHF" + }, + "valid": true + }, + { + "description": "Valid - small fractional value in CAD", + "data": { + "value": 0.01, + "currency": "CAD" + }, + "valid": true + }, + { + "description": "Valid - arbitrary precision 20 digits in USD", + "data": { + "value": 1.2345678901234567890e+19, + "currency": "USD" + }, + "valid": true + }, + { + "description": "Valid - arbitrary precision 25 digits in EUR", + "data": { + "value": 1.234567890123456789012345e+24, + "currency": "EUR" + }, + "valid": true + }, + { + "description": "Valid - arbitrary precision with decimals in GBP", + "data": { + "value": 1.234567890123456800e+17, + "currency": "GBP" + }, + "valid": true + }, + { + "description": "Valid - arbitrary precision negative in JPY", + "data": { + "value": -1.2345678901234567890e+19, + "currency": "JPY" + }, + "valid": true + }, + { + "description": "Invalid - string type for value instead of number", + "data": { + "value": "123.45", + "currency": "USD" + }, + "valid": false + }, + { + "description": "Invalid - text in value", + "data": { + "value": "abc", + "currency": "USD" + }, + "valid": false + }, + { + "description": "Invalid - empty string value", + "data": { + "value": "", + "currency": "USD" + }, + "valid": false + }, + { + "description": "Invalid - missing value field", + "data": { + "currency": "USD" + }, + "valid": false + }, + { + "description": "Invalid - missing currency field", + "data": { + "value": 100.5 + }, + "valid": false + }, + { + "description": "Invalid - invalid currency code", + "data": { + "value": 100.5, + "currency": "INVALID" + }, + "valid": false + }, + { + "description": "Invalid - lowercase currency code", + "data": { + "value": 100.5, + "currency": "usd" + }, + "valid": false + }, + { + "description": "Invalid - not an object", + "data": "1234.56", + "valid": false + }, + { + "description": "Invalid - null value", + "data": null, + "valid": false + }, + { + "description": "Invalid - array instead of object", + "data": [ 100.5, "USD" ], + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/name-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/name-item-type/v1.test.json new file mode 100644 index 00000000..099b465f --- /dev/null +++ b/test/schemas/xbrl/instance/2003/name-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/name-item-type/v1.json", + "tests": [ + { + "description": "Valid - simple name", + "data": "elementName", + "valid": true + }, + { + "description": "Valid - name with colon", + "data": "xs:string", + "valid": true + }, + { + "description": "Valid - name with underscore", + "data": "my_element", + "valid": true + }, + { + "description": "Valid - name with dash", + "data": "my-element", + "valid": true + }, + { + "description": "Invalid - name starting with number", + "data": "1element", + "valid": false + }, + { + "description": "Invalid - name with space", + "data": "my element", + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/ncname-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/ncname-item-type/v1.test.json new file mode 100644 index 00000000..ac976aa7 --- /dev/null +++ b/test/schemas/xbrl/instance/2003/ncname-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/ncname-item-type/v1.json", + "tests": [ + { + "description": "Valid - simple NCName", + "data": "elementName", + "valid": true + }, + { + "description": "Valid - NCName with underscore", + "data": "my_element", + "valid": true + }, + { + "description": "Valid - NCName with dash", + "data": "my-element", + "valid": true + }, + { + "description": "Valid - NCName starting with underscore", + "data": "_element", + "valid": true + }, + { + "description": "Invalid - NCName with colon", + "data": "xs:string", + "valid": false + }, + { + "description": "Invalid - NCName starting with number", + "data": "1element", + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/negative-integer-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/negative-integer-item-type/v1.test.json new file mode 100644 index 00000000..2f0f2fd5 --- /dev/null +++ b/test/schemas/xbrl/instance/2003/negative-integer-item-type/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/negative-integer-item-type/v1.json", + "tests": [ + { + "description": "Valid - negative integer", + "data": -42, + "valid": true + }, + { + "description": "Valid - large negative integer", + "data": -999999999999999999, + "valid": true + }, + { + "description": "Valid - negative one", + "data": -1, + "valid": true + }, + { + "description": "Valid - arbitrary precision beyond int64", + "data": -1.2345678901234567890e+19, + "valid": true + }, + { + "description": "Valid - arbitrary precision 25 digits", + "data": -1.234567890123456789012345e+24, + "valid": true + }, + { + "description": "Valid - arbitrary precision 30 digits", + "data": -1.23456789012345678901234567890e+29, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - positive integer", + "data": 1, + "valid": false + }, + { + "description": "Invalid - decimal value", + "data": -123.45, + "valid": false + }, + { + "description": "Invalid - string type", + "data": "-42", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/non-negative-integer-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/non-negative-integer-item-type/v1.test.json new file mode 100644 index 00000000..a6ae66da --- /dev/null +++ b/test/schemas/xbrl/instance/2003/non-negative-integer-item-type/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/non-negative-integer-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive integer", + "data": 42, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large positive integer", + "data": 999999999999999999, + "valid": true + }, + { + "description": "Valid - arbitrary precision beyond uint64", + "data": 1.8446744073709551616e+19, + "valid": true + }, + { + "description": "Valid - arbitrary precision 25 digits", + "data": 1.234567890123456789012345e+24, + "valid": true + }, + { + "description": "Valid - arbitrary precision 30 digits", + "data": 1.23456789012345678901234567890e+29, + "valid": true + }, + { + "description": "Invalid - negative integer", + "data": -1, + "valid": false + }, + { + "description": "Invalid - decimal value", + "data": 123.45, + "valid": false + }, + { + "description": "Invalid - string type", + "data": "42", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/non-positive-integer-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/non-positive-integer-item-type/v1.test.json new file mode 100644 index 00000000..381ac405 --- /dev/null +++ b/test/schemas/xbrl/instance/2003/non-positive-integer-item-type/v1.test.json @@ -0,0 +1,55 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/non-positive-integer-item-type/v1.json", + "tests": [ + { + "description": "Valid - negative integer", + "data": -42, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large negative integer", + "data": -999999999999999999, + "valid": true + }, + { + "description": "Valid - arbitrary precision beyond int64", + "data": -1.2345678901234567890e+19, + "valid": true + }, + { + "description": "Valid - arbitrary precision 25 digits", + "data": -1.234567890123456789012345e+24, + "valid": true + }, + { + "description": "Valid - arbitrary precision 30 digits", + "data": -1.23456789012345678901234567890e+29, + "valid": true + }, + { + "description": "Invalid - positive integer", + "data": 1, + "valid": false + }, + { + "description": "Invalid - decimal value", + "data": -123.45, + "valid": false + }, + { + "description": "Invalid - string type", + "data": "0", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/normalized-string-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/normalized-string-item-type/v1.test.json new file mode 100644 index 00000000..c14ae137 --- /dev/null +++ b/test/schemas/xbrl/instance/2003/normalized-string-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/normalized-string-item-type/v1.json", + "tests": [ + { + "description": "Valid - simple string", + "data": "hello world", + "valid": true + }, + { + "description": "Valid - string with spaces", + "data": "this is a normalized string", + "valid": true + }, + { + "description": "Valid - empty string", + "data": "", + "valid": true + }, + { + "description": "Invalid - string with line feed", + "data": "hello\nworld", + "valid": false + }, + { + "description": "Invalid - string with carriage return", + "data": "hello\rworld", + "valid": false + }, + { + "description": "Invalid - string with tab", + "data": "hello\tworld", + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/positive-integer-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/positive-integer-item-type/v1.test.json new file mode 100644 index 00000000..12168735 --- /dev/null +++ b/test/schemas/xbrl/instance/2003/positive-integer-item-type/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/positive-integer-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive integer", + "data": 42, + "valid": true + }, + { + "description": "Valid - large positive integer", + "data": 999999999999999999, + "valid": true + }, + { + "description": "Valid - one", + "data": 1, + "valid": true + }, + { + "description": "Valid - arbitrary precision beyond uint64", + "data": 1.8446744073709551616e+19, + "valid": true + }, + { + "description": "Valid - arbitrary precision 25 digits", + "data": 1.234567890123456789012345e+24, + "valid": true + }, + { + "description": "Valid - arbitrary precision 30 digits", + "data": 1.23456789012345678901234567890e+29, + "valid": true + }, + { + "description": "Invalid - zero", + "data": 0, + "valid": false + }, + { + "description": "Invalid - negative integer", + "data": -1, + "valid": false + }, + { + "description": "Invalid - decimal value", + "data": 123.45, + "valid": false + }, + { + "description": "Invalid - string type", + "data": "42", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/pure-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/pure-item-type/v1.test.json new file mode 100644 index 00000000..6d650a3a --- /dev/null +++ b/test/schemas/xbrl/instance/2003/pure-item-type/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/pure-item-type/v1.json", + "tests": [ + { + "description": "Valid - pure number as decimal", + "data": 0.5, + "valid": true + }, + { + "description": "Valid - whole number", + "data": 1, + "valid": true + }, + { + "description": "Valid - negative pure number", + "data": -0.25, + "valid": true + }, + { + "description": "Valid - high precision", + "data": 0.123457, + "valid": true + }, + { + "description": "Valid - arbitrary precision 20 digit integer", + "data": 1.2345678901234567890e+19, + "valid": true + }, + { + "description": "Valid - arbitrary precision with decimals", + "data": 1.234567890123456800e+17, + "valid": true + }, + { + "description": "Valid - arbitrary precision negative", + "data": -1.2345678901234567890e+19, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "0.5", + "valid": false + }, + { + "description": "Invalid - text", + "data": "not-a-number", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/qname-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/qname-item-type/v1.test.json new file mode 100644 index 00000000..496102e6 --- /dev/null +++ b/test/schemas/xbrl/instance/2003/qname-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/qname-item-type/v1.json", + "tests": [ + { + "description": "Valid - prefixed QName", + "data": "xs:string", + "valid": true + }, + { + "description": "Valid - unprefixed QName", + "data": "localName", + "valid": true + }, + { + "description": "Valid - QName with underscore", + "data": "my_element", + "valid": true + }, + { + "description": "Invalid - QName starting with number", + "data": "1element", + "valid": false + }, + { + "description": "Invalid - QName with space", + "data": "my element", + "valid": false + }, + { + "description": "Invalid - number instead of string", + "data": 123, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/shares-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/shares-item-type/v1.test.json new file mode 100644 index 00000000..e5a7cc3a --- /dev/null +++ b/test/schemas/xbrl/instance/2003/shares-item-type/v1.test.json @@ -0,0 +1,60 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/shares-item-type/v1.json", + "tests": [ + { + "description": "Valid - whole shares", + "data": 1000, + "valid": true + }, + { + "description": "Valid - fractional shares", + "data": 123.456, + "valid": true + }, + { + "description": "Valid - zero shares", + "data": 0, + "valid": true + }, + { + "description": "Valid - high precision fractional shares", + "data": 9876.12, + "valid": true + }, + { + "description": "Valid - arbitrary precision 20 digit shares", + "data": 1.2345678901234567890e+19, + "valid": true + }, + { + "description": "Valid - arbitrary precision with decimals", + "data": 1.234567890123456800e+17, + "valid": true + }, + { + "description": "Valid - arbitrary precision 25 digits", + "data": 1.234567890123456789012345e+24, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "1000", + "valid": false + }, + { + "description": "Invalid - text", + "data": "xyz", + "valid": false + }, + { + "description": "Invalid - empty string", + "data": "", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/short-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/short-item-type/v1.test.json new file mode 100644 index 00000000..82479938 --- /dev/null +++ b/test/schemas/xbrl/instance/2003/short-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/short-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive short", + "data": 100, + "valid": true + }, + { + "description": "Valid - negative short", + "data": -50, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Invalid - string instead of number", + "data": "100", + "valid": false + }, + { + "description": "Invalid - decimal value", + "data": 10.5, + "valid": false + }, + { + "description": "Invalid - non-numeric string", + "data": "abc", + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/string-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/string-item-type/v1.test.json new file mode 100644 index 00000000..5eb56957 --- /dev/null +++ b/test/schemas/xbrl/instance/2003/string-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/string-item-type/v1.json", + "tests": [ + { + "description": "Valid - simple string", + "data": "hello", + "valid": true + }, + { + "description": "Valid - empty string", + "data": "", + "valid": true + }, + { + "description": "Valid - string with whitespace", + "data": "hello\nworld\t!", + "valid": true + }, + { + "description": "Valid - unicode string", + "data": "Hello 世界", + "valid": true + }, + { + "description": "Invalid - number instead of string", + "data": 123, + "valid": false + }, + { + "description": "Invalid - boolean instead of string", + "data": true, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/time-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/time-item-type/v1.test.json new file mode 100644 index 00000000..d9b18038 --- /dev/null +++ b/test/schemas/xbrl/instance/2003/time-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/time-item-type/v1.json", + "tests": [ + { + "description": "Valid - time with seconds", + "data": "12:30:45", + "valid": true + }, + { + "description": "Valid - time with timezone", + "data": "12:30:45Z", + "valid": true + }, + { + "description": "Valid - time with offset", + "data": "12:30:45-05:00", + "valid": true + }, + { + "description": "Valid - time with fractional seconds", + "data": "12:30:45.123", + "valid": true + }, + { + "description": "Invalid - missing seconds", + "data": "12:30", + "valid": false + }, + { + "description": "Invalid - random string", + "data": "not-a-time", + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/token-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/token-item-type/v1.test.json new file mode 100644 index 00000000..df21ab70 --- /dev/null +++ b/test/schemas/xbrl/instance/2003/token-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/token-item-type/v1.json", + "tests": [ + { + "description": "Valid - simple token", + "data": "token", + "valid": true + }, + { + "description": "Valid - token with single spaces", + "data": "hello world", + "valid": true + }, + { + "description": "Valid - empty string", + "data": "", + "valid": true + }, + { + "description": "Invalid - leading space", + "data": " token", + "valid": false + }, + { + "description": "Invalid - trailing space", + "data": "token ", + "valid": false + }, + { + "description": "Invalid - multiple consecutive spaces", + "data": "hello world", + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/unsigned-byte-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/unsigned-byte-item-type/v1.test.json new file mode 100644 index 00000000..5568c08a --- /dev/null +++ b/test/schemas/xbrl/instance/2003/unsigned-byte-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/unsigned-byte-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive unsigned byte", + "data": 42, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - maximum unsigned byte", + "data": 255, + "valid": true + }, + { + "description": "Invalid - negative value", + "data": -1, + "valid": false + }, + { + "description": "Invalid - decimal value", + "data": 42.5, + "valid": false + }, + { + "description": "Invalid - string instead of number", + "data": "42", + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/unsigned-int-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/unsigned-int-item-type/v1.test.json new file mode 100644 index 00000000..53f6e1f4 --- /dev/null +++ b/test/schemas/xbrl/instance/2003/unsigned-int-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/unsigned-int-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive unsigned int", + "data": 42, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large unsigned int", + "data": 4294967295, + "valid": true + }, + { + "description": "Invalid - negative value", + "data": -1, + "valid": false + }, + { + "description": "Invalid - decimal value", + "data": 123.45, + "valid": false + }, + { + "description": "Invalid - string instead of number", + "data": "42", + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/unsigned-long-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/unsigned-long-item-type/v1.test.json new file mode 100644 index 00000000..55e83493 --- /dev/null +++ b/test/schemas/xbrl/instance/2003/unsigned-long-item-type/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/unsigned-long-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive unsigned long", + "data": 123456789, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large unsigned long", + "data": 9007199254740991, + "valid": true + }, + { + "description": "Invalid - negative value", + "data": -1, + "valid": false + }, + { + "description": "Invalid - decimal value", + "data": 123.45, + "valid": false + }, + { + "description": "Invalid - string type", + "data": "123456789", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/instance/2003/unsigned-short-item-type/v1.test.json b/test/schemas/xbrl/instance/2003/unsigned-short-item-type/v1.test.json new file mode 100644 index 00000000..fe8c37fe --- /dev/null +++ b/test/schemas/xbrl/instance/2003/unsigned-short-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../../schemas/xbrl/instance/2003/unsigned-short-item-type/v1.json", + "tests": [ + { + "description": "Valid - positive unsigned short", + "data": 100, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large unsigned short", + "data": 65535, + "valid": true + }, + { + "description": "Invalid - negative value", + "data": -1, + "valid": false + }, + { + "description": "Invalid - decimal value", + "data": 123.45, + "valid": false + }, + { + "description": "Invalid - string instead of number", + "data": "100", + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/area-item-type-normative/v1.test.json b/test/schemas/xbrl/utr/area-item-type-normative/v1.test.json new file mode 100644 index 00000000..afb51d09 --- /dev/null +++ b/test/schemas/xbrl/utr/area-item-type-normative/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../schemas/xbrl/utr/area-item-type-normative/v1.json", + "tests": [ + { + "description": "Valid - acre (REC)", + "data": "acre", + "valid": true + }, + { + "description": "Valid - square foot (REC)", + "data": "sqft", + "valid": true + }, + { + "description": "Valid - square mile (REC)", + "data": "sqmi", + "valid": true + }, + { + "description": "Valid - hectare (REC)", + "data": "ha", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-area-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/area-item-type/v1.test.json b/test/schemas/xbrl/utr/area-item-type/v1.test.json new file mode 100644 index 00000000..49b0ef6d --- /dev/null +++ b/test/schemas/xbrl/utr/area-item-type/v1.test.json @@ -0,0 +1,72 @@ +{ + "target": "../../../../../schemas/xbrl/utr/area-item-type/v1.json", + "tests": [ + { + "description": "Valid - acre", + "data": "acre", + "valid": true + }, + { + "description": "Valid - square foot", + "data": "sqft", + "valid": true + }, + { + "description": "Valid - square mile", + "data": "sqmi", + "valid": true + }, + { + "description": "Valid - square yard", + "data": "sqyd", + "valid": true + }, + { + "description": "Valid - hectare", + "data": "ha", + "valid": true + }, + { + "description": "Valid - square kilometer", + "data": "sqkm", + "valid": true + }, + { + "description": "Valid - square metre", + "data": "sqm", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-area-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - object", + "data": { + "unit": "sqft" + }, + "valid": false + }, + { + "description": "Invalid - array", + "data": [ "sqft" ], + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + }, + { + "description": "Invalid - boolean", + "data": true, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/duration-item-type-normative/v1.test.json b/test/schemas/xbrl/utr/duration-item-type-normative/v1.test.json new file mode 100644 index 00000000..9cbb1458 --- /dev/null +++ b/test/schemas/xbrl/utr/duration-item-type-normative/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../schemas/xbrl/utr/duration-item-type-normative/v1.json", + "tests": [ + { + "description": "Valid - Y (REC)", + "data": "Y", + "valid": true + }, + { + "description": "Valid - M (REC)", + "data": "M", + "valid": true + }, + { + "description": "Valid - D (REC)", + "data": "D", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/duration-item-type/v1.test.json b/test/schemas/xbrl/utr/duration-item-type/v1.test.json new file mode 100644 index 00000000..5fdf25a1 --- /dev/null +++ b/test/schemas/xbrl/utr/duration-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../schemas/xbrl/utr/duration-item-type/v1.json", + "tests": [ + { + "description": "Valid - Y", + "data": "Y", + "valid": true + }, + { + "description": "Valid - M", + "data": "M", + "valid": true + }, + { + "description": "Valid - D", + "data": "D", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/electric-charge-item-type-normative/v1.test.json b/test/schemas/xbrl/utr/electric-charge-item-type-normative/v1.test.json new file mode 100644 index 00000000..3fc1b2cb --- /dev/null +++ b/test/schemas/xbrl/utr/electric-charge-item-type-normative/v1.test.json @@ -0,0 +1,30 @@ +{ + "target": "../../../../../schemas/xbrl/utr/electric-charge-item-type-normative/v1.json", + "tests": [ + { + "description": "Valid - Ah (REC)", + "data": "Ah", + "valid": true + }, + { + "description": "Valid - C (REC)", + "data": "C", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/electric-charge-item-type/v1.test.json b/test/schemas/xbrl/utr/electric-charge-item-type/v1.test.json new file mode 100644 index 00000000..a247c798 --- /dev/null +++ b/test/schemas/xbrl/utr/electric-charge-item-type/v1.test.json @@ -0,0 +1,30 @@ +{ + "target": "../../../../../schemas/xbrl/utr/electric-charge-item-type/v1.json", + "tests": [ + { + "description": "Valid - Ah", + "data": "Ah", + "valid": true + }, + { + "description": "Valid - C", + "data": "C", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/electric-current-item-type-normative/v1.test.json b/test/schemas/xbrl/utr/electric-current-item-type-normative/v1.test.json new file mode 100644 index 00000000..94e0391e --- /dev/null +++ b/test/schemas/xbrl/utr/electric-current-item-type-normative/v1.test.json @@ -0,0 +1,25 @@ +{ + "target": "../../../../../schemas/xbrl/utr/electric-current-item-type-normative/v1.json", + "tests": [ + { + "description": "Valid - A (REC)", + "data": "A", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/electric-current-item-type/v1.test.json b/test/schemas/xbrl/utr/electric-current-item-type/v1.test.json new file mode 100644 index 00000000..ecd3f552 --- /dev/null +++ b/test/schemas/xbrl/utr/electric-current-item-type/v1.test.json @@ -0,0 +1,25 @@ +{ + "target": "../../../../../schemas/xbrl/utr/electric-current-item-type/v1.json", + "tests": [ + { + "description": "Valid - A", + "data": "A", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/energy-item-type-normative/v1.test.json b/test/schemas/xbrl/utr/energy-item-type-normative/v1.test.json new file mode 100644 index 00000000..4225dac7 --- /dev/null +++ b/test/schemas/xbrl/utr/energy-item-type-normative/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../schemas/xbrl/utr/energy-item-type-normative/v1.json", + "tests": [ + { + "description": "Valid - Boe (REC)", + "data": "Boe", + "valid": true + }, + { + "description": "Valid - Btu (REC)", + "data": "Btu", + "valid": true + }, + { + "description": "Valid - ft_lb (REC)", + "data": "ft_lb", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/energy-item-type/v1.test.json b/test/schemas/xbrl/utr/energy-item-type/v1.test.json new file mode 100644 index 00000000..361f6c9d --- /dev/null +++ b/test/schemas/xbrl/utr/energy-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../schemas/xbrl/utr/energy-item-type/v1.json", + "tests": [ + { + "description": "Valid - Boe", + "data": "Boe", + "valid": true + }, + { + "description": "Valid - Btu", + "data": "Btu", + "valid": true + }, + { + "description": "Valid - ft_lb", + "data": "ft_lb", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/energy-per-monetary-item-type-normative/v1.test.json b/test/schemas/xbrl/utr/energy-per-monetary-item-type-normative/v1.test.json new file mode 100644 index 00000000..a9e44f2e --- /dev/null +++ b/test/schemas/xbrl/utr/energy-per-monetary-item-type-normative/v1.test.json @@ -0,0 +1,25 @@ +{ + "target": "../../../../../schemas/xbrl/utr/energy-per-monetary-item-type-normative/v1.json", + "tests": [ + { + "description": "Valid - Energy_per_Monetary (REC)", + "data": "Energy_per_Monetary", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/energy-per-monetary-item-type/v1.test.json b/test/schemas/xbrl/utr/energy-per-monetary-item-type/v1.test.json new file mode 100644 index 00000000..9ee76eb4 --- /dev/null +++ b/test/schemas/xbrl/utr/energy-per-monetary-item-type/v1.test.json @@ -0,0 +1,25 @@ +{ + "target": "../../../../../schemas/xbrl/utr/energy-per-monetary-item-type/v1.json", + "tests": [ + { + "description": "Valid - Energy_per_Monetary", + "data": "Energy_per_Monetary", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/flow-item-type-normative/v1.test.json b/test/schemas/xbrl/utr/flow-item-type-normative/v1.test.json new file mode 100644 index 00000000..976fca8f --- /dev/null +++ b/test/schemas/xbrl/utr/flow-item-type-normative/v1.test.json @@ -0,0 +1,30 @@ +{ + "target": "../../../../../schemas/xbrl/utr/flow-item-type-normative/v1.json", + "tests": [ + { + "description": "Valid - Volume_per_Duration (REC)", + "data": "Volume_per_Duration", + "valid": true + }, + { + "description": "Invalid - Energy_per_Duration (CR, not normative)", + "data": "Energy_per_Duration", + "valid": false + }, + { + "description": "Invalid - unknown unit", + "data": "Mass_per_Duration", + "valid": false + }, + { + "description": "Invalid - number", + "data": 42, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/flow-item-type/v1.test.json b/test/schemas/xbrl/utr/flow-item-type/v1.test.json new file mode 100644 index 00000000..5bb0e680 --- /dev/null +++ b/test/schemas/xbrl/utr/flow-item-type/v1.test.json @@ -0,0 +1,30 @@ +{ + "target": "../../../../../schemas/xbrl/utr/flow-item-type/v1.json", + "tests": [ + { + "description": "Valid - Volume_per_Duration (REC)", + "data": "Volume_per_Duration", + "valid": true + }, + { + "description": "Valid - Energy_per_Duration (CR)", + "data": "Energy_per_Duration", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "Mass_per_Duration", + "valid": false + }, + { + "description": "Invalid - number", + "data": 42, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/force-item-type-normative/v1.test.json b/test/schemas/xbrl/utr/force-item-type-normative/v1.test.json new file mode 100644 index 00000000..e91db831 --- /dev/null +++ b/test/schemas/xbrl/utr/force-item-type-normative/v1.test.json @@ -0,0 +1,25 @@ +{ + "target": "../../../../../schemas/xbrl/utr/force-item-type-normative/v1.json", + "tests": [ + { + "description": "Valid - N (REC)", + "data": "N", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/force-item-type/v1.test.json b/test/schemas/xbrl/utr/force-item-type/v1.test.json new file mode 100644 index 00000000..f7bb6caf --- /dev/null +++ b/test/schemas/xbrl/utr/force-item-type/v1.test.json @@ -0,0 +1,25 @@ +{ + "target": "../../../../../schemas/xbrl/utr/force-item-type/v1.json", + "tests": [ + { + "description": "Valid - N", + "data": "N", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/frequency-item-type-normative/v1.test.json b/test/schemas/xbrl/utr/frequency-item-type-normative/v1.test.json new file mode 100644 index 00000000..05f44233 --- /dev/null +++ b/test/schemas/xbrl/utr/frequency-item-type-normative/v1.test.json @@ -0,0 +1,25 @@ +{ + "target": "../../../../../schemas/xbrl/utr/frequency-item-type-normative/v1.json", + "tests": [ + { + "description": "Valid - Hz (REC)", + "data": "Hz", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/frequency-item-type/v1.test.json b/test/schemas/xbrl/utr/frequency-item-type/v1.test.json new file mode 100644 index 00000000..a62d2539 --- /dev/null +++ b/test/schemas/xbrl/utr/frequency-item-type/v1.test.json @@ -0,0 +1,25 @@ +{ + "target": "../../../../../schemas/xbrl/utr/frequency-item-type/v1.json", + "tests": [ + { + "description": "Valid - Hz", + "data": "Hz", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/ghg-emissions-item-type-normative/v1.test.json b/test/schemas/xbrl/utr/ghg-emissions-item-type-normative/v1.test.json new file mode 100644 index 00000000..917a60d0 --- /dev/null +++ b/test/schemas/xbrl/utr/ghg-emissions-item-type-normative/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../schemas/xbrl/utr/ghg-emissions-item-type-normative/v1.json", + "tests": [ + { + "description": "Valid - tCO2e (REC)", + "data": "tCO2e", + "valid": true + }, + { + "description": "Valid - ktCO2e (REC)", + "data": "ktCO2e", + "valid": true + }, + { + "description": "Valid - MtCO2e (REC)", + "data": "MtCO2e", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/ghg-emissions-item-type/v1.test.json b/test/schemas/xbrl/utr/ghg-emissions-item-type/v1.test.json new file mode 100644 index 00000000..ce321428 --- /dev/null +++ b/test/schemas/xbrl/utr/ghg-emissions-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../schemas/xbrl/utr/ghg-emissions-item-type/v1.json", + "tests": [ + { + "description": "Valid - tCO2e", + "data": "tCO2e", + "valid": true + }, + { + "description": "Valid - ktCO2e", + "data": "ktCO2e", + "valid": true + }, + { + "description": "Valid - MtCO2e", + "data": "MtCO2e", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/ghg-emissions-per-monetary-item-type-normative/v1.test.json b/test/schemas/xbrl/utr/ghg-emissions-per-monetary-item-type-normative/v1.test.json new file mode 100644 index 00000000..4f6e708f --- /dev/null +++ b/test/schemas/xbrl/utr/ghg-emissions-per-monetary-item-type-normative/v1.test.json @@ -0,0 +1,25 @@ +{ + "target": "../../../../../schemas/xbrl/utr/ghg-emissions-per-monetary-item-type-normative/v1.json", + "tests": [ + { + "description": "Valid - Emissions_per_Monetary (REC)", + "data": "Emissions_per_Monetary", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/ghg-emissions-per-monetary-item-type/v1.test.json b/test/schemas/xbrl/utr/ghg-emissions-per-monetary-item-type/v1.test.json new file mode 100644 index 00000000..c7ab2ce2 --- /dev/null +++ b/test/schemas/xbrl/utr/ghg-emissions-per-monetary-item-type/v1.test.json @@ -0,0 +1,25 @@ +{ + "target": "../../../../../schemas/xbrl/utr/ghg-emissions-per-monetary-item-type/v1.json", + "tests": [ + { + "description": "Valid - Emissions_per_Monetary", + "data": "Emissions_per_Monetary", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/length-item-type-normative/v1.test.json b/test/schemas/xbrl/utr/length-item-type-normative/v1.test.json new file mode 100644 index 00000000..ac11a247 --- /dev/null +++ b/test/schemas/xbrl/utr/length-item-type-normative/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../schemas/xbrl/utr/length-item-type-normative/v1.json", + "tests": [ + { + "description": "Valid - ft (REC)", + "data": "ft", + "valid": true + }, + { + "description": "Valid - in (REC)", + "data": "in", + "valid": true + }, + { + "description": "Valid - mi (REC)", + "data": "mi", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/length-item-type/v1.test.json b/test/schemas/xbrl/utr/length-item-type/v1.test.json new file mode 100644 index 00000000..840322a0 --- /dev/null +++ b/test/schemas/xbrl/utr/length-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../schemas/xbrl/utr/length-item-type/v1.json", + "tests": [ + { + "description": "Valid - ft", + "data": "ft", + "valid": true + }, + { + "description": "Valid - in", + "data": "in", + "valid": true + }, + { + "description": "Valid - mi", + "data": "mi", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/mass-item-type-normative/v1.test.json b/test/schemas/xbrl/utr/mass-item-type-normative/v1.test.json new file mode 100644 index 00000000..318306e8 --- /dev/null +++ b/test/schemas/xbrl/utr/mass-item-type-normative/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../schemas/xbrl/utr/mass-item-type-normative/v1.json", + "tests": [ + { + "description": "Valid - lb (REC)", + "data": "lb", + "valid": true + }, + { + "description": "Valid - oz (REC)", + "data": "oz", + "valid": true + }, + { + "description": "Valid - ozt (REC)", + "data": "ozt", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/mass-item-type/v1.test.json b/test/schemas/xbrl/utr/mass-item-type/v1.test.json new file mode 100644 index 00000000..90158f89 --- /dev/null +++ b/test/schemas/xbrl/utr/mass-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../schemas/xbrl/utr/mass-item-type/v1.json", + "tests": [ + { + "description": "Valid - lb", + "data": "lb", + "valid": true + }, + { + "description": "Valid - oz", + "data": "oz", + "valid": true + }, + { + "description": "Valid - ozt", + "data": "ozt", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/memory-item-type-normative/v1.test.json b/test/schemas/xbrl/utr/memory-item-type-normative/v1.test.json new file mode 100644 index 00000000..af3efc32 --- /dev/null +++ b/test/schemas/xbrl/utr/memory-item-type-normative/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../schemas/xbrl/utr/memory-item-type-normative/v1.json", + "tests": [ + { + "description": "Valid - B (REC)", + "data": "B", + "valid": true + }, + { + "description": "Valid - GB (REC)", + "data": "GB", + "valid": true + }, + { + "description": "Valid - kB (REC)", + "data": "kB", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/memory-item-type/v1.test.json b/test/schemas/xbrl/utr/memory-item-type/v1.test.json new file mode 100644 index 00000000..30f1cb22 --- /dev/null +++ b/test/schemas/xbrl/utr/memory-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../schemas/xbrl/utr/memory-item-type/v1.json", + "tests": [ + { + "description": "Valid - B", + "data": "B", + "valid": true + }, + { + "description": "Valid - GB", + "data": "GB", + "valid": true + }, + { + "description": "Valid - kB", + "data": "kB", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/monetary-item-type-normative/v1.test.json b/test/schemas/xbrl/utr/monetary-item-type-normative/v1.test.json new file mode 100644 index 00000000..987fbd71 --- /dev/null +++ b/test/schemas/xbrl/utr/monetary-item-type-normative/v1.test.json @@ -0,0 +1,40 @@ +{ + "target": "../../../../../schemas/xbrl/utr/monetary-item-type-normative/v1.json", + "tests": [ + { + "description": "Valid - USD (REC)", + "data": "USD", + "valid": true + }, + { + "description": "Valid - EUR (REC)", + "data": "EUR", + "valid": true + }, + { + "description": "Valid - GBP (REC)", + "data": "GBP", + "valid": true + }, + { + "description": "Valid - JPY (REC)", + "data": "JPY", + "valid": true + }, + { + "description": "Invalid - unknown currency", + "data": "XXX", + "valid": false + }, + { + "description": "Invalid - number", + "data": 840, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/monetary-item-type/v1.test.json b/test/schemas/xbrl/utr/monetary-item-type/v1.test.json new file mode 100644 index 00000000..4135ff19 --- /dev/null +++ b/test/schemas/xbrl/utr/monetary-item-type/v1.test.json @@ -0,0 +1,67 @@ +{ + "target": "../../../../../schemas/xbrl/utr/monetary-item-type/v1.json", + "tests": [ + { + "description": "Valid - USD", + "data": "USD", + "valid": true + }, + { + "description": "Valid - EUR", + "data": "EUR", + "valid": true + }, + { + "description": "Valid - GBP", + "data": "GBP", + "valid": true + }, + { + "description": "Valid - JPY", + "data": "JPY", + "valid": true + }, + { + "description": "Valid - CNY", + "data": "CNY", + "valid": true + }, + { + "description": "Valid - AED", + "data": "AED", + "valid": true + }, + { + "description": "Valid - ZWL (Zimbabwe dollar)", + "data": "ZWL", + "valid": true + }, + { + "description": "Invalid - unknown currency", + "data": "XXX", + "valid": false + }, + { + "description": "Invalid - lowercase", + "data": "usd", + "valid": false + }, + { + "description": "Invalid - number", + "data": 840, + "valid": false + }, + { + "description": "Invalid - object", + "data": { + "currency": "USD" + }, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/per-share-item-type-normative/v1.test.json b/test/schemas/xbrl/utr/per-share-item-type-normative/v1.test.json new file mode 100644 index 00000000..b7b2c8b5 --- /dev/null +++ b/test/schemas/xbrl/utr/per-share-item-type-normative/v1.test.json @@ -0,0 +1,25 @@ +{ + "target": "../../../../../schemas/xbrl/utr/per-share-item-type-normative/v1.json", + "tests": [ + { + "description": "Valid - Monetary_per_Share (REC)", + "data": "Monetary_per_Share", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/per-share-item-type/v1.test.json b/test/schemas/xbrl/utr/per-share-item-type/v1.test.json new file mode 100644 index 00000000..38f9cf08 --- /dev/null +++ b/test/schemas/xbrl/utr/per-share-item-type/v1.test.json @@ -0,0 +1,25 @@ +{ + "target": "../../../../../schemas/xbrl/utr/per-share-item-type/v1.json", + "tests": [ + { + "description": "Valid - Monetary_per_Share", + "data": "Monetary_per_Share", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/per-unit-item-type-normative/v1.test.json b/test/schemas/xbrl/utr/per-unit-item-type-normative/v1.test.json new file mode 100644 index 00000000..7ed5cbd6 --- /dev/null +++ b/test/schemas/xbrl/utr/per-unit-item-type-normative/v1.test.json @@ -0,0 +1,25 @@ +{ + "target": "../../../../../schemas/xbrl/utr/per-unit-item-type-normative/v1.json", + "tests": [ + { + "description": "Valid - Monetary_per_Decimal (REC)", + "data": "Monetary_per_Decimal", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/per-unit-item-type/v1.test.json b/test/schemas/xbrl/utr/per-unit-item-type/v1.test.json new file mode 100644 index 00000000..fc03f36d --- /dev/null +++ b/test/schemas/xbrl/utr/per-unit-item-type/v1.test.json @@ -0,0 +1,25 @@ +{ + "target": "../../../../../schemas/xbrl/utr/per-unit-item-type/v1.json", + "tests": [ + { + "description": "Valid - Monetary_per_Decimal", + "data": "Monetary_per_Decimal", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/plane-angle-item-type-normative/v1.test.json b/test/schemas/xbrl/utr/plane-angle-item-type-normative/v1.test.json new file mode 100644 index 00000000..917215e6 --- /dev/null +++ b/test/schemas/xbrl/utr/plane-angle-item-type-normative/v1.test.json @@ -0,0 +1,30 @@ +{ + "target": "../../../../../schemas/xbrl/utr/plane-angle-item-type-normative/v1.json", + "tests": [ + { + "description": "Valid - Degree (REC)", + "data": "Degree", + "valid": true + }, + { + "description": "Valid - rad (REC)", + "data": "rad", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/plane-angle-item-type/v1.test.json b/test/schemas/xbrl/utr/plane-angle-item-type/v1.test.json new file mode 100644 index 00000000..e6d291db --- /dev/null +++ b/test/schemas/xbrl/utr/plane-angle-item-type/v1.test.json @@ -0,0 +1,30 @@ +{ + "target": "../../../../../schemas/xbrl/utr/plane-angle-item-type/v1.json", + "tests": [ + { + "description": "Valid - Degree", + "data": "Degree", + "valid": true + }, + { + "description": "Valid - rad", + "data": "rad", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/power-item-type-normative/v1.test.json b/test/schemas/xbrl/utr/power-item-type-normative/v1.test.json new file mode 100644 index 00000000..586508b6 --- /dev/null +++ b/test/schemas/xbrl/utr/power-item-type-normative/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../schemas/xbrl/utr/power-item-type-normative/v1.json", + "tests": [ + { + "description": "Valid - hp (REC)", + "data": "hp", + "valid": true + }, + { + "description": "Valid - GW (REC)", + "data": "GW", + "valid": true + }, + { + "description": "Valid - kW (REC)", + "data": "kW", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/power-item-type/v1.test.json b/test/schemas/xbrl/utr/power-item-type/v1.test.json new file mode 100644 index 00000000..8228080a --- /dev/null +++ b/test/schemas/xbrl/utr/power-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../schemas/xbrl/utr/power-item-type/v1.json", + "tests": [ + { + "description": "Valid - hp", + "data": "hp", + "valid": true + }, + { + "description": "Valid - GW", + "data": "GW", + "valid": true + }, + { + "description": "Valid - kW", + "data": "kW", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/pressure-item-type-normative/v1.test.json b/test/schemas/xbrl/utr/pressure-item-type-normative/v1.test.json new file mode 100644 index 00000000..9e44d97f --- /dev/null +++ b/test/schemas/xbrl/utr/pressure-item-type-normative/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../schemas/xbrl/utr/pressure-item-type-normative/v1.json", + "tests": [ + { + "description": "Valid - Pa (REC)", + "data": "Pa", + "valid": true + }, + { + "description": "Valid - Bar (REC)", + "data": "Bar", + "valid": true + }, + { + "description": "Valid - psi (REC)", + "data": "psi", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/pressure-item-type/v1.test.json b/test/schemas/xbrl/utr/pressure-item-type/v1.test.json new file mode 100644 index 00000000..39524dbb --- /dev/null +++ b/test/schemas/xbrl/utr/pressure-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../schemas/xbrl/utr/pressure-item-type/v1.json", + "tests": [ + { + "description": "Valid - Pa", + "data": "Pa", + "valid": true + }, + { + "description": "Valid - Bar", + "data": "Bar", + "valid": true + }, + { + "description": "Valid - psi", + "data": "psi", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/pure-item-type-normative/v1.test.json b/test/schemas/xbrl/utr/pure-item-type-normative/v1.test.json new file mode 100644 index 00000000..99cc4d20 --- /dev/null +++ b/test/schemas/xbrl/utr/pure-item-type-normative/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../schemas/xbrl/utr/pure-item-type-normative/v1.json", + "tests": [ + { + "description": "Valid - Monetary_per_Monetary (REC)", + "data": "Monetary_per_Monetary", + "valid": true + }, + { + "description": "Valid - pure (REC)", + "data": "pure", + "valid": true + }, + { + "description": "Valid - Rate (REC)", + "data": "Rate", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/pure-item-type/v1.test.json b/test/schemas/xbrl/utr/pure-item-type/v1.test.json new file mode 100644 index 00000000..d535b4d7 --- /dev/null +++ b/test/schemas/xbrl/utr/pure-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../schemas/xbrl/utr/pure-item-type/v1.json", + "tests": [ + { + "description": "Valid - Monetary_per_Monetary", + "data": "Monetary_per_Monetary", + "valid": true + }, + { + "description": "Valid - pure", + "data": "pure", + "valid": true + }, + { + "description": "Valid - Rate", + "data": "Rate", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/shares-item-type-normative/v1.test.json b/test/schemas/xbrl/utr/shares-item-type-normative/v1.test.json new file mode 100644 index 00000000..fe19fdfc --- /dev/null +++ b/test/schemas/xbrl/utr/shares-item-type-normative/v1.test.json @@ -0,0 +1,25 @@ +{ + "target": "../../../../../schemas/xbrl/utr/shares-item-type-normative/v1.json", + "tests": [ + { + "description": "Valid - shares (REC)", + "data": "shares", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/shares-item-type/v1.test.json b/test/schemas/xbrl/utr/shares-item-type/v1.test.json new file mode 100644 index 00000000..c8e72835 --- /dev/null +++ b/test/schemas/xbrl/utr/shares-item-type/v1.test.json @@ -0,0 +1,25 @@ +{ + "target": "../../../../../schemas/xbrl/utr/shares-item-type/v1.json", + "tests": [ + { + "description": "Valid - shares", + "data": "shares", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/temperature-item-type-normative/v1.test.json b/test/schemas/xbrl/utr/temperature-item-type-normative/v1.test.json new file mode 100644 index 00000000..09a58751 --- /dev/null +++ b/test/schemas/xbrl/utr/temperature-item-type-normative/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../schemas/xbrl/utr/temperature-item-type-normative/v1.json", + "tests": [ + { + "description": "Valid - Celsius (REC)", + "data": "Celsius", + "valid": true + }, + { + "description": "Valid - K (REC)", + "data": "K", + "valid": true + }, + { + "description": "Valid - F (REC)", + "data": "F", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/temperature-item-type/v1.test.json b/test/schemas/xbrl/utr/temperature-item-type/v1.test.json new file mode 100644 index 00000000..edb5cc80 --- /dev/null +++ b/test/schemas/xbrl/utr/temperature-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../schemas/xbrl/utr/temperature-item-type/v1.json", + "tests": [ + { + "description": "Valid - Celsius", + "data": "Celsius", + "valid": true + }, + { + "description": "Valid - K", + "data": "K", + "valid": true + }, + { + "description": "Valid - F", + "data": "F", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/voltage-item-type-normative/v1.test.json b/test/schemas/xbrl/utr/voltage-item-type-normative/v1.test.json new file mode 100644 index 00000000..22108aaa --- /dev/null +++ b/test/schemas/xbrl/utr/voltage-item-type-normative/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../schemas/xbrl/utr/voltage-item-type-normative/v1.json", + "tests": [ + { + "description": "Valid - V (REC)", + "data": "V", + "valid": true + }, + { + "description": "Valid - kV (REC)", + "data": "kV", + "valid": true + }, + { + "description": "Valid - MV (REC)", + "data": "MV", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/voltage-item-type/v1.test.json b/test/schemas/xbrl/utr/voltage-item-type/v1.test.json new file mode 100644 index 00000000..4290c2ea --- /dev/null +++ b/test/schemas/xbrl/utr/voltage-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../schemas/xbrl/utr/voltage-item-type/v1.json", + "tests": [ + { + "description": "Valid - V", + "data": "V", + "valid": true + }, + { + "description": "Valid - kV", + "data": "kV", + "valid": true + }, + { + "description": "Valid - MV", + "data": "MV", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/volume-item-type-normative/v1.test.json b/test/schemas/xbrl/utr/volume-item-type-normative/v1.test.json new file mode 100644 index 00000000..951c4bdc --- /dev/null +++ b/test/schemas/xbrl/utr/volume-item-type-normative/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../schemas/xbrl/utr/volume-item-type-normative/v1.json", + "tests": [ + { + "description": "Valid - bbl (REC)", + "data": "bbl", + "valid": true + }, + { + "description": "Valid - ft3 (REC)", + "data": "ft3", + "valid": true + }, + { + "description": "Valid - gal (REC)", + "data": "gal", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/volume-item-type/v1.test.json b/test/schemas/xbrl/utr/volume-item-type/v1.test.json new file mode 100644 index 00000000..f747459f --- /dev/null +++ b/test/schemas/xbrl/utr/volume-item-type/v1.test.json @@ -0,0 +1,35 @@ +{ + "target": "../../../../../schemas/xbrl/utr/volume-item-type/v1.json", + "tests": [ + { + "description": "Valid - bbl", + "data": "bbl", + "valid": true + }, + { + "description": "Valid - ft3", + "data": "ft3", + "valid": true + }, + { + "description": "Valid - gal", + "data": "gal", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/volume-per-monetary-item-type-normative/v1.test.json b/test/schemas/xbrl/utr/volume-per-monetary-item-type-normative/v1.test.json new file mode 100644 index 00000000..6728c2d3 --- /dev/null +++ b/test/schemas/xbrl/utr/volume-per-monetary-item-type-normative/v1.test.json @@ -0,0 +1,25 @@ +{ + "target": "../../../../../schemas/xbrl/utr/volume-per-monetary-item-type-normative/v1.json", + "tests": [ + { + "description": "Valid - Volume_per_Monetary (REC)", + "data": "Volume_per_Monetary", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/schemas/xbrl/utr/volume-per-monetary-item-type/v1.test.json b/test/schemas/xbrl/utr/volume-per-monetary-item-type/v1.test.json new file mode 100644 index 00000000..cc93725f --- /dev/null +++ b/test/schemas/xbrl/utr/volume-per-monetary-item-type/v1.test.json @@ -0,0 +1,25 @@ +{ + "target": "../../../../../schemas/xbrl/utr/volume-per-monetary-item-type/v1.json", + "tests": [ + { + "description": "Valid - Volume_per_Monetary", + "data": "Volume_per_Monetary", + "valid": true + }, + { + "description": "Invalid - unknown unit", + "data": "invalid-unit", + "valid": false + }, + { + "description": "Invalid - number", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/w3c/xmlschema/2001/any-uri/v1.test.json b/test/w3c/xmlschema/2001/any-uri/v1.test.json deleted file mode 100644 index 8906264e..00000000 --- a/test/w3c/xmlschema/2001/any-uri/v1.test.json +++ /dev/null @@ -1,395 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/any-uri/v1.json", - "tests": [ - { - "description": "Valid - empty string", - "data": "", - "valid": true - }, - { - "description": "Valid - HTTP URL", - "data": "http://www.example.com", - "valid": true - }, - { - "description": "Valid - HTTPS URL", - "data": "https://www.example.com/path/to/resource", - "valid": true - }, - { - "description": "Valid - FTP URL", - "data": "ftp://ftp.example.com/file.txt", - "valid": true - }, - { - "description": "Valid - mailto URL", - "data": "mailto:user@example.com", - "valid": true - }, - { - "description": "Valid - file URL", - "data": "file:///path/to/file.txt", - "valid": true - }, - { - "description": "Valid - relative path", - "data": "../relative/path.html", - "valid": true - }, - { - "description": "Valid - absolute path", - "data": "/absolute/path/to/resource", - "valid": true - }, - { - "description": "Valid - with fragment", - "data": "http://www.example.com#fragment", - "valid": true - }, - { - "description": "Valid - with query string", - "data": "http://www.example.com?key=value&foo=bar", - "valid": true - }, - { - "description": "Valid - with port", - "data": "http://www.example.com:8080/path", - "valid": true - }, - { - "description": "Valid - URN", - "data": "urn:isbn:0-395-36341-1", - "valid": true - }, - { - "description": "Valid - data URI", - "data": "data:text/plain;charset=UTF-8;page=21,the%20data:1234,5678", - "valid": true - }, - { - "description": "Valid - with encoded characters", - "data": "http://www.example.com/%C3%A9dition.html", - "valid": true - }, - { - "description": "Valid - with non-ASCII characters", - "data": "http://www.example.com/édition.html", - "valid": true - }, - { - "description": "Valid - with non-ASCII host and path", - "data": "https://例え.jp/パス", - "valid": true - }, - { - "description": "Valid - relative with dot segments", - "data": "./file.txt", - "valid": true - }, - { - "description": "Valid - relative with parent", - "data": "../../file.txt", - "valid": true - }, - { - "description": "Valid - just filename", - "data": "file.txt", - "valid": true - }, - { - "description": "Valid - spaces are within the XSD anyURI lexical space", - "data": "http://www.example.com/file with spaces.txt", - "valid": true - }, - { - "description": "Valid - IPv6 host", - "data": "http://[2001:db8::1]:8080/path", - "valid": true - }, - { - "description": "Valid - fragment only", - "data": "#section", - "valid": true - }, - { - "description": "Valid - query only", - "data": "?query=value", - "valid": true - }, - { - "description": "Valid - tel URI", - "data": "tel:+1-816-555-1212", - "valid": true - }, - { - "description": "Valid - javascript protocol", - "data": "javascript:alert('test')", - "valid": true - }, - { - "description": "Invalid - number type", - "data": 123, - "valid": false - }, - { - "description": "Invalid - boolean type", - "data": true, - "valid": false - }, - { - "description": "Invalid - null type", - "data": null, - "valid": false - }, - { - "description": "Invalid - object type", - "data": {}, - "valid": false - }, - { - "description": "Invalid - array type", - "data": [], - "valid": false - }, - { - "description": "Valid - HTTPS with path and query", - "data": "https://example.com/path?key=value", - "valid": true - }, - { - "description": "Valid - FTP with username", - "data": "ftp://user@ftp.example.com/file", - "valid": true - }, - { - "description": "Valid - HTTP with port and path", - "data": "http://example.com:3000/api", - "valid": true - }, - { - "description": "Valid - file protocol Unix path", - "data": "file:///usr/local/bin/app", - "valid": true - }, - { - "description": "Valid - file protocol Windows path", - "data": "file:///C:/Users/test/file.txt", - "valid": true - }, - { - "description": "Valid - mailto with subject", - "data": "mailto:test@example.com?subject=Hello", - "valid": true - }, - { - "description": "Valid - tel with extension", - "data": "tel:+1-816-555-1212;ext=123", - "valid": true - }, - { - "description": "Valid - data URI base64", - "data": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA", - "valid": true - }, - { - "description": "Valid - news protocol", - "data": "news:comp.infosystems.www.servers.unix", - "valid": true - }, - { - "description": "Valid - nntp protocol", - "data": "nntp://news.example.com/example.group.this", - "valid": true - }, - { - "description": "Valid - telnet protocol", - "data": "telnet://192.0.2.16:80/", - "valid": true - }, - { - "description": "Valid - wais protocol", - "data": "wais://example.com/database", - "valid": true - }, - { - "description": "Valid - prospero protocol", - "data": "prospero://host.dom/link", - "valid": true - }, - { - "description": "Valid - relative path with query", - "data": "path/to/file?query=string", - "valid": true - }, - { - "description": "Valid - relative path with fragment", - "data": "page.html#section", - "valid": true - }, - { - "description": "Valid - absolute path with query and fragment", - "data": "/path/page?q=1#top", - "valid": true - }, - { - "description": "Valid - current directory reference", - "data": "./file.txt", - "valid": true - }, - { - "description": "Valid - parent directory multiple levels", - "data": "../../../file.txt", - "valid": true - }, - { - "description": "Valid - complex relative path", - "data": "../dir1/./dir2/../file.txt", - "valid": true - }, - { - "description": "Valid - URN ISBN", - "data": "urn:isbn:0451450523", - "valid": true - }, - { - "description": "Valid - URN ISSN", - "data": "urn:issn:0167-6423", - "valid": true - }, - { - "description": "Valid - URN UUID", - "data": "urn:uuid:6e8bc430-9c3a-11d9-9669-0800200c9a66", - "valid": true - }, - { - "description": "Valid - URN OID", - "data": "urn:oid:2.16.840", - "valid": true - }, - { - "description": "Valid - HTTP with authentication", - "data": "http://user:pass@example.com/", - "valid": true - }, - { - "description": "Valid - IPv4 address", - "data": "http://192.168.1.1/", - "valid": true - }, - { - "description": "Valid - IPv4 with port", - "data": "http://192.168.1.1:8080/path", - "valid": true - }, - { - "description": "Valid - IPv6 localhost", - "data": "http://[::1]/", - "valid": true - }, - { - "description": "Valid - IPv6 full address", - "data": "http://[2001:0db8:85a3:0000:0000:8a2e:0370:7334]/", - "valid": true - }, - { - "description": "Valid - IPv6 compressed", - "data": "http://[2001:db8::1]/", - "valid": true - }, - { - "description": "Valid - query string only", - "data": "?query=value", - "valid": true - }, - { - "description": "Valid - fragment only", - "data": "#anchor", - "valid": true - }, - { - "description": "Valid - multiple query parameters", - "data": "http://example.com?a=1&b=2&c=3", - "valid": true - }, - { - "description": "Valid - encoded characters in path", - "data": "http://example.com/path%20with%20spaces", - "valid": true - }, - { - "description": "Valid - encoded characters in query", - "data": "http://example.com?key=value%20here", - "valid": true - }, - { - "description": "Valid - complex query with encoded chars", - "data": "http://example.com?a=b&c=%2Fd%2Fe", - "valid": true - }, - { - "description": "Valid - long subdomain chain", - "data": "http://sub1.sub2.sub3.example.com/", - "valid": true - }, - { - "description": "Valid - hyphenated domain", - "data": "http://my-domain.example.com/", - "valid": true - }, - { - "description": "Valid - numbered subdomain", - "data": "http://server1.example.com/", - "valid": true - }, - { - "description": "Valid - TLD only", - "data": "http://localhost/", - "valid": true - }, - { - "description": "Valid - custom scheme", - "data": "myapp://open/document", - "valid": true - }, - { - "description": "Valid - scheme with plus", - "data": "git+https://github.com/user/repo.git", - "valid": true - }, - { - "description": "Valid - scheme with dot", - "data": "my.scheme://example", - "valid": true - }, - { - "description": "Valid - scheme with hyphen", - "data": "my-scheme://example", - "valid": true - }, - { - "description": "Valid - path with tilde", - "data": "http://example.com/~user/", - "valid": true - }, - { - "description": "Valid - path with dot files", - "data": "http://example.com/.well-known/", - "valid": true - }, - { - "description": "Valid - empty path after domain", - "data": "http://example.com", - "valid": true - }, - { - "description": "Valid - trailing slash", - "data": "http://example.com/", - "valid": true - }, - { - "description": "Valid - no trailing slash on path", - "data": "http://example.com/path", - "valid": true - } - ] -} diff --git a/test/w3c/xmlschema/2001/base64-binary/v1.test.json b/test/w3c/xmlschema/2001/base64-binary/v1.test.json deleted file mode 100644 index 4a0925ed..00000000 --- a/test/w3c/xmlschema/2001/base64-binary/v1.test.json +++ /dev/null @@ -1,525 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/base64-binary/v1.json", - "tests": [ - { - "description": "Valid - empty string", - "data": "", - "valid": true - }, - { - "description": "Valid - single char with padding", - "data": "YQ==", - "valid": true - }, - { - "description": "Valid - two chars with padding", - "data": "YWI=", - "valid": true - }, - { - "description": "Valid - three chars no padding", - "data": "YWJj", - "valid": true - }, - { - "description": "Valid - four chars", - "data": "YWJjZA==", - "valid": true - }, - { - "description": "Valid - Hello World", - "data": "SGVsbG8gV29ybGQh", - "valid": true - }, - { - "description": "Invalid - insufficient chars in final group", - "data": "a+b/c==", - "valid": false - }, - { - "description": "Valid - with plus sign", - "data": "a+b/cg==", - "valid": true - }, - { - "description": "Invalid - final quad has non-zero discarded bits (f not in B16)", - "data": "abc/def=", - "valid": false - }, - { - "description": "Valid - all uppercase", - "data": "QUJDRA==", - "valid": true - }, - { - "description": "Valid - all lowercase", - "data": "cXdlcg==", - "valid": true - }, - { - "description": "Valid - all digits", - "data": "MTIzNDU2Nzg5MA==", - "valid": true - }, - { - "description": "Valid - GIF header", - "data": "R0lGODlhAQABAAAAACw=", - "valid": true - }, - { - "description": "Valid - multiple of 4 chars", - "data": "YWJjZGVmZ2hpamtsbW5vcA==", - "valid": true - }, - { - "description": "Valid - long string", - "data": "VGhpcyBpcyBhIGxvbmcgYmFzZTY0IGVuY29kZWQgc3RyaW5nIHRoYXQgc2hvdWxkIGJlIHZhbGlk", - "valid": true - }, - { - "description": "Invalid - one equals padding only", - "data": "YWI==", - "valid": false - }, - { - "description": "Invalid - three equals", - "data": "YQ===", - "valid": false - }, - { - "description": "Invalid - padding in middle", - "data": "YQ==YWI=", - "valid": false - }, - { - "description": "Invalid - padding not at end", - "data": "Y=WI", - "valid": false - }, - { - "description": "Invalid - single character without padding (insufficient data)", - "data": "Y", - "valid": false - }, - { - "description": "Invalid - two characters without required padding", - "data": "YW", - "valid": false - }, - { - "description": "Invalid - three characters without required padding", - "data": "YWJ", - "valid": false - }, - { - "description": "Valid - single space between characters per the XSD grammar", - "data": "YWJj ZA==", - "valid": true - }, - { - "description": "Invalid - contains dash", - "data": "YWJj-ZA==", - "valid": false - }, - { - "description": "Invalid - contains underscore", - "data": "YWJj_ZA==", - "valid": false - }, - { - "description": "Invalid - contains period", - "data": "YWJj.ZA==", - "valid": false - }, - { - "description": "Invalid - contains comma", - "data": "YWJj,ZA==", - "valid": false - }, - { - "description": "Invalid - contains special char", - "data": "YWJj@ZA==", - "valid": false - }, - { - "description": "Invalid - number type", - "data": 123, - "valid": false - }, - { - "description": "Invalid - boolean type", - "data": true, - "valid": false - }, - { - "description": "Invalid - null type", - "data": null, - "valid": false - }, - { - "description": "Valid - only uppercase letters", - "data": "ABCDEFGH", - "valid": true - }, - { - "description": "Valid - only lowercase letters", - "data": "abcdefgh", - "valid": true - }, - { - "description": "Valid - only digits", - "data": "01234567", - "valid": true - }, - { - "description": "Valid - plus at start", - "data": "+ABC", - "valid": true - }, - { - "description": "Valid - slash at start", - "data": "/ABC", - "valid": true - }, - { - "description": "Valid - plus at end", - "data": "ABC+", - "valid": true - }, - { - "description": "Valid - slash at end", - "data": "ABC/", - "valid": true - }, - { - "description": "Valid - multiple plus signs", - "data": "A+B+C+D+", - "valid": true - }, - { - "description": "Valid - multiple slashes", - "data": "A/B/C/D/", - "valid": true - }, - { - "description": "Valid - plus and slash mixed", - "data": "A+B/C+D/", - "valid": true - }, - { - "description": "Valid - 8 chars no padding", - "data": "ABCDEFGH", - "valid": true - }, - { - "description": "Valid - 12 chars no padding", - "data": "ABCDEFGHIJKL", - "valid": true - }, - { - "description": "Valid - 16 chars no padding", - "data": "ABCDEFGHIJKLMNOP", - "valid": true - }, - { - "description": "Invalid - 5 chars without required padding", - "data": "ABCDE", - "valid": false - }, - { - "description": "Invalid - 6 chars without required padding", - "data": "ABCDEF", - "valid": false - }, - { - "description": "Invalid - 7 chars without required padding", - "data": "ABCDEFG", - "valid": false - }, - { - "description": "Invalid - 10 chars without required padding", - "data": "ABCDEFGHIJ", - "valid": false - }, - { - "description": "Invalid - character before double padding must be A, Q, g, or w", - "data": "AB==", - "valid": false - }, - { - "description": "Invalid - character before single padding must be from the B16 class", - "data": "ABC=", - "valid": false - }, - { - "description": "Valid - 8 chars then padding", - "data": "ABCDEFGH/w==", - "valid": true - }, - { - "description": "Valid - all char types", - "data": "AZ09+/AB", - "valid": true - }, - { - "description": "Valid - repeated patterns", - "data": "AAAABBBBCCCCDDDD", - "valid": true - }, - { - "description": "Valid - zeros encoded", - "data": "AAAA", - "valid": true - }, - { - "description": "Valid - max values encoded", - "data": "////", - "valid": true - }, - { - "description": "Valid - alternating chars", - "data": "AaAaAaAa", - "valid": true - }, - { - "description": "Invalid - padding at beginning", - "data": "==ABCD", - "valid": false - }, - { - "description": "Invalid - padding in first position", - "data": "=ABC", - "valid": false - }, - { - "description": "Invalid - only equals", - "data": "====", - "valid": false - }, - { - "description": "Invalid - single equals", - "data": "=", - "valid": false - }, - { - "description": "Invalid - double equals alone", - "data": "==", - "valid": false - }, - { - "description": "Invalid - four equals", - "data": "ABCD====", - "valid": false - }, - { - "description": "Invalid - padding then more chars", - "data": "AB==CD", - "valid": false - }, - { - "description": "Invalid - padding then padding", - "data": "AB===", - "valid": false - }, - { - "description": "Invalid - mixed padding positions", - "data": "A=B=", - "valid": false - }, - { - "description": "Invalid - three chars with two equals", - "data": "ABC==", - "valid": false - }, - { - "description": "Invalid - two chars with one equal", - "data": "AB=", - "valid": false - }, - { - "description": "Invalid - five chars with padding", - "data": "ABCDE=", - "valid": false - }, - { - "description": "Valid - uppercase G", - "data": "ABCG", - "valid": true - }, - { - "description": "Valid - lowercase g", - "data": "ABCg", - "valid": true - }, - { - "description": "Invalid - contains (", - "data": "ABC(", - "valid": false - }, - { - "description": "Invalid - contains )", - "data": "ABC)", - "valid": false - }, - { - "description": "Invalid - contains [", - "data": "ABC[", - "valid": false - }, - { - "description": "Invalid - contains ]", - "data": "ABC]", - "valid": false - }, - { - "description": "Invalid - contains {", - "data": "ABC{", - "valid": false - }, - { - "description": "Invalid - contains }", - "data": "ABC}", - "valid": false - }, - { - "description": "Invalid - contains !", - "data": "ABC!", - "valid": false - }, - { - "description": "Invalid - contains ?", - "data": "ABC?", - "valid": false - }, - { - "description": "Invalid - contains *", - "data": "ABC*", - "valid": false - }, - { - "description": "Invalid - contains &", - "data": "ABC&", - "valid": false - }, - { - "description": "Invalid - contains $", - "data": "ABC$", - "valid": false - }, - { - "description": "Invalid - contains %", - "data": "ABC%", - "valid": false - }, - { - "description": "Invalid - contains #", - "data": "ABC#", - "valid": false - }, - { - "description": "Invalid - contains ^", - "data": "ABC^", - "valid": false - }, - { - "description": "Invalid - contains ~", - "data": "ABC~", - "valid": false - }, - { - "description": "Invalid - contains `", - "data": "ABC`", - "valid": false - }, - { - "description": "Invalid - contains |", - "data": "ABC|", - "valid": false - }, - { - "description": "Invalid - contains \\", - "data": "ABC\\", - "valid": false - }, - { - "description": "Invalid - contains ;", - "data": "ABC;", - "valid": false - }, - { - "description": "Invalid - contains :", - "data": "ABC:", - "valid": false - }, - { - "description": "Invalid - contains '", - "data": "ABC'", - "valid": false - }, - { - "description": "Invalid - contains \"", - "data": "ABC\"", - "valid": false - }, - { - "description": "Invalid - contains <", - "data": "ABC<", - "valid": false - }, - { - "description": "Invalid - contains >", - "data": "ABC>", - "valid": false - }, - { - "description": "Invalid - leading tab", - "data": "\tABCD", - "valid": false - }, - { - "description": "Invalid - trailing tab", - "data": "ABCD\t", - "valid": false - }, - { - "description": "Invalid - tab in middle", - "data": "AB\tCD", - "valid": false - }, - { - "description": "Invalid - leading space", - "data": " ABCD", - "valid": false - }, - { - "description": "Invalid - trailing space", - "data": "ABCD ", - "valid": false - }, - { - "description": "Invalid - multiple spaces", - "data": "AB CD", - "valid": false - }, - { - "description": "Invalid - contains carriage return", - "data": "AB\rCD", - "valid": false - }, - { - "description": "Invalid - non-ASCII character", - "data": "ABCé", - "valid": false - }, - { - "description": "Invalid - emoji", - "data": "ABC😀", - "valid": false - }, - { - "description": "Valid - very long valid base64", - "data": "VGhpcyBpcyBhIHZlcnkgbG9uZyBiYXNlNjQgZW5jb2RlZCBzdHJpbmcgdGhhdCB3ZSBhcmUgdXNpbmcgdG8gdGVzdCB0aGUgdmFsaWRhdGlvbiBvZiBsb25nZXIgaW5wdXRzIHRvIG1ha2Ugc3VyZSBvdXIgcGF0dGVybiB3b3JrcyBjb3JyZWN0bHk=", - "valid": true - } - ] -} diff --git a/test/w3c/xmlschema/2001/boolean/v1.test.json b/test/w3c/xmlschema/2001/boolean/v1.test.json deleted file mode 100644 index f824f9d1..00000000 --- a/test/w3c/xmlschema/2001/boolean/v1.test.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/boolean/v1.json", - "tests": [ - { - "description": "Valid - true", - "data": true, - "valid": true - }, - { - "description": "Valid - false", - "data": false, - "valid": true - }, - { - "description": "Invalid - string true", - "data": "true", - "valid": false - }, - { - "description": "Invalid - string false", - "data": "false", - "valid": false - }, - { - "description": "Invalid - number 1", - "data": 1, - "valid": false - }, - { - "description": "Invalid - number 0", - "data": 0, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - } - ] -} diff --git a/test/w3c/xmlschema/2001/byte/v1.test.json b/test/w3c/xmlschema/2001/byte/v1.test.json deleted file mode 100644 index b92201a9..00000000 --- a/test/w3c/xmlschema/2001/byte/v1.test.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/byte/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive one", - "data": 1, - "valid": true - }, - { - "description": "Valid - negative one", - "data": -1, - "valid": true - }, - { - "description": "Valid - maximum (127)", - "data": 127, - "valid": true - }, - { - "description": "Valid - minimum (-128)", - "data": -128, - "valid": true - }, - { - "description": "Valid - arbitrary positive", - "data": 42, - "valid": true - }, - { - "description": "Valid - arbitrary negative", - "data": -99, - "valid": true - }, - { - "description": "Invalid: too large (128)", - "data": 128, - "valid": false - }, - { - "description": "Invalid: too small (-129)", - "data": -129, - "valid": false - }, - { - "description": "Invalid: much too large", - "data": 1000, - "valid": false - }, - { - "description": "Invalid: decimal number", - "data": 1.5, - "valid": false - }, - { - "description": "Invalid: string", - "data": "42", - "valid": false - }, - { - "description": "Invalid: boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid: null", - "data": null, - "valid": false - } - ] -} diff --git a/test/w3c/xmlschema/2001/date-time/v1.test.json b/test/w3c/xmlschema/2001/date-time/v1.test.json deleted file mode 100644 index b2bc52a1..00000000 --- a/test/w3c/xmlschema/2001/date-time/v1.test.json +++ /dev/null @@ -1,130 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/date-time/v1.json", - "tests": [ - { - "description": "Valid - basic datetime", - "data": "2023-05-15T14:30:00", - "valid": true - }, - { - "description": "Valid - datetime with Z timezone", - "data": "2023-05-15T14:30:00Z", - "valid": true - }, - { - "description": "Valid - datetime with positive offset", - "data": "2023-05-15T14:30:00+05:30", - "valid": true - }, - { - "description": "Valid - datetime with negative offset", - "data": "2023-05-15T14:30:00-08:00", - "valid": true - }, - { - "description": "Valid - datetime with fractional seconds", - "data": "2023-05-15T14:30:00.123", - "valid": true - }, - { - "description": "Valid - datetime with fractional seconds and timezone", - "data": "2023-05-15T14:30:00.123456Z", - "valid": true - }, - { - "description": "Valid - midnight", - "data": "2023-05-15T00:00:00", - "valid": true - }, - { - "description": "Valid - end of day", - "data": "2023-05-15T23:59:59", - "valid": true - }, - { - "description": "Invalid - leap second is not an XSD dateTime", - "data": "2023-12-31T23:59:60Z", - "valid": false - }, - { - "description": "Valid - negative year", - "data": "-0001-12-31T23:59:59", - "valid": true - }, - { - "description": "Valid - February 29 in leap year 2020", - "data": "2020-02-29T12:00:00", - "valid": true - }, - { - "description": "Valid - February 29 (leap year validation is consumer responsibility)", - "data": "2023-02-29T12:00:00", - "valid": true - }, - { - "description": "Invalid - year 0000 (not allowed in XML Schema 1.0)", - "data": "0000-01-01T00:00:00", - "valid": false - }, - { - "description": "Invalid - year 0000 with timezone", - "data": "0000-06-15T12:00:00Z", - "valid": false - }, - { - "description": "Invalid - negative year 0000", - "data": "-0000-12-31T23:59:59", - "valid": false - }, - { - "description": "Invalid - day 31 in 30-day month", - "data": "2023-04-31T12:00:00", - "valid": false - }, - { - "description": "Invalid - February 30", - "data": "2023-02-30T12:00:00", - "valid": false - }, - { - "description": "Valid - hour 24 as midnight", - "data": "2023-05-15T24:00:00", - "valid": true - }, - { - "description": "Invalid - minute 60", - "data": "2023-05-15T14:60:00", - "valid": false - }, - { - "description": "Invalid - second 61", - "data": "2023-05-15T14:30:61", - "valid": false - }, - { - "description": "Invalid - missing time separator T", - "data": "2023-05-15 14:30:00", - "valid": false - }, - { - "description": "Invalid - date only", - "data": "2023-05-15", - "valid": false - }, - { - "description": "Invalid - time only", - "data": "T14:30:00", - "valid": false - }, - { - "description": "Invalid - number type", - "data": 1684162200, - "valid": false - }, - { - "description": "Valid - years may have more than four digits", - "valid": true, - "data": "12000-10-10T12:00:00Z" - } - ] -} diff --git a/test/w3c/xmlschema/2001/date/v1.test.json b/test/w3c/xmlschema/2001/date/v1.test.json deleted file mode 100644 index 4f24c413..00000000 --- a/test/w3c/xmlschema/2001/date/v1.test.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/date/v1.json", - "tests": [ - { - "description": "Valid - basic date", - "data": "2023-05-15", - "valid": true - }, - { - "description": "Valid - date with Z timezone", - "data": "2023-05-15Z", - "valid": true - }, - { - "description": "Valid - date with positive offset", - "data": "2023-05-15+05:30", - "valid": true - }, - { - "description": "Valid - date with negative offset", - "data": "2023-05-15-08:00", - "valid": true - }, - { - "description": "Valid - January 1", - "data": "2023-01-01", - "valid": true - }, - { - "description": "Valid - December 31", - "data": "2023-12-31", - "valid": true - }, - { - "description": "Valid - February 29 in leap year 2020", - "data": "2020-02-29", - "valid": true - }, - { - "description": "Valid - February 29 (leap year validation is consumer responsibility)", - "data": "2023-02-29", - "valid": true - }, - { - "description": "Valid - negative year", - "data": "-0001-12-31", - "valid": true - }, - { - "description": "Valid - negative year with timezone", - "data": "-2023-05-15Z", - "valid": true - }, - { - "description": "Invalid - year 0000 (not allowed in XML Schema 1.0)", - "data": "0000-01-01", - "valid": false - }, - { - "description": "Invalid - year 0000 with timezone", - "data": "0000-06-15Z", - "valid": false - }, - { - "description": "Invalid - negative year 0000", - "data": "-0000-12-31", - "valid": false - }, - { - "description": "Invalid - February 30", - "data": "2023-02-30", - "valid": false - }, - { - "description": "Invalid - day 31 in 30-day month", - "data": "2023-04-31", - "valid": false - }, - { - "description": "Invalid - day 32", - "data": "2023-05-32", - "valid": false - }, - { - "description": "Invalid - month 13", - "data": "2023-13-01", - "valid": false - }, - { - "description": "Invalid - month 00", - "data": "2023-00-01", - "valid": false - }, - { - "description": "Invalid - day 00", - "data": "2023-05-00", - "valid": false - }, - { - "description": "Invalid - three digit year", - "data": "999-05-15", - "valid": false - }, - { - "description": "Valid - years may have more than four digits", - "data": "10000-05-15", - "valid": true - }, - { - "description": "Invalid - with time component", - "data": "2023-05-15T14:30:00", - "valid": false - }, - { - "description": "Invalid - number type", - "data": 20230515, - "valid": false - }, - { - "description": "Invalid - timezone offset beyond the fourteen hour cap", - "valid": false, - "data": "2002-10-10+15:00" - } - ] -} diff --git a/test/w3c/xmlschema/2001/decimal/v1.test.json b/test/w3c/xmlschema/2001/decimal/v1.test.json deleted file mode 100644 index 513d297d..00000000 --- a/test/w3c/xmlschema/2001/decimal/v1.test.json +++ /dev/null @@ -1,162 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/decimal/v1.json", - "tests": [ - { - "description": "Valid - positive integer", - "data": 123, - "valid": true - }, - { - "description": "Valid - negative integer", - "data": -456, - "valid": true - }, - { - "description": "Valid - positive decimal", - "data": 123.45, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -123.45, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - zero with decimal", - "data": 0.0, - "valid": true - }, - { - "description": "Valid - many digits", - "data": 123456789012345, - "valid": true - }, - { - "description": "Valid - single digit", - "data": 5, - "valid": true - }, - { - "description": "Valid - trailing zeros after decimal", - "data": 123.0, - "valid": true - }, - { - "description": "Valid - many decimal places", - "data": 1.12346, - "valid": true - }, - { - "description": "Valid - negative zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - only zero before decimal", - "data": 0.1, - "valid": true - }, - { - "description": "Valid - single zero after decimal", - "data": 1.0, - "valid": true - }, - { - "description": "Valid - large decimal", - "data": 123457, - "valid": true - }, - { - "description": "Valid - small decimal", - "data": 1e-6, - "valid": true - }, - { - "description": "Valid - arbitrary precision 18 digits integer", - "data": 123456789012345678, - "valid": true - }, - { - "description": "Valid - arbitrary precision 19 digits integer", - "data": 1234567890123456789, - "valid": true - }, - { - "description": "Valid - arbitrary precision 20 digits integer", - "data": 1.2345678901234567890e+19, - "valid": true - }, - { - "description": "Valid - arbitrary precision large negative", - "data": -1.2345678901234567890e+19, - "valid": true - }, - { - "description": "Valid - arbitrary precision 25 digits", - "data": 1.234567890123456789012345e+24, - "valid": true - }, - { - "description": "Valid - arbitrary precision with decimals", - "data": 1.234567890123456800e+17, - "valid": true - }, - { - "description": "Valid - arbitrary precision negative with decimals", - "data": -1.234567890123456800e+17, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "123.45", - "valid": false - }, - { - "description": "Invalid - string with plus sign", - "data": "+123.45", - "valid": false - }, - { - "description": "Invalid - string integer", - "data": "123", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - text", - "data": "abc", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - }, - { - "description": "Invalid - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid - array", - "data": [ 123.45 ], - "valid": false - }, - { - "description": "Invalid - object", - "data": { - "value": 123.45 - }, - "valid": false - } - ] -} diff --git a/test/w3c/xmlschema/2001/double/v1.test.json b/test/w3c/xmlschema/2001/double/v1.test.json deleted file mode 100644 index c2de4d75..00000000 --- a/test/w3c/xmlschema/2001/double/v1.test.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/double/v1.json", - "tests": [ - { - "description": "Valid - positive double", - "data": 3.14159, - "valid": true - }, - { - "description": "Valid - negative double", - "data": -2.71828, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0.0, - "valid": true - }, - { - "description": "Valid - negative zero", - "data": 0.0, - "valid": true - }, - { - "description": "Valid - integer", - "data": 42, - "valid": true - }, - { - "description": "Valid - very large number", - "data": 1.797693134862315708145274237317043567980705675258449965989174768031572607800285387605895586327668781715404589535143824642343213268894641827684675467035375169860499105765512820762454900903893289440758685084551339423045832369032229481658085593321233482747978262041447231687381771809192998812504040261841248583680e+308, - "valid": true - }, - { - "description": "Valid - very small number", - "data": 2.23e-308, - "valid": true - }, - { - "description": "Valid - positive infinity", - "data": "INF", - "valid": true - }, - { - "description": "Valid - negative infinity", - "data": "-INF", - "valid": true - }, - { - "description": "Valid - not a number", - "data": "NaN", - "valid": true - }, - { - "description": "Invalid - IEEE 754-2019 positive infinity", - "data": "+Inf", - "valid": false - }, - { - "description": "Invalid - IEEE 754-2019 negative infinity", - "data": "-Inf", - "valid": false - }, - { - "description": "Invalid - C23 INFINITY", - "data": "INFINITY", - "valid": false - }, - { - "description": "Invalid - C23 -INFINITY", - "data": "-INFINITY", - "valid": false - }, - { - "description": "Invalid - C23 NAN", - "data": "NAN", - "valid": false - }, - { - "description": "Invalid - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - }, - { - "description": "Invalid - string number", - "data": "123.45", - "valid": false - } - ] -} diff --git a/test/w3c/xmlschema/2001/duration/v1.test.json b/test/w3c/xmlschema/2001/duration/v1.test.json deleted file mode 100644 index 8eb132c6..00000000 --- a/test/w3c/xmlschema/2001/duration/v1.test.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/duration/v1.json", - "tests": [ - { - "description": "Valid - years only", - "data": "P1Y", - "valid": true - }, - { - "description": "Valid - months only", - "data": "P6M", - "valid": true - }, - { - "description": "Valid - days only", - "data": "P100D", - "valid": true - }, - { - "description": "Valid - hours only", - "data": "PT5H", - "valid": true - }, - { - "description": "Valid - minutes only", - "data": "PT30M", - "valid": true - }, - { - "description": "Valid - seconds only", - "data": "PT45S", - "valid": true - }, - { - "description": "Valid - full date and time", - "data": "P1Y2M3DT4H5M6S", - "valid": true - }, - { - "description": "Valid - decimal seconds", - "data": "PT1.5S", - "valid": true - }, - { - "description": "Valid - negative duration years", - "data": "-P1Y", - "valid": true - }, - { - "description": "Valid - negative duration full", - "data": "-P1Y2M3DT4H5M6S", - "valid": true - }, - { - "description": "Invalid - decimal fraction only allowed on seconds", - "data": "-PT30.5M", - "valid": false - }, - { - "description": "Invalid - empty P", - "data": "P", - "valid": false - }, - { - "description": "Invalid - empty PT", - "data": "PT", - "valid": false - }, - { - "description": "Invalid - empty -P", - "data": "-P", - "valid": false - }, - { - "description": "Invalid - empty -PT", - "data": "-PT", - "valid": false - }, - { - "description": "Invalid - missing P", - "data": "1Y2M3D", - "valid": false - }, - { - "description": "Invalid - missing T for time", - "data": "P1Y2M3D4H5M6S", - "valid": false - }, - { - "description": "Invalid - number type", - "data": 100, - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - } - ] -} diff --git a/test/w3c/xmlschema/2001/entities/v1.test.json b/test/w3c/xmlschema/2001/entities/v1.test.json deleted file mode 100644 index 1e41d958..00000000 --- a/test/w3c/xmlschema/2001/entities/v1.test.json +++ /dev/null @@ -1,186 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/entities/v1.json", - "tests": [ - { - "description": "Valid - two entities", - "data": [ "entity1", "entity2" ], - "valid": true - }, - { - "description": "Valid - single entity", - "data": [ "singleEntity" ], - "valid": true - }, - { - "description": "Valid - multiple entities", - "data": [ "_img1", "_img2", "_img3" ], - "valid": true - }, - { - "description": "Valid - entities with special chars", - "data": [ "logo-main", "banner.v2", "icon_small" ], - "valid": true - }, - { - "description": "Valid - many entities", - "data": [ "e1", "e2", "e3", "e4", "e5" ], - "valid": true - }, - { - "description": "Valid - Unicode entities", - "data": [ "логотип", "изображение", "アイコン" ], - "valid": true - }, - { - "description": "Valid - mixed script entities", - "data": [ "image", "画像", "зображення" ], - "valid": true - }, - { - "description": "Valid - long list", - "data": [ - "entity0", - "entity1", - "entity2", - "entity3", - "entity4", - "entity5", - "entity6", - "entity7", - "entity8", - "entity9", - "entity10", - "entity11", - "entity12", - "entity13", - "entity14", - "entity15", - "entity16", - "entity17", - "entity18", - "entity19", - "entity20", - "entity21", - "entity22", - "entity23", - "entity24", - "entity25", - "entity26", - "entity27", - "entity28", - "entity29", - "entity30", - "entity31", - "entity32", - "entity33", - "entity34", - "entity35", - "entity36", - "entity37", - "entity38", - "entity39", - "entity40", - "entity41", - "entity42", - "entity43", - "entity44", - "entity45", - "entity46", - "entity47", - "entity48", - "entity49" - ], - "valid": true - }, - { - "description": "Invalid: empty array", - "data": [], - "valid": false - }, - { - "description": "Invalid: entity contains colon", - "data": [ "valid", "ns:entity" ], - "valid": false - }, - { - "description": "Invalid: entity starts with digit", - "data": [ "valid", "5entity" ], - "valid": false - }, - { - "description": "Invalid: entity contains space", - "data": [ "valid", "my entity" ], - "valid": false - }, - { - "description": "Invalid: entity is empty", - "data": [ "valid", "" ], - "valid": false - }, - { - "description": "Invalid: entity contains special char", - "data": [ "valid", "entity$ref" ], - "valid": false - }, - { - "description": "Invalid: not an array (string)", - "data": "entity1 entity2", - "valid": false - }, - { - "description": "Invalid: not an array (number)", - "data": 999, - "valid": false - }, - { - "description": "Invalid: not an array (boolean)", - "data": true, - "valid": false - }, - { - "description": "Invalid: not an array (null)", - "data": null, - "valid": false - }, - { - "description": "Invalid: not an array (object)", - "data": { - "entities": [ "a", "b" ] - }, - "valid": false - }, - { - "description": "Invalid: array contains number", - "data": [ "valid", 111 ], - "valid": false - }, - { - "description": "Invalid: array contains boolean", - "data": [ "valid", true ], - "valid": false - }, - { - "description": "Invalid: array contains null", - "data": [ "valid", null ], - "valid": false - }, - { - "description": "Invalid: array contains object", - "data": [ - "valid", - { - "entity": "x" - } - ], - "valid": false - }, - { - "description": "Invalid: array contains array", - "data": [ - "valid", - [ "nested" ] - ], - "valid": false - } - ] -} diff --git a/test/w3c/xmlschema/2001/entity/v1.test.json b/test/w3c/xmlschema/2001/entity/v1.test.json deleted file mode 100644 index 7a6622ef..00000000 --- a/test/w3c/xmlschema/2001/entity/v1.test.json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/entity/v1.json", - "tests": [ - { - "description": "Valid - simple entity", - "data": "logo", - "valid": true - }, - { - "description": "Valid - with underscore", - "data": "_image1", - "valid": true - }, - { - "description": "Valid - CamelCase", - "data": "MyEntity", - "valid": true - }, - { - "description": "Valid - with hyphen", - "data": "banner-img", - "valid": true - }, - { - "description": "Valid - with period", - "data": "icon.v2", - "valid": true - }, - { - "description": "Valid - with digits", - "data": "entity99", - "valid": true - }, - { - "description": "Valid - single letter", - "data": "e", - "valid": true - }, - { - "description": "Valid - complex entity", - "data": "unparsed_entity-ref.1", - "valid": true - }, - { - "description": "Valid - Unicode", - "data": "сутність", - "valid": true - }, - { - "description": "Invalid: contains colon", - "data": "ns:entity", - "valid": false - }, - { - "description": "Invalid: starts with digit", - "data": "7entity", - "valid": false - }, - { - "description": "Invalid: starts with hyphen", - "data": "-entity", - "valid": false - }, - { - "description": "Invalid: empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid: contains space", - "data": "my entity", - "valid": false - }, - { - "description": "Invalid: contains special char $", - "data": "entity$ref", - "valid": false - }, - { - "description": "Invalid: number type", - "data": 789, - "valid": false - }, - { - "description": "Invalid: boolean type", - "data": true, - "valid": false - }, - { - "description": "Invalid: null type", - "data": null, - "valid": false - }, - { - "description": "Invalid: array type", - "data": [ "entity" ], - "valid": false - }, - { - "description": "Invalid: object type", - "data": { - "entity": "value" - }, - "valid": false - } - ] -} diff --git a/test/w3c/xmlschema/2001/float/v1.test.json b/test/w3c/xmlschema/2001/float/v1.test.json deleted file mode 100644 index f2633c25..00000000 --- a/test/w3c/xmlschema/2001/float/v1.test.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/float/v1.json", - "tests": [ - { - "description": "Valid - positive float", - "data": 3.14, - "valid": true - }, - { - "description": "Valid - negative float", - "data": -2.718, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0.0, - "valid": true - }, - { - "description": "Valid - negative zero", - "data": 0.0, - "valid": true - }, - { - "description": "Valid - integer", - "data": 42, - "valid": true - }, - { - "description": "Valid - positive infinity", - "data": "INF", - "valid": true - }, - { - "description": "Valid - negative infinity", - "data": "-INF", - "valid": true - }, - { - "description": "Valid - not a number", - "data": "NaN", - "valid": true - }, - { - "description": "Invalid - IEEE 754-2019 positive infinity", - "data": "+Inf", - "valid": false - }, - { - "description": "Invalid - IEEE 754-2019 negative infinity", - "data": "-Inf", - "valid": false - }, - { - "description": "Invalid - C23 INFINITY", - "data": "INFINITY", - "valid": false - }, - { - "description": "Invalid - C23 -INFINITY", - "data": "-INFINITY", - "valid": false - }, - { - "description": "Invalid - C23 NAN", - "data": "NAN", - "valid": false - }, - { - "description": "Invalid - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - }, - { - "description": "Invalid - string number", - "data": "123.45", - "valid": false - } - ] -} diff --git a/test/w3c/xmlschema/2001/g-day/v1.test.json b/test/w3c/xmlschema/2001/g-day/v1.test.json deleted file mode 100644 index 34887dba..00000000 --- a/test/w3c/xmlschema/2001/g-day/v1.test.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/g-day/v1.json", - "tests": [ - { - "description": "Valid - basic day", - "data": "---15", - "valid": true - }, - { - "description": "Valid - day with Z timezone", - "data": "---15Z", - "valid": true - }, - { - "description": "Valid - day with positive offset", - "data": "---15+05:30", - "valid": true - }, - { - "description": "Valid - day with negative offset", - "data": "---15-08:00", - "valid": true - }, - { - "description": "Valid - day 01", - "data": "---01", - "valid": true - }, - { - "description": "Valid - day 31", - "data": "---31", - "valid": true - }, - { - "description": "Invalid - day 00", - "data": "---00", - "valid": false - }, - { - "description": "Invalid - day 32", - "data": "---32", - "valid": false - }, - { - "description": "Invalid - single digit day", - "data": "---5", - "valid": false - }, - { - "description": "Invalid - two dashes", - "data": "--15", - "valid": false - }, - { - "description": "Invalid - four dashes", - "data": "----15", - "valid": false - }, - { - "description": "Invalid - with month", - "data": "---05-15", - "valid": false - }, - { - "description": "Invalid - number type", - "data": 15, - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - timezone offset beyond the fourteen hour cap", - "valid": false, - "data": "---15+23:59" - } - ] -} diff --git a/test/w3c/xmlschema/2001/g-month-day/v1.test.json b/test/w3c/xmlschema/2001/g-month-day/v1.test.json deleted file mode 100644 index bed4b799..00000000 --- a/test/w3c/xmlschema/2001/g-month-day/v1.test.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/g-month-day/v1.json", - "tests": [ - { - "description": "Valid - basic month-day", - "data": "--05-15", - "valid": true - }, - { - "description": "Valid - month-day with Z timezone", - "data": "--05-15Z", - "valid": true - }, - { - "description": "Valid - month-day with positive offset", - "data": "--05-15+05:30", - "valid": true - }, - { - "description": "Valid - month-day with negative offset", - "data": "--05-15-08:00", - "valid": true - }, - { - "description": "Valid - January 1", - "data": "--01-01", - "valid": true - }, - { - "description": "Valid - December 31", - "data": "--12-31", - "valid": true - }, - { - "description": "Valid - February 29", - "data": "--02-29", - "valid": true - }, - { - "description": "Valid - April 30", - "data": "--04-30", - "valid": true - }, - { - "description": "Invalid - February 30", - "data": "--02-30", - "valid": false - }, - { - "description": "Invalid - April 31", - "data": "--04-31", - "valid": false - }, - { - "description": "Invalid - day 32", - "data": "--05-32", - "valid": false - }, - { - "description": "Invalid - month 13", - "data": "--13-01", - "valid": false - }, - { - "description": "Invalid - month 00", - "data": "--00-01", - "valid": false - }, - { - "description": "Invalid - day 00", - "data": "--05-00", - "valid": false - }, - { - "description": "Invalid - single dash prefix", - "data": "-05-15", - "valid": false - }, - { - "description": "Invalid - triple dash prefix", - "data": "---05-15", - "valid": false - }, - { - "description": "Invalid - with year", - "data": "--2023-05-15", - "valid": false - }, - { - "description": "Invalid - number type", - "data": 515, - "valid": false - }, - { - "description": "Invalid - timezone offset beyond the fourteen hour cap", - "valid": false, - "data": "--09-14+23:00" - } - ] -} diff --git a/test/w3c/xmlschema/2001/g-month/v1.test.json b/test/w3c/xmlschema/2001/g-month/v1.test.json deleted file mode 100644 index d407a92b..00000000 --- a/test/w3c/xmlschema/2001/g-month/v1.test.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/g-month/v1.json", - "tests": [ - { - "description": "Valid - basic month", - "data": "--05", - "valid": true - }, - { - "description": "Valid - month with Z timezone", - "data": "--05Z", - "valid": true - }, - { - "description": "Valid - month with positive offset", - "data": "--05+05:30", - "valid": true - }, - { - "description": "Valid - month with negative offset", - "data": "--05-08:00", - "valid": true - }, - { - "description": "Valid - January", - "data": "--01", - "valid": true - }, - { - "description": "Valid - December", - "data": "--12", - "valid": true - }, - { - "description": "Invalid - month 00", - "data": "--00", - "valid": false - }, - { - "description": "Invalid - month 13", - "data": "--13", - "valid": false - }, - { - "description": "Invalid - single digit month", - "data": "--5", - "valid": false - }, - { - "description": "Invalid - single dash", - "data": "-05", - "valid": false - }, - { - "description": "Invalid - triple dash", - "data": "---05", - "valid": false - }, - { - "description": "Invalid - with day", - "data": "--05-15", - "valid": false - }, - { - "description": "Invalid - with year", - "data": "2023--05", - "valid": false - }, - { - "description": "Invalid - number type", - "data": 5, - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - timezone offset beyond the fourteen hour cap", - "valid": false, - "data": "--11+15:00" - } - ] -} diff --git a/test/w3c/xmlschema/2001/g-year-month/v1.test.json b/test/w3c/xmlschema/2001/g-year-month/v1.test.json deleted file mode 100644 index 56d992c1..00000000 --- a/test/w3c/xmlschema/2001/g-year-month/v1.test.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/g-year-month/v1.json", - "tests": [ - { - "description": "Valid - basic year-month", - "data": "2023-05", - "valid": true - }, - { - "description": "Valid - year-month with Z timezone", - "data": "2023-05Z", - "valid": true - }, - { - "description": "Valid - year-month with positive offset", - "data": "2023-05+05:30", - "valid": true - }, - { - "description": "Valid - year-month with negative offset", - "data": "2023-05-08:00", - "valid": true - }, - { - "description": "Valid - January", - "data": "2023-01", - "valid": true - }, - { - "description": "Valid - December", - "data": "2023-12", - "valid": true - }, - { - "description": "Valid - negative year", - "data": "-0001-12", - "valid": true - }, - { - "description": "Valid - negative year with timezone", - "data": "-2023-05Z", - "valid": true - }, - { - "description": "Invalid - year 0000 (not allowed in XML Schema 1.0)", - "data": "0000-01", - "valid": false - }, - { - "description": "Invalid - year 0000 with timezone", - "data": "0000-05Z", - "valid": false - }, - { - "description": "Invalid - negative year 0000", - "data": "-0000-12", - "valid": false - }, - { - "description": "Invalid - month 13", - "data": "2023-13", - "valid": false - }, - { - "description": "Invalid - month 00", - "data": "2023-00", - "valid": false - }, - { - "description": "Invalid - three digit year", - "data": "999-05", - "valid": false - }, - { - "description": "Valid - years may have more than four digits", - "data": "10000-05", - "valid": true - }, - { - "description": "Invalid - with day component", - "data": "2023-05-15", - "valid": false - }, - { - "description": "Invalid - single digit month", - "data": "2023-5", - "valid": false - }, - { - "description": "Invalid - number type", - "data": 202305, - "valid": false - }, - { - "description": "Invalid - timezone offset beyond the fourteen hour cap", - "valid": false, - "data": "1999-05+22:00" - } - ] -} diff --git a/test/w3c/xmlschema/2001/g-year/v1.test.json b/test/w3c/xmlschema/2001/g-year/v1.test.json deleted file mode 100644 index 0ae4263a..00000000 --- a/test/w3c/xmlschema/2001/g-year/v1.test.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/g-year/v1.json", - "tests": [ - { - "description": "Valid - basic year", - "data": "2023", - "valid": true - }, - { - "description": "Valid - year with Z timezone", - "data": "2023Z", - "valid": true - }, - { - "description": "Valid - year with positive offset", - "data": "2023+05:30", - "valid": true - }, - { - "description": "Valid - year with negative offset", - "data": "2023-08:00", - "valid": true - }, - { - "description": "Valid - year 9999", - "data": "9999", - "valid": true - }, - { - "description": "Invalid - year 0000 (not allowed in XML Schema 1.0)", - "data": "0000", - "valid": false - }, - { - "description": "Invalid - year 0000 with timezone", - "data": "0000Z", - "valid": false - }, - { - "description": "Invalid - negative year 0000", - "data": "-0000", - "valid": false - }, - { - "description": "Valid - negative year", - "data": "-0001", - "valid": true - }, - { - "description": "Valid - negative year with timezone", - "data": "-2023Z", - "valid": true - }, - { - "description": "Invalid - three digit year", - "data": "999", - "valid": false - }, - { - "description": "Valid - years may have more than four digits", - "data": "10000", - "valid": true - }, - { - "description": "Invalid - with month component", - "data": "2023-05", - "valid": false - }, - { - "description": "Invalid - with full date", - "data": "2023-05-15", - "valid": false - }, - { - "description": "Invalid - number type", - "data": 2023, - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - timezone offset beyond the fourteen hour cap", - "valid": false, - "data": "1999+23:59" - } - ] -} diff --git a/test/w3c/xmlschema/2001/hex-binary/v1.test.json b/test/w3c/xmlschema/2001/hex-binary/v1.test.json deleted file mode 100644 index cc3abb6d..00000000 --- a/test/w3c/xmlschema/2001/hex-binary/v1.test.json +++ /dev/null @@ -1,500 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/hex-binary/v1.json", - "tests": [ - { - "description": "Valid - empty string", - "data": "", - "valid": true - }, - { - "description": "Valid - single byte lowercase", - "data": "0f", - "valid": true - }, - { - "description": "Valid - single byte uppercase", - "data": "0F", - "valid": true - }, - { - "description": "Valid - single byte mixed case", - "data": "0F", - "valid": true - }, - { - "description": "Valid - two bytes", - "data": "0FB7", - "valid": true - }, - { - "description": "Valid - all lowercase", - "data": "deadbeef", - "valid": true - }, - { - "description": "Valid - all uppercase", - "data": "DEADBEEF", - "valid": true - }, - { - "description": "Valid - mixed case", - "data": "DeAdBeEf", - "valid": true - }, - { - "description": "Valid - all hex digits lowercase", - "data": "0123456789abcdef", - "valid": true - }, - { - "description": "Valid - all hex digits uppercase", - "data": "0123456789ABCDEF", - "valid": true - }, - { - "description": "Valid - many bytes", - "data": "0123456789ABCDEF0123456789ABCDEF", - "valid": true - }, - { - "description": "Valid - zeros", - "data": "0000", - "valid": true - }, - { - "description": "Valid - FFs", - "data": "FFFF", - "valid": true - }, - { - "description": "Invalid - odd number of digits", - "data": "0FB", - "valid": false - }, - { - "description": "Invalid - single digit", - "data": "F", - "valid": false - }, - { - "description": "Invalid - three digits", - "data": "ABC", - "valid": false - }, - { - "description": "Invalid - contains G", - "data": "0G", - "valid": false - }, - { - "description": "Invalid - contains Z", - "data": "0Z", - "valid": false - }, - { - "description": "Invalid - contains space", - "data": "0F B7", - "valid": false - }, - { - "description": "Invalid - contains dash", - "data": "0F-B7", - "valid": false - }, - { - "description": "Invalid - contains colon", - "data": "0F:B7", - "valid": false - }, - { - "description": "Invalid - leading space", - "data": " 0FB7", - "valid": false - }, - { - "description": "Invalid - trailing space", - "data": "0FB7 ", - "valid": false - }, - { - "description": "Invalid - contains lowercase g", - "data": "0g", - "valid": false - }, - { - "description": "Invalid - contains non-hex letter", - "data": "HELLO", - "valid": false - }, - { - "description": "Invalid - number type", - "data": 123, - "valid": false - }, - { - "description": "Invalid - boolean type", - "data": true, - "valid": false - }, - { - "description": "Invalid - null type", - "data": null, - "valid": false - }, - { - "description": "Invalid - contains special chars", - "data": "0F@B", - "valid": false - }, - { - "description": "Invalid - contains plus", - "data": "0F+B7", - "valid": false - }, - { - "description": "Invalid - contains slash", - "data": "0F/B7", - "valid": false - }, - { - "description": "Invalid - contains equals", - "data": "0F=B7", - "valid": false - }, - { - "description": "Valid - 4 bytes", - "data": "ABCD1234", - "valid": true - }, - { - "description": "Valid - 8 bytes", - "data": "0123456789ABCDEF", - "valid": true - }, - { - "description": "Valid - 16 bytes", - "data": "0123456789ABCDEF0123456789ABCDEF", - "valid": true - }, - { - "description": "Valid - 32 bytes", - "data": "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF", - "valid": true - }, - { - "description": "Valid - all F uppercase", - "data": "FFFFFFFF", - "valid": true - }, - { - "description": "Valid - all f lowercase", - "data": "ffffffff", - "valid": true - }, - { - "description": "Valid - all zeros", - "data": "00000000", - "valid": true - }, - { - "description": "Valid - alternating hex digits", - "data": "0A0B0C0D", - "valid": true - }, - { - "description": "Valid - sequential hex", - "data": "0123456789ABCDEF", - "valid": true - }, - { - "description": "Valid - mixed case sequential", - "data": "0123456789AbCdEf", - "valid": true - }, - { - "description": "Valid - lowercase sequential", - "data": "0123456789abcdef", - "valid": true - }, - { - "description": "Valid - only digits", - "data": "01234567", - "valid": true - }, - { - "description": "Valid - only uppercase letters", - "data": "ABCDEF", - "valid": true - }, - { - "description": "Valid - only lowercase letters", - "data": "abcdef", - "valid": true - }, - { - "description": "Valid - start with 0", - "data": "00AB", - "valid": true - }, - { - "description": "Valid - start with F", - "data": "FFAB", - "valid": true - }, - { - "description": "Valid - end with 0", - "data": "AB00", - "valid": true - }, - { - "description": "Valid - end with F", - "data": "ABFF", - "valid": true - }, - { - "description": "Valid - repeated pattern", - "data": "ABABABAB", - "valid": true - }, - { - "description": "Valid - all same byte", - "data": "AAAAAAAA", - "valid": true - }, - { - "description": "Invalid - single 0", - "data": "0", - "valid": false - }, - { - "description": "Invalid - single A", - "data": "A", - "valid": false - }, - { - "description": "Invalid - three chars", - "data": "0AB", - "valid": false - }, - { - "description": "Invalid - five chars", - "data": "0ABCD", - "valid": false - }, - { - "description": "Invalid - seven chars", - "data": "0ABCDEF", - "valid": false - }, - { - "description": "Invalid - nine chars", - "data": "0ABCDEF12", - "valid": false - }, - { - "description": "Invalid - eleven chars", - "data": "0ABCDEF1234", - "valid": false - }, - { - "description": "Invalid - G at start", - "data": "G0AB", - "valid": false - }, - { - "description": "Invalid - G at end", - "data": "AB0G", - "valid": false - }, - { - "description": "Invalid - G in middle", - "data": "0GBC", - "valid": false - }, - { - "description": "Invalid - lowercase g at start", - "data": "g0ab", - "valid": false - }, - { - "description": "Invalid - H", - "data": "0HAB", - "valid": false - }, - { - "description": "Invalid - I", - "data": "0IAB", - "valid": false - }, - { - "description": "Invalid - J", - "data": "0JAB", - "valid": false - }, - { - "description": "Invalid - Z", - "data": "0ZAB", - "valid": false - }, - { - "description": "Invalid - lowercase h", - "data": "0hab", - "valid": false - }, - { - "description": "Invalid - lowercase z", - "data": "0zab", - "valid": false - }, - { - "description": "Invalid - contains .", - "data": "0A.B", - "valid": false - }, - { - "description": "Invalid - contains ,", - "data": "0A,BC", - "valid": false - }, - { - "description": "Invalid - contains ;", - "data": "0A;B", - "valid": false - }, - { - "description": "Invalid - contains !", - "data": "0A!B", - "valid": false - }, - { - "description": "Invalid - contains ?", - "data": "0A?B", - "valid": false - }, - { - "description": "Invalid - contains @", - "data": "0A@B", - "valid": false - }, - { - "description": "Invalid - contains #", - "data": "0A#B", - "valid": false - }, - { - "description": "Invalid - contains $", - "data": "0A$B", - "valid": false - }, - { - "description": "Invalid - contains %", - "data": "0A%B", - "valid": false - }, - { - "description": "Invalid - contains &", - "data": "0A&B", - "valid": false - }, - { - "description": "Invalid - contains *", - "data": "0A*B", - "valid": false - }, - { - "description": "Invalid - contains (", - "data": "0A(B", - "valid": false - }, - { - "description": "Invalid - contains )", - "data": "0A)B", - "valid": false - }, - { - "description": "Invalid - contains [", - "data": "0A[B", - "valid": false - }, - { - "description": "Invalid - contains ]", - "data": "0A]B", - "valid": false - }, - { - "description": "Invalid - contains {", - "data": "0A{B", - "valid": false - }, - { - "description": "Invalid - contains }", - "data": "0A}B", - "valid": false - }, - { - "description": "Invalid - contains |", - "data": "0A|B", - "valid": false - }, - { - "description": "Invalid - contains \\", - "data": "0A\\B", - "valid": false - }, - { - "description": "Invalid - contains ~", - "data": "0A~B", - "valid": false - }, - { - "description": "Invalid - contains `", - "data": "0A`B", - "valid": false - }, - { - "description": "Invalid - contains ^", - "data": "0A^B", - "valid": false - }, - { - "description": "Invalid - contains <", - "data": "0A", - "data": "0A>B", - "valid": false - }, - { - "description": "Invalid - contains tab", - "data": "0A\tBC", - "valid": false - }, - { - "description": "Invalid - contains carriage return", - "data": "0A\rBC", - "valid": false - }, - { - "description": "Invalid - non-ASCII", - "data": "0Aé", - "valid": false - }, - { - "description": "Invalid - emoji", - "data": "0A😀", - "valid": false - }, - { - "description": "Invalid - underscore", - "data": "0A_B", - "valid": false - }, - { - "description": "Invalid - equals mixed in", - "data": "0A=B", - "valid": false - } - ] -} diff --git a/test/w3c/xmlschema/2001/id/v1.test.json b/test/w3c/xmlschema/2001/id/v1.test.json deleted file mode 100644 index 962eaff6..00000000 --- a/test/w3c/xmlschema/2001/id/v1.test.json +++ /dev/null @@ -1,112 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/id/v1.json", - "tests": [ - { - "description": "Valid - simple identifier", - "data": "id123", - "valid": true - }, - { - "description": "Valid - with underscore", - "data": "_privateId", - "valid": true - }, - { - "description": "Valid - CamelCase", - "data": "MyUniqueId", - "valid": true - }, - { - "description": "Valid - with hyphen", - "data": "user-id", - "valid": true - }, - { - "description": "Valid - with period", - "data": "id.v2", - "valid": true - }, - { - "description": "Valid - with digits", - "data": "element123", - "valid": true - }, - { - "description": "Valid - single letter", - "data": "x", - "valid": true - }, - { - "description": "Valid - complex id", - "data": "user_profile-v2.1", - "valid": true - }, - { - "description": "Valid - Unicode", - "data": "ідентифікатор", - "valid": true - }, - { - "description": "Invalid: contains colon", - "data": "ns:id", - "valid": false - }, - { - "description": "Invalid: starts with digit", - "data": "9id", - "valid": false - }, - { - "description": "Invalid: starts with hyphen", - "data": "-id", - "valid": false - }, - { - "description": "Invalid: starts with period", - "data": ".id", - "valid": false - }, - { - "description": "Invalid: empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid: contains space", - "data": "my id", - "valid": false - }, - { - "description": "Invalid: contains special char @", - "data": "id@123", - "valid": false - }, - { - "description": "Invalid: number type", - "data": 123, - "valid": false - }, - { - "description": "Invalid: boolean type", - "data": true, - "valid": false - }, - { - "description": "Invalid: null type", - "data": null, - "valid": false - }, - { - "description": "Invalid: array type", - "data": [ "id" ], - "valid": false - }, - { - "description": "Invalid: object type", - "data": { - "id": "value" - }, - "valid": false - } - ] -} diff --git a/test/w3c/xmlschema/2001/idref/v1.test.json b/test/w3c/xmlschema/2001/idref/v1.test.json deleted file mode 100644 index 08617898..00000000 --- a/test/w3c/xmlschema/2001/idref/v1.test.json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/idref/v1.json", - "tests": [ - { - "description": "Valid - simple reference", - "data": "ref123", - "valid": true - }, - { - "description": "Valid - with underscore", - "data": "_refToId", - "valid": true - }, - { - "description": "Valid - CamelCase", - "data": "MyReference", - "valid": true - }, - { - "description": "Valid - with hyphen", - "data": "user-ref", - "valid": true - }, - { - "description": "Valid - with period", - "data": "ref.v1", - "valid": true - }, - { - "description": "Valid - with digits", - "data": "target42", - "valid": true - }, - { - "description": "Valid - single letter", - "data": "a", - "valid": true - }, - { - "description": "Valid - complex ref", - "data": "link_to-item.1", - "valid": true - }, - { - "description": "Valid - Unicode", - "data": "посилання", - "valid": true - }, - { - "description": "Invalid: contains colon", - "data": "ns:ref", - "valid": false - }, - { - "description": "Invalid: starts with digit", - "data": "1ref", - "valid": false - }, - { - "description": "Invalid: starts with hyphen", - "data": "-ref", - "valid": false - }, - { - "description": "Invalid: empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid: contains space", - "data": "my ref", - "valid": false - }, - { - "description": "Invalid: contains special char #", - "data": "ref#123", - "valid": false - }, - { - "description": "Invalid: number type", - "data": 456, - "valid": false - }, - { - "description": "Invalid: boolean type", - "data": false, - "valid": false - }, - { - "description": "Invalid: null type", - "data": null, - "valid": false - }, - { - "description": "Invalid: array type", - "data": [ "ref" ], - "valid": false - }, - { - "description": "Invalid: object type", - "data": { - "ref": "value" - }, - "valid": false - } - ] -} diff --git a/test/w3c/xmlschema/2001/idrefs/v1.test.json b/test/w3c/xmlschema/2001/idrefs/v1.test.json deleted file mode 100644 index 797ee606..00000000 --- a/test/w3c/xmlschema/2001/idrefs/v1.test.json +++ /dev/null @@ -1,186 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/idrefs/v1.json", - "tests": [ - { - "description": "Valid - two references", - "data": [ "ref1", "ref2" ], - "valid": true - }, - { - "description": "Valid - single reference", - "data": [ "singleRef" ], - "valid": true - }, - { - "description": "Valid - multiple references", - "data": [ "_id1", "_id2", "_id3" ], - "valid": true - }, - { - "description": "Valid - references with special chars", - "data": [ "link-a", "link.b", "link_c" ], - "valid": true - }, - { - "description": "Valid - many references", - "data": [ "r1", "r2", "r3", "r4", "r5" ], - "valid": true - }, - { - "description": "Valid - Unicode references", - "data": [ "реф1", "réf2", "参照3" ], - "valid": true - }, - { - "description": "Valid - mixed script references", - "data": [ "ref", "参照", "リンク" ], - "valid": true - }, - { - "description": "Valid - long list", - "data": [ - "ref0", - "ref1", - "ref2", - "ref3", - "ref4", - "ref5", - "ref6", - "ref7", - "ref8", - "ref9", - "ref10", - "ref11", - "ref12", - "ref13", - "ref14", - "ref15", - "ref16", - "ref17", - "ref18", - "ref19", - "ref20", - "ref21", - "ref22", - "ref23", - "ref24", - "ref25", - "ref26", - "ref27", - "ref28", - "ref29", - "ref30", - "ref31", - "ref32", - "ref33", - "ref34", - "ref35", - "ref36", - "ref37", - "ref38", - "ref39", - "ref40", - "ref41", - "ref42", - "ref43", - "ref44", - "ref45", - "ref46", - "ref47", - "ref48", - "ref49" - ], - "valid": true - }, - { - "description": "Invalid: empty array", - "data": [], - "valid": false - }, - { - "description": "Invalid: reference contains colon", - "data": [ "valid", "ns:ref" ], - "valid": false - }, - { - "description": "Invalid: reference starts with digit", - "data": [ "valid", "9ref" ], - "valid": false - }, - { - "description": "Invalid: reference contains space", - "data": [ "valid", "has space" ], - "valid": false - }, - { - "description": "Invalid: reference is empty", - "data": [ "valid", "" ], - "valid": false - }, - { - "description": "Invalid: reference contains special char", - "data": [ "valid", "ref@123" ], - "valid": false - }, - { - "description": "Invalid: not an array (string)", - "data": "ref1 ref2", - "valid": false - }, - { - "description": "Invalid: not an array (number)", - "data": 456, - "valid": false - }, - { - "description": "Invalid: not an array (boolean)", - "data": false, - "valid": false - }, - { - "description": "Invalid: not an array (null)", - "data": null, - "valid": false - }, - { - "description": "Invalid: not an array (object)", - "data": { - "refs": [ "a", "b" ] - }, - "valid": false - }, - { - "description": "Invalid: array contains number", - "data": [ "valid", 789 ], - "valid": false - }, - { - "description": "Invalid: array contains boolean", - "data": [ "valid", false ], - "valid": false - }, - { - "description": "Invalid: array contains null", - "data": [ "valid", null ], - "valid": false - }, - { - "description": "Invalid: array contains object", - "data": [ - "valid", - { - "ref": "x" - } - ], - "valid": false - }, - { - "description": "Invalid: array contains array", - "data": [ - "valid", - [ "nested" ] - ], - "valid": false - } - ] -} diff --git a/test/w3c/xmlschema/2001/int/v1.test.json b/test/w3c/xmlschema/2001/int/v1.test.json deleted file mode 100644 index 9f86cf9b..00000000 --- a/test/w3c/xmlschema/2001/int/v1.test.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/int/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive one", - "data": 1, - "valid": true - }, - { - "description": "Valid - negative one", - "data": -1, - "valid": true - }, - { - "description": "Valid - maximum (2147483647)", - "data": 2147483647, - "valid": true - }, - { - "description": "Valid - minimum (-2147483648)", - "data": -2147483648, - "valid": true - }, - { - "description": "Valid - arbitrary positive", - "data": 42, - "valid": true - }, - { - "description": "Valid - arbitrary negative", - "data": -999, - "valid": true - }, - { - "description": "Invalid: too large (2147483648)", - "data": 2147483648, - "valid": false - }, - { - "description": "Invalid: too small (-2147483649)", - "data": -2147483649, - "valid": false - }, - { - "description": "Invalid: much too large", - "data": 10000000000, - "valid": false - }, - { - "description": "Invalid: decimal number", - "data": 1.5, - "valid": false - }, - { - "description": "Invalid: string", - "data": "42", - "valid": false - }, - { - "description": "Invalid: boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid: null", - "data": null, - "valid": false - } - ] -} diff --git a/test/w3c/xmlschema/2001/integer/v1.test.json b/test/w3c/xmlschema/2001/integer/v1.test.json deleted file mode 100644 index 582f40ad..00000000 --- a/test/w3c/xmlschema/2001/integer/v1.test.json +++ /dev/null @@ -1,127 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/integer/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive small", - "data": 1, - "valid": true - }, - { - "description": "Valid - negative small", - "data": -1, - "valid": true - }, - { - "description": "Valid - positive large", - "data": 9223372036854775807, - "valid": true - }, - { - "description": "Valid - negative large", - "data": -9223372036854775808, - "valid": true - }, - { - "description": "Valid - arbitrary positive", - "data": 42, - "valid": true - }, - { - "description": "Valid - arbitrary negative", - "data": -273, - "valid": true - }, - { - "description": "Valid - medium positive", - "data": 1000000, - "valid": true - }, - { - "description": "Valid - medium negative", - "data": -1000000, - "valid": true - }, - { - "description": "Valid - arbitrary precision beyond int64", - "data": 1.2345678901234567890e+19, - "valid": true - }, - { - "description": "Valid - arbitrary precision large positive", - "data": 9.9999999999999999999e+19, - "valid": true - }, - { - "description": "Valid - arbitrary precision large negative", - "data": -9.9999999999999999999e+19, - "valid": true - }, - { - "description": "Valid - arbitrary precision 25 digits positive", - "data": 1.234567890123456789012345e+24, - "valid": true - }, - { - "description": "Valid - arbitrary precision 25 digits negative", - "data": -1.234567890123456789012345e+24, - "valid": true - }, - { - "description": "Valid - arbitrary precision 30 digits", - "data": 1.23456789012345678901234567890e+29, - "valid": true - }, - { - "description": "Invalid - decimal number", - "data": 123.45, - "valid": false - }, - { - "description": "Invalid - string type", - "data": "123", - "valid": false - }, - { - "description": "Invalid - string with plus sign", - "data": "+123", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - text", - "data": "abc", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - }, - { - "description": "Invalid - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid - array", - "data": [ 123 ], - "valid": false - }, - { - "description": "Invalid - object", - "data": { - "value": 123 - }, - "valid": false - } - ] -} diff --git a/test/w3c/xmlschema/2001/language/v1.test.json b/test/w3c/xmlschema/2001/language/v1.test.json deleted file mode 100644 index 5297cb00..00000000 --- a/test/w3c/xmlschema/2001/language/v1.test.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/language/v1.json", - "tests": [ - { - "description": "Valid - English", - "data": "en", - "valid": true - }, - { - "description": "Valid - English US", - "data": "en-US", - "valid": true - }, - { - "description": "Valid - French", - "data": "fr", - "valid": true - }, - { - "description": "Valid - German Germany", - "data": "de-DE", - "valid": true - }, - { - "description": "Valid - Chinese", - "data": "zh-CN", - "valid": true - }, - { - "description": "Valid - Japanese", - "data": "ja", - "valid": true - }, - { - "description": "Valid - private use", - "data": "x-private", - "valid": true - }, - { - "description": "Valid - multiple subtags", - "data": "en-US-x-twain", - "valid": true - }, - { - "description": "Invalid: empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid: too long primary", - "data": "abcdefghi", - "valid": false - }, - { - "description": "Invalid: contains space", - "data": "en US", - "valid": false - }, - { - "description": "Invalid: contains underscore", - "data": "en_US", - "valid": false - }, - { - "description": "Type validation: not a string", - "data": 123, - "valid": false - } - ] -} diff --git a/test/w3c/xmlschema/2001/long/v1.test.json b/test/w3c/xmlschema/2001/long/v1.test.json deleted file mode 100644 index 42e1a957..00000000 --- a/test/w3c/xmlschema/2001/long/v1.test.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/long/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive one", - "data": 1, - "valid": true - }, - { - "description": "Valid - negative one", - "data": -1, - "valid": true - }, - { - "description": "Valid - maximum (9223372036854775807)", - "data": 9223372036854775807, - "valid": true - }, - { - "description": "Valid - minimum (-9223372036854775808)", - "data": -9223372036854775808, - "valid": true - }, - { - "description": "Valid - arbitrary positive", - "data": 1000000000, - "valid": true - }, - { - "description": "Valid - arbitrary negative", - "data": -1000000000, - "valid": true - }, - { - "description": "Valid - within int32 range", - "data": 2147483647, - "valid": true - }, - { - "description": "Valid - beyond int32 range", - "data": 2147483648, - "valid": true - }, - { - "description": "Invalid: decimal number", - "data": 1.5, - "valid": false - }, - { - "description": "Invalid: string", - "data": "1000000000", - "valid": false - }, - { - "description": "Invalid: boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid: null", - "data": null, - "valid": false - } - ] -} diff --git a/test/w3c/xmlschema/2001/name/v1.test.json b/test/w3c/xmlschema/2001/name/v1.test.json deleted file mode 100644 index f4c9a267..00000000 --- a/test/w3c/xmlschema/2001/name/v1.test.json +++ /dev/null @@ -1,647 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/name/v1.json", - "tests": [ - { - "description": "Valid - simple ASCII letters", - "data": "element", - "valid": true - }, - { - "description": "Valid - with underscore prefix", - "data": "_private", - "valid": true - }, - { - "description": "Valid - with colon (namespace)", - "data": "my:name", - "valid": true - }, - { - "description": "Valid - CamelCase", - "data": "CamelCase", - "valid": true - }, - { - "description": "Valid - with hyphen", - "data": "element-name", - "valid": true - }, - { - "description": "Valid - with period", - "data": "element.name", - "valid": true - }, - { - "description": "Valid - with digits", - "data": "element123", - "valid": true - }, - { - "description": "Valid - single letter", - "data": "a", - "valid": true - }, - { - "description": "Valid - single underscore", - "data": "_", - "valid": true - }, - { - "description": "Valid - single colon", - "data": ":", - "valid": true - }, - { - "description": "Valid - uppercase letters", - "data": "ELEMENT", - "valid": true - }, - { - "description": "Valid - lowercase letters", - "data": "element", - "valid": true - }, - { - "description": "Valid - Greek letters", - "data": "στοιχείο", - "valid": true - }, - { - "description": "Valid - Cyrillic letters", - "data": "элемент", - "valid": true - }, - { - "description": "Valid - Chinese characters", - "data": "数据", - "valid": true - }, - { - "description": "Valid - Japanese katakana", - "data": "データ", - "valid": true - }, - { - "description": "Valid - Arabic characters", - "data": "عنصر", - "valid": true - }, - { - "description": "Valid - Hebrew characters", - "data": "רכיב", - "valid": true - }, - { - "description": "Valid - French with accents", - "data": "données", - "valid": true - }, - { - "description": "Valid - German with umlauts", - "data": "Größe", - "valid": true - }, - { - "description": "Valid - complex name", - "data": "my:element-name_v2.0", - "valid": true - }, - { - "description": "Invalid: starts with digit", - "data": "9element", - "valid": false - }, - { - "description": "Invalid: starts with hyphen", - "data": "-element", - "valid": false - }, - { - "description": "Invalid: starts with period", - "data": ".element", - "valid": false - }, - { - "description": "Invalid: empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid: whitespace only", - "data": " ", - "valid": false - }, - { - "description": "Invalid: contains space", - "data": "my element", - "valid": false - }, - { - "description": "Invalid: contains tab", - "data": "my\telement", - "valid": false - }, - { - "description": "Invalid: contains newline", - "data": "my\nelement", - "valid": false - }, - { - "description": "Invalid: leading space", - "data": " element", - "valid": false - }, - { - "description": "Invalid: trailing space", - "data": "element ", - "valid": false - }, - { - "description": "Invalid: contains @", - "data": "my@element", - "valid": false - }, - { - "description": "Invalid: contains #", - "data": "my#element", - "valid": false - }, - { - "description": "Invalid: contains $", - "data": "my$element", - "valid": false - }, - { - "description": "Invalid: contains %", - "data": "my%element", - "valid": false - }, - { - "description": "Invalid: contains &", - "data": "my&element", - "valid": false - }, - { - "description": "Invalid: contains *", - "data": "my*element", - "valid": false - }, - { - "description": "Invalid: contains +", - "data": "my+element", - "valid": false - }, - { - "description": "Invalid: contains =", - "data": "my=element", - "valid": false - }, - { - "description": "Invalid: contains !", - "data": "my!element", - "valid": false - }, - { - "description": "Invalid: contains ?", - "data": "my?element", - "valid": false - }, - { - "description": "Invalid: contains brackets", - "data": "my[element]", - "valid": false - }, - { - "description": "Invalid: contains parentheses", - "data": "my(element)", - "valid": false - }, - { - "description": "Invalid: contains braces", - "data": "my{element}", - "valid": false - }, - { - "description": "Invalid: contains angle brackets", - "data": "", - "valid": false - }, - { - "description": "Invalid: contains slash", - "data": "my/element", - "valid": false - }, - { - "description": "Invalid: contains backslash", - "data": "my\\element", - "valid": false - }, - { - "description": "Invalid: contains pipe", - "data": "my|element", - "valid": false - }, - { - "description": "Invalid: contains semicolon", - "data": "my;element", - "valid": false - }, - { - "description": "Invalid: contains comma", - "data": "my,element", - "valid": false - }, - { - "description": "Invalid: contains quote", - "data": "my\"element", - "valid": false - }, - { - "description": "Invalid: contains apostrophe", - "data": "my'element", - "valid": false - }, - { - "description": "Invalid: number type", - "data": 123, - "valid": false - }, - { - "description": "Invalid: boolean type", - "data": true, - "valid": false - }, - { - "description": "Invalid: null type", - "data": null, - "valid": false - }, - { - "description": "Invalid: array type", - "data": [ "element" ], - "valid": false - }, - { - "description": "Invalid: object type", - "data": { - "name": "element" - }, - "valid": false - }, - { - "description": "Valid - with combining grave accent", - "data": "àb", - "valid": true - }, - { - "description": "Valid - with combining acute accent", - "data": "élement", - "valid": true - }, - { - "description": "Valid - with combining diacritical mark", - "data": "tesẗing", - "valid": true - }, - { - "description": "Valid - letter with combining at end", - "data": "dataͯ", - "valid": true - }, - { - "description": "Invalid: starts with combining character", - "data": "̀element", - "valid": false - }, - { - "description": "Invalid: starts with combining acute", - "data": "́test", - "valid": false - }, - { - "description": "Valid - with undertie ‿", - "data": "a‿b", - "valid": true - }, - { - "description": "Valid - with character tie ⁀", - "data": "x⁀y", - "valid": true - }, - { - "description": "Invalid: starts with undertie", - "data": "‿element", - "valid": false - }, - { - "description": "Invalid: starts with character tie", - "data": "⁀element", - "valid": false - }, - { - "description": "Valid - with ZWNJ", - "data": "ele‌ment", - "valid": true - }, - { - "description": "Valid - with ZWJ", - "data": "ele‍ment", - "valid": true - }, - { - "description": "Valid - starting with ZWNJ", - "data": "‌start", - "valid": true - }, - { - "description": "Valid - starting with ZWJ", - "data": "‍start", - "valid": true - }, - { - "description": "Invalid: contains carriage return", - "data": "data\rvalue", - "valid": false - }, - { - "description": "Invalid: contains null character", - "data": "data\u0000value", - "valid": false - }, - { - "description": "Invalid: contains vertical tab", - "data": "data\u000Bvalue", - "valid": false - }, - { - "description": "Invalid: contains form feed", - "data": "data\fvalue", - "valid": false - }, - { - "description": "Invalid: contains bell character", - "data": "data\u0007value", - "valid": false - }, - { - "description": "Invalid: contains escape character", - "data": "data\u001Bvalue", - "valid": false - }, - { - "description": "Invalid: starts with null", - "data": "\u0000data", - "valid": false - }, - { - "description": "Valid - U+00C0 (À) start of Latin-1 Supplement", - "data": "À", - "valid": true - }, - { - "description": "Valid - U+D7FF last before surrogate block", - "data": "퟿", - "valid": true - }, - { - "description": "Valid - U+F900 start of CJK Compatibility", - "data": "豈", - "valid": true - }, - { - "description": "Valid - U+FDCF end of Arabic Presentation", - "data": "﷏", - "valid": true - }, - { - "description": "Valid - U+FDF0 start of Arabic Presentation-B", - "data": "ﷰ", - "valid": true - }, - { - "description": "Valid - U+FFFD replacement character", - "data": "�", - "valid": true - }, - { - "description": "Valid - multiple colons", - "data": "a:b:c:d", - "valid": true - }, - { - "description": "Valid - consecutive colons", - "data": "a::b", - "valid": true - }, - { - "description": "Valid - alternating special chars", - "data": "a-b.c_d:e", - "valid": true - }, - { - "description": "Valid - middle dot in middle", - "data": "a·b", - "valid": true - }, - { - "description": "Valid - middle dot at end", - "data": "test·", - "valid": true - }, - { - "description": "Invalid: starts with middle dot", - "data": "·test", - "valid": false - }, - { - "description": "Valid - very long ASCII", - "data": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", - "valid": true - }, - { - "description": "Valid - very long Unicode", - "data": "中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中", - "valid": true - }, - { - "description": "Valid - very long with allowed chars", - "data": "aZ09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·Z09-._:·", - "valid": true - }, - { - "description": "Valid - mixed Latin and Greek", - "data": "testδοκιμή123", - "valid": true - }, - { - "description": "Valid - mixed Arabic and digits", - "data": "test123بيانات456", - "valid": true - }, - { - "description": "Valid - mixed scripts with special chars", - "data": "test_中文_データ_тест", - "valid": true - }, - { - "description": "Valid - colon at start", - "data": ":name", - "valid": true - }, - { - "description": "Valid - colon at end", - "data": "name:", - "valid": true - }, - { - "description": "Valid - multiple colons at start", - "data": "::name", - "valid": true - }, - { - "description": "Valid - multiple underscores", - "data": "___test___", - "valid": true - }, - { - "description": "Valid - underscore at end", - "data": "test_", - "valid": true - }, - { - "description": "Invalid: contains DEL character", - "data": "datavalue", - "valid": false - }, - { - "description": "Invalid: starts with 0", - "data": "0element", - "valid": false - }, - { - "description": "Invalid: starts with multiple digits", - "data": "123element", - "valid": false - }, - { - "description": "Valid - only underscores", - "data": "___", - "valid": true - }, - { - "description": "Valid - only colons", - "data": ":::", - "valid": true - }, - { - "description": "Valid - digit after first char", - "data": "a0", - "valid": true - }, - { - "description": "Valid - hyphen after first char", - "data": "a-", - "valid": true - }, - { - "description": "Valid - period after first char", - "data": "a.", - "valid": true - }, - { - "description": "Valid - Deseret Capital Letter Long I (U+10400)", - "data": "𐐀test", - "valid": true - }, - { - "description": "Valid - Linear B Syllable (U+10000)", - "data": "𐀀element", - "valid": true - }, - { - "description": "Valid - Gothic Letter (U+10330)", - "data": "𐌰name", - "valid": true - }, - { - "description": "Valid - Old Italic Letter (U+10300)", - "data": "𐌀id", - "valid": true - }, - { - "description": "Valid - CJK Unified Ideographs Extension B (U+20000)", - "data": "𠀀字", - "valid": true - }, - { - "description": "Valid - CJK Extension B character (U+20BB7)", - "data": "𠮷野", - "valid": true - }, - { - "description": "Valid - CJK Extension C (U+2A700)", - "data": "𪜀文", - "valid": true - }, - { - "description": "Valid - Mathematical Bold Capital A (U+1D400)", - "data": "𝐀var", - "valid": true - }, - { - "description": "Valid - Mathematical Italic Small X (U+1D465)", - "data": "𝑥coord", - "valid": true - }, - { - "description": "Valid - Phoenician Letter (U+10900)", - "data": "𐤀text", - "valid": true - }, - { - "description": "Valid - Lydian Letter (U+10920)", - "data": "𐤠name", - "valid": true - }, - { - "description": "Valid - 4-byte character in middle", - "data": "test𐐀middle", - "valid": true - }, - { - "description": "Valid - 4-byte character at end", - "data": "end𐐀", - "valid": true - }, - { - "description": "Valid - multiple 4-byte characters", - "data": "𐐀test𠀀name𐌰", - "valid": true - }, - { - "description": "Valid - 4-byte with hyphen", - "data": "𐐀-test", - "valid": true - }, - { - "description": "Valid - 4-byte with period", - "data": "𐐀.name", - "valid": true - }, - { - "description": "Valid - 4-byte with digits", - "data": "𐐀123", - "valid": true - }, - { - "description": "Valid - 4-byte with underscore", - "data": "𐐀_id", - "valid": true - }, - { - "description": "Invalid - extender character cannot start a name", - "valid": false, - "data": "ːname" - } - ] -} diff --git a/test/w3c/xmlschema/2001/ncname/v1.test.json b/test/w3c/xmlschema/2001/ncname/v1.test.json deleted file mode 100644 index 073db6c1..00000000 --- a/test/w3c/xmlschema/2001/ncname/v1.test.json +++ /dev/null @@ -1,875 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/ncname/v1.json", - "tests": [ - { - "description": "Valid - simple ASCII element name", - "data": "myElement", - "valid": true - }, - { - "description": "Valid - starts with underscore", - "data": "_myElement", - "valid": true - }, - { - "description": "Valid - with period", - "data": "my.Element", - "valid": true - }, - { - "description": "Valid - with hyphen", - "data": "my-element", - "valid": true - }, - { - "description": "Valid - with underscore in middle", - "data": "my_element", - "valid": true - }, - { - "description": "Valid - with ASCII digits", - "data": "element123", - "valid": true - }, - { - "description": "Valid - ASCII complex mix", - "data": "my.complex-name_45", - "valid": true - }, - { - "description": "Valid - single ASCII letter", - "data": "a", - "valid": true - }, - { - "description": "Valid - single underscore", - "data": "_", - "valid": true - }, - { - "description": "Valid - Extended Latin - À (U+00C0)", - "data": "Àlement", - "valid": true - }, - { - "description": "Valid - Extended Latin - Ö (U+00D6)", - "data": "Ölement", - "valid": true - }, - { - "description": "Valid - Extended Latin - Ø (U+00D8)", - "data": "Ølement", - "valid": true - }, - { - "description": "Valid - Extended Latin - ö (U+00F6)", - "data": "ölement", - "valid": true - }, - { - "description": "Valid - Extended Latin - ÿ (U+00FF)", - "data": "ÿlement", - "valid": true - }, - { - "description": "Valid - Extended Latin - Ā (U+0100)", - "data": "Ālement", - "valid": true - }, - { - "description": "Valid - Extended Latin - ı (U+0131 dotless i)", - "data": "ılement", - "valid": true - }, - { - "description": "Valid - Greek - Α (U+0391 Alpha)", - "data": "Αlement", - "valid": true - }, - { - "description": "Valid - Greek - Ω (U+03A9 Omega)", - "data": "Ωlement", - "valid": true - }, - { - "description": "Valid - Greek - α (U+03B1 alpha)", - "data": "αlement", - "valid": true - }, - { - "description": "Valid - Greek - ω (U+03C9 omega)", - "data": "ωlement", - "valid": true - }, - { - "description": "Valid - Cyrillic - А (U+0410 A)", - "data": "Аlement", - "valid": true - }, - { - "description": "Valid - Cyrillic - Я (U+042F Ya)", - "data": "Яlement", - "valid": true - }, - { - "description": "Valid - Cyrillic - а (U+0430 a)", - "data": "аlement", - "valid": true - }, - { - "description": "Valid - Cyrillic - я (U+044F ya)", - "data": "яlement", - "valid": true - }, - { - "description": "Valid - Hebrew - א (U+05D0 Alef)", - "data": "אlement", - "valid": true - }, - { - "description": "Valid - Hebrew - ת (U+05EA Tav)", - "data": "תlement", - "valid": true - }, - { - "description": "Valid - Arabic - ا (U+0627 Alef)", - "data": "اlement", - "valid": true - }, - { - "description": "Valid - Arabic - ي (U+064A Ya)", - "data": "يlement", - "valid": true - }, - { - "description": "Valid - Devanagari - अ (U+0905 A)", - "data": "अlement", - "valid": true - }, - { - "description": "Valid - Devanagari - ह (U+0939 Ha)", - "data": "हlement", - "valid": true - }, - { - "description": "Valid - Bengali - অ (U+0985 A)", - "data": "অlement", - "valid": true - }, - { - "description": "Valid - Tamil - அ (U+0B85 A)", - "data": "அlement", - "valid": true - }, - { - "description": "Valid - Thai - ก (U+0E01 Ko Kai)", - "data": "กlement", - "valid": true - }, - { - "description": "Valid - Tibetan - ཀ (U+0F40 Ka)", - "data": "ཀlement", - "valid": true - }, - { - "description": "Valid - Georgian - ა (U+10D0 An)", - "data": "აlement", - "valid": true - }, - { - "description": "Valid - Hangul - 가 (U+AC00)", - "data": "가element", - "valid": true - }, - { - "description": "Valid - Hangul - 힣 (U+D7A3)", - "data": "힣element", - "valid": true - }, - { - "description": "Valid - CJK Ideographic - 一 (U+4E00)", - "data": "一element", - "valid": true - }, - { - "description": "Valid - CJK Ideographic - 龥 (U+9FA5)", - "data": "龥element", - "valid": true - }, - { - "description": "Valid - CJK Ideographic - 〇 (U+3007)", - "data": "〇element", - "valid": true - }, - { - "description": "Valid - CJK Ideographic - 〡 (U+3021)", - "data": "〡element", - "valid": true - }, - { - "description": "Valid - CJK Ideographic - 〩 (U+3029)", - "data": "〩element", - "valid": true - }, - { - "description": "Valid - Arabic-Indic digit ٠ (U+0660) in middle", - "data": "element٠", - "valid": true - }, - { - "description": "Valid - Arabic-Indic digit ٩ (U+0669) in middle", - "data": "element٩", - "valid": true - }, - { - "description": "Valid - Extended Arabic-Indic digit ۰ (U+06F0)", - "data": "element۰", - "valid": true - }, - { - "description": "Valid - Extended Arabic-Indic digit ۹ (U+06F9)", - "data": "element۹", - "valid": true - }, - { - "description": "Valid - Devanagari digit ० (U+0966)", - "data": "element०", - "valid": true - }, - { - "description": "Valid - Devanagari digit ९ (U+096F)", - "data": "element९", - "valid": true - }, - { - "description": "Valid - Bengali digit ০ (U+09E6)", - "data": "element০", - "valid": true - }, - { - "description": "Valid - Bengali digit ৯ (U+09EF)", - "data": "element৯", - "valid": true - }, - { - "description": "Valid - Thai digit ๐ (U+0E50)", - "data": "element๐", - "valid": true - }, - { - "description": "Valid - Thai digit ๙ (U+0E59)", - "data": "element๙", - "valid": true - }, - { - "description": "Valid - Tibetan digit ༠ (U+0F20)", - "data": "element༠", - "valid": true - }, - { - "description": "Valid - Tibetan digit ༩ (U+0F29)", - "data": "element༩", - "valid": true - }, - { - "description": "Invalid - Digit at start - ASCII 0", - "data": "0element", - "valid": false - }, - { - "description": "Invalid - Digit at start - Arabic-Indic ٠ (U+0660)", - "data": "٠element", - "valid": false - }, - { - "description": "Invalid - Digit at start - Devanagari ० (U+0966)", - "data": "०element", - "valid": false - }, - { - "description": "Valid - CombiningChar after letter - ̀ (U+0300 grave)", - "data": "element̀", - "valid": true - }, - { - "description": "Valid - CombiningChar after letter - ́ (U+0301 acute)", - "data": "element́", - "valid": true - }, - { - "description": "Valid - CombiningChar after letter - ̃ (U+0303 tilde)", - "data": "element̃", - "valid": true - }, - { - "description": "Valid - CombiningChar after letter - ̈ (U+0308 diaeresis)", - "data": "elemenẗ", - "valid": true - }, - { - "description": "Valid - CombiningChar range end - ͅ (U+0345 ypogegrammeni)", - "data": "elementͅ", - "valid": true - }, - { - "description": "Valid - CombiningChar - ͠ (U+0360 double tilde)", - "data": "element͠", - "valid": true - }, - { - "description": "Valid - CombiningChar - ͡ (U+0361 double inverted breve)", - "data": "element͡", - "valid": true - }, - { - "description": "Valid - CombiningChar Cyrillic - ҃ (U+0483 titlo)", - "data": "element҃", - "valid": true - }, - { - "description": "Valid - CombiningChar Hebrew - ְ (U+05B0 sheva)", - "data": "elementְ", - "valid": true - }, - { - "description": "Valid - CombiningChar Hebrew - ֿ (U+05BF rafe)", - "data": "elementֿ", - "valid": true - }, - { - "description": "Valid - CombiningChar Arabic - ً (U+064B fathatan)", - "data": "elementً", - "valid": true - }, - { - "description": "Valid - CombiningChar Arabic - ْ (U+0652 sukun)", - "data": "elementْ", - "valid": true - }, - { - "description": "Valid - CombiningChar Devanagari - ँ (U+0901 candrabindu)", - "data": "elementँ", - "valid": true - }, - { - "description": "Valid - CombiningChar Devanagari - ः (U+0903 visarga)", - "data": "elementः", - "valid": true - }, - { - "description": "Valid - CombiningChar Devanagari - ़ (U+093C nukta)", - "data": "element़", - "valid": true - }, - { - "description": "Valid - CombiningChar Thai - ฺ (U+0E3A phinthu)", - "data": "elementฺ", - "valid": true - }, - { - "description": "Valid - CombiningChar Tibetan - ༘ (U+0F18)", - "data": "element༘", - "valid": true - }, - { - "description": "Valid - Extender - · (U+00B7 middle dot)", - "data": "element·more", - "valid": true - }, - { - "description": "Valid - Extender - ː (U+02D0 modifier letter triangular colon)", - "data": "elementːmore", - "valid": true - }, - { - "description": "Valid - Extender - ˑ (U+02D1 modifier letter half triangular colon)", - "data": "elementˑmore", - "valid": true - }, - { - "description": "Valid - Extender - · (U+0387 Greek ano teleia)", - "data": "element·more", - "valid": true - }, - { - "description": "Valid - Extender - ـ (U+0640 Arabic tatweel)", - "data": "elementـmore", - "valid": true - }, - { - "description": "Valid - Extender - ๆ (U+0E46 Thai maiyamok)", - "data": "elementๆmore", - "valid": true - }, - { - "description": "Valid - Extender - ໆ (U+0EC6 Lao ko la)", - "data": "elementໆmore", - "valid": true - }, - { - "description": "Valid - Extender - 々 (U+3005 ideographic iteration mark)", - "data": "element々more", - "valid": true - }, - { - "description": "Valid - Extender - 〱 (U+3031)", - "data": "element〱more", - "valid": true - }, - { - "description": "Valid - Extender - 〵 (U+3035)", - "data": "element〵more", - "valid": true - }, - { - "description": "Valid - Extender - ゝ (U+309D hiragana iteration mark)", - "data": "elementゝmore", - "valid": true - }, - { - "description": "Valid - Extender - ゞ (U+309E hiragana voiced iteration mark)", - "data": "elementゞmore", - "valid": true - }, - { - "description": "Valid - Extender - ー (U+30FC katakana-hiragana prolonged sound)", - "data": "elementーmore", - "valid": true - }, - { - "description": "Valid - Extender - ヾ (U+30FE katakana voiced iteration mark)", - "data": "elementヾmore", - "valid": true - }, - { - "description": "Invalid - Extender at start - · (U+00B7)", - "data": "·element", - "valid": false - }, - { - "description": "Invalid - Extender at start - ー (U+30FC)", - "data": "ーelement", - "valid": false - }, - { - "description": "Invalid - CombiningChar at start - ̀ (U+0300)", - "data": "̀element", - "valid": false - }, - { - "description": "Valid - Complex Unicode name with CJK", - "data": "element漢字", - "valid": true - }, - { - "description": "Valid - Complex Unicode name with Arabic", - "data": "element_العربية", - "valid": true - }, - { - "description": "Valid - Complex Unicode name with Hebrew", - "data": "element_עברית", - "valid": true - }, - { - "description": "Valid - Complex Unicode name with Cyrillic", - "data": "element_русский", - "valid": true - }, - { - "description": "Valid - Complex Unicode name with Greek", - "data": "element_Ελληνικά", - "valid": true - }, - { - "description": "Valid - Complex Unicode name with Thai", - "data": "element_ไทย", - "valid": true - }, - { - "description": "Valid - Complex Unicode name with Devanagari", - "data": "element_हिन्दी", - "valid": true - }, - { - "description": "Valid - Mixed scripts and combining chars", - "data": "café_Москва", - "valid": true - }, - { - "description": "Valid - Letter with combining + digit", - "data": "element̃123", - "valid": true - }, - { - "description": "Valid - Extender in middle", - "data": "my·element", - "valid": true - }, - { - "description": "Valid - Multiple extenders", - "data": "my·element·name", - "valid": true - }, - { - "description": "Valid - Unicode digits after ASCII letter", - "data": "element०१२३", - "valid": true - }, - { - "description": "Valid - All valid ASCII special chars", - "data": "a._-", - "valid": true - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - starts with ASCII digit", - "data": "9element", - "valid": false - }, - { - "description": "Invalid - starts with hyphen", - "data": "-element", - "valid": false - }, - { - "description": "Invalid - starts with period", - "data": ".element", - "valid": false - }, - { - "description": "Invalid - contains colon (key NCName restriction)", - "data": "pre:myElement", - "valid": false - }, - { - "description": "Invalid - colon at start", - "data": ":element", - "valid": false - }, - { - "description": "Invalid - colon at end", - "data": "element:", - "valid": false - }, - { - "description": "Invalid - colon in middle", - "data": "my:element", - "valid": false - }, - { - "description": "Invalid - multiple colons", - "data": "ns:my:element", - "valid": false - }, - { - "description": "Invalid - contains space", - "data": "my element", - "valid": false - }, - { - "description": "Invalid - leading space", - "data": " myElement", - "valid": false - }, - { - "description": "Invalid - trailing space", - "data": "myElement ", - "valid": false - }, - { - "description": "Invalid - contains tab", - "data": "my\telement", - "valid": false - }, - { - "description": "Invalid - contains newline", - "data": "my\nelement", - "valid": false - }, - { - "description": "Invalid - contains carriage return", - "data": "my\relement", - "valid": false - }, - { - "description": "Invalid - contains @", - "data": "my@element", - "valid": false - }, - { - "description": "Invalid - contains $", - "data": "my$element", - "valid": false - }, - { - "description": "Invalid - contains %", - "data": "my%element", - "valid": false - }, - { - "description": "Invalid - contains &", - "data": "my&element", - "valid": false - }, - { - "description": "Invalid - contains *", - "data": "my*element", - "valid": false - }, - { - "description": "Invalid - contains +", - "data": "my+element", - "valid": false - }, - { - "description": "Invalid - contains =", - "data": "my=element", - "valid": false - }, - { - "description": "Invalid - contains /", - "data": "my/element", - "valid": false - }, - { - "description": "Invalid - contains \\", - "data": "my\\element", - "valid": false - }, - { - "description": "Invalid - contains ?", - "data": "my?element", - "valid": false - }, - { - "description": "Invalid - contains !", - "data": "my!element", - "valid": false - }, - { - "description": "Invalid - contains #", - "data": "my#element", - "valid": false - }, - { - "description": "Invalid - contains ^", - "data": "my^element", - "valid": false - }, - { - "description": "Invalid - contains ~", - "data": "my~element", - "valid": false - }, - { - "description": "Invalid - contains `", - "data": "my`element", - "valid": false - }, - { - "description": "Invalid - contains |", - "data": "my|element", - "valid": false - }, - { - "description": "Invalid - contains (", - "data": "my(element", - "valid": false - }, - { - "description": "Invalid - contains )", - "data": "my)element", - "valid": false - }, - { - "description": "Invalid - contains [", - "data": "my[element", - "valid": false - }, - { - "description": "Invalid - contains ]", - "data": "my]element", - "valid": false - }, - { - "description": "Invalid - contains {", - "data": "my{element", - "valid": false - }, - { - "description": "Invalid - contains }", - "data": "my}element", - "valid": false - }, - { - "description": "Invalid - contains <", - "data": "my", - "data": "my>element", - "valid": false - }, - { - "description": "Invalid - contains ,", - "data": "my,element", - "valid": false - }, - { - "description": "Invalid - contains ;", - "data": "my;element", - "valid": false - }, - { - "description": "Invalid - contains '", - "data": "my'element", - "valid": false - }, - { - "description": "Invalid - contains \"", - "data": "my\"element", - "valid": false - }, - { - "description": "Invalid - number type", - "data": 123, - "valid": false - }, - { - "description": "Invalid - boolean type", - "data": true, - "valid": false - }, - { - "description": "Invalid - null type", - "data": null, - "valid": false - }, - { - "description": "Invalid - object type", - "data": {}, - "valid": false - }, - { - "description": "Invalid - array type", - "data": [], - "valid": false - }, - { - "description": "Valid - typical XML element name", - "data": "book", - "valid": true - }, - { - "description": "Valid - typical XML attribute name", - "data": "id", - "valid": true - }, - { - "description": "Valid - namespace prefix would be NCName", - "data": "xsd", - "valid": true - }, - { - "description": "Invalid - QName with namespace (has colon)", - "data": "xsd:element", - "valid": false - }, - { - "description": "Valid - Japanese hiragana name", - "data": "こんにちは", - "valid": true - }, - { - "description": "Valid - Japanese katakana name", - "data": "カタカナ", - "valid": true - }, - { - "description": "Valid - Korean Hangul name", - "data": "한글", - "valid": true - }, - { - "description": "Valid - Chinese name", - "data": "中文", - "valid": true - }, - { - "description": "Valid - Deseret Capital Letter (U+10400)", - "data": "𐐀element", - "valid": true - }, - { - "description": "Valid - Linear B Syllable (U+10000)", - "data": "𐀀name", - "valid": true - }, - { - "description": "Valid - Gothic Letter (U+10330)", - "data": "𐌰test", - "valid": true - }, - { - "description": "Valid - CJK Extension B (U+20000)", - "data": "𠀀字符", - "valid": true - }, - { - "description": "Valid - CJK Extension B (U+20BB7)", - "data": "𠮷田", - "valid": true - }, - { - "description": "Valid - Mathematical Bold (U+1D400)", - "data": "𝐀identifier", - "valid": true - }, - { - "description": "Valid - Phoenician Letter (U+10900)", - "data": "𐤀name", - "valid": true - }, - { - "description": "Valid - 4-byte in middle", - "data": "test𐐀middle", - "valid": true - }, - { - "description": "Valid - 4-byte at end", - "data": "end𐐀", - "valid": true - }, - { - "description": "Valid - multiple 4-byte", - "data": "𐐀test𠀀", - "valid": true - }, - { - "description": "Valid - 4-byte with hyphen", - "data": "𐐀-name", - "valid": true - }, - { - "description": "Valid - 4-byte with period", - "data": "𐐀.element", - "valid": true - }, - { - "description": "Valid - 4-byte with underscore", - "data": "𐐀_id", - "valid": true - }, - { - "description": "Valid - 4-byte with digits", - "data": "𐐀123", - "valid": true - } - ] -} diff --git a/test/w3c/xmlschema/2001/negative-integer/v1.test.json b/test/w3c/xmlschema/2001/negative-integer/v1.test.json deleted file mode 100644 index 59da139b..00000000 --- a/test/w3c/xmlschema/2001/negative-integer/v1.test.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/negative-integer/v1.json", - "tests": [ - { - "description": "Valid - negative one", - "data": -1, - "valid": true - }, - { - "description": "Valid - negative two", - "data": -2, - "valid": true - }, - { - "description": "Valid - small negative", - "data": -42, - "valid": true - }, - { - "description": "Valid - large negative", - "data": -9223372036854775808, - "valid": true - }, - { - "description": "Valid - medium negative", - "data": -1000, - "valid": true - }, - { - "description": "Valid - arbitrary precision beyond int64", - "data": -1.2345678901234567890e+19, - "valid": true - }, - { - "description": "Valid - arbitrary precision large negative", - "data": -9.9999999999999999999e+19, - "valid": true - }, - { - "description": "Valid - arbitrary precision 25 digits negative", - "data": -1.234567890123456789012345e+24, - "valid": true - }, - { - "description": "Valid - arbitrary precision 30 digits negative", - "data": -1.23456789012345678901234567890e+29, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - positive one", - "data": 1, - "valid": false - }, - { - "description": "Invalid - small positive", - "data": 42, - "valid": false - }, - { - "description": "Invalid - large positive", - "data": 9223372036854775807, - "valid": false - }, - { - "description": "Invalid - decimal number", - "data": -1.5, - "valid": false - }, - { - "description": "Invalid - string type", - "data": "-1", - "valid": false - }, - { - "description": "Invalid - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/w3c/xmlschema/2001/nmtoken/v1.test.json b/test/w3c/xmlschema/2001/nmtoken/v1.test.json deleted file mode 100644 index 56795946..00000000 --- a/test/w3c/xmlschema/2001/nmtoken/v1.test.json +++ /dev/null @@ -1,577 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/nmtoken/v1.json", - "tests": [ - { - "description": "Valid - simple ASCII letters", - "data": "abc", - "valid": true - }, - { - "description": "Valid - mixed case ASCII", - "data": "AbCdEf", - "valid": true - }, - { - "description": "Valid - digits only", - "data": "123", - "valid": true - }, - { - "description": "Valid - letters and digits", - "data": "abc123", - "valid": true - }, - { - "description": "Valid - with hyphen", - "data": "data-value", - "valid": true - }, - { - "description": "Valid - with period", - "data": "element.name", - "valid": true - }, - { - "description": "Valid - with colon", - "data": "with:colon", - "valid": true - }, - { - "description": "Valid - with underscore", - "data": "_underscore", - "valid": true - }, - { - "description": "Valid - CamelCase", - "data": "CamelCase", - "valid": true - }, - { - "description": "Valid - starting with digit", - "data": "9abc", - "valid": true - }, - { - "description": "Valid - starting with hyphen", - "data": "-value", - "valid": true - }, - { - "description": "Valid - starting with period", - "data": ".value", - "valid": true - }, - { - "description": "Valid - single character", - "data": "a", - "valid": true - }, - { - "description": "Valid - single digit", - "data": "9", - "valid": true - }, - { - "description": "Valid - Greek letters", - "data": "με", - "valid": true - }, - { - "description": "Valid - Cyrillic letters", - "data": "данные", - "valid": true - }, - { - "description": "Valid - Chinese characters", - "data": "中文", - "valid": true - }, - { - "description": "Valid - Japanese hiragana", - "data": "データ", - "valid": true - }, - { - "description": "Valid - Arabic characters", - "data": "بيانات", - "valid": true - }, - { - "description": "Valid - Hebrew characters", - "data": "נתונים", - "valid": true - }, - { - "description": "Valid - mixed Latin Extended", - "data": "café", - "valid": true - }, - { - "description": "Valid - with middle dot (·)", - "data": "l·l", - "valid": true - }, - { - "description": "Valid - complex mixed", - "data": "element-name_123.value:type", - "valid": true - }, - { - "description": "Invalid: empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid: whitespace only", - "data": " ", - "valid": false - }, - { - "description": "Invalid: contains space", - "data": "data value", - "valid": false - }, - { - "description": "Invalid: contains tab", - "data": "data\tvalue", - "valid": false - }, - { - "description": "Invalid: contains newline", - "data": "data\nvalue", - "valid": false - }, - { - "description": "Invalid: leading space", - "data": " data", - "valid": false - }, - { - "description": "Invalid: trailing space", - "data": "data ", - "valid": false - }, - { - "description": "Invalid: contains special char @", - "data": "data@value", - "valid": false - }, - { - "description": "Invalid: contains special char #", - "data": "data#value", - "valid": false - }, - { - "description": "Invalid: contains special char $", - "data": "data$value", - "valid": false - }, - { - "description": "Invalid: contains special char %", - "data": "data%value", - "valid": false - }, - { - "description": "Invalid: contains special char &", - "data": "data&value", - "valid": false - }, - { - "description": "Invalid: contains special char *", - "data": "data*value", - "valid": false - }, - { - "description": "Invalid: contains special char +", - "data": "data+value", - "valid": false - }, - { - "description": "Invalid: contains special char =", - "data": "data=value", - "valid": false - }, - { - "description": "Invalid: contains special char !", - "data": "data!value", - "valid": false - }, - { - "description": "Invalid: contains special char ?", - "data": "data?value", - "valid": false - }, - { - "description": "Invalid: contains brackets", - "data": "data[value]", - "valid": false - }, - { - "description": "Invalid: contains parentheses", - "data": "data(value)", - "valid": false - }, - { - "description": "Invalid: contains braces", - "data": "data{value}", - "valid": false - }, - { - "description": "Invalid: contains angle brackets", - "data": "data", - "valid": false - }, - { - "description": "Invalid: contains slash", - "data": "data/value", - "valid": false - }, - { - "description": "Invalid: contains backslash", - "data": "data\\value", - "valid": false - }, - { - "description": "Invalid: contains pipe", - "data": "data|value", - "valid": false - }, - { - "description": "Invalid: contains semicolon", - "data": "data;value", - "valid": false - }, - { - "description": "Invalid: contains comma", - "data": "data,value", - "valid": false - }, - { - "description": "Invalid: contains quote", - "data": "data\"value", - "valid": false - }, - { - "description": "Invalid: contains apostrophe", - "data": "data'value", - "valid": false - }, - { - "description": "Invalid: number type", - "data": 123, - "valid": false - }, - { - "description": "Invalid: boolean type", - "data": true, - "valid": false - }, - { - "description": "Invalid: null type", - "data": null, - "valid": false - }, - { - "description": "Invalid: array type", - "data": [ "value" ], - "valid": false - }, - { - "description": "Invalid: object type", - "data": { - "name": "value" - }, - "valid": false - }, - { - "description": "Valid - with combining grave accent", - "data": "àb", - "valid": true - }, - { - "description": "Valid - with combining acute accent", - "data": "élement", - "valid": true - }, - { - "description": "Valid - with combining diacritical mark", - "data": "tesẗing", - "valid": true - }, - { - "description": "Valid - letter with combining at end", - "data": "dataͯ", - "valid": true - }, - { - "description": "Valid - with undertie ‿", - "data": "a‿b", - "valid": true - }, - { - "description": "Valid - with character tie ⁀", - "data": "x⁀y", - "valid": true - }, - { - "description": "Valid - with ZWNJ", - "data": "ele‌ment", - "valid": true - }, - { - "description": "Valid - with ZWJ", - "data": "ele‍ment", - "valid": true - }, - { - "description": "Valid - starting with ZWNJ", - "data": "‌start", - "valid": true - }, - { - "description": "Valid - starting with ZWJ", - "data": "‍start", - "valid": true - }, - { - "description": "Invalid: contains carriage return", - "data": "data\rvalue", - "valid": false - }, - { - "description": "Invalid: contains null character", - "data": "data\u0000value", - "valid": false - }, - { - "description": "Invalid: contains vertical tab", - "data": "data\u000Bvalue", - "valid": false - }, - { - "description": "Invalid: contains form feed", - "data": "data\fvalue", - "valid": false - }, - { - "description": "Invalid: contains bell character", - "data": "data\u0007value", - "valid": false - }, - { - "description": "Invalid: contains escape character", - "data": "data\u001Bvalue", - "valid": false - }, - { - "description": "Invalid: starts with null", - "data": "\u0000data", - "valid": false - }, - { - "description": "Valid - U+00C0 (À) start of Latin-1 Supplement", - "data": "À", - "valid": true - }, - { - "description": "Valid - U+D7FF last before surrogate block", - "data": "퟿", - "valid": true - }, - { - "description": "Valid - U+F900 start of CJK Compatibility", - "data": "豈", - "valid": true - }, - { - "description": "Valid - U+FDCF end of Arabic Presentation", - "data": "﷏", - "valid": true - }, - { - "description": "Valid - U+FDF0 start of Arabic Presentation-B", - "data": "ﷰ", - "valid": true - }, - { - "description": "Valid - U+FFFD replacement character", - "data": "�", - "valid": true - }, - { - "description": "Valid - multiple colons", - "data": "a:b:c:d", - "valid": true - }, - { - "description": "Valid - consecutive colons", - "data": "a::b", - "valid": true - }, - { - "description": "Valid - colon only", - "data": ":", - "valid": true - }, - { - "description": "Valid - multiple underscores", - "data": "___test___", - "valid": true - }, - { - "description": "Valid - alternating special chars", - "data": "a-b.c_d:e", - "valid": true - }, - { - "description": "Valid - starting with middle dot", - "data": "·test", - "valid": true - }, - { - "description": "Valid - ending with middle dot", - "data": "test·", - "valid": true - }, - { - "description": "Valid - multiple middle dots", - "data": "a·b·c", - "valid": true - }, - { - "description": "Valid - very long ASCII", - "data": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", - "valid": true - }, - { - "description": "Valid - very long Unicode", - "data": "中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中中", - "valid": true - }, - { - "description": "Valid - very long with all allowed chars", - "data": "aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·aZ09-._:·", - "valid": true - }, - { - "description": "Valid - mixed Latin and Greek", - "data": "testδοκιμή123", - "valid": true - }, - { - "description": "Valid - mixed Arabic and digits", - "data": "test123بيانات456", - "valid": true - }, - { - "description": "Valid - mixed scripts with special chars", - "data": "test_中文_データ_тест", - "valid": true - }, - { - "description": "Valid - hyphen only", - "data": "-", - "valid": true - }, - { - "description": "Valid - period only", - "data": ".", - "valid": true - }, - { - "description": "Valid - middle dot only", - "data": "·", - "valid": true - }, - { - "description": "Invalid: contains DEL character", - "data": "datavalue", - "valid": false - }, - { - "description": "Valid - Deseret Capital Letter (U+10400)", - "data": "𐐀test", - "valid": true - }, - { - "description": "Valid - Linear B Syllable (U+10000)", - "data": "𐀀token", - "valid": true - }, - { - "description": "Valid - Gothic Letter (U+10330)", - "data": "𐌰data", - "valid": true - }, - { - "description": "Valid - CJK Extension B (U+20000)", - "data": "𠀀字", - "valid": true - }, - { - "description": "Valid - CJK Extension B (U+20BB7)", - "data": "𠮷野", - "valid": true - }, - { - "description": "Valid - Mathematical Bold A (U+1D400)", - "data": "𝐀𝐁𝐂", - "valid": true - }, - { - "description": "Valid - Mathematical Italic (U+1D465)", - "data": "𝑥𝑦𝑧", - "valid": true - }, - { - "description": "Valid - 4-byte at start", - "data": "𐐀start", - "valid": true - }, - { - "description": "Valid - 4-byte in middle", - "data": "mid𐐀dle", - "valid": true - }, - { - "description": "Valid - 4-byte at end", - "data": "end𐐀", - "valid": true - }, - { - "description": "Valid - only 4-byte characters", - "data": "𐐀𠀀𐌰", - "valid": true - }, - { - "description": "Valid - 4-byte with leading digit", - "data": "9𐐀test", - "valid": true - }, - { - "description": "Valid - 4-byte with leading hyphen", - "data": "-𐐀test", - "valid": true - }, - { - "description": "Valid - 4-byte with leading period", - "data": ".𐐀test", - "valid": true - }, - { - "description": "Valid - 4-byte with special chars", - "data": "𐐀-test.value_123", - "valid": true - }, - { - "description": "Valid - 4-byte with middle dot", - "data": "𐐀·𠀀", - "valid": true - }, - { - "description": "Valid - 4-byte with colon", - "data": "𐐀:token", - "valid": true - } - ] -} diff --git a/test/w3c/xmlschema/2001/nmtokens/v1.test.json b/test/w3c/xmlschema/2001/nmtokens/v1.test.json deleted file mode 100644 index 6a349e14..00000000 --- a/test/w3c/xmlschema/2001/nmtokens/v1.test.json +++ /dev/null @@ -1,251 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/nmtokens/v1.json", - "tests": [ - { - "description": "Valid - two tokens", - "data": [ "token1", "token2" ], - "valid": true - }, - { - "description": "Valid - single token", - "data": [ "single" ], - "valid": true - }, - { - "description": "Valid - multiple mixed tokens", - "data": [ "abc", "123", "data-value" ], - "valid": true - }, - { - "description": "Valid - tokens with special chars", - "data": [ "a:b", "c.d", "e-f", "_g" ], - "valid": true - }, - { - "description": "Valid - many tokens", - "data": [ "one", "two", "three", "four", "five" ], - "valid": true - }, - { - "description": "Valid - Unicode tokens", - "data": [ "中文", "データ", "тест" ], - "valid": true - }, - { - "description": "Valid - mixed scripts", - "data": [ "test", "测试", "テスト" ], - "valid": true - }, - { - "description": "Valid - tokens starting with digits", - "data": [ "9abc", "123", ".test" ], - "valid": true - }, - { - "description": "Valid - tokens with middle dot", - "data": [ "a·b", "test·token" ], - "valid": true - }, - { - "description": "Valid - long list", - "data": [ - "t0", - "t1", - "t2", - "t3", - "t4", - "t5", - "t6", - "t7", - "t8", - "t9", - "t10", - "t11", - "t12", - "t13", - "t14", - "t15", - "t16", - "t17", - "t18", - "t19", - "t20", - "t21", - "t22", - "t23", - "t24", - "t25", - "t26", - "t27", - "t28", - "t29", - "t30", - "t31", - "t32", - "t33", - "t34", - "t35", - "t36", - "t37", - "t38", - "t39", - "t40", - "t41", - "t42", - "t43", - "t44", - "t45", - "t46", - "t47", - "t48", - "t49", - "t50", - "t51", - "t52", - "t53", - "t54", - "t55", - "t56", - "t57", - "t58", - "t59", - "t60", - "t61", - "t62", - "t63", - "t64", - "t65", - "t66", - "t67", - "t68", - "t69", - "t70", - "t71", - "t72", - "t73", - "t74", - "t75", - "t76", - "t77", - "t78", - "t79", - "t80", - "t81", - "t82", - "t83", - "t84", - "t85", - "t86", - "t87", - "t88", - "t89", - "t90", - "t91", - "t92", - "t93", - "t94", - "t95", - "t96", - "t97", - "t98", - "t99" - ], - "valid": true - }, - { - "description": "Invalid: empty array", - "data": [], - "valid": false - }, - { - "description": "Invalid: token contains space", - "data": [ "valid", "has space" ], - "valid": false - }, - { - "description": "Invalid: token is empty string", - "data": [ "valid", "" ], - "valid": false - }, - { - "description": "Invalid: token contains newline", - "data": [ "valid", "has\nnewline" ], - "valid": false - }, - { - "description": "Invalid: token contains tab", - "data": [ "valid", "has\ttab" ], - "valid": false - }, - { - "description": "Invalid: token contains special char @", - "data": [ "valid", "has@sign" ], - "valid": false - }, - { - "description": "Invalid: token contains null char", - "data": [ "valid", "has\u0000null" ], - "valid": false - }, - { - "description": "Invalid: not an array (string)", - "data": "token1 token2", - "valid": false - }, - { - "description": "Invalid: not an array (number)", - "data": 123, - "valid": false - }, - { - "description": "Invalid: not an array (boolean)", - "data": true, - "valid": false - }, - { - "description": "Invalid: not an array (null)", - "data": null, - "valid": false - }, - { - "description": "Invalid: not an array (object)", - "data": { - "tokens": [ "a", "b" ] - }, - "valid": false - }, - { - "description": "Invalid: array contains number", - "data": [ "valid", 123 ], - "valid": false - }, - { - "description": "Invalid: array contains boolean", - "data": [ "valid", true ], - "valid": false - }, - { - "description": "Invalid: array contains null", - "data": [ "valid", null ], - "valid": false - }, - { - "description": "Invalid: array contains object", - "data": [ - "valid", - { - "key": "value" - } - ], - "valid": false - }, - { - "description": "Invalid: array contains array", - "data": [ - "valid", - [ "nested" ] - ], - "valid": false - } - ] -} diff --git a/test/w3c/xmlschema/2001/non-negative-integer/v1.test.json b/test/w3c/xmlschema/2001/non-negative-integer/v1.test.json deleted file mode 100644 index 97b483d2..00000000 --- a/test/w3c/xmlschema/2001/non-negative-integer/v1.test.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/non-negative-integer/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - one", - "data": 1, - "valid": true - }, - { - "description": "Valid - small positive", - "data": 42, - "valid": true - }, - { - "description": "Valid - large positive", - "data": 9223372036854775807, - "valid": true - }, - { - "description": "Valid - medium positive", - "data": 1000, - "valid": true - }, - { - "description": "Valid - arbitrary precision beyond uint64", - "data": 1.8446744073709551616e+19, - "valid": true - }, - { - "description": "Valid - arbitrary precision large positive", - "data": 9.9999999999999999999e+19, - "valid": true - }, - { - "description": "Valid - arbitrary precision 25 digits", - "data": 1.234567890123456789012345e+24, - "valid": true - }, - { - "description": "Valid - arbitrary precision 30 digits", - "data": 1.23456789012345678901234567890e+29, - "valid": true - }, - { - "description": "Invalid - negative one", - "data": -1, - "valid": false - }, - { - "description": "Invalid - small negative", - "data": -42, - "valid": false - }, - { - "description": "Invalid - large negative", - "data": -9223372036854775808, - "valid": false - }, - { - "description": "Invalid - decimal number", - "data": 1.5, - "valid": false - }, - { - "description": "Invalid - string type", - "data": "0", - "valid": false - }, - { - "description": "Invalid - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/w3c/xmlschema/2001/non-positive-integer/v1.test.json b/test/w3c/xmlschema/2001/non-positive-integer/v1.test.json deleted file mode 100644 index c56bf95c..00000000 --- a/test/w3c/xmlschema/2001/non-positive-integer/v1.test.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/non-positive-integer/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - negative one", - "data": -1, - "valid": true - }, - { - "description": "Valid - small negative", - "data": -42, - "valid": true - }, - { - "description": "Valid - large negative", - "data": -9223372036854775808, - "valid": true - }, - { - "description": "Valid - medium negative", - "data": -1000, - "valid": true - }, - { - "description": "Valid - arbitrary precision beyond int64", - "data": -1.2345678901234567890e+19, - "valid": true - }, - { - "description": "Valid - arbitrary precision large negative", - "data": -9.9999999999999999999e+19, - "valid": true - }, - { - "description": "Valid - arbitrary precision 25 digits negative", - "data": -1.234567890123456789012345e+24, - "valid": true - }, - { - "description": "Valid - arbitrary precision 30 digits negative", - "data": -1.23456789012345678901234567890e+29, - "valid": true - }, - { - "description": "Invalid - positive one", - "data": 1, - "valid": false - }, - { - "description": "Invalid - small positive", - "data": 42, - "valid": false - }, - { - "description": "Invalid - large positive", - "data": 9223372036854775807, - "valid": false - }, - { - "description": "Invalid - decimal number", - "data": -1.5, - "valid": false - }, - { - "description": "Invalid - string type", - "data": "0", - "valid": false - }, - { - "description": "Invalid - boolean", - "data": false, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/w3c/xmlschema/2001/normalized-string/v1.test.json b/test/w3c/xmlschema/2001/normalized-string/v1.test.json deleted file mode 100644 index 3abf059f..00000000 --- a/test/w3c/xmlschema/2001/normalized-string/v1.test.json +++ /dev/null @@ -1,337 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/normalized-string/v1.json", - "tests": [ - { - "description": "Valid - empty string", - "data": "", - "valid": true - }, - { - "description": "Valid - simple text", - "data": "Hello World", - "valid": true - }, - { - "description": "Valid - single word", - "data": "Hello", - "valid": true - }, - { - "description": "Valid - text with single spaces", - "data": "This is a test", - "valid": true - }, - { - "description": "Valid - text with multiple consecutive spaces", - "data": "Multiple spaces are allowed", - "valid": true - }, - { - "description": "Valid - text with many consecutive spaces", - "data": "Many spaces here", - "valid": true - }, - { - "description": "Valid - leading space", - "data": " Leading space", - "valid": true - }, - { - "description": "Valid - trailing space", - "data": "Trailing space ", - "valid": true - }, - { - "description": "Valid - leading and trailing spaces", - "data": " Both sides ", - "valid": true - }, - { - "description": "Valid - multiple leading spaces", - "data": " Multiple leading", - "valid": true - }, - { - "description": "Valid - multiple trailing spaces", - "data": "Multiple trailing ", - "valid": true - }, - { - "description": "Valid - only spaces", - "data": " ", - "valid": true - }, - { - "description": "Valid - single space", - "data": " ", - "valid": true - }, - { - "description": "Valid - text with numbers", - "data": "Order 123 confirmed", - "valid": true - }, - { - "description": "Valid - numbers only", - "data": "123456", - "valid": true - }, - { - "description": "Valid - special characters", - "data": "Special: @#$%^&*()", - "valid": true - }, - { - "description": "Valid - punctuation", - "data": "Hello, World! How are you?", - "valid": true - }, - { - "description": "Valid - hyphens and underscores", - "data": "hello-world_test", - "valid": true - }, - { - "description": "Valid - dots and commas", - "data": "first.name, last.name", - "valid": true - }, - { - "description": "Valid - parentheses and brackets", - "data": "Text (with) [brackets] {braces}", - "valid": true - }, - { - "description": "Valid - quotes", - "data": "He said \"hello\" and 'goodbye'", - "valid": true - }, - { - "description": "Valid - slashes", - "data": "path/to/file or back\\slash", - "valid": true - }, - { - "description": "Valid - equals and plus", - "data": "a=b+c", - "valid": true - }, - { - "description": "Valid - angle brackets", - "data": "content", - "valid": true - }, - { - "description": "Valid - Unicode Latin Extended", - "data": "Café résumé naïve", - "valid": true - }, - { - "description": "Valid - Unicode Greek", - "data": "Γεια σου κόσμε", - "valid": true - }, - { - "description": "Valid - Unicode Cyrillic", - "data": "Привет мир", - "valid": true - }, - { - "description": "Valid - Unicode Chinese", - "data": "你好世界", - "valid": true - }, - { - "description": "Valid - Unicode Japanese", - "data": "こんにちは世界", - "valid": true - }, - { - "description": "Valid - Unicode Korean", - "data": "안녕하세요 세계", - "valid": true - }, - { - "description": "Valid - Unicode Arabic", - "data": "مرحبا بالعالم", - "valid": true - }, - { - "description": "Valid - Unicode Hebrew", - "data": "שלום עולם", - "valid": true - }, - { - "description": "Valid - Unicode Emoji", - "data": "Hello 👋 World 🌍", - "valid": true - }, - { - "description": "Valid - mixed Unicode scripts", - "data": "Hello 世界 мир κόσμος", - "valid": true - }, - { - "description": "Valid - very long string with spaces", - "data": "This is a very long normalized string with many words separated by single spaces and it should still be valid", - "valid": true - }, - { - "description": "Invalid: contains line feed at start", - "data": "\nHello", - "valid": false - }, - { - "description": "Invalid: contains line feed at end", - "data": "Hello\n", - "valid": false - }, - { - "description": "Invalid: contains line feed in middle", - "data": "Hello\nWorld", - "valid": false - }, - { - "description": "Invalid: contains multiple line feeds", - "data": "Line1\nLine2\nLine3", - "valid": false - }, - { - "description": "Invalid: only line feed", - "data": "\n", - "valid": false - }, - { - "description": "Invalid: contains carriage return at start", - "data": "\rHello", - "valid": false - }, - { - "description": "Invalid: contains carriage return at end", - "data": "Hello\r", - "valid": false - }, - { - "description": "Invalid: contains carriage return in middle", - "data": "Hello\rWorld", - "valid": false - }, - { - "description": "Invalid: contains multiple carriage returns", - "data": "Line1\rLine2\rLine3", - "valid": false - }, - { - "description": "Invalid: only carriage return", - "data": "\r", - "valid": false - }, - { - "description": "Invalid: contains CRLF", - "data": "Hello\r\nWorld", - "valid": false - }, - { - "description": "Invalid: contains tab at start", - "data": "\tHello", - "valid": false - }, - { - "description": "Invalid: contains tab at end", - "data": "Hello\t", - "valid": false - }, - { - "description": "Invalid: contains tab in middle", - "data": "Hello\tWorld", - "valid": false - }, - { - "description": "Invalid: contains multiple tabs", - "data": "Col1\tCol2\tCol3", - "valid": false - }, - { - "description": "Invalid: only tab", - "data": "\t", - "valid": false - }, - { - "description": "Invalid: tab used for indentation", - "data": "\tIndented text", - "valid": false - }, - { - "description": "Invalid: multiple tabs for indentation", - "data": "\t\tDouble indented", - "valid": false - }, - { - "description": "Invalid: mixed whitespace with tab", - "data": "Hello \tWorld", - "valid": false - }, - { - "description": "Invalid: mixed whitespace with newline", - "data": "Hello \nWorld", - "valid": false - }, - { - "description": "Invalid: all three prohibited characters", - "data": "Line1\r\nLine2\tTabbed", - "valid": false - }, - { - "description": "Invalid: tab between words", - "data": "Word1\tWord2", - "valid": false - }, - { - "description": "Invalid: newline in Unicode text", - "data": "你好\n世界", - "valid": false - }, - { - "description": "Invalid: tab in Unicode text", - "data": "你好\t世界", - "valid": false - }, - { - "description": "Invalid: multiline paragraph", - "data": "First line\nSecond line\nThird line", - "valid": false - }, - { - "description": "Invalid: text with line breaks for formatting", - "data": "Name:\nJohn Doe\nAge: 30", - "valid": false - }, - { - "description": "Type validation: not a string (number)", - "data": 123, - "valid": false - }, - { - "description": "Type validation: not a string (boolean)", - "data": true, - "valid": false - }, - { - "description": "Type validation: not a string (null)", - "data": null, - "valid": false - }, - { - "description": "Type validation: not a string (array)", - "data": [ "Hello", "World" ], - "valid": false - }, - { - "description": "Type validation: not a string (object)", - "data": { - "text": "Hello World" - }, - "valid": false - } - ] -} diff --git a/test/w3c/xmlschema/2001/notation/v1.test.json b/test/w3c/xmlschema/2001/notation/v1.test.json deleted file mode 100644 index 844835e1..00000000 --- a/test/w3c/xmlschema/2001/notation/v1.test.json +++ /dev/null @@ -1,148 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/notation/v1.json", - "tests": [ - { - "description": "Valid - simple unprefixed notation name", - "data": "jpeg", - "valid": true - }, - { - "description": "Valid - unprefixed notation name", - "data": "png", - "valid": true - }, - { - "description": "Valid - unprefixed with hyphen", - "data": "image-jpeg", - "valid": true - }, - { - "description": "Valid - unprefixed with dot", - "data": "text.plain", - "valid": true - }, - { - "description": "Valid - unprefixed with underscore", - "data": "video_mpeg", - "valid": true - }, - { - "description": "Valid - prefixed notation name", - "data": "mime:image-jpeg", - "valid": true - }, - { - "description": "Valid - prefixed with namespace", - "data": "format:pdf", - "valid": true - }, - { - "description": "Valid - prefixed with uppercase", - "data": "MIME:JPEG", - "valid": true - }, - { - "description": "Valid - prefixed complex name", - "data": "media.type:application-xml", - "valid": true - }, - { - "description": "Valid - single character", - "data": "x", - "valid": true - }, - { - "description": "Valid - Unicode notation name", - "data": "图像", - "valid": true - }, - { - "description": "Valid - prefixed Unicode", - "data": "类型:图像", - "valid": true - }, - { - "description": "Invalid: empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid: starts with digit", - "data": "123format", - "valid": false - }, - { - "description": "Invalid: starts with hyphen", - "data": "-format", - "valid": false - }, - { - "description": "Invalid: contains space", - "data": "image jpeg", - "valid": false - }, - { - "description": "Invalid: contains tab", - "data": "image\tjpeg", - "valid": false - }, - { - "description": "Invalid: multiple colons", - "data": "mime:type:jpeg", - "valid": false - }, - { - "description": "Invalid: colon at start", - "data": ":jpeg", - "valid": false - }, - { - "description": "Invalid: colon at end", - "data": "jpeg:", - "valid": false - }, - { - "description": "Invalid: contains special character", - "data": "image@jpeg", - "valid": false - }, - { - "description": "Invalid: prefix starts with digit", - "data": "123mime:jpeg", - "valid": false - }, - { - "description": "Invalid: local part starts with digit", - "data": "mime:123jpeg", - "valid": false - }, - { - "description": "Type validation: not a string (number)", - "data": 123, - "valid": false - }, - { - "description": "Type validation: not a string (boolean)", - "data": true, - "valid": false - }, - { - "description": "Type validation: not a string (null)", - "data": null, - "valid": false - }, - { - "description": "Type validation: not a string (array)", - "data": [ "mime", "jpeg" ], - "valid": false - }, - { - "description": "Type validation: not a string (object)", - "data": { - "prefix": "mime", - "localPart": "jpeg" - }, - "valid": false - } - ] -} diff --git a/test/w3c/xmlschema/2001/positive-integer/v1.test.json b/test/w3c/xmlschema/2001/positive-integer/v1.test.json deleted file mode 100644 index 18db2b4f..00000000 --- a/test/w3c/xmlschema/2001/positive-integer/v1.test.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/positive-integer/v1.json", - "tests": [ - { - "description": "Valid - one", - "data": 1, - "valid": true - }, - { - "description": "Valid - two", - "data": 2, - "valid": true - }, - { - "description": "Valid - small positive", - "data": 42, - "valid": true - }, - { - "description": "Valid - large positive", - "data": 9223372036854775807, - "valid": true - }, - { - "description": "Valid - medium positive", - "data": 1000, - "valid": true - }, - { - "description": "Valid - arbitrary precision beyond uint64", - "data": 1.8446744073709551616e+19, - "valid": true - }, - { - "description": "Valid - arbitrary precision large positive", - "data": 9.9999999999999999999e+19, - "valid": true - }, - { - "description": "Valid - arbitrary precision 25 digits", - "data": 1.234567890123456789012345e+24, - "valid": true - }, - { - "description": "Valid - arbitrary precision 30 digits", - "data": 1.23456789012345678901234567890e+29, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative one", - "data": -1, - "valid": false - }, - { - "description": "Invalid - small negative", - "data": -42, - "valid": false - }, - { - "description": "Invalid - large negative", - "data": -9223372036854775808, - "valid": false - }, - { - "description": "Invalid - decimal number", - "data": 1.5, - "valid": false - }, - { - "description": "Invalid - string type", - "data": "1", - "valid": false - }, - { - "description": "Invalid - string with leading zeros", - "data": "01", - "valid": false - }, - { - "description": "Invalid - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/w3c/xmlschema/2001/qname/v1.test.json b/test/w3c/xmlschema/2001/qname/v1.test.json deleted file mode 100644 index 7c8124f9..00000000 --- a/test/w3c/xmlschema/2001/qname/v1.test.json +++ /dev/null @@ -1,933 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/qname/v1.json", - "tests": [ - { - "description": "Valid - simple unprefixed ASCII", - "data": "myElement", - "valid": true - }, - { - "description": "Valid - unprefixed starts with underscore", - "data": "_myElement", - "valid": true - }, - { - "description": "Valid - unprefixed with period", - "data": "my.Element", - "valid": true - }, - { - "description": "Valid - unprefixed with hyphen", - "data": "my-element", - "valid": true - }, - { - "description": "Valid - unprefixed with underscore in middle", - "data": "my_element", - "valid": true - }, - { - "description": "Valid - unprefixed with ASCII digits", - "data": "element123", - "valid": true - }, - { - "description": "Valid - unprefixed ASCII complex mix", - "data": "my.complex-name_45", - "valid": true - }, - { - "description": "Valid - unprefixed single ASCII letter", - "data": "a", - "valid": true - }, - { - "description": "Valid - unprefixed single underscore", - "data": "_", - "valid": true - }, - { - "description": "Valid - prefixed simple ASCII", - "data": "ns:element", - "valid": true - }, - { - "description": "Valid - prefixed with uppercase", - "data": "html:HTML", - "valid": true - }, - { - "description": "Valid - prefixed with numbers in local part", - "data": "ns:element123", - "valid": true - }, - { - "description": "Valid - prefixed with hyphen", - "data": "my-ns:my-element", - "valid": true - }, - { - "description": "Valid - prefixed with dot", - "data": "ns.v1:element.name", - "valid": true - }, - { - "description": "Valid - prefixed with underscore in prefix", - "data": "_ns:element", - "valid": true - }, - { - "description": "Valid - prefixed with underscore in local part", - "data": "ns:_element", - "valid": true - }, - { - "description": "Valid - prefixed single characters", - "data": "x:y", - "valid": true - }, - { - "description": "Valid - prefixed underscore prefix", - "data": "_:element", - "valid": true - }, - { - "description": "Valid - prefixed underscore local part", - "data": "ns:_", - "valid": true - }, - { - "description": "Valid - Extended Latin - À (U+00C0) unprefixed", - "data": "Àlement", - "valid": true - }, - { - "description": "Valid - Extended Latin - Ö (U+00D6) unprefixed", - "data": "Ölement", - "valid": true - }, - { - "description": "Valid - Extended Latin - Ø (U+00D8) unprefixed", - "data": "Ølement", - "valid": true - }, - { - "description": "Valid - Extended Latin - ö (U+00F6) unprefixed", - "data": "ölement", - "valid": true - }, - { - "description": "Valid - Extended Latin - ÿ (U+00FF) unprefixed", - "data": "ÿlement", - "valid": true - }, - { - "description": "Valid - Extended Latin - Ā (U+0100) unprefixed", - "data": "Ālement", - "valid": true - }, - { - "description": "Valid - Extended Latin - ı (U+0131 dotless i) unprefixed", - "data": "ılement", - "valid": true - }, - { - "description": "Valid - Extended Latin - Über prefixed", - "data": "Über:element", - "valid": true - }, - { - "description": "Valid - Extended Latin - both parts", - "data": "Àlement:Öther", - "valid": true - }, - { - "description": "Valid - Greek - Α (U+0391 Alpha) unprefixed", - "data": "Αlement", - "valid": true - }, - { - "description": "Valid - Greek - Ω (U+03A9 Omega) unprefixed", - "data": "Ωlement", - "valid": true - }, - { - "description": "Valid - Greek - α (U+03B1 alpha) unprefixed", - "data": "αlement", - "valid": true - }, - { - "description": "Valid - Greek - ω (U+03C9 omega) unprefixed", - "data": "ωlement", - "valid": true - }, - { - "description": "Valid - Greek - full word unprefixed", - "data": "ελληνικά", - "valid": true - }, - { - "description": "Valid - Greek - prefixed", - "data": "ελληνικά:στοιχείο", - "valid": true - }, - { - "description": "Valid - Cyrillic - А (U+0410) unprefixed", - "data": "Аlement", - "valid": true - }, - { - "description": "Valid - Cyrillic - Я (U+042F) unprefixed", - "data": "Яlement", - "valid": true - }, - { - "description": "Valid - Cyrillic - а (U+0430) unprefixed", - "data": "аlement", - "valid": true - }, - { - "description": "Valid - Cyrillic - я (U+044F) unprefixed", - "data": "яlement", - "valid": true - }, - { - "description": "Valid - Cyrillic - Ё (U+0401) unprefixed", - "data": "Ёlement", - "valid": true - }, - { - "description": "Valid - Cyrillic - prefixed", - "data": "элемент:имя", - "valid": true - }, - { - "description": "Valid - Hebrew - א (U+05D0 Alef) unprefixed", - "data": "אlement", - "valid": true - }, - { - "description": "Valid - Hebrew - ת (U+05EA Tav) unprefixed", - "data": "תlement", - "valid": true - }, - { - "description": "Valid - Hebrew - ש (U+05E9 Shin) unprefixed", - "data": "שlement", - "valid": true - }, - { - "description": "Valid - Hebrew - full word unprefixed", - "data": "עברית", - "valid": true - }, - { - "description": "Valid - Hebrew - prefixed", - "data": "עברית:רכיב", - "valid": true - }, - { - "description": "Valid - Arabic - ا (U+0627 Alif) unprefixed", - "data": "اlement", - "valid": true - }, - { - "description": "Valid - Arabic - ي (U+064A Ya) unprefixed", - "data": "يlement", - "valid": true - }, - { - "description": "Valid - Arabic - ع (U+0639 Ain) unprefixed", - "data": "عlement", - "valid": true - }, - { - "description": "Valid - Arabic - ص (U+0635 Sad) unprefixed", - "data": "صlement", - "valid": true - }, - { - "description": "Valid - Arabic - ق (U+0642 Qaf) unprefixed", - "data": "قlement", - "valid": true - }, - { - "description": "Valid - Arabic - م (U+0645 Meem) unprefixed", - "data": "مlement", - "valid": true - }, - { - "description": "Valid - Arabic - ن (U+0646 Noon) unprefixed", - "data": "نlement", - "valid": true - }, - { - "description": "Valid - Arabic - ه (U+0647 Ha) unprefixed", - "data": "هlement", - "valid": true - }, - { - "description": "Valid - Arabic - full word unprefixed", - "data": "عنصر", - "valid": true - }, - { - "description": "Valid - Arabic - prefixed", - "data": "عربي:عنصر", - "valid": true - }, - { - "description": "Valid - Devanagari - अ (U+0905) unprefixed", - "data": "अlement", - "valid": true - }, - { - "description": "Valid - Devanagari - क (U+0915 Ka) unprefixed", - "data": "कlement", - "valid": true - }, - { - "description": "Valid - Devanagari - त (U+0924 Ta) unprefixed", - "data": "तlement", - "valid": true - }, - { - "description": "Valid - Devanagari - द (U+0926 Da) unprefixed", - "data": "दlement", - "valid": true - }, - { - "description": "Valid - Devanagari - न (U+0928 Na) unprefixed", - "data": "नlement", - "valid": true - }, - { - "description": "Valid - Devanagari - प (U+092A Pa) unprefixed", - "data": "पlement", - "valid": true - }, - { - "description": "Valid - Devanagari - म (U+092E Ma) unprefixed", - "data": "मlement", - "valid": true - }, - { - "description": "Valid - Devanagari - र (U+0930 Ra) unprefixed", - "data": "रlement", - "valid": true - }, - { - "description": "Valid - Devanagari - full word unprefixed", - "data": "तत्व", - "valid": true - }, - { - "description": "Valid - Devanagari - prefixed", - "data": "नाम:तत्व", - "valid": true - }, - { - "description": "Valid - Bengali - অ (U+0985) unprefixed", - "data": "অlement", - "valid": true - }, - { - "description": "Valid - Bengali - ক (U+0995 Ka) unprefixed", - "data": "কlement", - "valid": true - }, - { - "description": "Valid - Bengali - prefixed", - "data": "বাংলা:উপাদান", - "valid": true - }, - { - "description": "Valid - Tamil - அ (U+0B85) unprefixed", - "data": "அlement", - "valid": true - }, - { - "description": "Valid - Tamil - க (U+0B95 Ka) unprefixed", - "data": "கlement", - "valid": true - }, - { - "description": "Valid - Tamil - prefixed", - "data": "தமிழ்:உறுப்பு", - "valid": true - }, - { - "description": "Valid - Thai - ก (U+0E01) unprefixed", - "data": "กlement", - "valid": true - }, - { - "description": "Valid - Thai - ข (U+0E02) unprefixed", - "data": "ขlement", - "valid": true - }, - { - "description": "Valid - Thai - ค (U+0E04) unprefixed", - "data": "คlement", - "valid": true - }, - { - "description": "Valid - Thai - ด (U+0E14) unprefixed", - "data": "ดlement", - "valid": true - }, - { - "description": "Valid - Thai - full word unprefixed", - "data": "องค์ประกอบ", - "valid": true - }, - { - "description": "Valid - Thai - prefixed", - "data": "ไทย:องค์ประกอบ", - "valid": true - }, - { - "description": "Valid - Tibetan - ཀ (U+0F40 Ka) unprefixed", - "data": "ཀlement", - "valid": true - }, - { - "description": "Valid - Tibetan - ག (U+0F42 Ga) unprefixed", - "data": "གlement", - "valid": true - }, - { - "description": "Valid - Tibetan - ད (U+0F51 Da) unprefixed", - "data": "དlement", - "valid": true - }, - { - "description": "Valid - Tibetan - prefixed", - "data": "ཀlement:དlement", - "valid": true - }, - { - "description": "Valid - Georgian - ა (U+10D0) unprefixed", - "data": "აlement", - "valid": true - }, - { - "description": "Valid - Georgian - prefixed", - "data": "ქართული:ელემენტი", - "valid": true - }, - { - "description": "Valid - Hangul - ᄀ (U+1100) unprefixed", - "data": "ᄀlement", - "valid": true - }, - { - "description": "Valid - Hangul - 가 (U+AC00) unprefixed", - "data": "가element", - "valid": true - }, - { - "description": "Valid - Hangul - full word unprefixed", - "data": "한글요소", - "valid": true - }, - { - "description": "Valid - Hangul - prefixed", - "data": "이름공간:요소", - "valid": true - }, - { - "description": "Valid - CJK Ideographic - 一 (U+4E00) unprefixed", - "data": "一element", - "valid": true - }, - { - "description": "Valid - CJK Ideographic - 中 (U+4E2D) unprefixed", - "data": "中element", - "valid": true - }, - { - "description": "Valid - CJK Ideographic - 文 (U+6587) unprefixed", - "data": "文element", - "valid": true - }, - { - "description": "Valid - CJK Ideographic - 日 (U+65E5) unprefixed", - "data": "日element", - "valid": true - }, - { - "description": "Valid - CJK Ideographic - full word unprefixed", - "data": "中文元素", - "valid": true - }, - { - "description": "Valid - CJK Ideographic - prefixed", - "data": "命名空间:元素", - "valid": true - }, - { - "description": "Valid - Mixed scripts unprefixed", - "data": "ns中文element한글", - "valid": true - }, - { - "description": "Valid - Mixed scripts prefixed", - "data": "ns中文:element한글", - "valid": true - }, - { - "description": "Valid - Unicode digit ० (U+0966) in continuation", - "data": "element०", - "valid": true - }, - { - "description": "Valid - Unicode digit १ (U+0967) in continuation", - "data": "element१", - "valid": true - }, - { - "description": "Valid - Unicode digit sequence in continuation", - "data": "element०१२३", - "valid": true - }, - { - "description": "Valid - Unicode digits in prefixed QName", - "data": "ns१२३:elem४५६", - "valid": true - }, - { - "description": "Valid - Arabic-Indic digit ٠ (U+0660) in continuation", - "data": "element٠", - "valid": true - }, - { - "description": "Valid - Arabic-Indic digits in continuation", - "data": "element٠١٢", - "valid": true - }, - { - "description": "Valid - Bengali digit ০ (U+09E6) in continuation", - "data": "element০", - "valid": true - }, - { - "description": "Valid - Thai digit ๐ (U+0E50) in continuation", - "data": "element๐", - "valid": true - }, - { - "description": "Valid - Tibetan digit ༠ (U+0F20) in continuation", - "data": "element༠", - "valid": true - }, - { - "description": "Valid - Combining acute accent (U+0301) unprefixed", - "data": "café", - "valid": true - }, - { - "description": "Valid - Combining grave accent (U+0300) unprefixed", - "data": "cafè", - "valid": true - }, - { - "description": "Valid - Combining tilde (U+0303) unprefixed", - "data": "año", - "valid": true - }, - { - "description": "Valid - Multiple combining characters unprefixed", - "data": "é̂lement", - "valid": true - }, - { - "description": "Valid - Combining characters prefixed", - "data": "café:naïve", - "valid": true - }, - { - "description": "Valid - Devanagari combining (U+093C) in continuation", - "data": "element़", - "valid": true - }, - { - "description": "Valid - Arabic combining (U+064B) in continuation", - "data": "elementً", - "valid": true - }, - { - "description": "Valid - Thai combining (U+0E31) in continuation", - "data": "elementั", - "valid": true - }, - { - "description": "Valid - Extender middle dot · (U+00B7) in continuation", - "data": "ele·ment", - "valid": true - }, - { - "description": "Valid - Extender ː (U+02D0) in continuation", - "data": "eleːment", - "valid": true - }, - { - "description": "Valid - Extender ˑ (U+02D1) in continuation", - "data": "eleˑment", - "valid": true - }, - { - "description": "Valid - Extender · (U+0387 Greek middle dot) in continuation", - "data": "ele·ment", - "valid": true - }, - { - "description": "Valid - Extender ـ (U+0640 Arabic tatweel) in continuation", - "data": "eleـment", - "valid": true - }, - { - "description": "Valid - Extender ๆ (U+0E46 Thai) in continuation", - "data": "eleๆment", - "valid": true - }, - { - "description": "Valid - Extender ໆ (U+0EC6 Lao) in continuation", - "data": "eleໆment", - "valid": true - }, - { - "description": "Valid - Extender 々 (U+3005 Ideographic iteration mark) in continuation", - "data": "ele々ment", - "valid": true - }, - { - "description": "Valid - Extender ゝ (U+309D Hiragana) in continuation", - "data": "eleゝment", - "valid": true - }, - { - "description": "Valid - Extender ゞ (U+309E Hiragana voiced) in continuation", - "data": "eleゞment", - "valid": true - }, - { - "description": "Valid - Extender ー (U+30FC Katakana) in continuation", - "data": "eleーment", - "valid": true - }, - { - "description": "Valid - Extender ヽ (U+30FD Katakana) in continuation", - "data": "eleヽment", - "valid": true - }, - { - "description": "Valid - Extender ヾ (U+30FE Katakana voiced) in continuation", - "data": "eleヾment", - "valid": true - }, - { - "description": "Valid - Extenders in prefixed QName", - "data": "ele·ment:na·me", - "valid": true - }, - { - "description": "Valid - Long complex unprefixed QName", - "data": "very.long-element_name.with-many.parts_123", - "valid": true - }, - { - "description": "Valid - Long complex prefixed QName", - "data": "very.long-namespace_123:very.long-element_name.with-many.parts", - "valid": true - }, - { - "description": "Invalid: empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid: unprefixed starts with digit", - "data": "123element", - "valid": false - }, - { - "description": "Invalid: unprefixed starts with hyphen", - "data": "-element", - "valid": false - }, - { - "description": "Invalid: unprefixed starts with dot", - "data": ".element", - "valid": false - }, - { - "description": "Invalid: unprefixed contains space", - "data": "my element", - "valid": false - }, - { - "description": "Invalid: unprefixed contains tab", - "data": "my\telement", - "valid": false - }, - { - "description": "Invalid: unprefixed contains newline", - "data": "my\nelement", - "valid": false - }, - { - "description": "Invalid: multiple colons", - "data": "ns:sub:element", - "valid": false - }, - { - "description": "Invalid: colon at start", - "data": ":element", - "valid": false - }, - { - "description": "Invalid: colon at end", - "data": "element:", - "valid": false - }, - { - "description": "Invalid: only colon", - "data": ":", - "valid": false - }, - { - "description": "Invalid: prefix starts with digit", - "data": "123ns:element", - "valid": false - }, - { - "description": "Invalid: prefix starts with hyphen", - "data": "-ns:element", - "valid": false - }, - { - "description": "Invalid: prefix starts with dot", - "data": ".ns:element", - "valid": false - }, - { - "description": "Invalid: local part starts with digit", - "data": "ns:123element", - "valid": false - }, - { - "description": "Invalid: local part starts with hyphen", - "data": "ns:-element", - "valid": false - }, - { - "description": "Invalid: local part starts with dot", - "data": "ns:.element", - "valid": false - }, - { - "description": "Invalid: unprefixed contains @", - "data": "my@element", - "valid": false - }, - { - "description": "Invalid: unprefixed contains #", - "data": "my#element", - "valid": false - }, - { - "description": "Invalid: unprefixed contains $", - "data": "my$element", - "valid": false - }, - { - "description": "Invalid: unprefixed contains %", - "data": "my%element", - "valid": false - }, - { - "description": "Invalid: unprefixed contains <", - "data": "my", - "data": "my>element", - "valid": false - }, - { - "description": "Invalid: prefix contains <", - "data": "ns<:element", - "valid": false - }, - { - "description": "Invalid: local part contains >", - "data": "ns:elem>ent", - "valid": false - }, - { - "description": "Invalid: unprefixed contains /", - "data": "my/element", - "valid": false - }, - { - "description": "Invalid: unprefixed contains \\", - "data": "my\\element", - "valid": false - }, - { - "description": "Invalid: unprefixed contains ?", - "data": "my?element", - "valid": false - }, - { - "description": "Invalid: unprefixed contains !", - "data": "my!element", - "valid": false - }, - { - "description": "Invalid: unprefixed contains ,", - "data": "my,element", - "valid": false - }, - { - "description": "Invalid: unprefixed contains ;", - "data": "my;element", - "valid": false - }, - { - "description": "Invalid: unprefixed contains \"", - "data": "my\"element", - "valid": false - }, - { - "description": "Invalid: unprefixed contains '", - "data": "my'element", - "valid": false - }, - { - "description": "Invalid: unprefixed contains (", - "data": "my(element", - "valid": false - }, - { - "description": "Invalid: unprefixed contains )", - "data": "my)element", - "valid": false - }, - { - "description": "Invalid: unprefixed contains [", - "data": "my[element", - "valid": false - }, - { - "description": "Invalid: unprefixed contains ]", - "data": "my]element", - "valid": false - }, - { - "description": "Invalid: unprefixed contains {", - "data": "my{element", - "valid": false - }, - { - "description": "Invalid: unprefixed contains }", - "data": "my}element", - "valid": false - }, - { - "description": "Invalid: prefix contains special character", - "data": "ns@:element", - "valid": false - }, - { - "description": "Invalid: local part contains special character", - "data": "ns:elem#ent", - "valid": false - }, - { - "description": "Invalid: unprefixed contains control character U+0001", - "data": "my\u0001element", - "valid": false - }, - { - "description": "Invalid: unprefixed contains null character U+0000", - "data": "my\u0000element", - "valid": false - }, - { - "description": "Invalid: unprefixed contains control character U+001F", - "data": "my\u001Felement", - "valid": false - }, - { - "description": "Invalid: prefix with space", - "data": "my ns:element", - "valid": false - }, - { - "description": "Invalid: local part with space", - "data": "ns:my element", - "valid": false - }, - { - "description": "Invalid: space before colon", - "data": "ns :element", - "valid": false - }, - { - "description": "Invalid: space after colon", - "data": "ns: element", - "valid": false - }, - { - "description": "Invalid: prefix with tab", - "data": "ns\t:element", - "valid": false - }, - { - "description": "Invalid: local part with tab", - "data": "ns:\telement", - "valid": false - }, - { - "description": "Invalid: prefix with newline", - "data": "ns\n:element", - "valid": false - }, - { - "description": "Invalid: local part with newline", - "data": "ns:\nelement", - "valid": false - }, - { - "description": "Type validation: not a string (number)", - "data": 123, - "valid": false - }, - { - "description": "Type validation: not a string (boolean)", - "data": true, - "valid": false - }, - { - "description": "Type validation: not a string (null)", - "data": null, - "valid": false - }, - { - "description": "Type validation: not a string (array)", - "data": [ "ns", "element" ], - "valid": false - }, - { - "description": "Type validation: not a string (object)", - "data": { - "namespace": "ns", - "localPart": "element" - }, - "valid": false - } - ] -} diff --git a/test/w3c/xmlschema/2001/short/v1.test.json b/test/w3c/xmlschema/2001/short/v1.test.json deleted file mode 100644 index 946467e3..00000000 --- a/test/w3c/xmlschema/2001/short/v1.test.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/short/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - positive one", - "data": 1, - "valid": true - }, - { - "description": "Valid - negative one", - "data": -1, - "valid": true - }, - { - "description": "Valid - maximum (32767)", - "data": 32767, - "valid": true - }, - { - "description": "Valid - minimum (-32768)", - "data": -32768, - "valid": true - }, - { - "description": "Valid - arbitrary positive", - "data": 1000, - "valid": true - }, - { - "description": "Valid - arbitrary negative", - "data": -1000, - "valid": true - }, - { - "description": "Invalid: too large (32768)", - "data": 32768, - "valid": false - }, - { - "description": "Invalid: too small (-32769)", - "data": -32769, - "valid": false - }, - { - "description": "Invalid: much too large", - "data": 100000, - "valid": false - }, - { - "description": "Invalid: decimal number", - "data": 1.5, - "valid": false - }, - { - "description": "Invalid: string", - "data": "1000", - "valid": false - }, - { - "description": "Invalid: boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid: null", - "data": null, - "valid": false - } - ] -} diff --git a/test/w3c/xmlschema/2001/string/v1.test.json b/test/w3c/xmlschema/2001/string/v1.test.json deleted file mode 100644 index eea6d715..00000000 --- a/test/w3c/xmlschema/2001/string/v1.test.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/string/v1.json", - "tests": [ - { - "description": "Valid - simple string", - "data": "hello world", - "valid": true - }, - { - "description": "Valid - empty string", - "data": "", - "valid": true - }, - { - "description": "Valid - string with special characters", - "data": "Hello, 世界! @#$%^&*()", - "valid": true - }, - { - "description": "Valid - string with whitespace", - "data": " spaces and\ttabs\nand newlines ", - "valid": true - }, - { - "description": "Valid - numeric string", - "data": "12345", - "valid": true - }, - { - "description": "Invalid - number type", - "data": 123, - "valid": false - }, - { - "description": "Invalid - boolean type", - "data": true, - "valid": false - }, - { - "description": "Invalid - null type", - "data": null, - "valid": false - }, - { - "description": "Invalid - object type", - "data": {}, - "valid": false - }, - { - "description": "Invalid - array type", - "data": [], - "valid": false - }, - { - "description": "Invalid - control character outside the XML Char production", - "valid": false, - "data": "a\u0007b" - }, - { - "description": "Invalid - the noncharacter U+FFFE", - "valid": false, - "data": "a￾b" - }, - { - "description": "Valid - tab, newline, and carriage return are XML Chars", - "valid": true, - "data": "a\t\n\rb" - } - ] -} diff --git a/test/w3c/xmlschema/2001/time/v1.test.json b/test/w3c/xmlschema/2001/time/v1.test.json deleted file mode 100644 index 3536c158..00000000 --- a/test/w3c/xmlschema/2001/time/v1.test.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/time/v1.json", - "tests": [ - { - "description": "Valid - basic time", - "data": "14:30:00", - "valid": true - }, - { - "description": "Valid - time with Z timezone", - "data": "14:30:00Z", - "valid": true - }, - { - "description": "Valid - time with positive offset", - "data": "14:30:00+05:30", - "valid": true - }, - { - "description": "Valid - time with negative offset", - "data": "14:30:00-08:00", - "valid": true - }, - { - "description": "Valid - time with fractional seconds", - "data": "14:30:00.123", - "valid": true - }, - { - "description": "Valid - time with fractional seconds and timezone", - "data": "14:30:00.123456Z", - "valid": true - }, - { - "description": "Valid - midnight", - "data": "00:00:00", - "valid": true - }, - { - "description": "Valid - end of day", - "data": "23:59:59", - "valid": true - }, - { - "description": "Valid - 24:00:00", - "data": "24:00:00", - "valid": true - }, - { - "description": "Invalid - leap second is not an XSD time", - "data": "23:59:60", - "valid": false - }, - { - "description": "Invalid - hour 25", - "data": "25:00:00", - "valid": false - }, - { - "description": "Invalid - minute 60", - "data": "14:60:00", - "valid": false - }, - { - "description": "Invalid - second 61", - "data": "14:30:61", - "valid": false - }, - { - "description": "Invalid - 24:00:01", - "data": "24:00:01", - "valid": false - }, - { - "description": "Invalid - 24:01:00", - "data": "24:01:00", - "valid": false - }, - { - "description": "Invalid - missing seconds", - "data": "14:30", - "valid": false - }, - { - "description": "Invalid - single digit hour", - "data": "9:30:00", - "valid": false - }, - { - "description": "Invalid - number type", - "data": 143000, - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - } - ] -} diff --git a/test/w3c/xmlschema/2001/token/v1.test.json b/test/w3c/xmlschema/2001/token/v1.test.json deleted file mode 100644 index f57b6907..00000000 --- a/test/w3c/xmlschema/2001/token/v1.test.json +++ /dev/null @@ -1,427 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/token/v1.json", - "tests": [ - { - "description": "Valid - empty string", - "data": "", - "valid": true - }, - { - "description": "Valid - single word", - "data": "Hello", - "valid": true - }, - { - "description": "Valid - two words with single space", - "data": "Hello World", - "valid": true - }, - { - "description": "Valid - three words with single spaces", - "data": "This is text", - "valid": true - }, - { - "description": "Valid - multiple words with single spaces", - "data": "Multiple words separated by single spaces", - "valid": true - }, - { - "description": "Valid - sentence with punctuation", - "data": "Hello, World! How are you?", - "valid": true - }, - { - "description": "Valid - single space between punctuation", - "data": "First, second, third, fourth", - "valid": true - }, - { - "description": "Valid - text with numbers", - "data": "Order 123 confirmed", - "valid": true - }, - { - "description": "Valid - numbers only", - "data": "123456", - "valid": true - }, - { - "description": "Valid - hyphenated words", - "data": "well-known up-to-date", - "valid": true - }, - { - "description": "Valid - no spaces just hyphens", - "data": "no-spaces-just-hyphens", - "valid": true - }, - { - "description": "Valid - underscores", - "data": "snake_case_identifier", - "valid": true - }, - { - "description": "Valid - mixed case", - "data": "MixedCase123", - "valid": true - }, - { - "description": "Valid - dots", - "data": "file.name.extension", - "valid": true - }, - { - "description": "Valid - special characters without spaces", - "data": "@#$%^&*()", - "valid": true - }, - { - "description": "Valid - special characters with single spaces", - "data": "special @ characters # here", - "valid": true - }, - { - "description": "Valid - path-like without spaces", - "data": "path/to/file", - "valid": true - }, - { - "description": "Valid - URL-like", - "data": "https://example.com/path", - "valid": true - }, - { - "description": "Valid - email-like", - "data": "user@example.com", - "valid": true - }, - { - "description": "Valid - quoted text with single spaces", - "data": "He said \"hello\" and left", - "valid": true - }, - { - "description": "Valid - Unicode single word", - "data": "你好", - "valid": true - }, - { - "description": "Valid - Unicode with single spaces", - "data": "你好 世界", - "valid": true - }, - { - "description": "Valid - Unicode Greek with spaces", - "data": "Γεια σου κόσμε", - "valid": true - }, - { - "description": "Valid - Unicode Cyrillic with spaces", - "data": "Привет мир", - "valid": true - }, - { - "description": "Valid - Unicode Japanese with spaces", - "data": "こんにちは 世界", - "valid": true - }, - { - "description": "Valid - Unicode Korean with spaces", - "data": "안녕하세요 세계", - "valid": true - }, - { - "description": "Valid - Unicode Arabic with spaces", - "data": "مرحبا بالعالم", - "valid": true - }, - { - "description": "Valid - Unicode Hebrew with spaces", - "data": "שלום עולם", - "valid": true - }, - { - "description": "Valid - Unicode Emoji with single spaces", - "data": "Hello 👋 World 🌍", - "valid": true - }, - { - "description": "Valid - mixed scripts with single spaces", - "data": "Hello 世界 мир κόσμος", - "valid": true - }, - { - "description": "Valid - Latin Extended with single spaces", - "data": "Café résumé naïve", - "valid": true - }, - { - "description": "Valid - long sentence with single spaces", - "data": "This is a very long tokenized string with many words separated by single spaces only", - "valid": true - }, - { - "description": "Valid - single character", - "data": "a", - "valid": true - }, - { - "description": "Valid - single digit", - "data": "5", - "valid": true - }, - { - "description": "Invalid: leading space", - "data": " Hello", - "valid": false - }, - { - "description": "Invalid: trailing space", - "data": "Hello ", - "valid": false - }, - { - "description": "Invalid: leading and trailing spaces", - "data": " Hello ", - "valid": false - }, - { - "description": "Invalid: multiple leading spaces", - "data": " Hello", - "valid": false - }, - { - "description": "Invalid: multiple trailing spaces", - "data": "Hello ", - "valid": false - }, - { - "description": "Invalid: single space only", - "data": " ", - "valid": false - }, - { - "description": "Invalid: multiple spaces only", - "data": " ", - "valid": false - }, - { - "description": "Invalid: two consecutive spaces in middle", - "data": "Hello World", - "valid": false - }, - { - "description": "Invalid: three consecutive spaces in middle", - "data": "Hello World", - "valid": false - }, - { - "description": "Invalid: many consecutive spaces in middle", - "data": "Hello World", - "valid": false - }, - { - "description": "Invalid: double spaces between multiple words", - "data": "First second third", - "valid": false - }, - { - "description": "Invalid: mixed single and double spaces", - "data": "One two three four", - "valid": false - }, - { - "description": "Invalid: leading space with valid spacing after", - "data": " Hello World", - "valid": false - }, - { - "description": "Invalid: trailing space with valid spacing before", - "data": "Hello World ", - "valid": false - }, - { - "description": "Invalid: both leading and double space", - "data": " Hello World", - "valid": false - }, - { - "description": "Invalid: both trailing and double space", - "data": "Hello World ", - "valid": false - }, - { - "description": "Invalid: all spacing violations", - "data": " Hello World ", - "valid": false - }, - { - "description": "Invalid: double space in Unicode text", - "data": "你好 世界", - "valid": false - }, - { - "description": "Invalid: leading space in Unicode text", - "data": " 你好", - "valid": false - }, - { - "description": "Invalid: trailing space in Unicode text", - "data": "你好 ", - "valid": false - }, - { - "description": "Invalid: contains line feed at start", - "data": "\nHello", - "valid": false - }, - { - "description": "Invalid: contains line feed at end", - "data": "Hello\n", - "valid": false - }, - { - "description": "Invalid: contains line feed in middle", - "data": "Hello\nWorld", - "valid": false - }, - { - "description": "Invalid: contains multiple line feeds", - "data": "Line1\nLine2\nLine3", - "valid": false - }, - { - "description": "Invalid: only line feed", - "data": "\n", - "valid": false - }, - { - "description": "Invalid: contains carriage return at start", - "data": "\rHello", - "valid": false - }, - { - "description": "Invalid: contains carriage return at end", - "data": "Hello\r", - "valid": false - }, - { - "description": "Invalid: contains carriage return in middle", - "data": "Hello\rWorld", - "valid": false - }, - { - "description": "Invalid: contains multiple carriage returns", - "data": "Line1\rLine2\rLine3", - "valid": false - }, - { - "description": "Invalid: only carriage return", - "data": "\r", - "valid": false - }, - { - "description": "Invalid: contains CRLF", - "data": "Hello\r\nWorld", - "valid": false - }, - { - "description": "Invalid: contains tab at start", - "data": "\tHello", - "valid": false - }, - { - "description": "Invalid: contains tab at end", - "data": "Hello\t", - "valid": false - }, - { - "description": "Invalid: contains tab in middle", - "data": "Hello\tWorld", - "valid": false - }, - { - "description": "Invalid: contains multiple tabs", - "data": "Col1\tCol2\tCol3", - "valid": false - }, - { - "description": "Invalid: only tab", - "data": "\t", - "valid": false - }, - { - "description": "Invalid: tab used for spacing", - "data": "Hello\tWorld", - "valid": false - }, - { - "description": "Invalid: mixed whitespace with tab", - "data": "Hello \tWorld", - "valid": false - }, - { - "description": "Invalid: mixed whitespace with newline", - "data": "Hello \nWorld", - "valid": false - }, - { - "description": "Invalid: all prohibited characters", - "data": "Line1\r\nLine2\tTabbed", - "valid": false - }, - { - "description": "Invalid: newline in Unicode text", - "data": "你好\n世界", - "valid": false - }, - { - "description": "Invalid: tab in Unicode text", - "data": "你好\t世界", - "valid": false - }, - { - "description": "Invalid: multiline paragraph", - "data": "First line\nSecond line\nThird line", - "valid": false - }, - { - "description": "Invalid: leading space and newline", - "data": " Hello\nWorld", - "valid": false - }, - { - "description": "Invalid: trailing space and tab", - "data": "Hello\tWorld ", - "valid": false - }, - { - "description": "Type validation: not a string (number)", - "data": 123, - "valid": false - }, - { - "description": "Type validation: not a string (boolean)", - "data": true, - "valid": false - }, - { - "description": "Type validation: not a string (null)", - "data": null, - "valid": false - }, - { - "description": "Type validation: not a string (array)", - "data": [ "Hello", "World" ], - "valid": false - }, - { - "description": "Type validation: not a string (object)", - "data": { - "text": "Hello World" - }, - "valid": false - } - ] -} diff --git a/test/w3c/xmlschema/2001/unsigned-byte/v1.test.json b/test/w3c/xmlschema/2001/unsigned-byte/v1.test.json deleted file mode 100644 index 7e670990..00000000 --- a/test/w3c/xmlschema/2001/unsigned-byte/v1.test.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/unsigned-byte/v1.json", - "tests": [ - { - "description": "Valid - zero (minimum)", - "data": 0, - "valid": true - }, - { - "description": "Valid - one", - "data": 1, - "valid": true - }, - { - "description": "Valid - maximum (255)", - "data": 255, - "valid": true - }, - { - "description": "Valid - mid-range (128)", - "data": 128, - "valid": true - }, - { - "description": "Valid - arbitrary", - "data": 42, - "valid": true - }, - { - "description": "Invalid: too large (256)", - "data": 256, - "valid": false - }, - { - "description": "Invalid: much too large", - "data": 1000, - "valid": false - }, - { - "description": "Invalid: negative one", - "data": -1, - "valid": false - }, - { - "description": "Invalid: negative value", - "data": -100, - "valid": false - }, - { - "description": "Invalid: decimal number", - "data": 1.5, - "valid": false - }, - { - "description": "Invalid: string", - "data": "42", - "valid": false - }, - { - "description": "Invalid: boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid: null", - "data": null, - "valid": false - } - ] -} diff --git a/test/w3c/xmlschema/2001/unsigned-int/v1.test.json b/test/w3c/xmlschema/2001/unsigned-int/v1.test.json deleted file mode 100644 index 6212f179..00000000 --- a/test/w3c/xmlschema/2001/unsigned-int/v1.test.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/unsigned-int/v1.json", - "tests": [ - { - "description": "Valid - zero (minimum)", - "data": 0, - "valid": true - }, - { - "description": "Valid - one", - "data": 1, - "valid": true - }, - { - "description": "Valid - maximum (4294967295)", - "data": 4294967295, - "valid": true - }, - { - "description": "Valid - mid-range (2147483648)", - "data": 2147483648, - "valid": true - }, - { - "description": "Valid - arbitrary", - "data": 42, - "valid": true - }, - { - "description": "Invalid: too large (4294967296)", - "data": 4294967296, - "valid": false - }, - { - "description": "Invalid: much too large", - "data": 10000000000, - "valid": false - }, - { - "description": "Invalid: negative one", - "data": -1, - "valid": false - }, - { - "description": "Invalid: negative value", - "data": -1000, - "valid": false - }, - { - "description": "Invalid: decimal number", - "data": 1.5, - "valid": false - }, - { - "description": "Invalid: string", - "data": "42", - "valid": false - }, - { - "description": "Invalid: boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid: null", - "data": null, - "valid": false - } - ] -} diff --git a/test/w3c/xmlschema/2001/unsigned-long/v1.test.json b/test/w3c/xmlschema/2001/unsigned-long/v1.test.json deleted file mode 100644 index 2c15047d..00000000 --- a/test/w3c/xmlschema/2001/unsigned-long/v1.test.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/unsigned-long/v1.json", - "tests": [ - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - one", - "data": 1, - "valid": true - }, - { - "description": "Valid - int64 max", - "data": 9223372036854775807, - "valid": true - }, - { - "description": "Valid - uint32 max", - "data": 4294967296, - "valid": true - }, - { - "description": "Valid - arbitrary", - "data": 42, - "valid": true - }, - { - "description": "Valid - large value", - "data": 123456789012345, - "valid": true - }, - { - "description": "Valid - uint64 maximum", - "data": 1.8446744073709551615e+19, - "valid": true - }, - { - "description": "Valid - just above int64 max", - "data": 9.223372036854775808e+18, - "valid": true - }, - { - "description": "Valid - near uint64 maximum", - "data": 1.8446744073709551614e+19, - "valid": true - }, - { - "description": "Valid - large mid-range value", - "data": 1.0000000000000000000e+19, - "valid": true - }, - { - "description": "Invalid - above uint64 maximum", - "data": 1.8446744073709551616e+19, - "valid": false - }, - { - "description": "Invalid - large above maximum", - "data": 2.0000000000000000000e+19, - "valid": false - }, - { - "description": "Invalid - negative one", - "data": -1, - "valid": false - }, - { - "description": "Invalid - negative value", - "data": -1000, - "valid": false - }, - { - "description": "Invalid - decimal point", - "data": 1.5, - "valid": false - }, - { - "description": "Invalid - string type", - "data": "42", - "valid": false - }, - { - "description": "Invalid - string with leading zeros", - "data": "01", - "valid": false - }, - { - "description": "Invalid - boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - } - ] -} diff --git a/test/w3c/xmlschema/2001/unsigned-short/v1.test.json b/test/w3c/xmlschema/2001/unsigned-short/v1.test.json deleted file mode 100644 index bce087d8..00000000 --- a/test/w3c/xmlschema/2001/unsigned-short/v1.test.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "target": "../../../../../schemas/w3c/xmlschema/2001/unsigned-short/v1.json", - "tests": [ - { - "description": "Valid - zero (minimum)", - "data": 0, - "valid": true - }, - { - "description": "Valid - one", - "data": 1, - "valid": true - }, - { - "description": "Valid - maximum (65535)", - "data": 65535, - "valid": true - }, - { - "description": "Valid - mid-range (32768)", - "data": 32768, - "valid": true - }, - { - "description": "Valid - arbitrary", - "data": 1000, - "valid": true - }, - { - "description": "Invalid: too large (65536)", - "data": 65536, - "valid": false - }, - { - "description": "Invalid: much too large", - "data": 100000, - "valid": false - }, - { - "description": "Invalid: negative one", - "data": -1, - "valid": false - }, - { - "description": "Invalid: negative value", - "data": -1000, - "valid": false - }, - { - "description": "Invalid: decimal number", - "data": 1.5, - "valid": false - }, - { - "description": "Invalid: string", - "data": "1000", - "valid": false - }, - { - "description": "Invalid: boolean", - "data": true, - "valid": false - }, - { - "description": "Invalid: null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/area-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/area-item-type/v1.test.json deleted file mode 100644 index c6e5ab3f..00000000 --- a/test/xbrl/dtr/type/2024-01-31/area-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/area-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive decimal", - "data": 100.5, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -25.75, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large number", - "data": 1000000.0, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "100.5", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/datetime-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/datetime-item-type/v1.test.json deleted file mode 100644 index 99562684..00000000 --- a/test/xbrl/dtr/type/2024-01-31/datetime-item-type/v1.test.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/datetime-item-type/v1.json", - "tests": [ - { - "description": "Valid - datetime with timezone", - "data": "2023-12-31T23:59:59Z", - "valid": true - }, - { - "description": "Valid - datetime with offset", - "data": "2024-01-01T00:00:00-05:00", - "valid": true - }, - { - "description": "Valid - datetime without timezone", - "data": "2024-06-15T12:30:00", - "valid": true - }, - { - "description": "Valid - datetime with fractional seconds", - "data": "2024-01-01T12:00:00.123Z", - "valid": true - }, - { - "description": "Invalid - date only (no time)", - "data": "2023-12-31", - "valid": false - }, - { - "description": "Invalid - year 0000", - "data": "0000-01-01T00:00:00", - "valid": false - }, - { - "description": "Invalid - number type", - "data": 20231231, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/domain-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/domain-item-type/v1.test.json deleted file mode 100644 index 38c942dc..00000000 --- a/test/xbrl/dtr/type/2024-01-31/domain-item-type/v1.test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/domain-item-type/v1.json", - "tests": [ - { - "description": "Valid - empty string", - "data": "", - "valid": true - }, - { - "description": "Invalid - non-empty string", - "data": "domain", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - }, - { - "description": "Invalid - number type", - "data": 0, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/electric-charge-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/electric-charge-item-type/v1.test.json deleted file mode 100644 index 33a49aac..00000000 --- a/test/xbrl/dtr/type/2024-01-31/electric-charge-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/electric-charge-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive decimal", - "data": 100.5, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -25.75, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large number", - "data": 1000000.0, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "100.5", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/electric-current-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/electric-current-item-type/v1.test.json deleted file mode 100644 index 0cda7593..00000000 --- a/test/xbrl/dtr/type/2024-01-31/electric-current-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/electric-current-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive decimal", - "data": 100.5, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -25.75, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large number", - "data": 1000000.0, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "100.5", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/energy-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/energy-item-type/v1.test.json deleted file mode 100644 index d26f4921..00000000 --- a/test/xbrl/dtr/type/2024-01-31/energy-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/energy-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive decimal", - "data": 100.5, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -25.75, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large number", - "data": 1000000.0, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "100.5", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/energy-per-monetary-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/energy-per-monetary-item-type/v1.test.json deleted file mode 100644 index dd4076f5..00000000 --- a/test/xbrl/dtr/type/2024-01-31/energy-per-monetary-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/energy-per-monetary-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive decimal", - "data": 100.5, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -25.75, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large number", - "data": 1000000.0, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "100.5", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/escaped-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/escaped-item-type/v1.test.json deleted file mode 100644 index a6218d4c..00000000 --- a/test/xbrl/dtr/type/2024-01-31/escaped-item-type/v1.test.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/escaped-item-type/v1.json", - "tests": [ - { - "description": "Valid - simple string", - "data": "Some text content", - "valid": true - }, - { - "description": "Valid - empty string", - "data": "", - "valid": true - }, - { - "description": "Valid - long text", - "data": "This is a longer text example", - "valid": true - }, - { - "description": "Invalid - number type", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/flow-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/flow-item-type/v1.test.json deleted file mode 100644 index a450418d..00000000 --- a/test/xbrl/dtr/type/2024-01-31/flow-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/flow-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive decimal", - "data": 100.5, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -25.75, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large number", - "data": 1000000.0, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "100.5", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/force-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/force-item-type/v1.test.json deleted file mode 100644 index 98c1b7ff..00000000 --- a/test/xbrl/dtr/type/2024-01-31/force-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/force-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive decimal", - "data": 100.5, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -25.75, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large number", - "data": 1000000.0, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "100.5", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/frequency-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/frequency-item-type/v1.test.json deleted file mode 100644 index 5a054b57..00000000 --- a/test/xbrl/dtr/type/2024-01-31/frequency-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/frequency-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive decimal", - "data": 100.5, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -25.75, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large number", - "data": 1000000.0, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "100.5", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/ghg-emissions-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/ghg-emissions-item-type/v1.test.json deleted file mode 100644 index cb570f36..00000000 --- a/test/xbrl/dtr/type/2024-01-31/ghg-emissions-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/ghg-emissions-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive decimal", - "data": 100.5, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -25.75, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large number", - "data": 1000000.0, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "100.5", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/ghg-emissions-per-monetary-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/ghg-emissions-per-monetary-item-type/v1.test.json deleted file mode 100644 index a25cd610..00000000 --- a/test/xbrl/dtr/type/2024-01-31/ghg-emissions-per-monetary-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/ghg-emissions-per-monetary-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive decimal", - "data": 100.5, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -25.75, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large number", - "data": 1000000.0, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "100.5", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/guidance-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/guidance-item-type/v1.test.json deleted file mode 100644 index b81eb822..00000000 --- a/test/xbrl/dtr/type/2024-01-31/guidance-item-type/v1.test.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/guidance-item-type/v1.json", - "tests": [ - { - "description": "Valid - simple string", - "data": "Some text content", - "valid": true - }, - { - "description": "Valid - empty string", - "data": "", - "valid": true - }, - { - "description": "Valid - long text", - "data": "This is a longer text example", - "valid": true - }, - { - "description": "Invalid - number type", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/gyear-list-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/gyear-list-item-type/v1.test.json deleted file mode 100644 index 3d2ae689..00000000 --- a/test/xbrl/dtr/type/2024-01-31/gyear-list-item-type/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/gyear-list-item-type/v1.json", - "tests": [ - { - "description": "Valid - single year", - "valid": true, - "data": "2020" - }, - { - "description": "Valid - multiple years", - "valid": true, - "data": "2020 2021 2022" - }, - { - "description": "Valid - negative and long years", - "valid": true, - "data": "-1999 1000 12026" - }, - { - "description": "Valid - empty list", - "valid": true, - "data": "" - }, - { - "description": "Valid - surrounding whitespace", - "valid": true, - "data": " 2020 2021 " - }, - { - "description": "Invalid - timezone designator", - "valid": false, - "data": "2024Z" - }, - { - "description": "Invalid - three digit year", - "valid": false, - "data": "202" - }, - { - "description": "Invalid - comma separated", - "valid": false, - "data": "2020,2021" - }, - { - "description": "Invalid - JSON array of years", - "valid": false, - "data": [ "2020", "2021" ] - }, - { - "description": "Invalid - number", - "valid": false, - "data": 2020 - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/insolation-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/insolation-item-type/v1.test.json deleted file mode 100644 index f5deaabd..00000000 --- a/test/xbrl/dtr/type/2024-01-31/insolation-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/insolation-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive decimal", - "data": 100.5, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -25.75, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large number", - "data": 1000000.0, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "100.5", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/irradiance-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/irradiance-item-type/v1.test.json deleted file mode 100644 index 04a5506a..00000000 --- a/test/xbrl/dtr/type/2024-01-31/irradiance-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/irradiance-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive decimal", - "data": 100.5, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -25.75, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large number", - "data": 1000000.0, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "100.5", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/length-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/length-item-type/v1.test.json deleted file mode 100644 index 6ee0d4b8..00000000 --- a/test/xbrl/dtr/type/2024-01-31/length-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/length-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive decimal", - "data": 100.5, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -25.75, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large number", - "data": 1000000.0, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "100.5", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/mass-flow-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/mass-flow-item-type/v1.test.json deleted file mode 100644 index e86bab9c..00000000 --- a/test/xbrl/dtr/type/2024-01-31/mass-flow-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/mass-flow-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive decimal", - "data": 100.5, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -25.75, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large number", - "data": 1000000.0, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "100.5", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/mass-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/mass-item-type/v1.test.json deleted file mode 100644 index edc14a48..00000000 --- a/test/xbrl/dtr/type/2024-01-31/mass-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/mass-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive decimal", - "data": 100.5, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -25.75, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large number", - "data": 1000000.0, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "100.5", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/memory-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/memory-item-type/v1.test.json deleted file mode 100644 index 3bb179e2..00000000 --- a/test/xbrl/dtr/type/2024-01-31/memory-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/memory-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive decimal", - "data": 100.5, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -25.75, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large number", - "data": 1000000.0, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "100.5", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/monetary-per-area-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/monetary-per-area-item-type/v1.test.json deleted file mode 100644 index 73063214..00000000 --- a/test/xbrl/dtr/type/2024-01-31/monetary-per-area-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/monetary-per-area-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive decimal", - "data": 100.5, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -25.75, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large number", - "data": 1000000.0, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "100.5", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/monetary-per-duration-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/monetary-per-duration-item-type/v1.test.json deleted file mode 100644 index 89fe9c62..00000000 --- a/test/xbrl/dtr/type/2024-01-31/monetary-per-duration-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/monetary-per-duration-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive decimal", - "data": 100.5, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -25.75, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large number", - "data": 1000000.0, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "100.5", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/monetary-per-energy-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/monetary-per-energy-item-type/v1.test.json deleted file mode 100644 index f781b323..00000000 --- a/test/xbrl/dtr/type/2024-01-31/monetary-per-energy-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/monetary-per-energy-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive decimal", - "data": 100.5, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -25.75, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large number", - "data": 1000000.0, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "100.5", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/monetary-per-length-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/monetary-per-length-item-type/v1.test.json deleted file mode 100644 index 8a5f514a..00000000 --- a/test/xbrl/dtr/type/2024-01-31/monetary-per-length-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/monetary-per-length-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive decimal", - "data": 100.5, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -25.75, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large number", - "data": 1000000.0, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "100.5", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/monetary-per-mass-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/monetary-per-mass-item-type/v1.test.json deleted file mode 100644 index e8062bfc..00000000 --- a/test/xbrl/dtr/type/2024-01-31/monetary-per-mass-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/monetary-per-mass-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive decimal", - "data": 100.5, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -25.75, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large number", - "data": 1000000.0, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "100.5", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/monetary-per-volume-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/monetary-per-volume-item-type/v1.test.json deleted file mode 100644 index 67c010ea..00000000 --- a/test/xbrl/dtr/type/2024-01-31/monetary-per-volume-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/monetary-per-volume-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive decimal", - "data": 100.5, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -25.75, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large number", - "data": 1000000.0, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "100.5", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/no-decimals-monetary-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/no-decimals-monetary-item-type/v1.test.json deleted file mode 100644 index 9de1ca9a..00000000 --- a/test/xbrl/dtr/type/2024-01-31/no-decimals-monetary-item-type/v1.test.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/no-decimals-monetary-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive integer monetary value", - "data": { - "value": 100, - "currency": "USD" - }, - "valid": true - }, - { - "description": "Valid - negative integer monetary value", - "data": { - "value": -25, - "currency": "EUR" - }, - "valid": true - }, - { - "description": "Valid - zero", - "data": { - "value": 0, - "currency": "GBP" - }, - "valid": true - }, - { - "description": "Valid - large integer", - "data": { - "value": 999999999, - "currency": "JPY" - }, - "valid": true - }, - { - "description": "Invalid - decimal value with cents", - "data": { - "value": 100.5, - "currency": "USD" - }, - "valid": false - }, - { - "description": "Invalid - small decimal", - "data": { - "value": 0.01, - "currency": "USD" - }, - "valid": false - }, - { - "description": "Invalid - negative decimal", - "data": { - "value": -10.99, - "currency": "EUR" - }, - "valid": false - }, - { - "description": "Invalid - missing currency", - "data": { - "value": 100 - }, - "valid": false - }, - { - "description": "Invalid - missing value", - "data": { - "currency": "USD" - }, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - }, - { - "description": "Invalid - string value", - "data": { - "value": "100", - "currency": "USD" - }, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/no-lang-string-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/no-lang-string-item-type/v1.test.json deleted file mode 100644 index a2d5523d..00000000 --- a/test/xbrl/dtr/type/2024-01-31/no-lang-string-item-type/v1.test.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/no-lang-string-item-type/v1.json", - "tests": [ - { - "description": "Valid - simple string", - "data": "Some text content", - "valid": true - }, - { - "description": "Valid - empty string", - "data": "", - "valid": true - }, - { - "description": "Valid - long text", - "data": "This is a longer text example", - "valid": true - }, - { - "description": "Invalid - number type", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/no-lang-token-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/no-lang-token-item-type/v1.test.json deleted file mode 100644 index 13a983cf..00000000 --- a/test/xbrl/dtr/type/2024-01-31/no-lang-token-item-type/v1.test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/no-lang-token-item-type/v1.json", - "tests": [ - { - "description": "Valid - simple token", - "data": "token123", - "valid": true - }, - { - "description": "Valid - another token", - "data": "IDENTIFIER", - "valid": true - }, - { - "description": "Invalid - number type", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/non-negative-monetary-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/non-negative-monetary-item-type/v1.test.json deleted file mode 100644 index 04da05a0..00000000 --- a/test/xbrl/dtr/type/2024-01-31/non-negative-monetary-item-type/v1.test.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/non-negative-monetary-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive monetary value", - "data": { - "value": 100.5, - "currency": "USD" - }, - "valid": true - }, - { - "description": "Valid - zero", - "data": { - "value": 0, - "currency": "EUR" - }, - "valid": true - }, - { - "description": "Valid - decimal value", - "data": { - "value": 25.75, - "currency": "GBP" - }, - "valid": true - }, - { - "description": "Valid - large positive value", - "data": { - "value": 1000000.0, - "currency": "JPY" - }, - "valid": true - }, - { - "description": "Valid - very small positive value", - "data": { - "value": 0.01, - "currency": "USD" - }, - "valid": true - }, - { - "description": "Invalid - negative value", - "data": { - "value": -10.5, - "currency": "USD" - }, - "valid": false - }, - { - "description": "Invalid - negative integer", - "data": { - "value": -1, - "currency": "EUR" - }, - "valid": false - }, - { - "description": "Invalid - large negative value", - "data": { - "value": -1000000.0, - "currency": "USD" - }, - "valid": false - }, - { - "description": "Invalid - missing currency", - "data": { - "value": 100 - }, - "valid": false - }, - { - "description": "Invalid - missing value", - "data": { - "currency": "USD" - }, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/non-negative-no-decimals-monetary-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/non-negative-no-decimals-monetary-item-type/v1.test.json deleted file mode 100644 index cb9bcb5b..00000000 --- a/test/xbrl/dtr/type/2024-01-31/non-negative-no-decimals-monetary-item-type/v1.test.json +++ /dev/null @@ -1,96 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/non-negative-no-decimals-monetary-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive integer monetary value", - "data": { - "value": 100, - "currency": "USD" - }, - "valid": true - }, - { - "description": "Valid - zero", - "data": { - "value": 0, - "currency": "EUR" - }, - "valid": true - }, - { - "description": "Valid - large positive integer", - "data": { - "value": 999999999, - "currency": "JPY" - }, - "valid": true - }, - { - "description": "Invalid - negative integer value", - "data": { - "value": -10, - "currency": "USD" - }, - "valid": false - }, - { - "description": "Invalid - negative large integer", - "data": { - "value": -999999, - "currency": "EUR" - }, - "valid": false - }, - { - "description": "Invalid - positive decimal value (has cents)", - "data": { - "value": 100.5, - "currency": "USD" - }, - "valid": false - }, - { - "description": "Invalid - small positive decimal", - "data": { - "value": 0.01, - "currency": "USD" - }, - "valid": false - }, - { - "description": "Invalid - negative decimal", - "data": { - "value": -10.99, - "currency": "EUR" - }, - "valid": false - }, - { - "description": "Invalid - missing currency", - "data": { - "value": 100 - }, - "valid": false - }, - { - "description": "Invalid - missing value", - "data": { - "currency": "USD" - }, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - }, - { - "description": "Invalid - string value", - "data": { - "value": "100", - "currency": "USD" - }, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/per-share-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/per-share-item-type/v1.test.json deleted file mode 100644 index 144bb893..00000000 --- a/test/xbrl/dtr/type/2024-01-31/per-share-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/per-share-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive decimal", - "data": 100.5, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -25.75, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large number", - "data": 1000000.0, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "100.5", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/percent-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/percent-item-type/v1.test.json deleted file mode 100644 index 94c833ac..00000000 --- a/test/xbrl/dtr/type/2024-01-31/percent-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/percent-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive decimal", - "data": 100.5, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -25.75, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large number", - "data": 1000000.0, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "100.5", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/plane-angle-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/plane-angle-item-type/v1.test.json deleted file mode 100644 index 116805a7..00000000 --- a/test/xbrl/dtr/type/2024-01-31/plane-angle-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/plane-angle-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive decimal", - "data": 100.5, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -25.75, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large number", - "data": 1000000.0, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "100.5", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/power-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/power-item-type/v1.test.json deleted file mode 100644 index e33ef92f..00000000 --- a/test/xbrl/dtr/type/2024-01-31/power-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/power-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive decimal", - "data": 100.5, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -25.75, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large number", - "data": 1000000.0, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "100.5", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/prefixed-content-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/prefixed-content-item-type/v1.test.json deleted file mode 100644 index 72e2a72a..00000000 --- a/test/xbrl/dtr/type/2024-01-31/prefixed-content-item-type/v1.test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/prefixed-content-item-type/v1.json", - "tests": [ - { - "description": "Valid - simple token", - "data": "token123", - "valid": true - }, - { - "description": "Valid - another token", - "data": "IDENTIFIER", - "valid": true - }, - { - "description": "Invalid - number type", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/pressure-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/pressure-item-type/v1.test.json deleted file mode 100644 index 15ee20d8..00000000 --- a/test/xbrl/dtr/type/2024-01-31/pressure-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/pressure-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive decimal", - "data": 100.5, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -25.75, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large number", - "data": 1000000.0, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "100.5", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/speed-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/speed-item-type/v1.test.json deleted file mode 100644 index 5a7a8ba5..00000000 --- a/test/xbrl/dtr/type/2024-01-31/speed-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/speed-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive decimal", - "data": 100.5, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -25.75, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large number", - "data": 1000000.0, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "100.5", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/sqname-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/sqname-item-type/v1.test.json deleted file mode 100644 index 26cbdf80..00000000 --- a/test/xbrl/dtr/type/2024-01-31/sqname-item-type/v1.test.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/sqname-item-type/v1.json", - "tests": [ - { - "description": "Valid - simple QName", - "data": "xbrli:monetary", - "valid": true - }, - { - "description": "Valid - currency code QName", - "data": "iso4217:USD", - "valid": true - }, - { - "description": "Valid - custom prefix", - "data": "custom:MyElement", - "valid": true - }, - { - "description": "Valid - underscore in prefix", - "data": "my_prefix:element", - "valid": true - }, - { - "description": "Valid - hyphen in local part", - "data": "ns:my-element", - "valid": true - }, - { - "description": "Valid - single character prefix", - "data": "a:element", - "valid": true - }, - { - "description": "Invalid - no colon separator", - "data": "xbrlimonetary", - "valid": false - }, - { - "description": "Invalid - starts with number", - "data": "123:element", - "valid": false - }, - { - "description": "Invalid - starts with colon", - "data": ":element", - "valid": false - }, - { - "description": "Invalid - contains space in prefix", - "data": "my prefix:element", - "valid": false - }, - { - "description": "Invalid - contains space after colon", - "data": "xbrli: monetary", - "valid": false - }, - { - "description": "Valid - multiple colons in local part allowed", - "data": "ns:my:element", - "valid": true - }, - { - "description": "Invalid - empty local part", - "data": "ns:", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - }, - { - "description": "Invalid - number type", - "data": 123, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/sqnames-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/sqnames-item-type/v1.test.json deleted file mode 100644 index a8872016..00000000 --- a/test/xbrl/dtr/type/2024-01-31/sqnames-item-type/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/sqnames-item-type/v1.json", - "tests": [ - { - "description": "Valid - single QName", - "data": [ "xbrli:monetary" ], - "valid": true - }, - { - "description": "Valid - multiple QNames", - "data": [ "iso4217:USD", "custom:MyElement" ], - "valid": true - }, - { - "description": "Valid - three QNames", - "data": [ "ns1:foo", "ns2:bar", "ns3:baz" ], - "valid": true - }, - { - "description": "Valid - empty array", - "data": [], - "valid": true - }, - { - "description": "Valid - QNames with colons in local part", - "data": [ "ns:my:element", "prefix:a:b:c" ], - "valid": true - }, - { - "description": "Invalid - array with non-QName string", - "data": [ "xbrlimonetary", "custom:Element" ], - "valid": false - }, - { - "description": "Invalid - array with item starting with number", - "data": [ "123:element", "ns:foo" ], - "valid": false - }, - { - "description": "Invalid - not an array", - "data": "xbrli:monetary", - "valid": false - }, - { - "description": "Invalid - array with null item", - "data": [ "xbrli:monetary", null ], - "valid": false - }, - { - "description": "Invalid - array with number item", - "data": [ "xbrli:monetary", 123 ], - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/temperature-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/temperature-item-type/v1.test.json deleted file mode 100644 index 9b575731..00000000 --- a/test/xbrl/dtr/type/2024-01-31/temperature-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/temperature-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive decimal", - "data": 100.5, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -25.75, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large number", - "data": 1000000.0, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "100.5", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/text-block-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/text-block-item-type/v1.test.json deleted file mode 100644 index 220fcbe6..00000000 --- a/test/xbrl/dtr/type/2024-01-31/text-block-item-type/v1.test.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/text-block-item-type/v1.json", - "tests": [ - { - "description": "Valid - simple string", - "data": "Some text content", - "valid": true - }, - { - "description": "Valid - empty string", - "data": "", - "valid": true - }, - { - "description": "Valid - long text", - "data": "This is a longer text example", - "valid": true - }, - { - "description": "Invalid - number type", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/voltage-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/voltage-item-type/v1.test.json deleted file mode 100644 index 4bb5debe..00000000 --- a/test/xbrl/dtr/type/2024-01-31/voltage-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/voltage-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive decimal", - "data": 100.5, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -25.75, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large number", - "data": 1000000.0, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "100.5", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/volume-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/volume-item-type/v1.test.json deleted file mode 100644 index 7fb90221..00000000 --- a/test/xbrl/dtr/type/2024-01-31/volume-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/volume-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive decimal", - "data": 100.5, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -25.75, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large number", - "data": 1000000.0, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "100.5", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/volume-per-monetary-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/volume-per-monetary-item-type/v1.test.json deleted file mode 100644 index 407c7aa5..00000000 --- a/test/xbrl/dtr/type/2024-01-31/volume-per-monetary-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/volume-per-monetary-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive decimal", - "data": 100.5, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -25.75, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large number", - "data": 1000000.0, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "100.5", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/weight-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/weight-item-type/v1.test.json deleted file mode 100644 index 664306b1..00000000 --- a/test/xbrl/dtr/type/2024-01-31/weight-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/weight-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive decimal", - "data": 100.5, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -25.75, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large number", - "data": 1000000.0, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "100.5", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/xml-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/xml-item-type/v1.test.json deleted file mode 100644 index 75531bba..00000000 --- a/test/xbrl/dtr/type/2024-01-31/xml-item-type/v1.test.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/xml-item-type/v1.json", - "tests": [ - { - "description": "Valid - simple string", - "data": "Some text content", - "valid": true - }, - { - "description": "Valid - empty string", - "data": "", - "valid": true - }, - { - "description": "Valid - long text", - "data": "This is a longer text example", - "valid": true - }, - { - "description": "Invalid - number type", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/dtr/type/2024-01-31/xml-nodes-item-type/v1.test.json b/test/xbrl/dtr/type/2024-01-31/xml-nodes-item-type/v1.test.json deleted file mode 100644 index 84e3d820..00000000 --- a/test/xbrl/dtr/type/2024-01-31/xml-nodes-item-type/v1.test.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "target": "../../../../../../schemas/xbrl/dtr/type/2024-01-31/xml-nodes-item-type/v1.json", - "tests": [ - { - "description": "Valid - simple string", - "data": "Some text content", - "valid": true - }, - { - "description": "Valid - empty string", - "data": "", - "valid": true - }, - { - "description": "Valid - long text", - "data": "This is a longer text example", - "valid": true - }, - { - "description": "Invalid - number type", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/any-uri-item-type/v1.test.json b/test/xbrl/instance/2003/any-uri-item-type/v1.test.json deleted file mode 100644 index 5ad56fcc..00000000 --- a/test/xbrl/instance/2003/any-uri-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/any-uri-item-type/v1.json", - "tests": [ - { - "description": "Valid - http URL", - "data": "http://example.com", - "valid": true - }, - { - "description": "Valid - https URL", - "data": "https://example.com/path?query=value", - "valid": true - }, - { - "description": "Valid - relative URI", - "data": "../path/to/resource", - "valid": true - }, - { - "description": "Valid - empty string", - "data": "", - "valid": true - }, - { - "description": "Valid - spaces are within the XSD anyURI lexical space", - "data": "http://example.com/path with spaces", - "valid": true - }, - { - "description": "Invalid - number instead of string", - "data": 123, - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/base64-binary-item-type/v1.test.json b/test/xbrl/instance/2003/base64-binary-item-type/v1.test.json deleted file mode 100644 index cb923187..00000000 --- a/test/xbrl/instance/2003/base64-binary-item-type/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/base64-binary-item-type/v1.json", - "tests": [ - { - "description": "Valid - base64 encoded string", - "data": "SGVsbG8gV29ybGQ=", - "valid": true - }, - { - "description": "Valid - base64 with double padding", - "data": "YQ==", - "valid": true - }, - { - "description": "Valid - empty string", - "data": "", - "valid": true - }, - { - "description": "Valid - longer base64 string", - "data": "VGhpcyBpcyBhIHRlc3Q=", - "valid": true - }, - { - "description": "Invalid - invalid base64 characters", - "data": "Hello@World", - "valid": false - }, - { - "description": "Invalid - improper padding", - "data": "SGVsbG8", - "valid": false - }, - { - "description": "Invalid - number instead of string", - "data": 123, - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/boolean-item-type/v1.test.json b/test/xbrl/instance/2003/boolean-item-type/v1.test.json deleted file mode 100644 index 5852c386..00000000 --- a/test/xbrl/instance/2003/boolean-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/boolean-item-type/v1.json", - "tests": [ - { - "description": "Valid - true", - "data": true, - "valid": true - }, - { - "description": "Valid - false", - "data": false, - "valid": true - }, - { - "description": "Invalid - string 'true'", - "data": "true", - "valid": false - }, - { - "description": "Invalid - string 'false'", - "data": "false", - "valid": false - }, - { - "description": "Invalid - number 1", - "data": 1, - "valid": false - }, - { - "description": "Invalid - number 0", - "data": 0, - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/byte-item-type/v1.test.json b/test/xbrl/instance/2003/byte-item-type/v1.test.json deleted file mode 100644 index fcbae1cc..00000000 --- a/test/xbrl/instance/2003/byte-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/byte-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive byte", - "data": 42, - "valid": true - }, - { - "description": "Valid - negative byte", - "data": -10, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Invalid - string instead of number", - "data": "42", - "valid": false - }, - { - "description": "Invalid - decimal value", - "data": 4.2, - "valid": false - }, - { - "description": "Invalid - non-numeric string", - "data": "abc", - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/date-item-type/v1.test.json b/test/xbrl/instance/2003/date-item-type/v1.test.json deleted file mode 100644 index 2068f43c..00000000 --- a/test/xbrl/instance/2003/date-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/date-item-type/v1.json", - "tests": [ - { - "description": "Valid - basic date", - "data": "2023-10-15", - "valid": true - }, - { - "description": "Valid - date with timezone", - "data": "2023-10-15Z", - "valid": true - }, - { - "description": "Valid - date with offset", - "data": "2023-10-15-05:00", - "valid": true - }, - { - "description": "Valid - negative year", - "data": "-0001-01-01", - "valid": true - }, - { - "description": "Invalid - invalid month", - "data": "2023-13-01", - "valid": false - }, - { - "description": "Invalid - random string", - "data": "not-a-date", - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/date-time-item-type/v1.test.json b/test/xbrl/instance/2003/date-time-item-type/v1.test.json deleted file mode 100644 index ed28e1cc..00000000 --- a/test/xbrl/instance/2003/date-time-item-type/v1.test.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/date-time-item-type/v1.json", - "tests": [ - { - "description": "Valid - date format", - "data": "2002-10-10", - "valid": true - }, - { - "description": "Valid - dateTime with timezone offset", - "data": "2002-10-10T12:00:00-05:00", - "valid": true - }, - { - "description": "Valid - date with Z timezone", - "data": "2002-10-10Z", - "valid": true - }, - { - "description": "Valid - dateTime without timezone", - "data": "2002-05-30T09:00:00", - "valid": true - }, - { - "description": "Valid - dateTime with Z timezone", - "data": "2023-01-15T14:30:00Z", - "valid": true - }, - { - "description": "Invalid - invalid month", - "data": "2002-13-10", - "valid": false - }, - { - "description": "Invalid - random string", - "data": "not-a-date-or-time", - "valid": false - }, - { - "description": "Invalid - number instead of string", - "data": 20021010, - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/decimal-item-type/v1.test.json b/test/xbrl/instance/2003/decimal-item-type/v1.test.json deleted file mode 100644 index 20913e07..00000000 --- a/test/xbrl/instance/2003/decimal-item-type/v1.test.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/decimal-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive decimal", - "data": 123.45, - "valid": true - }, - { - "description": "Valid - negative decimal", - "data": -67.89, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - high precision decimal", - "data": 3.14159, - "valid": true - }, - { - "description": "Valid - arbitrary precision 20 digit integer", - "data": 1.2345678901234567890e+19, - "valid": true - }, - { - "description": "Valid - arbitrary precision 25 digits", - "data": 1.234567890123456789012345e+24, - "valid": true - }, - { - "description": "Valid - arbitrary precision with decimals", - "data": 1.234567890123456800e+17, - "valid": true - }, - { - "description": "Valid - arbitrary precision negative", - "data": -1.2345678901234567890e+19, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "123.45", - "valid": false - }, - { - "description": "Invalid - text", - "data": "abc", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/double-item-type/v1.test.json b/test/xbrl/instance/2003/double-item-type/v1.test.json deleted file mode 100644 index 62cf193b..00000000 --- a/test/xbrl/instance/2003/double-item-type/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/double-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive double", - "data": 123.45, - "valid": true - }, - { - "description": "Valid - negative double", - "data": -67.89, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0.0, - "valid": true - }, - { - "description": "Valid - integer as double", - "data": 42, - "valid": true - }, - { - "description": "Invalid - string instead of number", - "data": "123.45", - "valid": false - }, - { - "description": "Invalid - non-numeric string", - "data": "abc", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/duration-item-type/v1.test.json b/test/xbrl/instance/2003/duration-item-type/v1.test.json deleted file mode 100644 index a8ee3520..00000000 --- a/test/xbrl/instance/2003/duration-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/duration-item-type/v1.json", - "tests": [ - { - "description": "Valid - duration in days", - "data": "P1D", - "valid": true - }, - { - "description": "Valid - duration in years and months", - "data": "P1Y2M", - "valid": true - }, - { - "description": "Valid - duration with time component", - "data": "PT5H30M", - "valid": true - }, - { - "description": "Valid - negative duration", - "data": "-P1D", - "valid": true - }, - { - "description": "Invalid - missing P prefix", - "data": "1D", - "valid": false - }, - { - "description": "Invalid - random string", - "data": "not-a-duration", - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/float-item-type/v1.test.json b/test/xbrl/instance/2003/float-item-type/v1.test.json deleted file mode 100644 index 2eca09cd..00000000 --- a/test/xbrl/instance/2003/float-item-type/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/float-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive float", - "data": 123.45, - "valid": true - }, - { - "description": "Valid - negative float", - "data": -67.89, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0.0, - "valid": true - }, - { - "description": "Valid - integer as float", - "data": 42, - "valid": true - }, - { - "description": "Invalid - string instead of number", - "data": "123.45", - "valid": false - }, - { - "description": "Invalid - non-numeric string", - "data": "abc", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/fraction-item-type/v1.test.json b/test/xbrl/instance/2003/fraction-item-type/v1.test.json deleted file mode 100644 index 29029a3e..00000000 --- a/test/xbrl/instance/2003/fraction-item-type/v1.test.json +++ /dev/null @@ -1,150 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/fraction-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive numerator and positive denominator", - "data": [ 1.5, 2 ], - "valid": true - }, - { - "description": "Valid - negative numerator and positive denominator", - "data": [ -100, 3.5 ], - "valid": true - }, - { - "description": "Valid - positive numerator and negative denominator", - "data": [ 5, -2.5 ], - "valid": true - }, - { - "description": "Valid - negative numerator and negative denominator", - "data": [ -7, -3 ], - "valid": true - }, - { - "description": "Valid - zero numerator with positive denominator", - "data": [ 0, 1 ], - "valid": true - }, - { - "description": "Valid - zero numerator with negative denominator", - "data": [ 0, -5 ], - "valid": true - }, - { - "description": "Valid - zero numerator as decimal with positive denominator", - "data": [ 0.0, 2 ], - "valid": true - }, - { - "description": "Valid - whole number numerator and denominator", - "data": [ 3, 4 ], - "valid": true - }, - { - "description": "Valid - large positive values", - "data": [ 1000000.0, 123457 ], - "valid": true - }, - { - "description": "Valid - large negative denominator", - "data": [ 1, -1000000.0 ], - "valid": true - }, - { - "description": "Valid - very small fractional denominator", - "data": [ 100, 0.001 ], - "valid": true - }, - { - "description": "Valid - very small negative fractional denominator", - "data": [ 100, -0.001 ], - "valid": true - }, - { - "description": "Valid - arbitrary precision numerator 20 digits", - "data": [ 1.2345678901234567890e+19, 1 ], - "valid": true - }, - { - "description": "Valid - arbitrary precision denominator 20 digits", - "data": [ 1, 1.2345678901234567890e+19 ], - "valid": true - }, - { - "description": "Valid - arbitrary precision both values 25 digits", - "data": [ 1.234567890123456789012345e+24, 9.876543210987654321098765e+24 ], - "valid": true - }, - { - "description": "Valid - arbitrary precision numerator with decimals", - "data": [ 1.234567890123456800e+17, 1 ], - "valid": true - }, - { - "description": "Valid - arbitrary precision denominator with decimals", - "data": [ 1, 1.234567890123456800e+17 ], - "valid": true - }, - { - "description": "Valid - arbitrary precision negative numerator", - "data": [ -1.2345678901234567890e+19, 1 ], - "valid": true - }, - { - "description": "Invalid - zero denominator", - "data": [ 1, 0 ], - "valid": false - }, - { - "description": "Invalid - zero denominator as 0.0", - "data": [ 1, 0.0 ], - "valid": false - }, - { - "description": "Invalid - zero denominator as negative zero", - "data": [ 3, 0 ], - "valid": false - }, - { - "description": "Invalid - only one element", - "data": [ 1 ], - "valid": false - }, - { - "description": "Invalid - three elements", - "data": [ 1, 2, 3 ], - "valid": false - }, - { - "description": "Invalid - empty array", - "data": [], - "valid": false - }, - { - "description": "Invalid - string types instead of numbers", - "data": [ "1.5", "2" ], - "valid": false - }, - { - "description": "Invalid - string numerator", - "data": [ "abc", 2 ], - "valid": false - }, - { - "description": "Invalid - string denominator", - "data": [ 1, "xyz" ], - "valid": false - }, - { - "description": "Invalid - null numerator", - "data": [ null, 1 ], - "valid": false - }, - { - "description": "Invalid - null denominator", - "data": [ 1, null ], - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/g-day-item-type/v1.test.json b/test/xbrl/instance/2003/g-day-item-type/v1.test.json deleted file mode 100644 index 9c1da491..00000000 --- a/test/xbrl/instance/2003/g-day-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/g-day-item-type/v1.json", - "tests": [ - { - "description": "Valid - basic day", - "data": "---15", - "valid": true - }, - { - "description": "Valid - day with timezone", - "data": "---15Z", - "valid": true - }, - { - "description": "Valid - day with offset", - "data": "---15-05:00", - "valid": true - }, - { - "description": "Valid - first day of month", - "data": "---01", - "valid": true - }, - { - "description": "Invalid - day 00", - "data": "---00", - "valid": false - }, - { - "description": "Invalid - day 32", - "data": "---32", - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/g-month-day-item-type/v1.test.json b/test/xbrl/instance/2003/g-month-day-item-type/v1.test.json deleted file mode 100644 index e96cb99a..00000000 --- a/test/xbrl/instance/2003/g-month-day-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/g-month-day-item-type/v1.json", - "tests": [ - { - "description": "Valid - basic month-day", - "data": "--10-15", - "valid": true - }, - { - "description": "Valid - month-day with timezone", - "data": "--10-15Z", - "valid": true - }, - { - "description": "Valid - month-day with offset", - "data": "--10-15-05:00", - "valid": true - }, - { - "description": "Valid - February 29th", - "data": "--02-29", - "valid": true - }, - { - "description": "Invalid - invalid month", - "data": "--13-01", - "valid": false - }, - { - "description": "Invalid - random string", - "data": "not-a-month-day", - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/g-month-item-type/v1.test.json b/test/xbrl/instance/2003/g-month-item-type/v1.test.json deleted file mode 100644 index a02fd202..00000000 --- a/test/xbrl/instance/2003/g-month-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/g-month-item-type/v1.json", - "tests": [ - { - "description": "Valid - basic month", - "data": "--05", - "valid": true - }, - { - "description": "Valid - month with timezone", - "data": "--05Z", - "valid": true - }, - { - "description": "Valid - month with offset", - "data": "--05-05:00", - "valid": true - }, - { - "description": "Valid - December", - "data": "--12", - "valid": true - }, - { - "description": "Invalid - month 00", - "data": "--00", - "valid": false - }, - { - "description": "Invalid - month 13", - "data": "--13", - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/g-year-item-type/v1.test.json b/test/xbrl/instance/2003/g-year-item-type/v1.test.json deleted file mode 100644 index af993dab..00000000 --- a/test/xbrl/instance/2003/g-year-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/g-year-item-type/v1.json", - "tests": [ - { - "description": "Valid - basic year", - "data": "2023", - "valid": true - }, - { - "description": "Valid - year with timezone", - "data": "2023Z", - "valid": true - }, - { - "description": "Valid - year with offset", - "data": "2023-05:00", - "valid": true - }, - { - "description": "Valid - negative year", - "data": "-0001", - "valid": true - }, - { - "description": "Invalid - year too short", - "data": "23", - "valid": false - }, - { - "description": "Invalid - random string", - "data": "not-a-year", - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/g-year-month-item-type/v1.test.json b/test/xbrl/instance/2003/g-year-month-item-type/v1.test.json deleted file mode 100644 index cb0ffbe0..00000000 --- a/test/xbrl/instance/2003/g-year-month-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/g-year-month-item-type/v1.json", - "tests": [ - { - "description": "Valid - basic year-month", - "data": "2023-10", - "valid": true - }, - { - "description": "Valid - year-month with timezone", - "data": "2023-10Z", - "valid": true - }, - { - "description": "Valid - year-month with offset", - "data": "2023-10-05:00", - "valid": true - }, - { - "description": "Valid - negative year", - "data": "-0001-01", - "valid": true - }, - { - "description": "Invalid - invalid month", - "data": "2023-13", - "valid": false - }, - { - "description": "Invalid - random string", - "data": "not-a-year-month", - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/hex-binary-item-type/v1.test.json b/test/xbrl/instance/2003/hex-binary-item-type/v1.test.json deleted file mode 100644 index 3e002466..00000000 --- a/test/xbrl/instance/2003/hex-binary-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/hex-binary-item-type/v1.json", - "tests": [ - { - "description": "Valid - hex binary", - "data": "48656C6C6F", - "valid": true - }, - { - "description": "Valid - lowercase hex", - "data": "deadbeef", - "valid": true - }, - { - "description": "Valid - empty string", - "data": "", - "valid": true - }, - { - "description": "Invalid - odd number of characters", - "data": "123", - "valid": false - }, - { - "description": "Invalid - non-hex characters", - "data": "GHIJ", - "valid": false - }, - { - "description": "Invalid - number instead of string", - "data": 123, - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/int-item-type/v1.test.json b/test/xbrl/instance/2003/int-item-type/v1.test.json deleted file mode 100644 index c3ce4ca3..00000000 --- a/test/xbrl/instance/2003/int-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/int-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive int", - "data": 42, - "valid": true - }, - { - "description": "Valid - negative int", - "data": -100, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Invalid - string instead of number", - "data": "42", - "valid": false - }, - { - "description": "Invalid - decimal value", - "data": 42.5, - "valid": false - }, - { - "description": "Invalid - non-numeric string", - "data": "abc", - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/integer-item-type/v1.test.json b/test/xbrl/instance/2003/integer-item-type/v1.test.json deleted file mode 100644 index f45bfd0e..00000000 --- a/test/xbrl/instance/2003/integer-item-type/v1.test.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/integer-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive integer", - "data": 42, - "valid": true - }, - { - "description": "Valid - negative integer", - "data": -100, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large integer", - "data": 999999999999999, - "valid": true - }, - { - "description": "Valid - arbitrary precision beyond int64", - "data": 1.2345678901234567890e+19, - "valid": true - }, - { - "description": "Valid - arbitrary precision large positive", - "data": 9.9999999999999999999e+19, - "valid": true - }, - { - "description": "Valid - arbitrary precision large negative", - "data": -9.9999999999999999999e+19, - "valid": true - }, - { - "description": "Valid - arbitrary precision 25 digits positive", - "data": 1.234567890123456789012345e+24, - "valid": true - }, - { - "description": "Valid - arbitrary precision 25 digits negative", - "data": -1.234567890123456789012345e+24, - "valid": true - }, - { - "description": "Invalid - decimal value", - "data": 123.45, - "valid": false - }, - { - "description": "Invalid - string type", - "data": "42", - "valid": false - }, - { - "description": "Invalid - non-numeric string", - "data": "abc", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - }, - { - "description": "Invalid - boolean", - "data": true, - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/language-item-type/v1.test.json b/test/xbrl/instance/2003/language-item-type/v1.test.json deleted file mode 100644 index 14eb90a2..00000000 --- a/test/xbrl/instance/2003/language-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/language-item-type/v1.json", - "tests": [ - { - "description": "Valid - simple language code", - "data": "en", - "valid": true - }, - { - "description": "Valid - language with region", - "data": "en-US", - "valid": true - }, - { - "description": "Valid - complex language tag", - "data": "zh-Hant-HK", - "valid": true - }, - { - "description": "Valid - lowercase language code", - "data": "fr", - "valid": true - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - invalid characters", - "data": "en_US", - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/long-item-type/v1.test.json b/test/xbrl/instance/2003/long-item-type/v1.test.json deleted file mode 100644 index ca9a46bd..00000000 --- a/test/xbrl/instance/2003/long-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/long-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive long", - "data": 123456789, - "valid": true - }, - { - "description": "Valid - negative long", - "data": -987654321, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Invalid - string instead of number", - "data": "123456789", - "valid": false - }, - { - "description": "Invalid - decimal value", - "data": 123.45, - "valid": false - }, - { - "description": "Invalid - non-numeric string", - "data": "abc", - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/monetary-item-type/v1.test.json b/test/xbrl/instance/2003/monetary-item-type/v1.test.json deleted file mode 100644 index 44bd2c63..00000000 --- a/test/xbrl/instance/2003/monetary-item-type/v1.test.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/monetary-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive monetary value in USD", - "data": { - "value": 1234.56, - "currency": "USD" - }, - "valid": true - }, - { - "description": "Valid - negative monetary value in EUR", - "data": { - "value": -789.12, - "currency": "EUR" - }, - "valid": true - }, - { - "description": "Valid - zero in GBP", - "data": { - "value": 0, - "currency": "GBP" - }, - "valid": true - }, - { - "description": "Valid - high precision in JPY", - "data": { - "value": 12345.1, - "currency": "JPY" - }, - "valid": true - }, - { - "description": "Valid - large value in CHF", - "data": { - "value": 1000000000.0, - "currency": "CHF" - }, - "valid": true - }, - { - "description": "Valid - small fractional value in CAD", - "data": { - "value": 0.01, - "currency": "CAD" - }, - "valid": true - }, - { - "description": "Valid - arbitrary precision 20 digits in USD", - "data": { - "value": 1.2345678901234567890e+19, - "currency": "USD" - }, - "valid": true - }, - { - "description": "Valid - arbitrary precision 25 digits in EUR", - "data": { - "value": 1.234567890123456789012345e+24, - "currency": "EUR" - }, - "valid": true - }, - { - "description": "Valid - arbitrary precision with decimals in GBP", - "data": { - "value": 1.234567890123456800e+17, - "currency": "GBP" - }, - "valid": true - }, - { - "description": "Valid - arbitrary precision negative in JPY", - "data": { - "value": -1.2345678901234567890e+19, - "currency": "JPY" - }, - "valid": true - }, - { - "description": "Invalid - string type for value instead of number", - "data": { - "value": "123.45", - "currency": "USD" - }, - "valid": false - }, - { - "description": "Invalid - text in value", - "data": { - "value": "abc", - "currency": "USD" - }, - "valid": false - }, - { - "description": "Invalid - empty string value", - "data": { - "value": "", - "currency": "USD" - }, - "valid": false - }, - { - "description": "Invalid - missing value field", - "data": { - "currency": "USD" - }, - "valid": false - }, - { - "description": "Invalid - missing currency field", - "data": { - "value": 100.5 - }, - "valid": false - }, - { - "description": "Invalid - invalid currency code", - "data": { - "value": 100.5, - "currency": "INVALID" - }, - "valid": false - }, - { - "description": "Invalid - lowercase currency code", - "data": { - "value": 100.5, - "currency": "usd" - }, - "valid": false - }, - { - "description": "Invalid - not an object", - "data": "1234.56", - "valid": false - }, - { - "description": "Invalid - null value", - "data": null, - "valid": false - }, - { - "description": "Invalid - array instead of object", - "data": [ 100.5, "USD" ], - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/name-item-type/v1.test.json b/test/xbrl/instance/2003/name-item-type/v1.test.json deleted file mode 100644 index c0b2f0b2..00000000 --- a/test/xbrl/instance/2003/name-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/name-item-type/v1.json", - "tests": [ - { - "description": "Valid - simple name", - "data": "elementName", - "valid": true - }, - { - "description": "Valid - name with colon", - "data": "xs:string", - "valid": true - }, - { - "description": "Valid - name with underscore", - "data": "my_element", - "valid": true - }, - { - "description": "Valid - name with dash", - "data": "my-element", - "valid": true - }, - { - "description": "Invalid - name starting with number", - "data": "1element", - "valid": false - }, - { - "description": "Invalid - name with space", - "data": "my element", - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/ncname-item-type/v1.test.json b/test/xbrl/instance/2003/ncname-item-type/v1.test.json deleted file mode 100644 index 6f51d19c..00000000 --- a/test/xbrl/instance/2003/ncname-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/ncname-item-type/v1.json", - "tests": [ - { - "description": "Valid - simple NCName", - "data": "elementName", - "valid": true - }, - { - "description": "Valid - NCName with underscore", - "data": "my_element", - "valid": true - }, - { - "description": "Valid - NCName with dash", - "data": "my-element", - "valid": true - }, - { - "description": "Valid - NCName starting with underscore", - "data": "_element", - "valid": true - }, - { - "description": "Invalid - NCName with colon", - "data": "xs:string", - "valid": false - }, - { - "description": "Invalid - NCName starting with number", - "data": "1element", - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/negative-integer-item-type/v1.test.json b/test/xbrl/instance/2003/negative-integer-item-type/v1.test.json deleted file mode 100644 index a026954c..00000000 --- a/test/xbrl/instance/2003/negative-integer-item-type/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/negative-integer-item-type/v1.json", - "tests": [ - { - "description": "Valid - negative integer", - "data": -42, - "valid": true - }, - { - "description": "Valid - large negative integer", - "data": -999999999999999999, - "valid": true - }, - { - "description": "Valid - negative one", - "data": -1, - "valid": true - }, - { - "description": "Valid - arbitrary precision beyond int64", - "data": -1.2345678901234567890e+19, - "valid": true - }, - { - "description": "Valid - arbitrary precision 25 digits", - "data": -1.234567890123456789012345e+24, - "valid": true - }, - { - "description": "Valid - arbitrary precision 30 digits", - "data": -1.23456789012345678901234567890e+29, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - positive integer", - "data": 1, - "valid": false - }, - { - "description": "Invalid - decimal value", - "data": -123.45, - "valid": false - }, - { - "description": "Invalid - string type", - "data": "-42", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/non-negative-integer-item-type/v1.test.json b/test/xbrl/instance/2003/non-negative-integer-item-type/v1.test.json deleted file mode 100644 index 320b79d9..00000000 --- a/test/xbrl/instance/2003/non-negative-integer-item-type/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/non-negative-integer-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive integer", - "data": 42, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large positive integer", - "data": 999999999999999999, - "valid": true - }, - { - "description": "Valid - arbitrary precision beyond uint64", - "data": 1.8446744073709551616e+19, - "valid": true - }, - { - "description": "Valid - arbitrary precision 25 digits", - "data": 1.234567890123456789012345e+24, - "valid": true - }, - { - "description": "Valid - arbitrary precision 30 digits", - "data": 1.23456789012345678901234567890e+29, - "valid": true - }, - { - "description": "Invalid - negative integer", - "data": -1, - "valid": false - }, - { - "description": "Invalid - decimal value", - "data": 123.45, - "valid": false - }, - { - "description": "Invalid - string type", - "data": "42", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/non-positive-integer-item-type/v1.test.json b/test/xbrl/instance/2003/non-positive-integer-item-type/v1.test.json deleted file mode 100644 index 810c3d42..00000000 --- a/test/xbrl/instance/2003/non-positive-integer-item-type/v1.test.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/non-positive-integer-item-type/v1.json", - "tests": [ - { - "description": "Valid - negative integer", - "data": -42, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large negative integer", - "data": -999999999999999999, - "valid": true - }, - { - "description": "Valid - arbitrary precision beyond int64", - "data": -1.2345678901234567890e+19, - "valid": true - }, - { - "description": "Valid - arbitrary precision 25 digits", - "data": -1.234567890123456789012345e+24, - "valid": true - }, - { - "description": "Valid - arbitrary precision 30 digits", - "data": -1.23456789012345678901234567890e+29, - "valid": true - }, - { - "description": "Invalid - positive integer", - "data": 1, - "valid": false - }, - { - "description": "Invalid - decimal value", - "data": -123.45, - "valid": false - }, - { - "description": "Invalid - string type", - "data": "0", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/normalized-string-item-type/v1.test.json b/test/xbrl/instance/2003/normalized-string-item-type/v1.test.json deleted file mode 100644 index e6f1d521..00000000 --- a/test/xbrl/instance/2003/normalized-string-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/normalized-string-item-type/v1.json", - "tests": [ - { - "description": "Valid - simple string", - "data": "hello world", - "valid": true - }, - { - "description": "Valid - string with spaces", - "data": "this is a normalized string", - "valid": true - }, - { - "description": "Valid - empty string", - "data": "", - "valid": true - }, - { - "description": "Invalid - string with line feed", - "data": "hello\nworld", - "valid": false - }, - { - "description": "Invalid - string with carriage return", - "data": "hello\rworld", - "valid": false - }, - { - "description": "Invalid - string with tab", - "data": "hello\tworld", - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/positive-integer-item-type/v1.test.json b/test/xbrl/instance/2003/positive-integer-item-type/v1.test.json deleted file mode 100644 index 9d28da39..00000000 --- a/test/xbrl/instance/2003/positive-integer-item-type/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/positive-integer-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive integer", - "data": 42, - "valid": true - }, - { - "description": "Valid - large positive integer", - "data": 999999999999999999, - "valid": true - }, - { - "description": "Valid - one", - "data": 1, - "valid": true - }, - { - "description": "Valid - arbitrary precision beyond uint64", - "data": 1.8446744073709551616e+19, - "valid": true - }, - { - "description": "Valid - arbitrary precision 25 digits", - "data": 1.234567890123456789012345e+24, - "valid": true - }, - { - "description": "Valid - arbitrary precision 30 digits", - "data": 1.23456789012345678901234567890e+29, - "valid": true - }, - { - "description": "Invalid - zero", - "data": 0, - "valid": false - }, - { - "description": "Invalid - negative integer", - "data": -1, - "valid": false - }, - { - "description": "Invalid - decimal value", - "data": 123.45, - "valid": false - }, - { - "description": "Invalid - string type", - "data": "42", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/pure-item-type/v1.test.json b/test/xbrl/instance/2003/pure-item-type/v1.test.json deleted file mode 100644 index 62a34c67..00000000 --- a/test/xbrl/instance/2003/pure-item-type/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/pure-item-type/v1.json", - "tests": [ - { - "description": "Valid - pure number as decimal", - "data": 0.5, - "valid": true - }, - { - "description": "Valid - whole number", - "data": 1, - "valid": true - }, - { - "description": "Valid - negative pure number", - "data": -0.25, - "valid": true - }, - { - "description": "Valid - high precision", - "data": 0.123457, - "valid": true - }, - { - "description": "Valid - arbitrary precision 20 digit integer", - "data": 1.2345678901234567890e+19, - "valid": true - }, - { - "description": "Valid - arbitrary precision with decimals", - "data": 1.234567890123456800e+17, - "valid": true - }, - { - "description": "Valid - arbitrary precision negative", - "data": -1.2345678901234567890e+19, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "0.5", - "valid": false - }, - { - "description": "Invalid - text", - "data": "not-a-number", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/qname-item-type/v1.test.json b/test/xbrl/instance/2003/qname-item-type/v1.test.json deleted file mode 100644 index b6a0237d..00000000 --- a/test/xbrl/instance/2003/qname-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/qname-item-type/v1.json", - "tests": [ - { - "description": "Valid - prefixed QName", - "data": "xs:string", - "valid": true - }, - { - "description": "Valid - unprefixed QName", - "data": "localName", - "valid": true - }, - { - "description": "Valid - QName with underscore", - "data": "my_element", - "valid": true - }, - { - "description": "Invalid - QName starting with number", - "data": "1element", - "valid": false - }, - { - "description": "Invalid - QName with space", - "data": "my element", - "valid": false - }, - { - "description": "Invalid - number instead of string", - "data": 123, - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/shares-item-type/v1.test.json b/test/xbrl/instance/2003/shares-item-type/v1.test.json deleted file mode 100644 index 81e90d6e..00000000 --- a/test/xbrl/instance/2003/shares-item-type/v1.test.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/shares-item-type/v1.json", - "tests": [ - { - "description": "Valid - whole shares", - "data": 1000, - "valid": true - }, - { - "description": "Valid - fractional shares", - "data": 123.456, - "valid": true - }, - { - "description": "Valid - zero shares", - "data": 0, - "valid": true - }, - { - "description": "Valid - high precision fractional shares", - "data": 9876.12, - "valid": true - }, - { - "description": "Valid - arbitrary precision 20 digit shares", - "data": 1.2345678901234567890e+19, - "valid": true - }, - { - "description": "Valid - arbitrary precision with decimals", - "data": 1.234567890123456800e+17, - "valid": true - }, - { - "description": "Valid - arbitrary precision 25 digits", - "data": 1.234567890123456789012345e+24, - "valid": true - }, - { - "description": "Invalid - string type", - "data": "1000", - "valid": false - }, - { - "description": "Invalid - text", - "data": "xyz", - "valid": false - }, - { - "description": "Invalid - empty string", - "data": "", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/short-item-type/v1.test.json b/test/xbrl/instance/2003/short-item-type/v1.test.json deleted file mode 100644 index 37a0df59..00000000 --- a/test/xbrl/instance/2003/short-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/short-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive short", - "data": 100, - "valid": true - }, - { - "description": "Valid - negative short", - "data": -50, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Invalid - string instead of number", - "data": "100", - "valid": false - }, - { - "description": "Invalid - decimal value", - "data": 10.5, - "valid": false - }, - { - "description": "Invalid - non-numeric string", - "data": "abc", - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/string-item-type/v1.test.json b/test/xbrl/instance/2003/string-item-type/v1.test.json deleted file mode 100644 index a8904b42..00000000 --- a/test/xbrl/instance/2003/string-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/string-item-type/v1.json", - "tests": [ - { - "description": "Valid - simple string", - "data": "hello", - "valid": true - }, - { - "description": "Valid - empty string", - "data": "", - "valid": true - }, - { - "description": "Valid - string with whitespace", - "data": "hello\nworld\t!", - "valid": true - }, - { - "description": "Valid - unicode string", - "data": "Hello 世界", - "valid": true - }, - { - "description": "Invalid - number instead of string", - "data": 123, - "valid": false - }, - { - "description": "Invalid - boolean instead of string", - "data": true, - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/time-item-type/v1.test.json b/test/xbrl/instance/2003/time-item-type/v1.test.json deleted file mode 100644 index 1dbf5154..00000000 --- a/test/xbrl/instance/2003/time-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/time-item-type/v1.json", - "tests": [ - { - "description": "Valid - time with seconds", - "data": "12:30:45", - "valid": true - }, - { - "description": "Valid - time with timezone", - "data": "12:30:45Z", - "valid": true - }, - { - "description": "Valid - time with offset", - "data": "12:30:45-05:00", - "valid": true - }, - { - "description": "Valid - time with fractional seconds", - "data": "12:30:45.123", - "valid": true - }, - { - "description": "Invalid - missing seconds", - "data": "12:30", - "valid": false - }, - { - "description": "Invalid - random string", - "data": "not-a-time", - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/token-item-type/v1.test.json b/test/xbrl/instance/2003/token-item-type/v1.test.json deleted file mode 100644 index d6a7b245..00000000 --- a/test/xbrl/instance/2003/token-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/token-item-type/v1.json", - "tests": [ - { - "description": "Valid - simple token", - "data": "token", - "valid": true - }, - { - "description": "Valid - token with single spaces", - "data": "hello world", - "valid": true - }, - { - "description": "Valid - empty string", - "data": "", - "valid": true - }, - { - "description": "Invalid - leading space", - "data": " token", - "valid": false - }, - { - "description": "Invalid - trailing space", - "data": "token ", - "valid": false - }, - { - "description": "Invalid - multiple consecutive spaces", - "data": "hello world", - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/unsigned-byte-item-type/v1.test.json b/test/xbrl/instance/2003/unsigned-byte-item-type/v1.test.json deleted file mode 100644 index 645270a8..00000000 --- a/test/xbrl/instance/2003/unsigned-byte-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/unsigned-byte-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive unsigned byte", - "data": 42, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - maximum unsigned byte", - "data": 255, - "valid": true - }, - { - "description": "Invalid - negative value", - "data": -1, - "valid": false - }, - { - "description": "Invalid - decimal value", - "data": 42.5, - "valid": false - }, - { - "description": "Invalid - string instead of number", - "data": "42", - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/unsigned-int-item-type/v1.test.json b/test/xbrl/instance/2003/unsigned-int-item-type/v1.test.json deleted file mode 100644 index bc39d2e4..00000000 --- a/test/xbrl/instance/2003/unsigned-int-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/unsigned-int-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive unsigned int", - "data": 42, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large unsigned int", - "data": 4294967295, - "valid": true - }, - { - "description": "Invalid - negative value", - "data": -1, - "valid": false - }, - { - "description": "Invalid - decimal value", - "data": 123.45, - "valid": false - }, - { - "description": "Invalid - string instead of number", - "data": "42", - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/unsigned-long-item-type/v1.test.json b/test/xbrl/instance/2003/unsigned-long-item-type/v1.test.json deleted file mode 100644 index 0d35589f..00000000 --- a/test/xbrl/instance/2003/unsigned-long-item-type/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/unsigned-long-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive unsigned long", - "data": 123456789, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large unsigned long", - "data": 9007199254740991, - "valid": true - }, - { - "description": "Invalid - negative value", - "data": -1, - "valid": false - }, - { - "description": "Invalid - decimal value", - "data": 123.45, - "valid": false - }, - { - "description": "Invalid - string type", - "data": "123456789", - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/instance/2003/unsigned-short-item-type/v1.test.json b/test/xbrl/instance/2003/unsigned-short-item-type/v1.test.json deleted file mode 100644 index 6bfb624f..00000000 --- a/test/xbrl/instance/2003/unsigned-short-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../../schemas/xbrl/instance/2003/unsigned-short-item-type/v1.json", - "tests": [ - { - "description": "Valid - positive unsigned short", - "data": 100, - "valid": true - }, - { - "description": "Valid - zero", - "data": 0, - "valid": true - }, - { - "description": "Valid - large unsigned short", - "data": 65535, - "valid": true - }, - { - "description": "Invalid - negative value", - "data": -1, - "valid": false - }, - { - "description": "Invalid - decimal value", - "data": 123.45, - "valid": false - }, - { - "description": "Invalid - string instead of number", - "data": "100", - "valid": false - } - ] -} diff --git a/test/xbrl/utr/area-item-type-normative/v1.test.json b/test/xbrl/utr/area-item-type-normative/v1.test.json deleted file mode 100644 index 99e5a8b7..00000000 --- a/test/xbrl/utr/area-item-type-normative/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/area-item-type-normative/v1.json", - "tests": [ - { - "description": "Valid - acre (REC)", - "data": "acre", - "valid": true - }, - { - "description": "Valid - square foot (REC)", - "data": "sqft", - "valid": true - }, - { - "description": "Valid - square mile (REC)", - "data": "sqmi", - "valid": true - }, - { - "description": "Valid - hectare (REC)", - "data": "ha", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-area-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/area-item-type/v1.test.json b/test/xbrl/utr/area-item-type/v1.test.json deleted file mode 100644 index 9700c04b..00000000 --- a/test/xbrl/utr/area-item-type/v1.test.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/area-item-type/v1.json", - "tests": [ - { - "description": "Valid - acre", - "data": "acre", - "valid": true - }, - { - "description": "Valid - square foot", - "data": "sqft", - "valid": true - }, - { - "description": "Valid - square mile", - "data": "sqmi", - "valid": true - }, - { - "description": "Valid - square yard", - "data": "sqyd", - "valid": true - }, - { - "description": "Valid - hectare", - "data": "ha", - "valid": true - }, - { - "description": "Valid - square kilometer", - "data": "sqkm", - "valid": true - }, - { - "description": "Valid - square metre", - "data": "sqm", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-area-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - object", - "data": { - "unit": "sqft" - }, - "valid": false - }, - { - "description": "Invalid - array", - "data": [ "sqft" ], - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - }, - { - "description": "Invalid - boolean", - "data": true, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/duration-item-type-normative/v1.test.json b/test/xbrl/utr/duration-item-type-normative/v1.test.json deleted file mode 100644 index d9fba721..00000000 --- a/test/xbrl/utr/duration-item-type-normative/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/duration-item-type-normative/v1.json", - "tests": [ - { - "description": "Valid - Y (REC)", - "data": "Y", - "valid": true - }, - { - "description": "Valid - M (REC)", - "data": "M", - "valid": true - }, - { - "description": "Valid - D (REC)", - "data": "D", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/duration-item-type/v1.test.json b/test/xbrl/utr/duration-item-type/v1.test.json deleted file mode 100644 index 059b9916..00000000 --- a/test/xbrl/utr/duration-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/duration-item-type/v1.json", - "tests": [ - { - "description": "Valid - Y", - "data": "Y", - "valid": true - }, - { - "description": "Valid - M", - "data": "M", - "valid": true - }, - { - "description": "Valid - D", - "data": "D", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/electric-charge-item-type-normative/v1.test.json b/test/xbrl/utr/electric-charge-item-type-normative/v1.test.json deleted file mode 100644 index 4fabb232..00000000 --- a/test/xbrl/utr/electric-charge-item-type-normative/v1.test.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/electric-charge-item-type-normative/v1.json", - "tests": [ - { - "description": "Valid - Ah (REC)", - "data": "Ah", - "valid": true - }, - { - "description": "Valid - C (REC)", - "data": "C", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/electric-charge-item-type/v1.test.json b/test/xbrl/utr/electric-charge-item-type/v1.test.json deleted file mode 100644 index 71dda328..00000000 --- a/test/xbrl/utr/electric-charge-item-type/v1.test.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/electric-charge-item-type/v1.json", - "tests": [ - { - "description": "Valid - Ah", - "data": "Ah", - "valid": true - }, - { - "description": "Valid - C", - "data": "C", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/electric-current-item-type-normative/v1.test.json b/test/xbrl/utr/electric-current-item-type-normative/v1.test.json deleted file mode 100644 index cb7c04d7..00000000 --- a/test/xbrl/utr/electric-current-item-type-normative/v1.test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/electric-current-item-type-normative/v1.json", - "tests": [ - { - "description": "Valid - A (REC)", - "data": "A", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/electric-current-item-type/v1.test.json b/test/xbrl/utr/electric-current-item-type/v1.test.json deleted file mode 100644 index ff91666d..00000000 --- a/test/xbrl/utr/electric-current-item-type/v1.test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/electric-current-item-type/v1.json", - "tests": [ - { - "description": "Valid - A", - "data": "A", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/energy-item-type-normative/v1.test.json b/test/xbrl/utr/energy-item-type-normative/v1.test.json deleted file mode 100644 index 245918f7..00000000 --- a/test/xbrl/utr/energy-item-type-normative/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/energy-item-type-normative/v1.json", - "tests": [ - { - "description": "Valid - Boe (REC)", - "data": "Boe", - "valid": true - }, - { - "description": "Valid - Btu (REC)", - "data": "Btu", - "valid": true - }, - { - "description": "Valid - ft_lb (REC)", - "data": "ft_lb", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/energy-item-type/v1.test.json b/test/xbrl/utr/energy-item-type/v1.test.json deleted file mode 100644 index 5f2ce207..00000000 --- a/test/xbrl/utr/energy-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/energy-item-type/v1.json", - "tests": [ - { - "description": "Valid - Boe", - "data": "Boe", - "valid": true - }, - { - "description": "Valid - Btu", - "data": "Btu", - "valid": true - }, - { - "description": "Valid - ft_lb", - "data": "ft_lb", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/energy-per-monetary-item-type-normative/v1.test.json b/test/xbrl/utr/energy-per-monetary-item-type-normative/v1.test.json deleted file mode 100644 index 3f8b3f03..00000000 --- a/test/xbrl/utr/energy-per-monetary-item-type-normative/v1.test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/energy-per-monetary-item-type-normative/v1.json", - "tests": [ - { - "description": "Valid - Energy_per_Monetary (REC)", - "data": "Energy_per_Monetary", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/energy-per-monetary-item-type/v1.test.json b/test/xbrl/utr/energy-per-monetary-item-type/v1.test.json deleted file mode 100644 index 8802a69a..00000000 --- a/test/xbrl/utr/energy-per-monetary-item-type/v1.test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/energy-per-monetary-item-type/v1.json", - "tests": [ - { - "description": "Valid - Energy_per_Monetary", - "data": "Energy_per_Monetary", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/flow-item-type-normative/v1.test.json b/test/xbrl/utr/flow-item-type-normative/v1.test.json deleted file mode 100644 index c0bae649..00000000 --- a/test/xbrl/utr/flow-item-type-normative/v1.test.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/flow-item-type-normative/v1.json", - "tests": [ - { - "description": "Valid - Volume_per_Duration (REC)", - "data": "Volume_per_Duration", - "valid": true - }, - { - "description": "Invalid - Energy_per_Duration (CR, not normative)", - "data": "Energy_per_Duration", - "valid": false - }, - { - "description": "Invalid - unknown unit", - "data": "Mass_per_Duration", - "valid": false - }, - { - "description": "Invalid - number", - "data": 42, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/flow-item-type/v1.test.json b/test/xbrl/utr/flow-item-type/v1.test.json deleted file mode 100644 index 9c9d8e68..00000000 --- a/test/xbrl/utr/flow-item-type/v1.test.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/flow-item-type/v1.json", - "tests": [ - { - "description": "Valid - Volume_per_Duration (REC)", - "data": "Volume_per_Duration", - "valid": true - }, - { - "description": "Valid - Energy_per_Duration (CR)", - "data": "Energy_per_Duration", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "Mass_per_Duration", - "valid": false - }, - { - "description": "Invalid - number", - "data": 42, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/force-item-type-normative/v1.test.json b/test/xbrl/utr/force-item-type-normative/v1.test.json deleted file mode 100644 index 15e964c4..00000000 --- a/test/xbrl/utr/force-item-type-normative/v1.test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/force-item-type-normative/v1.json", - "tests": [ - { - "description": "Valid - N (REC)", - "data": "N", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/force-item-type/v1.test.json b/test/xbrl/utr/force-item-type/v1.test.json deleted file mode 100644 index d8563a11..00000000 --- a/test/xbrl/utr/force-item-type/v1.test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/force-item-type/v1.json", - "tests": [ - { - "description": "Valid - N", - "data": "N", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/frequency-item-type-normative/v1.test.json b/test/xbrl/utr/frequency-item-type-normative/v1.test.json deleted file mode 100644 index a84ece42..00000000 --- a/test/xbrl/utr/frequency-item-type-normative/v1.test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/frequency-item-type-normative/v1.json", - "tests": [ - { - "description": "Valid - Hz (REC)", - "data": "Hz", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/frequency-item-type/v1.test.json b/test/xbrl/utr/frequency-item-type/v1.test.json deleted file mode 100644 index b30ab1f8..00000000 --- a/test/xbrl/utr/frequency-item-type/v1.test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/frequency-item-type/v1.json", - "tests": [ - { - "description": "Valid - Hz", - "data": "Hz", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/ghg-emissions-item-type-normative/v1.test.json b/test/xbrl/utr/ghg-emissions-item-type-normative/v1.test.json deleted file mode 100644 index ddfe73d5..00000000 --- a/test/xbrl/utr/ghg-emissions-item-type-normative/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/ghg-emissions-item-type-normative/v1.json", - "tests": [ - { - "description": "Valid - tCO2e (REC)", - "data": "tCO2e", - "valid": true - }, - { - "description": "Valid - ktCO2e (REC)", - "data": "ktCO2e", - "valid": true - }, - { - "description": "Valid - MtCO2e (REC)", - "data": "MtCO2e", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/ghg-emissions-item-type/v1.test.json b/test/xbrl/utr/ghg-emissions-item-type/v1.test.json deleted file mode 100644 index a2b5e406..00000000 --- a/test/xbrl/utr/ghg-emissions-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/ghg-emissions-item-type/v1.json", - "tests": [ - { - "description": "Valid - tCO2e", - "data": "tCO2e", - "valid": true - }, - { - "description": "Valid - ktCO2e", - "data": "ktCO2e", - "valid": true - }, - { - "description": "Valid - MtCO2e", - "data": "MtCO2e", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/ghg-emissions-per-monetary-item-type-normative/v1.test.json b/test/xbrl/utr/ghg-emissions-per-monetary-item-type-normative/v1.test.json deleted file mode 100644 index d3b5454d..00000000 --- a/test/xbrl/utr/ghg-emissions-per-monetary-item-type-normative/v1.test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/ghg-emissions-per-monetary-item-type-normative/v1.json", - "tests": [ - { - "description": "Valid - Emissions_per_Monetary (REC)", - "data": "Emissions_per_Monetary", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/ghg-emissions-per-monetary-item-type/v1.test.json b/test/xbrl/utr/ghg-emissions-per-monetary-item-type/v1.test.json deleted file mode 100644 index dd11a32d..00000000 --- a/test/xbrl/utr/ghg-emissions-per-monetary-item-type/v1.test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/ghg-emissions-per-monetary-item-type/v1.json", - "tests": [ - { - "description": "Valid - Emissions_per_Monetary", - "data": "Emissions_per_Monetary", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/length-item-type-normative/v1.test.json b/test/xbrl/utr/length-item-type-normative/v1.test.json deleted file mode 100644 index 418ff074..00000000 --- a/test/xbrl/utr/length-item-type-normative/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/length-item-type-normative/v1.json", - "tests": [ - { - "description": "Valid - ft (REC)", - "data": "ft", - "valid": true - }, - { - "description": "Valid - in (REC)", - "data": "in", - "valid": true - }, - { - "description": "Valid - mi (REC)", - "data": "mi", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/length-item-type/v1.test.json b/test/xbrl/utr/length-item-type/v1.test.json deleted file mode 100644 index 96188de2..00000000 --- a/test/xbrl/utr/length-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/length-item-type/v1.json", - "tests": [ - { - "description": "Valid - ft", - "data": "ft", - "valid": true - }, - { - "description": "Valid - in", - "data": "in", - "valid": true - }, - { - "description": "Valid - mi", - "data": "mi", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/mass-item-type-normative/v1.test.json b/test/xbrl/utr/mass-item-type-normative/v1.test.json deleted file mode 100644 index ac928c4c..00000000 --- a/test/xbrl/utr/mass-item-type-normative/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/mass-item-type-normative/v1.json", - "tests": [ - { - "description": "Valid - lb (REC)", - "data": "lb", - "valid": true - }, - { - "description": "Valid - oz (REC)", - "data": "oz", - "valid": true - }, - { - "description": "Valid - ozt (REC)", - "data": "ozt", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/mass-item-type/v1.test.json b/test/xbrl/utr/mass-item-type/v1.test.json deleted file mode 100644 index 6b66bd15..00000000 --- a/test/xbrl/utr/mass-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/mass-item-type/v1.json", - "tests": [ - { - "description": "Valid - lb", - "data": "lb", - "valid": true - }, - { - "description": "Valid - oz", - "data": "oz", - "valid": true - }, - { - "description": "Valid - ozt", - "data": "ozt", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/memory-item-type-normative/v1.test.json b/test/xbrl/utr/memory-item-type-normative/v1.test.json deleted file mode 100644 index a364fcb9..00000000 --- a/test/xbrl/utr/memory-item-type-normative/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/memory-item-type-normative/v1.json", - "tests": [ - { - "description": "Valid - B (REC)", - "data": "B", - "valid": true - }, - { - "description": "Valid - GB (REC)", - "data": "GB", - "valid": true - }, - { - "description": "Valid - kB (REC)", - "data": "kB", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/memory-item-type/v1.test.json b/test/xbrl/utr/memory-item-type/v1.test.json deleted file mode 100644 index fcb3a746..00000000 --- a/test/xbrl/utr/memory-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/memory-item-type/v1.json", - "tests": [ - { - "description": "Valid - B", - "data": "B", - "valid": true - }, - { - "description": "Valid - GB", - "data": "GB", - "valid": true - }, - { - "description": "Valid - kB", - "data": "kB", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/monetary-item-type-normative/v1.test.json b/test/xbrl/utr/monetary-item-type-normative/v1.test.json deleted file mode 100644 index 87fd4c49..00000000 --- a/test/xbrl/utr/monetary-item-type-normative/v1.test.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/monetary-item-type-normative/v1.json", - "tests": [ - { - "description": "Valid - USD (REC)", - "data": "USD", - "valid": true - }, - { - "description": "Valid - EUR (REC)", - "data": "EUR", - "valid": true - }, - { - "description": "Valid - GBP (REC)", - "data": "GBP", - "valid": true - }, - { - "description": "Valid - JPY (REC)", - "data": "JPY", - "valid": true - }, - { - "description": "Invalid - unknown currency", - "data": "XXX", - "valid": false - }, - { - "description": "Invalid - number", - "data": 840, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/monetary-item-type/v1.test.json b/test/xbrl/utr/monetary-item-type/v1.test.json deleted file mode 100644 index 28f32167..00000000 --- a/test/xbrl/utr/monetary-item-type/v1.test.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/monetary-item-type/v1.json", - "tests": [ - { - "description": "Valid - USD", - "data": "USD", - "valid": true - }, - { - "description": "Valid - EUR", - "data": "EUR", - "valid": true - }, - { - "description": "Valid - GBP", - "data": "GBP", - "valid": true - }, - { - "description": "Valid - JPY", - "data": "JPY", - "valid": true - }, - { - "description": "Valid - CNY", - "data": "CNY", - "valid": true - }, - { - "description": "Valid - AED", - "data": "AED", - "valid": true - }, - { - "description": "Valid - ZWL (Zimbabwe dollar)", - "data": "ZWL", - "valid": true - }, - { - "description": "Invalid - unknown currency", - "data": "XXX", - "valid": false - }, - { - "description": "Invalid - lowercase", - "data": "usd", - "valid": false - }, - { - "description": "Invalid - number", - "data": 840, - "valid": false - }, - { - "description": "Invalid - object", - "data": { - "currency": "USD" - }, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/per-share-item-type-normative/v1.test.json b/test/xbrl/utr/per-share-item-type-normative/v1.test.json deleted file mode 100644 index c8df7fd7..00000000 --- a/test/xbrl/utr/per-share-item-type-normative/v1.test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/per-share-item-type-normative/v1.json", - "tests": [ - { - "description": "Valid - Monetary_per_Share (REC)", - "data": "Monetary_per_Share", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/per-share-item-type/v1.test.json b/test/xbrl/utr/per-share-item-type/v1.test.json deleted file mode 100644 index c8e5aab6..00000000 --- a/test/xbrl/utr/per-share-item-type/v1.test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/per-share-item-type/v1.json", - "tests": [ - { - "description": "Valid - Monetary_per_Share", - "data": "Monetary_per_Share", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/per-unit-item-type-normative/v1.test.json b/test/xbrl/utr/per-unit-item-type-normative/v1.test.json deleted file mode 100644 index b3777f2b..00000000 --- a/test/xbrl/utr/per-unit-item-type-normative/v1.test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/per-unit-item-type-normative/v1.json", - "tests": [ - { - "description": "Valid - Monetary_per_Decimal (REC)", - "data": "Monetary_per_Decimal", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/per-unit-item-type/v1.test.json b/test/xbrl/utr/per-unit-item-type/v1.test.json deleted file mode 100644 index 4ebc898d..00000000 --- a/test/xbrl/utr/per-unit-item-type/v1.test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/per-unit-item-type/v1.json", - "tests": [ - { - "description": "Valid - Monetary_per_Decimal", - "data": "Monetary_per_Decimal", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/plane-angle-item-type-normative/v1.test.json b/test/xbrl/utr/plane-angle-item-type-normative/v1.test.json deleted file mode 100644 index 341ceda2..00000000 --- a/test/xbrl/utr/plane-angle-item-type-normative/v1.test.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/plane-angle-item-type-normative/v1.json", - "tests": [ - { - "description": "Valid - Degree (REC)", - "data": "Degree", - "valid": true - }, - { - "description": "Valid - rad (REC)", - "data": "rad", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/plane-angle-item-type/v1.test.json b/test/xbrl/utr/plane-angle-item-type/v1.test.json deleted file mode 100644 index bb87a716..00000000 --- a/test/xbrl/utr/plane-angle-item-type/v1.test.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/plane-angle-item-type/v1.json", - "tests": [ - { - "description": "Valid - Degree", - "data": "Degree", - "valid": true - }, - { - "description": "Valid - rad", - "data": "rad", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/power-item-type-normative/v1.test.json b/test/xbrl/utr/power-item-type-normative/v1.test.json deleted file mode 100644 index 37f55889..00000000 --- a/test/xbrl/utr/power-item-type-normative/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/power-item-type-normative/v1.json", - "tests": [ - { - "description": "Valid - hp (REC)", - "data": "hp", - "valid": true - }, - { - "description": "Valid - GW (REC)", - "data": "GW", - "valid": true - }, - { - "description": "Valid - kW (REC)", - "data": "kW", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/power-item-type/v1.test.json b/test/xbrl/utr/power-item-type/v1.test.json deleted file mode 100644 index 45fe03d8..00000000 --- a/test/xbrl/utr/power-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/power-item-type/v1.json", - "tests": [ - { - "description": "Valid - hp", - "data": "hp", - "valid": true - }, - { - "description": "Valid - GW", - "data": "GW", - "valid": true - }, - { - "description": "Valid - kW", - "data": "kW", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/pressure-item-type-normative/v1.test.json b/test/xbrl/utr/pressure-item-type-normative/v1.test.json deleted file mode 100644 index 0a1bb6ae..00000000 --- a/test/xbrl/utr/pressure-item-type-normative/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/pressure-item-type-normative/v1.json", - "tests": [ - { - "description": "Valid - Pa (REC)", - "data": "Pa", - "valid": true - }, - { - "description": "Valid - Bar (REC)", - "data": "Bar", - "valid": true - }, - { - "description": "Valid - psi (REC)", - "data": "psi", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/pressure-item-type/v1.test.json b/test/xbrl/utr/pressure-item-type/v1.test.json deleted file mode 100644 index 514b8dde..00000000 --- a/test/xbrl/utr/pressure-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/pressure-item-type/v1.json", - "tests": [ - { - "description": "Valid - Pa", - "data": "Pa", - "valid": true - }, - { - "description": "Valid - Bar", - "data": "Bar", - "valid": true - }, - { - "description": "Valid - psi", - "data": "psi", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/pure-item-type-normative/v1.test.json b/test/xbrl/utr/pure-item-type-normative/v1.test.json deleted file mode 100644 index 1118c443..00000000 --- a/test/xbrl/utr/pure-item-type-normative/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/pure-item-type-normative/v1.json", - "tests": [ - { - "description": "Valid - Monetary_per_Monetary (REC)", - "data": "Monetary_per_Monetary", - "valid": true - }, - { - "description": "Valid - pure (REC)", - "data": "pure", - "valid": true - }, - { - "description": "Valid - Rate (REC)", - "data": "Rate", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/pure-item-type/v1.test.json b/test/xbrl/utr/pure-item-type/v1.test.json deleted file mode 100644 index fb5fa2ac..00000000 --- a/test/xbrl/utr/pure-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/pure-item-type/v1.json", - "tests": [ - { - "description": "Valid - Monetary_per_Monetary", - "data": "Monetary_per_Monetary", - "valid": true - }, - { - "description": "Valid - pure", - "data": "pure", - "valid": true - }, - { - "description": "Valid - Rate", - "data": "Rate", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/shares-item-type-normative/v1.test.json b/test/xbrl/utr/shares-item-type-normative/v1.test.json deleted file mode 100644 index 89d5a955..00000000 --- a/test/xbrl/utr/shares-item-type-normative/v1.test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/shares-item-type-normative/v1.json", - "tests": [ - { - "description": "Valid - shares (REC)", - "data": "shares", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/shares-item-type/v1.test.json b/test/xbrl/utr/shares-item-type/v1.test.json deleted file mode 100644 index f5723cbb..00000000 --- a/test/xbrl/utr/shares-item-type/v1.test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/shares-item-type/v1.json", - "tests": [ - { - "description": "Valid - shares", - "data": "shares", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/temperature-item-type-normative/v1.test.json b/test/xbrl/utr/temperature-item-type-normative/v1.test.json deleted file mode 100644 index 0b3b2a0a..00000000 --- a/test/xbrl/utr/temperature-item-type-normative/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/temperature-item-type-normative/v1.json", - "tests": [ - { - "description": "Valid - Celsius (REC)", - "data": "Celsius", - "valid": true - }, - { - "description": "Valid - K (REC)", - "data": "K", - "valid": true - }, - { - "description": "Valid - F (REC)", - "data": "F", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/temperature-item-type/v1.test.json b/test/xbrl/utr/temperature-item-type/v1.test.json deleted file mode 100644 index ca6fa828..00000000 --- a/test/xbrl/utr/temperature-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/temperature-item-type/v1.json", - "tests": [ - { - "description": "Valid - Celsius", - "data": "Celsius", - "valid": true - }, - { - "description": "Valid - K", - "data": "K", - "valid": true - }, - { - "description": "Valid - F", - "data": "F", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/voltage-item-type-normative/v1.test.json b/test/xbrl/utr/voltage-item-type-normative/v1.test.json deleted file mode 100644 index be366457..00000000 --- a/test/xbrl/utr/voltage-item-type-normative/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/voltage-item-type-normative/v1.json", - "tests": [ - { - "description": "Valid - V (REC)", - "data": "V", - "valid": true - }, - { - "description": "Valid - kV (REC)", - "data": "kV", - "valid": true - }, - { - "description": "Valid - MV (REC)", - "data": "MV", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/voltage-item-type/v1.test.json b/test/xbrl/utr/voltage-item-type/v1.test.json deleted file mode 100644 index cffadafd..00000000 --- a/test/xbrl/utr/voltage-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/voltage-item-type/v1.json", - "tests": [ - { - "description": "Valid - V", - "data": "V", - "valid": true - }, - { - "description": "Valid - kV", - "data": "kV", - "valid": true - }, - { - "description": "Valid - MV", - "data": "MV", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/volume-item-type-normative/v1.test.json b/test/xbrl/utr/volume-item-type-normative/v1.test.json deleted file mode 100644 index 8e4b7b0a..00000000 --- a/test/xbrl/utr/volume-item-type-normative/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/volume-item-type-normative/v1.json", - "tests": [ - { - "description": "Valid - bbl (REC)", - "data": "bbl", - "valid": true - }, - { - "description": "Valid - ft3 (REC)", - "data": "ft3", - "valid": true - }, - { - "description": "Valid - gal (REC)", - "data": "gal", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/volume-item-type/v1.test.json b/test/xbrl/utr/volume-item-type/v1.test.json deleted file mode 100644 index 243e1ba7..00000000 --- a/test/xbrl/utr/volume-item-type/v1.test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/volume-item-type/v1.json", - "tests": [ - { - "description": "Valid - bbl", - "data": "bbl", - "valid": true - }, - { - "description": "Valid - ft3", - "data": "ft3", - "valid": true - }, - { - "description": "Valid - gal", - "data": "gal", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/volume-per-monetary-item-type-normative/v1.test.json b/test/xbrl/utr/volume-per-monetary-item-type-normative/v1.test.json deleted file mode 100644 index 06463b6b..00000000 --- a/test/xbrl/utr/volume-per-monetary-item-type-normative/v1.test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/volume-per-monetary-item-type-normative/v1.json", - "tests": [ - { - "description": "Valid - Volume_per_Monetary (REC)", - "data": "Volume_per_Monetary", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/test/xbrl/utr/volume-per-monetary-item-type/v1.test.json b/test/xbrl/utr/volume-per-monetary-item-type/v1.test.json deleted file mode 100644 index 1c0666ad..00000000 --- a/test/xbrl/utr/volume-per-monetary-item-type/v1.test.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "target": "../../../../schemas/xbrl/utr/volume-per-monetary-item-type/v1.json", - "tests": [ - { - "description": "Valid - Volume_per_Monetary", - "data": "Volume_per_Monetary", - "valid": true - }, - { - "description": "Invalid - unknown unit", - "data": "invalid-unit", - "valid": false - }, - { - "description": "Invalid - number", - "data": 123, - "valid": false - }, - { - "description": "Invalid - null", - "data": null, - "valid": false - } - ] -} diff --git a/vendorpull.mask b/vendorpull.mask index 341d0464..8e948572 100644 --- a/vendorpull.mask +++ b/vendorpull.mask @@ -1,4 +1,5 @@ build +examples external generate meta