mirror of
https://github.com/fluencelabs/sqlite-wasm-connector
synced 2025-06-12 07:01:19 +00:00
Move a test from /tests to /src
This commit is contained in:
10
tests/lib.rs
10
tests/lib.rs
@ -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)
|
||||
|
Reference in New Issue
Block a user