From 1df1baca9ef7cef77d798d8d4309fd952e61c288 Mon Sep 17 00:00:00 2001 From: "Christian R. Picone" Date: Fri, 5 Feb 2021 07:24:27 +0100 Subject: [PATCH] fix incorrect values for assert and add assert on count of anomalies for ACCUMULI_INRETI --- database/unittest.sql | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/database/unittest.sql b/database/unittest.sql index 659fb355..9ea25d83 100644 --- a/database/unittest.sql +++ b/database/unittest.sql @@ -621,7 +621,7 @@ BEGIN "SORGENTI_INRETI": 838, "POTAB_INRETI": 99, "ADDUT_INRETI": 820, - "ACCUMULI_INRETI": 910, + "ACCUMULI_INRETI": 914, "ACCUMULI_INADD": 784, "DEPURATO_INCOLL": 43, "SCARICATO_INFOG": 1074, @@ -1118,6 +1118,11 @@ DECLARE BEGIN select count(0) into v_count from dbiait_analysis.ACCUMULI_INRETI; perform test_assertTrue('count TAB ACCUMULI_INRETI, expected ' || v_expected || ' but found ' || v_count, v_count = v_expected ); + + v_expected := 3; + select count(0) into v_count from DBIAIT_ANALYSIS.LOG_STANDALONE WHERE alg_name ='ACCUMULI_INRETI'; + perform test_assertTrue('count anomalies ACCUMULI_INRETI, expected ' || v_expected || ' but found ' || v_count, v_count = v_expected ); + END; $$ LANGUAGE plpgsql SECURITY DEFINER SET search_path = public,pgunit; -- ------------------------------------------------------------------------------------------