From bffbcb5729a2b4cb2ab924e5f0d9ddebe470eebc Mon Sep 17 00:00:00 2001 From: Alfie John Date: Tue, 3 Feb 2015 13:50:52 +0000 Subject: Deprecating i/u suffixes in libcoretest --- src/libcoretest/num/uint_macros.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libcoretest/num') diff --git a/src/libcoretest/num/uint_macros.rs b/src/libcoretest/num/uint_macros.rs index 04d8fb15cf5..5c6efc857f1 100644 --- a/src/libcoretest/num/uint_macros.rs +++ b/src/libcoretest/num/uint_macros.rs @@ -33,8 +33,8 @@ mod tests { assert!(0b1110 as $T == (0b1100 as $T).bitor(0b1010 as $T)); assert!(0b1000 as $T == (0b1100 as $T).bitand(0b1010 as $T)); assert!(0b0110 as $T == (0b1100 as $T).bitxor(0b1010 as $T)); - assert!(0b1110 as $T == (0b0111 as $T).shl(1u)); - assert!(0b0111 as $T == (0b1110 as $T).shr(1u)); + assert!(0b1110 as $T == (0b0111 as $T).shl(1)); + assert!(0b0111 as $T == (0b1110 as $T).shr(1)); assert!(MAX - (0b1011 as $T) == (0b1011 as $T).not()); } @@ -119,8 +119,8 @@ mod tests { #[test] fn test_unsigned_checked_div() { - assert!(10u.checked_div(2) == Some(5)); - assert!(5u.checked_div(0) == None); + assert!(10.checked_div(2) == Some(5)); + assert!(5.checked_div(0) == None); } } -- cgit 1.4.1-3-g733a5