nim-ladybug/tests/database/t_creates_with_default_config.nim

21 lines
350 B
Nim
Raw Normal View History

# vim: set et sta sw=4 ts=4 :
import
2025-07-13 13:10:33 -07:00
std/files,
std/paths
import lbug
const DATABASE_PATH = Path( "tmp/testdb" )
2025-07-13 13:10:33 -07:00
DATABASE_PATH.removeFile()
var db = newLbugDatabase( $DATABASE_PATH )
assert db.path == $DATABASE_PATH
assert db.kind == disk
assert db.config == lbugConfig()
assert db.config.read_only == false
2025-07-13 13:10:33 -07:00
DATABASE_PATH.removeFile()