Skip to content

Commit 084ea34

Browse files
committed
Add basic u128 Field test
1 parent 14c43fa commit 084ea34

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libraries/tock-register-interface/src/registers.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,9 @@ mod tests {
694694
let field64 = Field::<u64, ()>::new(0x12345678_9abcdef0, 1);
695695
assert_eq!(field64.mask, 0x12345678_9abcdef0_u64);
696696
assert_eq!(field64.shift, 1);
697+
let field128 = Field::<u128, ()>::new(0x12345678_9abcdef0_0fedcba9_87654321, 1);
698+
assert_eq!(field128.mask, 0x12345678_9abcdef0_0fedcba9_87654321_u128);
699+
assert_eq!(field128.shift, 1);
697700
}
698701

699702
#[test]

0 commit comments

Comments
 (0)