File tree 5 files changed +10
-6
lines changed
5 files changed +10
-6
lines changed Original file line number Diff line number Diff line change
1
+ int_module ! ( i128 , i128 ) ;
Original file line number Diff line number Diff line change @@ -131,9 +131,9 @@ macro_rules! int_module {
131
131
assert_eq!( B . rotate_left( 0 ) , B ) ;
132
132
assert_eq!( C . rotate_left( 0 ) , C ) ;
133
133
// Rotating by a multiple of word size should also have no effect
134
- assert_eq!( A . rotate_left( 64 ) , A ) ;
135
- assert_eq!( B . rotate_left( 64 ) , B ) ;
136
- assert_eq!( C . rotate_left( 64 ) , C ) ;
134
+ assert_eq!( A . rotate_left( 128 ) , A ) ;
135
+ assert_eq!( B . rotate_left( 128 ) , B ) ;
136
+ assert_eq!( C . rotate_left( 128 ) , C ) ;
137
137
}
138
138
139
139
#[ test]
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ use core::str::FromStr;
11
11
#[ macro_use]
12
12
mod int_macros;
13
13
14
+ mod i128;
14
15
mod i16;
15
16
mod i32;
16
17
mod i64;
@@ -19,6 +20,7 @@ mod i8;
19
20
#[ macro_use]
20
21
mod uint_macros;
21
22
23
+ mod u128;
22
24
mod u16;
23
25
mod u32;
24
26
mod u64;
Original file line number Diff line number Diff line change
1
+ uint_module ! ( u128 , u128 ) ;
Original file line number Diff line number Diff line change @@ -96,9 +96,9 @@ macro_rules! uint_module {
96
96
assert_eq!( B . rotate_left( 0 ) , B ) ;
97
97
assert_eq!( C . rotate_left( 0 ) , C ) ;
98
98
// Rotating by a multiple of word size should also have no effect
99
- assert_eq!( A . rotate_left( 64 ) , A ) ;
100
- assert_eq!( B . rotate_left( 64 ) , B ) ;
101
- assert_eq!( C . rotate_left( 64 ) , C ) ;
99
+ assert_eq!( A . rotate_left( 128 ) , A ) ;
100
+ assert_eq!( B . rotate_left( 128 ) , B ) ;
101
+ assert_eq!( C . rotate_left( 128 ) , C ) ;
102
102
}
103
103
104
104
#[ test]
You can’t perform that action at this time.
0 commit comments