Start adding tests, using testament.
FossilOrigin-Name: 6f368f0d303c65000c74f346b7bc39ffca964aff7767c60be2384739e5dc4d72
This commit is contained in:
parent
89e879ca68
commit
1ed442a68a
16 changed files with 200 additions and 44 deletions
19
tests/database/t_creates_with_default_config.nim
Normal file
19
tests/database/t_creates_with_default_config.nim
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# vim: set et sta sw=4 ts=4 :
|
||||
|
||||
import
|
||||
std/dirs,
|
||||
std/paths
|
||||
|
||||
import kuzu
|
||||
|
||||
const DATABASE_PATH = Path( "tmp/testdb" )
|
||||
|
||||
DATABASE_PATH.removeDir()
|
||||
var db = newKuzuDatabase( $DATABASE_PATH )
|
||||
|
||||
assert db.path == $DATABASE_PATH
|
||||
assert db.config == kuzuConfig()
|
||||
assert db.config.read_only == false
|
||||
|
||||
DATABASE_PATH.removeDir()
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue