From 2d75da0b46393c01d3e1e4e207df500313890440 Mon Sep 17 00:00:00 2001 From: thindil Date: Tue, 14 May 2024 04:00:01 +0000 Subject: [PATCH] style: added named parameters to calls FossilOrigin-Name: 76445b86e982fcc61f25363762680a1acad0441dfde1b750828489477626fe26 --- tests/help.nim | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/tests/help.nim b/tests/help.nim index fb86ac9c..76df1dca 100644 --- a/tests/help.nim +++ b/tests/help.nim @@ -77,21 +77,18 @@ suite "Unit tests for help module": helpType = "helptype", db = db) == QuitFailure test "Updating a help entry": - discard deleteHelpEntry("test", db) + discard deleteHelpEntry(topic = "test", db = db) unittest2.require: - addHelpEntry("test", - "test topic", - "test", "test help", false, db) == QuitSuccess + addHelpEntry(topic = "test", usage = "test topic", plugin = "test", + content = "test help", isTemplate = false, db = db) == QuitSuccess checkpoint "Updating an existing help entry" check: - updateHelpEntry("test", - "test topic", - "test", "test help2", db, false) == QuitSuccess + updateHelpEntry(topic = "test", usage = "test topic", plugin = "test", + content = "test help2", db = db, isTemplate = false) == QuitSuccess checkpoint "Updating a non-existing help entry" check: - updateHelpEntry("asdd", - "test topic", - "test", "test help2", db, false) == QuitFailure + updateHelpEntry(topic = "asdd", usage = "test topic", plugin = "test", + content = "test help2", db = db, isTemplate = false) == QuitFailure test "Initializing an object of HelpEntry type": let newHelp = newHelpEntry(topic = "test") @@ -99,4 +96,4 @@ suite "Unit tests for help module": newHelp.topic == "test" suiteTeardown: - closeDb(QuitSuccess.ResultCode, db) + closeDb(returnCode = QuitSuccess.ResultCode, db = db)