You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.1 KiB
58 lines
1.1 KiB
---
|
|
test case: 'Valid expression "1 and not(0 or 1)"'
|
|
in:
|
|
expression: '1 and not(0 or 1)'
|
|
out:
|
|
value: '0'
|
|
return: 'SUCCEED'
|
|
---
|
|
test case: 'Unknown comparison'
|
|
in:
|
|
expression: 'ZBX_UNKNOWN0 = ZBX_UNKNOWN0'
|
|
out:
|
|
value: 'ZBX_UNKNOWN'
|
|
return: 'SUCCEED'
|
|
---
|
|
test case: 'Unknown comparison'
|
|
in:
|
|
expression: 'ZBX_UNKNOWN0 = ZBX_UNKNOWN1'
|
|
out:
|
|
value: 'ZBX_UNKNOWN'
|
|
return: 'SUCCEED'
|
|
---
|
|
test case: 'Expression with unknown element "1 or ZBX_UNKNOWN0"'
|
|
in:
|
|
expression: '1 or ZBX_UNKNOWN0'
|
|
out:
|
|
value: '1'
|
|
return: 'SUCCEED'
|
|
---
|
|
test case: 'Expression with unknown element "1 or not(ZBX_UNKNOWN0)"'
|
|
in:
|
|
expression: '1 or not(ZBX_UNKNOWN0)'
|
|
out:
|
|
value: '1'
|
|
return: 'SUCCEED'
|
|
---
|
|
test case: 'Expression with unknown result "1 and not(ZBX_UNKNOWN0)"'
|
|
in:
|
|
expression: '1 and not(ZBX_UNKNOWN0)'
|
|
out:
|
|
value: 'ZBX_UNKNOWN'
|
|
return: 'SUCCEED'
|
|
---
|
|
test case: 'Expression with unknown result "1 > ZBX_UNKNOWN0"'
|
|
in:
|
|
expression: '1 > ZBX_UNKNOWN0'
|
|
out:
|
|
value: 'ZBX_UNKNOWN'
|
|
return: 'SUCCEED'
|
|
---
|
|
test case: 'Expression with unknown result "1 - ZBX_UNKNOWN0"'
|
|
in:
|
|
expression: '1 - ZBX_UNKNOWN0'
|
|
out:
|
|
value: 'ZBX_UNKNOWN'
|
|
return: 'SUCCEED'
|
|
...
|