Start adding tests, using testament.

FossilOrigin-Name: 6f368f0d303c65000c74f346b7bc39ffca964aff7767c60be2384739e5dc4d72
This commit is contained in:
mahlon 2025-03-18 02:21:06 +00:00
parent 89e879ca68
commit 1ed442a68a
16 changed files with 200 additions and 44 deletions

View 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()