From e1a9be2756aac5d28f39322914db8273d07d32a1 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Thu, 22 Aug 2024 20:52:18 -0400 Subject: [PATCH] Test for size_on_disk in patchlist --- src/patchlist.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/patchlist.rs b/src/patchlist.rs index 975cbef..cc1cc91 100644 --- a/src/patchlist.rs +++ b/src/patchlist.rs @@ -188,6 +188,7 @@ mod tests { assert_eq!(patch_list.patches.len(), 1); assert_eq!(patch_list.patches[0].version, "2023.09.14.0000.0001"); assert_eq!(patch_list.patches[0].url, "http://patch-dl.ffxiv.com/boot/2b5cbc63/D2023.09.14.0000.0001.patch"); + assert_eq!(patch_list.patches[0].size_on_disk, 69674819); } #[test] @@ -251,6 +252,7 @@ mod tests { assert_eq!(patch_list.patches.len(), 19); assert_eq!(patch_list.patches[5].version, "2023.07.26.0000.0001"); assert_eq!(patch_list.patches[5].url, "http://patch-dl.ffxiv.com/game/ex1/6b936f08/D2023.07.26.0000.0001.patch"); + assert_eq!(patch_list.patches[5].size_on_disk, 5854598228); } #[test]