From 8711c4925a3270399a76b758a6322907edbefc16 Mon Sep 17 00:00:00 2001 From: Ikey Doherty Date: Wed, 1 Nov 2023 19:45:59 +0000 Subject: [PATCH] eopkg/index: Improve test Signed-off-by: Ikey Doherty --- src/eopkg/index.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/eopkg/index.rs b/src/eopkg/index.rs index bd63d66..32487d2 100644 --- a/src/eopkg/index.rs +++ b/src/eopkg/index.rs @@ -91,7 +91,9 @@ mod test { .iter() .filter(|p| p.source.name == "zlib") .collect::>(); - 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); } }