factor/extra/webapps/mason/backend/backend-tests.factor

16 lines
367 B
Factor
Raw Normal View History

2010-09-04 21:05:28 -04:00
USING: continuations db db.sqlite io.directories io.files.temp
webapps.mason.backend tools.test ;
IN: webapps.mason.backend.tests
2010-09-04 21:05:28 -04:00
[ "test.db" temp-file delete-file ] ignore-errors
2010-09-05 16:11:17 -04:00
[ 0 1 2 ] [
2010-09-04 21:05:28 -04:00
"test.db" temp-file <sqlite-db> [
init-mason-db
counter-value
increment-counter-value
increment-counter-value
] with-db
] unit-test