tests: update with new predicate AST representation

This commit is contained in:
2026-06-18 12:43:24 +02:00
parent 020824d1f8
commit 04853eac70

View File

@@ -2582,18 +2582,21 @@
"name": "__sub__", "name": "__sub__",
"type": { "type": {
"_type": "FunctionType", "_type": "FunctionType",
"pos_args": [ "params": {
{ "_type": "ParamSpec",
"name": null, "pos": [
"type": { {
"_type": "NamedType", "name": null,
"name": "GeoLocation" "type": {
}, "_type": "NamedType",
"required": true "name": "GeoLocation"
} },
], "required": true
"args": [], }
"kw_args": [], ],
"mixed": [],
"kw": []
},
"returns": { "returns": {
"_type": "GenericType", "_type": "GenericType",
"type": { "type": {
@@ -2673,18 +2676,21 @@
"name": "__sub__", "name": "__sub__",
"type": { "type": {
"_type": "FunctionType", "_type": "FunctionType",
"pos_args": [ "params": {
{ "_type": "ParamSpec",
"name": null, "pos": [
"type": { {
"_type": "NamedType", "name": null,
"name": "Latitude" "type": {
}, "_type": "NamedType",
"required": true "name": "Latitude"
} },
], "required": true
"args": [], }
"kw_args": [], ],
"mixed": [],
"kw": []
},
"returns": { "returns": {
"_type": "GenericType", "_type": "GenericType",
"type": { "type": {
@@ -2713,18 +2719,21 @@
"name": "__sub__", "name": "__sub__",
"type": { "type": {
"_type": "FunctionType", "_type": "FunctionType",
"pos_args": [ "params": {
{ "_type": "ParamSpec",
"name": null, "pos": [
"type": { {
"_type": "NamedType", "name": null,
"name": "Longitude" "type": {
}, "_type": "NamedType",
"required": true "name": "Longitude"
} },
], "required": true
"args": [], }
"kw_args": [], ],
"mixed": [],
"kw": []
},
"returns": { "returns": {
"_type": "GenericType", "_type": "GenericType",
"type": { "type": {
@@ -2745,12 +2754,24 @@
{ {
"_type": "PredicateStmt", "_type": "PredicateStmt",
"name": "Positive", "name": "Positive",
"subject": "v", "params": [
"type": { {
"_type": "NamedType", "_type": "ParamSpec",
"name": "float" "pos": [],
}, "mixed": [
"condition": { {
"name": "v",
"type": {
"_type": "NamedType",
"name": "float"
},
"required": true
}
],
"kw": []
}
],
"body": {
"_type": "BinaryExpr", "_type": "BinaryExpr",
"left": { "left": {
"_type": "VariableExpr", "_type": "VariableExpr",
@@ -2766,12 +2787,24 @@
{ {
"_type": "PredicateStmt", "_type": "PredicateStmt",
"name": "StrictlyPositive", "name": "StrictlyPositive",
"subject": "v", "params": [
"type": { {
"_type": "NamedType", "_type": "ParamSpec",
"name": "float" "pos": [],
}, "mixed": [
"condition": { {
"name": "v",
"type": {
"_type": "NamedType",
"name": "float"
},
"required": true
}
],
"kw": []
}
],
"body": {
"_type": "BinaryExpr", "_type": "BinaryExpr",
"left": { "left": {
"_type": "VariableExpr", "_type": "VariableExpr",
@@ -2787,12 +2820,24 @@
{ {
"_type": "PredicateStmt", "_type": "PredicateStmt",
"name": "Equatorial", "name": "Equatorial",
"subject": "loc", "params": [
"type": { {
"_type": "NamedType", "_type": "ParamSpec",
"name": "GeoLocation" "pos": [],
}, "mixed": [
"condition": { {
"name": "loc",
"type": {
"_type": "NamedType",
"name": "GeoLocation"
},
"required": true
}
],
"kw": []
}
],
"body": {
"_type": "GroupingExpr", "_type": "GroupingExpr",
"expr": { "expr": {
"_type": "BinaryExpr", "_type": "BinaryExpr",
@@ -2827,12 +2872,24 @@
{ {
"_type": "PredicateStmt", "_type": "PredicateStmt",
"name": "Arctic", "name": "Arctic",
"subject": "loc", "params": [
"type": { {
"_type": "NamedType", "_type": "ParamSpec",
"name": "GeoLocation" "pos": [],
}, "mixed": [
"condition": { {
"name": "loc",
"type": {
"_type": "NamedType",
"name": "GeoLocation"
},
"required": true
}
],
"kw": []
}
],
"body": {
"_type": "GroupingExpr", "_type": "GroupingExpr",
"expr": { "expr": {
"_type": "BinaryExpr", "_type": "BinaryExpr",