test(sqlite): add failing test to illustrate #231

This commit is contained in:
Ryan Leckey 2020-04-08 01:28:19 -07:00
parent 72bd933e41
commit b3fd720aad

View file

@ -37,6 +37,17 @@ async fn it_fails_to_parse() -> anyhow::Result<()> {
Ok(())
}
#[cfg_attr(feature = "runtime-async-std", async_std::test)]
#[cfg_attr(feature = "runtime-tokio", tokio::test)]
async fn it_handles_empty_queries() -> anyhow::Result<()> {
let mut conn = new::<Sqlite>().await?;
let affected = conn.execute("").await?;
assert_eq!(affected, 0);
Ok(())
}
#[cfg_attr(feature = "runtime-async-std", async_std::test)]
#[cfg_attr(feature = "runtime-tokio", tokio::test)]
async fn it_executes() -> anyhow::Result<()> {