From b6dfcc3221338749fb26d90271c8ed8f69dc114b Mon Sep 17 00:00:00 2001 From: Youjie Zheng Date: Mon, 11 Nov 2024 19:03:58 +0800 Subject: [PATCH] [fix] Fix the unittest --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index cd2ab3f..4bd2ec0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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)); } }