Skip to content

Commit

Permalink
style: added named parameters to calls
Browse files Browse the repository at this point in the history
FossilOrigin-Name: 19f6bda3212ee25e1e7b5b83a1c2e0a77e25f1fc7e20b32f00d96acab04ff539
  • Loading branch information
thindil committed May 17, 2024
1 parent 0f644be commit 2ec0378
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/nish.nim
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ suite "Unit tests for nish module":

when defined(testInput):
checkpoint "Initializing the tests"
let db = initDb("test10.db")
let db = initDb(dbName = "test10.db")
var
myaliases = newOrderedTable[LimitedString, int]()
commands = newTable[string, CommandData]()
Expand All @@ -25,10 +25,11 @@ suite "Unit tests for nish module":
skip()
else:
var
iString = initLimitedString(capacity = 100, text = "")
iString = ""
cName = "ls"
rCode = QuitSuccess.ResultCode
hIndex: HistoryRange = 1
cPosition: Natural = 1
readUserInput(iString, false, db, cName, rCode, hIndex, cPosition,
myaliases, commands)
readUserInput(inputString = iString, oneTimeCommand = false, db = db,
commandName = cName, returnCode = rCode, historyIndex = hIndex,
cursorPosition = cPosition, aliases = myaliases, commands = commands)

0 comments on commit 2ec0378

Please sign in to comment.