switch from prettydiff to diff

prettydiff has a weird chain of dependencies starting with
prettytable-rs and ending up with (among other things) argon2rs.
This commit is contained in:
Scott Lamb
2021-10-27 10:17:41 -07:00
parent 884c3333cc
commit 4f22cf66e3
4 changed files with 61 additions and 171 deletions

View File

@@ -190,7 +190,12 @@ mod tests {
fn compare(c: &rusqlite::Connection, ver: i32, fresh_sql: &str) -> Result<(), Error> {
let fresh = new_conn()?;
fresh.execute_batch(fresh_sql)?;
if let Some(diffs) = compare::get_diffs("upgraded", &c, "fresh", &fresh)? {
if let Some(diffs) = compare::get_diffs(
&format!("upgraded to version {}", ver),
&c,
&format!("fresh version {}", ver),
&fresh,
)? {
panic!("Version {}: differences found:\n{}", ver, diffs);
}
Ok(())