Skip to content

Commit

Permalink
test: add a test for new_iter
Browse files Browse the repository at this point in the history
Even though the function is deprecated, the code is still present and we
don’t want it to break unexpectedly.
  • Loading branch information
cljoly committed Oct 21, 2024
1 parent 5087475 commit 413f246
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rusqlite_migration/src/tests/synch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -553,3 +553,9 @@ fn test_missing_down_migration() {
m.to_version(&mut conn, 2)
);
}

#[test]
fn test_deprecated_new_iter() {
let migrations = Migrations::new_iter(all_valid().into_iter());
assert_eq!(Ok(()), migrations.validate());
}

0 comments on commit 413f246

Please sign in to comment.