tests: update with integer literals
This commit is contained in:
@@ -18,7 +18,7 @@ Module(
|
||||
ops=[
|
||||
Gt()],
|
||||
comparators=[
|
||||
Constant(value=0.0)]))],
|
||||
Constant(value=0)]))],
|
||||
decorator_list=[],
|
||||
returns=Constant(value='bool')),
|
||||
FunctionDef(
|
||||
@@ -39,7 +39,7 @@ Module(
|
||||
ops=[
|
||||
Gt()],
|
||||
comparators=[
|
||||
Constant(value=0.0)]))],
|
||||
Constant(value=0)]))],
|
||||
decorator_list=[],
|
||||
returns=Constant(value='bool')),
|
||||
FunctionDef(
|
||||
@@ -128,8 +128,8 @@ Module(
|
||||
func=Call(
|
||||
func=Name(id='__midas_in_range__'),
|
||||
args=[
|
||||
Constant(value=100.0),
|
||||
Constant(value=200.0)],
|
||||
Constant(value=100),
|
||||
Constant(value=200)],
|
||||
keywords=[]),
|
||||
args=[
|
||||
Name(id='_')],
|
||||
@@ -142,8 +142,8 @@ Module(
|
||||
value=Call(
|
||||
func=Name(id='__midas_in_range__'),
|
||||
args=[
|
||||
Constant(value=0.0),
|
||||
Constant(value=18.0)],
|
||||
Constant(value=0),
|
||||
Constant(value=18)],
|
||||
keywords=[])),
|
||||
FunctionDef(
|
||||
name='__midas_p3__',
|
||||
@@ -208,7 +208,7 @@ Module(
|
||||
args=[
|
||||
Name(id='__midas_a0__')],
|
||||
keywords=[]),
|
||||
msg=Constant(value="02_constraints.py:L5:10: ConstraintError: Value does not fit constraint '_ > 0.0'")),
|
||||
msg=Constant(value="02_constraints.py:L5:10: ConstraintError: Value does not fit constraint '_ > 0'")),
|
||||
Assign(
|
||||
targets=[
|
||||
Name(id='t1')],
|
||||
@@ -284,7 +284,7 @@ Module(
|
||||
args=[
|
||||
Name(id='__midas_a2__')],
|
||||
keywords=[]),
|
||||
msg=Constant(value="02_constraints.py:L7:10: ConstraintError: Value does not fit constraint 'in_range(100.0, 200.0)(_)'")),
|
||||
msg=Constant(value="02_constraints.py:L7:10: ConstraintError: Value does not fit constraint 'in_range(100, 200)(_)'")),
|
||||
Assign(
|
||||
targets=[
|
||||
Name(id='t3')],
|
||||
|
||||
@@ -2474,7 +2474,7 @@
|
||||
"operator": "-",
|
||||
"right": {
|
||||
"_type": "LiteralExpr",
|
||||
"value": 90.0
|
||||
"value": 90
|
||||
}
|
||||
},
|
||||
"operator": "<=",
|
||||
@@ -2485,7 +2485,7 @@
|
||||
"operator": "<=",
|
||||
"right": {
|
||||
"_type": "LiteralExpr",
|
||||
"value": 90.0
|
||||
"value": 90
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2512,7 +2512,7 @@
|
||||
"operator": "-",
|
||||
"right": {
|
||||
"_type": "LiteralExpr",
|
||||
"value": 180.0
|
||||
"value": 180
|
||||
}
|
||||
},
|
||||
"operator": "<=",
|
||||
@@ -2523,7 +2523,7 @@
|
||||
"operator": "<=",
|
||||
"right": {
|
||||
"_type": "LiteralExpr",
|
||||
"value": 180.0
|
||||
"value": 180
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2780,7 +2780,7 @@
|
||||
"operator": ">=",
|
||||
"right": {
|
||||
"_type": "LiteralExpr",
|
||||
"value": 0.0
|
||||
"value": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -2813,7 +2813,7 @@
|
||||
"operator": ">",
|
||||
"right": {
|
||||
"_type": "LiteralExpr",
|
||||
"value": 0.0
|
||||
"value": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -2848,7 +2848,7 @@
|
||||
"operator": "-",
|
||||
"right": {
|
||||
"_type": "LiteralExpr",
|
||||
"value": 10.0
|
||||
"value": 10
|
||||
}
|
||||
},
|
||||
"operator": "<=",
|
||||
@@ -2864,7 +2864,7 @@
|
||||
"operator": "<=",
|
||||
"right": {
|
||||
"_type": "LiteralExpr",
|
||||
"value": 10.0
|
||||
"value": 10
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2904,7 +2904,7 @@
|
||||
"operator": ">=",
|
||||
"right": {
|
||||
"_type": "LiteralExpr",
|
||||
"value": 66.0
|
||||
"value": 66
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2950,7 +2950,7 @@
|
||||
"_type": "BinaryExpr",
|
||||
"left": {
|
||||
"_type": "LiteralExpr",
|
||||
"value": 0.0
|
||||
"value": 0
|
||||
},
|
||||
"operator": "<=",
|
||||
"right": {
|
||||
@@ -2960,7 +2960,7 @@
|
||||
"operator": "<",
|
||||
"right": {
|
||||
"_type": "LiteralExpr",
|
||||
"value": 150.0
|
||||
"value": 150
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user