Skip to content

Commit c4a9fe2

Browse files
committed
add test for empty string
1 parent f943fb0 commit c4a9fe2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_emptystr.nim

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import easy_sqlite3
2+
import std/[unittest, tables]
3+
4+
proc getEmptyString(): tuple[value: string] {.importdb: "SELECT ''".}
5+
6+
test "get empty string":
7+
var db = initDatabase(":memory:")
8+
check db.getEmptyString() == (value: "")

0 commit comments

Comments
 (0)