Add basic unit test of statement debug including SQL

This commit is contained in:
John Gallagher 2015-09-20 20:44:51 -04:00
parent 05669082a3
commit d07c7ec8a6

View File

@ -1161,4 +1161,13 @@ mod test {
}
assert_eq!(db.last_insert_rowid(), 10);
}
#[test]
fn test_statement_debugging() {
let db = checked_memory_handle();
let query = "SELECT 12345";
let stmt = db.prepare(query).unwrap();
assert!(format!("{:?}", stmt).contains(query));
}
}