From 7b7d23cc3d53ae46442367a69966bf2cebccc515 Mon Sep 17 00:00:00 2001 From: Samuel Neves Date: Fri, 4 Jul 2014 07:15:25 +0100 Subject: Change Shl for Int to Shl --- src/libcoretest/num/int_macros.rs | 4 ++-- src/libcoretest/num/uint_macros.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libcoretest') diff --git a/src/libcoretest/num/int_macros.rs b/src/libcoretest/num/int_macros.rs index d078b514085..a2a9a05e868 100644 --- a/src/libcoretest/num/int_macros.rs +++ b/src/libcoretest/num/int_macros.rs @@ -74,8 +74,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(&(1 as $T))); - assert!(0b0111 as $T == (0b1110 as $T).shr(&(1 as $T))); + assert!(0b1110 as $T == (0b0111 as $T).shl(&1)); + assert!(0b0111 as $T == (0b1110 as $T).shr(&1)); assert!(-(0b11 as $T) - (1 as $T) == (0b11 as $T).not()); } diff --git a/src/libcoretest/num/uint_macros.rs b/src/libcoretest/num/uint_macros.rs index aefaa90520e..a823e8d3f57 100644 --- a/src/libcoretest/num/uint_macros.rs +++ b/src/libcoretest/num/uint_macros.rs @@ -34,8 +34,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(&(1 as $T))); - assert!(0b0111 as $T == (0b1110 as $T).shr(&(1 as $T))); + assert!(0b1110 as $T == (0b0111 as $T).shl(&1u)); + assert!(0b0111 as $T == (0b1110 as $T).shr(&1u)); assert!(MAX - (0b1011 as $T) == (0b1011 as $T).not()); } -- cgit 1.4.1-3-g733a5