diff options
author | Dmitrijs Goloscapovs <dmitrijs.goloscapovs@zabbix.com> | 2021-04-15 09:37:53 +0300 |
---|---|---|
committer | Dmitrijs Goloscapovs <dmitrijs.goloscapovs@zabbix.com> | 2021-04-15 09:38:55 +0300 |
commit | 62bc2e4a92c734fd79a9a3c4ac19956c2a02f3a6 (patch) | |
tree | 7eeb96fcb4302ef6eda5c4424cdd8721e9217663 /tests/libs/zbxeval | |
parent | 991de0b26e9a5af8c6a17924a87b36c70ba11636 (diff) |
........S. [ZBXNEXT-6544,ZBXNEXT-6545] added various fixes
Diffstat (limited to 'tests/libs/zbxeval')
-rw-r--r-- | tests/libs/zbxeval/zbx_eval_execute.yaml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/libs/zbxeval/zbx_eval_execute.yaml b/tests/libs/zbxeval/zbx_eval_execute.yaml index cfa05c7dc87..9845d14f2d5 100644 --- a/tests/libs/zbxeval/zbx_eval_execute.yaml +++ b/tests/libs/zbxeval/zbx_eval_execute.yaml @@ -989,6 +989,13 @@ out: result: SUCCEED value: 2.7182818284590451 --- +test case: Expression 'e(1)' +in: + rules: [ZBX_EVAL_PARSE_FUNCTION,ZBX_EVAL_PARSE_GROUP,ZBX_EVAL_PARSE_VAR] + expression: 'e(1)' +out: + result: FAIL +--- test case: Expression 'exp(2)' in: rules: [ZBX_EVAL_PARSE_FUNCTION,ZBX_EVAL_PARSE_GROUP,ZBX_EVAL_PARSE_VAR] @@ -1053,6 +1060,19 @@ out: result: SUCCEED value: 3.1415926535897931 --- +test case: Expression 'pi(1)' +in: + rules: [ZBX_EVAL_PARSE_FUNCTION,ZBX_EVAL_PARSE_GROUP,ZBX_EVAL_PARSE_VAR] + expression: 'pi(1)' +out: + result: FAIL +--- +test case: Expression 'rand(1)' +in: + rules: [ZBX_EVAL_PARSE_FUNCTION,ZBX_EVAL_PARSE_GROUP,ZBX_EVAL_PARSE_VAR] + expression: 'rand(1)' +out: + result: FAIL test case: Expression 'power(2,3)' in: rules: [ZBX_EVAL_PARSE_FUNCTION,ZBX_EVAL_PARSE_GROUP,ZBX_EVAL_PARSE_VAR] @@ -1177,6 +1197,13 @@ out: result: SUCCEED value: 0.982793723247329 --- +test case: Expression 'atan2(0,0)' +in: + rules: [ZBX_EVAL_PARSE_FUNCTION,ZBX_EVAL_PARSE_GROUP,ZBX_EVAL_PARSE_VAR] + expression: 'atan2(0,0)' +out: + result: FAIL +--- test case: Expression 'cos(1)' in: rules: [ZBX_EVAL_PARSE_FUNCTION,ZBX_EVAL_PARSE_GROUP,ZBX_EVAL_PARSE_VAR] @@ -1279,4 +1306,11 @@ in: out: result: SUCCEED value: -1.5 +--- +test case: Expression 'rand(1)' +in: + rules: [ZBX_EVAL_PARSE_FUNCTION,ZBX_EVAL_PARSE_GROUP,ZBX_EVAL_PARSE_VAR] + expression: 'rand(1)' +out: + result: FAIL ... |