From 4dccebe8bf6202dad8cf30a2c4517d3da9df35ab Mon Sep 17 00:00:00 2001 From: thindil Date: Wed, 17 Jan 2024 05:19:32 +0000 Subject: [PATCH] tests: updated unit tests for options module FossilOrigin-Name: 7632233ef09b0b5426f1af55e1b2905a62325670eb56b7a01a8e7a2bc40a8a70 --- tests/options.nim | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/options.nim b/tests/options.nim index df3be49e..4f3d764c 100644 --- a/tests/options.nim +++ b/tests/options.nim @@ -27,15 +27,13 @@ suite "Unit tests for options module": test "Adding a new option": let optionName = "testOption" - setOption(optionName = optionName, value = initLimitedString(capacity = 3, - text = "200"), db = db) + setOption(optionName = optionName, value = "200", db = db) check: deleteOption(optionName, db) == QuitSuccess getOption(optionName, db).len == 0 test "Updating an existing option": - setOption(optionName = "historyLength", value = initLimitedString(capacity = 3, - text = "100"), db = db) + setOption(optionName = "historyLength", value = "100", db = db) check: getOption("historyLength", db) == "100"