1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

v test v: cleanup more temporary files

This commit is contained in:
Delyan Angelov 2019-11-11 17:45:11 +02:00 committed by Alexander Medvednikov
parent 0ab09a57f7
commit cc81e9adfa
2 changed files with 7 additions and 2 deletions

View File

@ -194,4 +194,6 @@ fn cleanup_leftovers(){
os.rm('ex')
os.rm('ex2/ex2.txt')
os.rm('ex2')
os.rm('ex1.txt')
os.rm('ex2.txt')
}

View File

@ -1,7 +1,9 @@
import os
import sqlite
fn test_sqlite() {
db := sqlite.connect('users.db')
db_file := 'users.db'
db := sqlite.connect(db_file)
db.exec("drop table if exists users")
db.exec("create table users (id integer primary key, name text default '');")
@ -20,4 +22,5 @@ fn test_sqlite() {
for row in users {
println(row.vals)
}
os.rm(db_file)
}