diff options
author | Michael Veksler <Mihails.Vekslers@zabbix.com> | 2021-12-09 15:20:03 +0300 |
---|---|---|
committer | Michael Veksler <Mihails.Vekslers@zabbix.com> | 2021-12-09 15:20:03 +0300 |
commit | 9f4af3c05db1b1e50a5a4e9465c2dc2f8c72d12d (patch) | |
tree | 07132b4609a116548a9d1eb28c47f1201051e86b /tests | |
parent | d64430bbfaeadfdcedcbf38f866817179affa61d (diff) |
.......PS. [ZBX-20311] added cmocka tests for -1 case
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libs/zbxeval/zbx_eval_execute.yaml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/libs/zbxeval/zbx_eval_execute.yaml b/tests/libs/zbxeval/zbx_eval_execute.yaml index d24a1779ef3..c1227f846aa 100644 --- a/tests/libs/zbxeval/zbx_eval_execute.yaml +++ b/tests/libs/zbxeval/zbx_eval_execute.yaml @@ -2206,7 +2206,16 @@ in: rules: [ZBX_EVAL_PARSE_FUNCTION,ZBX_EVAL_PARSE_VAR] expression: 'histogram_quantile(0.8, 0.1, 1, 0.2, 2, "+Inf", 0)' out: - result: FAIL + result: SUCCEED + value: '0.16000000000000003' +--- +test case: Expression 'histogram_quantile(0.8, 0.1, 0, 0.2, 0, +Inf, 0)' +in: + rules: [ZBX_EVAL_PARSE_FUNCTION,ZBX_EVAL_PARSE_VAR] + expression: 'histogram_quantile(0.8, 0.1, 0, 0.2, 0, "+Inf", 0)' +out: + result: SUCCEED + value: '-1' --- test case: Expression 'histogram_quantile(-0.1, 0.2, 10, 0.4, 20, 1.0, 60, 1.2, 70, +Inf, 80)' in: |