Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDmitrijs Goloscapovs <dmitrijs.goloscapovs@zabbix.com>2022-06-20 16:35:33 +0300
committerDmitrijs Goloscapovs <dmitrijs.goloscapovs@zabbix.com>2022-06-20 16:35:33 +0300
commitc6040e7b8b93256633ec4aa7dc98263499b96e7c (patch)
tree3b0e635b878e01b0bc17091b2e7abd93b47ec10c /tests
parent4c9885e6bb4fce783367fa7fc90ed33d6ff94fae (diff)
parentc488a211647f6b53b9c7423678f6c39601cb1db2 (diff)
.......... [ZBX-20638] updated to latest master
Diffstat (limited to 'tests')
-rw-r--r--tests/libs/zbxeval/zbx_eval_parse_expression.yaml17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/libs/zbxeval/zbx_eval_parse_expression.yaml b/tests/libs/zbxeval/zbx_eval_parse_expression.yaml
index 00ff02bbbfc..bbdf92e0d8e 100644
--- a/tests/libs/zbxeval/zbx_eval_parse_expression.yaml
+++ b/tests/libs/zbxeval/zbx_eval_parse_expression.yaml
@@ -316,6 +316,23 @@ in:
expression: '{$MACRO}x'
out:
result: FAIL
+---
+test case: Succeed '1-1'
+in:
+ rules: [ZBX_EVAL_PARSE_USERMACRO,ZBX_EVAL_PARSE_MATH,ZBX_EVAL_PARSE_VAR_NUM,ZBX_EVAL_PARSE_COMPOUND_CONST]
+ expression: '1-1'
+out:
+ stack:
+ - type: ZBX_EVAL_TOKEN_VAR_NUM
+ token: '1'
+ opt: 0
+ - type: ZBX_EVAL_TOKEN_VAR_NUM
+ token: '1'
+ opt: 0
+ - type: ZBX_EVAL_TOKEN_OP_SUB
+ token: '-'
+ opt: 0
+ result: SUCCEED
--- # LLD macros
test case: Succeed '{#LLD}'
in: