]> git.lizzy.rs Git - rust.git/blobdiff - example/std_example.rs
Fix rotate_left and rotate_right with 128bit shift amount
[rust.git] / example / std_example.rs
index 015bbdfed4648ee106cb18d47f2e7217d7f30cd9..437b7726980bf02633868fc6f359ccf13cd64643 100644 (file)
@@ -84,6 +84,7 @@ fn main() {
     assert_eq!(houndred_i128 as f64, 100.0);
     assert_eq!(houndred_f32 as i128, 100);
     assert_eq!(houndred_f64 as i128, 100);
+    assert_eq!(1u128.rotate_left(2), 4);
 
     // Test signed 128bit comparing
     let max = usize::MAX as i128;