From d07c7ec8a6b9bb2935b0b464aef7137b582a782b Mon Sep 17 00:00:00 2001 From: John Gallagher Date: Sun, 20 Sep 2015 20:44:51 -0400 Subject: [PATCH] Add basic unit test of statement debug including SQL --- src/lib.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index eb96b11..622fb09 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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)); + } }