Skip to content

Commit

Permalink
eopkg/index: Improve test
Browse files Browse the repository at this point in the history
Signed-off-by: Ikey Doherty <[email protected]>
  • Loading branch information
ikeycode committed Nov 1, 2023
1 parent 8885200 commit 8711c49
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/eopkg/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ mod test {
.iter()
.filter(|p| p.source.name == "zlib")
.collect::<Vec<_>>();
assert_eq!(zlib.len(), 8);
assert_eq!(zlib[0].history.updates[0].version, "1.3");
assert_eq!(zlib.len(), 6);
let latest = &zlib[0].history.updates[0];
assert_eq!(latest.version, "1.3");
assert_eq!(latest.release, 26);
}
}

0 comments on commit 8711c49

Please sign in to comment.