Skip to content

Commit

Permalink
Apply order suggestion.
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottslaughter committed Oct 20, 2023
1 parent 3baa164 commit ad86d9e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/merge_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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");
}

Expand Down Expand Up @@ -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,
Expand All @@ -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");
}
}

0 comments on commit ad86d9e

Please sign in to comment.