From db810ade9a0a45bf07a59b248343593193a865d9 Mon Sep 17 00:00:00 2001 From: Berkus Decker Date: Sun, 22 Nov 2020 15:08:46 +0200 Subject: [PATCH] [del] tock-registers: Add u128 Field test --- crates/tock-registers/src/registers.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/tock-registers/src/registers.rs b/crates/tock-registers/src/registers.rs index f62013a..f6c9e8f 100644 --- a/crates/tock-registers/src/registers.rs +++ b/crates/tock-registers/src/registers.rs @@ -691,6 +691,9 @@ mod tests { let field64 = Field::::new(0x12345678_9abcdef0, 1); assert_eq!(field64.mask, 0x12345678_9abcdef0_u64); assert_eq!(field64.shift, 1); + let field128 = Field::::new(0x12345678_9abcdef0_0fedcba9_87654321, 1); + assert_eq!(field128.mask, 0x12345678_9abcdef0_0fedcba9_87654321_u128); + assert_eq!(field128.shift, 1); } #[test]