Skip to content

Commit

Permalink
[fix] Fix the unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
Azure-stars committed Nov 11, 2024
1 parent 660cc4f commit b6dfcc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,11 @@ mod tests {
assert_eq!(translate_irq(0, InterruptType::PPI), Some(16));
assert_eq!(translate_irq(0, InterruptType::SPI), Some(32));
assert_eq!(translate_irq(16, InterruptType::SGI), None);
assert_eq!(translate_irq(16, InterruptType::PPI), Some(32));
assert_eq!(translate_irq(16, InterruptType::PPI), None);
assert_eq!(translate_irq(16, InterruptType::SPI), Some(48));
assert_eq!(translate_irq(32, InterruptType::SGI), None);
assert_eq!(translate_irq(32, InterruptType::PPI), None);
assert_eq!(translate_irq(32, InterruptType::SPI), Some(32));
assert_eq!(translate_irq(32, InterruptType::SPI), Some(64));
}
}

Expand Down

0 comments on commit b6dfcc3

Please sign in to comment.