From ad86d9e76e6f39cf777762c5d9a177e7210d82f1 Mon Sep 17 00:00:00 2001 From: Elliott Slaughter Date: Fri, 20 Oct 2023 16:42:13 -0700 Subject: [PATCH] Apply order suggestion. --- src/merge_data.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/merge_data.rs b/src/merge_data.rs index d9af224..ded23bc 100644 --- a/src/merge_data.rs +++ b/src/merge_data.rs @@ -345,6 +345,7 @@ mod tests { else { panic!("unexpected variant result in slot 0"); }; + assert_eq!(slot0_short_name, "S1"); let EntryInfo::Slot { short_name: slot1_short_name, @@ -353,8 +354,6 @@ mod tests { else { panic!("unexpected variant result in slot 1"); }; - - assert_eq!(slot0_short_name, "S1"); assert_eq!(slot1_short_name, "S2"); } @@ -430,6 +429,7 @@ mod tests { else { panic!("unexpected variant result in slot 0"); }; + assert_eq!(slot0_short_name, "S1"); let EntryInfo::Slot { short_name: slot1_short_name, @@ -438,17 +438,15 @@ mod tests { else { panic!("unexpected variant result in slot 1"); }; + assert_eq!(slot1_short_name, "S2"); let EntryInfo::Slot { short_name: slot2_short_name, .. } = &slots[2] else { - panic!("unexpected variant result in slot 1"); + panic!("unexpected variant result in slot 2"); }; - - assert_eq!(slot0_short_name, "S1"); - assert_eq!(slot1_short_name, "S2"); assert_eq!(slot2_short_name, "S3"); } }