Fix string operators >= and <=
Change-Id: Iaca5b7cc0a28ce5cf8ec6d53a34655a2052e42dc Closes-bug: #1589604
This commit is contained in:
@@ -39,14 +39,14 @@ def lt(left, right):
|
|||||||
@specs.parameter('right', yaqltypes.String())
|
@specs.parameter('right', yaqltypes.String())
|
||||||
@specs.name('#operator_>=')
|
@specs.name('#operator_>=')
|
||||||
def gte(left, right):
|
def gte(left, right):
|
||||||
return left > right
|
return left >= right
|
||||||
|
|
||||||
|
|
||||||
@specs.parameter('left', yaqltypes.String())
|
@specs.parameter('left', yaqltypes.String())
|
||||||
@specs.parameter('right', yaqltypes.String())
|
@specs.parameter('right', yaqltypes.String())
|
||||||
@specs.name('#operator_<=')
|
@specs.name('#operator_<=')
|
||||||
def lte(left, right):
|
def lte(left, right):
|
||||||
return left < right
|
return left <= right
|
||||||
|
|
||||||
|
|
||||||
@specs.parameter('args', yaqltypes.String())
|
@specs.parameter('args', yaqltypes.String())
|
||||||
|
|||||||
Reference in New Issue
Block a user