Move a test from /tests to /src

This commit is contained in:
Ivan Ukhov
2015-06-08 09:37:44 -04:00
parent a8396a0d1e
commit 1f0db50312
3 changed files with 38 additions and 10 deletions

View File

@ -55,16 +55,6 @@ fn workflow() {
}
}
#[test]
fn failure() {
let (path, _directory) = setup();
let database = ok!(sqlite::open(&path));
match database.execute(":)", None) {
Err(error) => assert_eq!(error.message, Some(String::from(r#"unrecognized token: ":""#))),
_ => assert!(false),
}
}
fn setup() -> (PathBuf, Directory) {
let directory = ok!(Directory::new("sqlite"));
(directory.path().join("database.sqlite3"), directory)