Skip to content

Commit

Permalink
Fix test utils
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacWoods committed Mar 5, 2024
1 parent abfd649 commit 7db4539
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions aml/src/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,8 @@ pub(crate) fn crudely_cmp_values(a: &AmlValue, b: &AmlValue) -> bool {
AmlValue::String(ref b) => a == b,
_ => false,
},
AmlValue::OpRegion { region, offset, length, parent_device } => match b {
AmlValue::OpRegion {
region: b_region,
offset: b_offset,
length: b_length,
parent_device: b_parent_device,
} => {
region == b_region && offset == b_offset && length == b_length && parent_device == b_parent_device
}
AmlValue::OpRegion(_) => match b {
AmlValue::OpRegion(_) => panic!("Can't compare two op-regions"),
_ => false,
},
AmlValue::Field { region, flags, offset, length } => match b {
Expand Down

0 comments on commit 7db4539

Please sign in to comment.