This commit is contained in:
Kenneth Geisshirt 2018-02-05 19:51:39 +01:00
parent ab02e26092
commit 74fc625eca
1 changed files with 18 additions and 19 deletions

View File

@ -1,7 +1,7 @@
{ {
"dateTests" : { "dateTests" : {
"schema" : [{ "schema" : [{
"name": "DateObject", "name": "DateObject",
"properties": [{ "name": "date", "type": "date" }] "properties": [{ "name": "date", "type": "date" }]
}], }],
@ -25,7 +25,7 @@
}, },
"boolTests" : { "boolTests" : {
"schema" : [{ "schema" : [{
"name": "BoolObject", "name": "BoolObject",
"properties": [{ "name": "boolCol", "type": "bool" }] "properties": [{ "name": "boolCol", "type": "bool" }]
}], }],
@ -57,11 +57,11 @@
["QueryThrows", "BoolObject", "boolCol BEGINSWITH true"], ["QueryThrows", "BoolObject", "boolCol BEGINSWITH true"],
["QueryThrows", "BoolObject", "boolCol CONTAINS true"], ["QueryThrows", "BoolObject", "boolCol CONTAINS true"],
["QueryThrows", "BoolObject", "boolCol ENDSWITH true"] ["QueryThrows", "BoolObject", "boolCol ENDSWITH true"]
] ]
}, },
"intTests" : { "intTests" : {
"schema" : [{ "schema" : [{
"name": "IntObject", "name": "IntObject",
"properties": [{ "name": "intCol", "type": "int" }] "properties": [{ "name": "intCol", "type": "int" }]
}], }],
@ -92,7 +92,7 @@
}, },
"floatTests" : { "floatTests" : {
"schema" : [{ "schema" : [{
"name": "FloatObject", "name": "FloatObject",
"properties": [{ "name": "floatCol", "type": "float" }] "properties": [{ "name": "floatCol", "type": "float" }]
}], }],
@ -126,7 +126,7 @@
}, },
"doubleTests" : { "doubleTests" : {
"schema" : [{ "schema" : [{
"name": "DoubleObject", "name": "DoubleObject",
"properties": [{ "name": "doubleCol", "type": "double" }] "properties": [{ "name": "doubleCol", "type": "double" }]
}], }],
@ -157,7 +157,7 @@
}, },
"stringTests" : { "stringTests" : {
"schema" : [{ "schema" : [{
"name": "StringObject", "name": "StringObject",
"properties": [{ "name": "stringCol", "type": "string" }] "properties": [{ "name": "stringCol", "type": "string" }]
}], }],
@ -205,7 +205,7 @@
}, },
"binaryTests" : { "binaryTests" : {
"schema" : [{ "schema" : [{
"name": "BinaryObject", "name": "BinaryObject",
"properties": [{ "name": "binaryCol", "type": "data" }] "properties": [{ "name": "binaryCol", "type": "data" }]
}], }],
@ -256,14 +256,14 @@
"compoundTests" : { "compoundTests" : {
"schema" : [ "schema" : [
{ "name": "IntObject", { "name": "IntObject",
"properties": [{ "name": "intCol", "type": "int" }], "properties": [{ "name": "intCol", "type": "int" }],
"primaryKey" : "intCol" } "primaryKey" : "intCol" }
], ],
"objects": [ "objects": [
{ "type": "IntObject", "value": [0] }, { "type": "IntObject", "value": [0] },
{ "type": "IntObject", "value": [1] }, { "type": "IntObject", "value": [1] },
{ "type": "IntObject", "value": [2] }, { "type": "IntObject", "value": [2] },
{ "type": "IntObject", "value": [3] } { "type": "IntObject", "value": [3] }
], ],
"tests": [ "tests": [
@ -281,14 +281,14 @@
["ObjectSet", [0, 1, 2],"IntObject", "intCol == 0 || intCol == 1 || intCol <= 2"], ["ObjectSet", [0, 1, 2],"IntObject", "intCol == 0 || intCol == 1 || intCol <= 2"],
["ObjectSet", [0, 1], "IntObject", "intCol == 1 && intCol >= 1 || intCol == 0"], ["ObjectSet", [0, 1], "IntObject", "intCol == 1 && intCol >= 1 || intCol == 0"],
["ObjectSet", [0, 1], "IntObject", "intCol == 1 || intCol == 0 && intCol <= 0 && intCol >= 0"], ["ObjectSet", [0, 1], "IntObject", "intCol == 1 || intCol == 0 && intCol <= 0 && intCol >= 0"],
["ObjectSet", [0, 1], "IntObject", "intCol == 0 || NOT (intCol == 3 && intCol >= 0) && intCol == 1"] ["ObjectSet", [0, 1], "IntObject", "intCol == 0 || NOT (intCol == 3 && intCol >= 0) && intCol == 1"]
] ]
}, },
"keyPathTests" : { "keyPathTests" : {
"schema" : [ "schema" : [
{ {
"name": "BasicTypesObject", "name": "BasicTypesObject",
"properties": [ "properties": [
{ "name": "intCol", "type": "int" }, { "name": "intCol", "type": "int" },
{ "name": "floatCol", "type": "float" }, { "name": "floatCol", "type": "float" },
@ -296,7 +296,7 @@
{ "name": "stringCol", "type": "string" }, { "name": "stringCol", "type": "string" },
{ "name": "dateCol", "type": "date?" } { "name": "dateCol", "type": "date?" }
] ]
}, },
{ {
"name": "LinkTypesObject", "name": "LinkTypesObject",
"primaryKey": "primaryKey", "primaryKey": "primaryKey",
@ -326,8 +326,8 @@
"optionalTests" : { "optionalTests" : {
"schema" : [ "schema" : [
{ {
"name": "OptionalTypesObject", "name": "OptionalTypesObject",
"primaryKey": "primaryKey", "primaryKey": "primaryKey",
"properties": [ "properties": [
{ "name": "primaryKey", "type": "int" }, { "name": "primaryKey", "type": "int" },
@ -338,7 +338,7 @@
{ "name": "dateCol", "type": "date", "optional": true }, { "name": "dateCol", "type": "date", "optional": true },
{ "name": "dataCol", "type": "data", "optional": true } { "name": "dataCol", "type": "data", "optional": true }
] ]
}, },
{ {
"name": "LinkTypesObject", "name": "LinkTypesObject",
"primaryKey": "primaryKey", "primaryKey": "primaryKey",
@ -375,8 +375,7 @@
["ObjectSet", [1], "LinkTypesObject", "basicLink.stringCol == null"], ["ObjectSet", [1], "LinkTypesObject", "basicLink.stringCol == null"],
["ObjectSet", [0], "LinkTypesObject", "basicLink.stringCol != null"], ["ObjectSet", [0], "LinkTypesObject", "basicLink.stringCol != null"],
["ObjectSet", [1], "LinkTypesObject", "basicLink.dateCol == null"], ["ObjectSet", [1], "LinkTypesObject", "basicLink.dateCol == null"],
["ObjectSet", [0], "LinkTypesObject", "basicLink.dateCol != null"], ["ObjectSet", [0], "LinkTypesObject", "basicLink.dateCol != null"]
["QueryThrows", "LinkTypesObject", "basicLink.dataCol == null"]
] ]
} }