From 9421b4b020868f0a2243b609fdf1e7c1aaf759e7 Mon Sep 17 00:00:00 2001 From: thindil Date: Sat, 23 Mar 2024 04:44:44 +0000 Subject: [PATCH] tests: updated unit test for config module FossilOrigin-Name: b1da9b24e05776c6ab197f2daab082f5d89dd2e2668151684ee354b94a2e4116 --- tests/config.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/config.nim b/tests/config.nim index e96fa62..e14f2f0 100644 --- a/tests/config.nim +++ b/tests/config.nim @@ -37,8 +37,8 @@ suite "Unit tests for config module": test "Test parsing configuration file": var sections: int = 0 - let (sources, rules, fixCommand, maxReports) = parseConfig( + let (sources, rules, fixCommand, maxReports, showSummary) = parseConfig( configFile = "config/nimalyzer.cfg", sections = sections) check: sources.len > 0 and rules.len > 0 and fixCommand.len > 0 and sections == - 1 and maxReports == Natural.high + 1 and maxReports == Natural.high and showSummary