diff options
| author | srinivasreddy <thatiparthysreenivas@gmail.com> | 2016-03-11 08:36:36 +0530 |
|---|---|---|
| committer | srinivasreddy <thatiparthysreenivas@gmail.com> | 2016-03-11 08:42:56 +0530 |
| commit | e1cc628549020207e07ce8271478f7baff602757 (patch) | |
| tree | 98ef380816a66d8709c7f18e1ae2f5dea541e81f /src/libcoretest/num | |
| parent | 4b87655e69a6d07f03b104caaec80a042ad40bf1 (diff) | |
| download | rust-e1cc628549020207e07ce8271478f7baff602757.tar.gz rust-e1cc628549020207e07ce8271478f7baff602757.zip | |
cleanup int suffixes in libcoretest
Diffstat (limited to 'src/libcoretest/num')
| -rw-r--r-- | src/libcoretest/num/int_macros.rs | 8 | ||||
| -rw-r--r-- | src/libcoretest/num/mod.rs | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/libcoretest/num/int_macros.rs b/src/libcoretest/num/int_macros.rs index afcf836ad10..8d791283ab8 100644 --- a/src/libcoretest/num/int_macros.rs +++ b/src/libcoretest/num/int_macros.rs @@ -208,11 +208,11 @@ mod tests { fn test_pow() { let mut r = 2 as $T; - assert_eq!(r.pow(2u32), 4 as $T); - assert_eq!(r.pow(0u32), 1 as $T); + assert_eq!(r.pow(2), 4 as $T); + assert_eq!(r.pow(0), 1 as $T); r = -2 as $T; - assert_eq!(r.pow(2u32), 4 as $T); - assert_eq!(r.pow(3u32), -8 as $T); + assert_eq!(r.pow(2), 4 as $T); + assert_eq!(r.pow(3), -8 as $T); } } diff --git a/src/libcoretest/num/mod.rs b/src/libcoretest/num/mod.rs index fba56db32bb..11c1bd667fb 100644 --- a/src/libcoretest/num/mod.rs +++ b/src/libcoretest/num/mod.rs @@ -99,8 +99,8 @@ mod tests { #[test] fn test_leading_plus() { - assert_eq!("+127".parse::<u8>().ok(), Some(127u8)); - assert_eq!("+9223372036854775807".parse::<i64>().ok(), Some(9223372036854775807i64)); + assert_eq!("+127".parse::<u8>().ok(), Some(127)); + assert_eq!("+9223372036854775807".parse::<i64>().ok(), Some(9223372036854775807)); } #[test] |
