Skip to content

Commit

Permalink
tests: moved unit tests for prompt module
Browse files Browse the repository at this point in the history
FossilOrigin-Name: 1167f4f11f604e12fa7c145d823788f1fc9a6b21f9773ce6fde50bc3b2fef99f
  • Loading branch information
thindil committed Oct 18, 2023
1 parent b5169bf commit f5861ab
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
14 changes: 14 additions & 0 deletions tests/prompt.nim
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import ../src/[db, directorypath, prompt, resultcode]
import unittest2

suite "Unit tests for prompt module":

let db = startDb("test14.db".DirectoryPath)
assert db != nil, "Failed to initialize the database."

test "getFormattedDir":
check:
getFormattedDir().len > 0

test "showPrompt":
showPrompt(true, "ls -a", QuitSuccess.ResultCode, db)
13 changes: 0 additions & 13 deletions tests/tprompt/tprompt.nim

This file was deleted.

0 comments on commit f5861ab

Please sign in to comment.