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
17
tests/database/t_can_create_with_custom_config.nim
Normal file
17
tests/database/t_can_create_with_custom_config.nim
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# 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, kuzuConfig( auto_checkpoint=false ) )
|
||||
assert db.path == "tmp/testdb"
|
||||
assert db.config.auto_checkpoint == false
|
||||
|
||||
DATABASE_PATH.removeDir()
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue