Skip to content

Commit 3bc19fc

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 162268 b: refs/heads/auto c: 98ae637 h: refs/heads/master v: v3
1 parent 38a8e91 commit 3bc19fc

File tree

11 files changed

+37
-37
lines changed

11 files changed

+37
-37
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: 976660f3f73a2dba68695fce1b697f7694af0a23
13+
refs/heads/auto: 98ae63753bc6c2efe1c8ed50d45e665db686cde7
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/libcollections/bit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2660,7 +2660,7 @@ mod tests {
26602660
s.insert(10);
26612661
s.insert(50);
26622662
s.insert(2);
2663-
assert_eq!("{1, 2, 10, 50}".to_string(), s.to_string());
2663+
assert_eq!("{1, 2, 10, 50}", s.to_string());
26642664
}
26652665

26662666
fn rng() -> rand::IsaacRng {

branches/auto/src/libcollections/btree/set.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ mod test {
580580

581581
let set_str = format!("{}", set);
582582

583-
assert!(set_str == "{1, 2}".to_string());
584-
assert_eq!(format!("{}", empty), "{}".to_string());
583+
assert!(set_str == "{1, 2}");
584+
assert_eq!(format!("{}", empty), "{}");
585585
}
586586
}

branches/auto/src/libcollections/slice.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1838,20 +1838,20 @@ mod tests {
18381838
})
18391839
)
18401840
let empty: Vec<int> = vec![];
1841-
test_show_vec!(empty, "[]".to_string());
1842-
test_show_vec!(vec![1i], "[1]".to_string());
1843-
test_show_vec!(vec![1i, 2, 3], "[1, 2, 3]".to_string());
1841+
test_show_vec!(empty, "[]");
1842+
test_show_vec!(vec![1i], "[1]");
1843+
test_show_vec!(vec![1i, 2, 3], "[1, 2, 3]");
18441844
test_show_vec!(vec![vec![], vec![1u], vec![1u, 1u]],
1845-
"[[], [1], [1, 1]]".to_string());
1845+
"[[], [1], [1, 1]]");
18461846

18471847
let empty_mut: &mut [int] = &mut[];
1848-
test_show_vec!(empty_mut, "[]".to_string());
1848+
test_show_vec!(empty_mut, "[]");
18491849
let v: &mut[int] = &mut[1];
1850-
test_show_vec!(v, "[1]".to_string());
1850+
test_show_vec!(v, "[1]");
18511851
let v: &mut[int] = &mut[1, 2, 3];
1852-
test_show_vec!(v, "[1, 2, 3]".to_string());
1852+
test_show_vec!(v, "[1, 2, 3]");
18531853
let v: &mut [&mut[uint]] = &mut[&mut[], &mut[1u], &mut[1u, 1u]];
1854-
test_show_vec!(v, "[[], [1], [1, 1]]".to_string());
1854+
test_show_vec!(v, "[[], [1], [1, 1]]");
18551855
}
18561856

18571857
#[test]

branches/auto/src/libcollections/str.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1831,7 +1831,7 @@ mod tests {
18311831
fn test_nfd_chars() {
18321832
macro_rules! t {
18331833
($input: expr, $expected: expr) => {
1834-
assert_eq!($input.nfd_chars().collect::<String>(), $expected.into_string());
1834+
assert_eq!($input.nfd_chars().collect::<String>(), $expected);
18351835
}
18361836
}
18371837
t!("abc", "abc");
@@ -1850,7 +1850,7 @@ mod tests {
18501850
fn test_nfkd_chars() {
18511851
macro_rules! t {
18521852
($input: expr, $expected: expr) => {
1853-
assert_eq!($input.nfkd_chars().collect::<String>(), $expected.into_string());
1853+
assert_eq!($input.nfkd_chars().collect::<String>(), $expected);
18541854
}
18551855
}
18561856
t!("abc", "abc");
@@ -1869,7 +1869,7 @@ mod tests {
18691869
fn test_nfc_chars() {
18701870
macro_rules! t {
18711871
($input: expr, $expected: expr) => {
1872-
assert_eq!($input.nfc_chars().collect::<String>(), $expected.into_string());
1872+
assert_eq!($input.nfc_chars().collect::<String>(), $expected);
18731873
}
18741874
}
18751875
t!("abc", "abc");
@@ -1889,7 +1889,7 @@ mod tests {
18891889
fn test_nfkc_chars() {
18901890
macro_rules! t {
18911891
($input: expr, $expected: expr) => {
1892-
assert_eq!($input.nfkc_chars().collect::<String>(), $expected.into_string());
1892+
assert_eq!($input.nfkc_chars().collect::<String>(), $expected);
18931893
}
18941894
}
18951895
t!("abc", "abc");

branches/auto/src/libcollections/string.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,24 +1287,24 @@ mod tests {
12871287

12881288
#[test]
12891289
fn test_simple_types() {
1290-
assert_eq!(1i.to_string(), "1".to_string());
1291-
assert_eq!((-1i).to_string(), "-1".to_string());
1292-
assert_eq!(200u.to_string(), "200".to_string());
1293-
assert_eq!(2u8.to_string(), "2".to_string());
1294-
assert_eq!(true.to_string(), "true".to_string());
1295-
assert_eq!(false.to_string(), "false".to_string());
1296-
assert_eq!(().to_string(), "()".to_string());
1297-
assert_eq!(("hi".to_string()).to_string(), "hi".to_string());
1290+
assert_eq!(1i.to_string(), "1");
1291+
assert_eq!((-1i).to_string(), "-1");
1292+
assert_eq!(200u.to_string(), "200");
1293+
assert_eq!(2u8.to_string(), "2");
1294+
assert_eq!(true.to_string(), "true");
1295+
assert_eq!(false.to_string(), "false");
1296+
assert_eq!(().to_string(), "()");
1297+
assert_eq!(("hi".to_string()).to_string(), "hi");
12981298
}
12991299

13001300
#[test]
13011301
fn test_vectors() {
13021302
let x: Vec<int> = vec![];
1303-
assert_eq!(x.to_string(), "[]".to_string());
1304-
assert_eq!((vec![1i]).to_string(), "[1]".to_string());
1305-
assert_eq!((vec![1i, 2, 3]).to_string(), "[1, 2, 3]".to_string());
1303+
assert_eq!(x.to_string(), "[]");
1304+
assert_eq!((vec![1i]).to_string(), "[1]");
1305+
assert_eq!((vec![1i, 2, 3]).to_string(), "[1, 2, 3]");
13061306
assert!((vec![vec![], vec![1i], vec![1i, 1]]).to_string() ==
1307-
"[[], [1], [1, 1]]".to_string());
1307+
"[[], [1], [1, 1]]");
13081308
}
13091309

13101310
#[bench]

branches/auto/src/libcollections/tree/map.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1735,8 +1735,8 @@ mod test_treemap {
17351735

17361736
let map_str = format!("{}", map);
17371737

1738-
assert!(map_str == "{1: 2, 3: 4}".to_string());
1739-
assert_eq!(format!("{}", empty), "{}".to_string());
1738+
assert!(map_str == "{1: 2, 3: 4}");
1739+
assert_eq!(format!("{}", empty), "{}");
17401740
}
17411741

17421742
#[test]

branches/auto/src/libcollections/tree/set.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ mod test {
979979

980980
let set_str = format!("{}", set);
981981

982-
assert!(set_str == "{1, 2}".to_string());
983-
assert_eq!(format!("{}", empty), "{}".to_string());
982+
assert!(set_str == "{1, 2}");
983+
assert_eq!(format!("{}", empty), "{}");
984984
}
985985
}

branches/auto/src/libcollections/trie/map.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1605,8 +1605,8 @@ mod test {
16051605

16061606
let map_str = format!("{}", map);
16071607

1608-
assert!(map_str == "{1: a, 2: b}".to_string());
1609-
assert_eq!(format!("{}", empty), "{}".to_string());
1608+
assert!(map_str == "{1: a, 2: b}");
1609+
assert_eq!(format!("{}", empty), "{}");
16101610
}
16111611

16121612
#[test]

branches/auto/src/libcollections/trie/set.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -696,8 +696,8 @@ mod test {
696696

697697
let set_str = format!("{}", set);
698698

699-
assert!(set_str == "{1, 2}".to_string());
700-
assert_eq!(format!("{}", empty), "{}".to_string());
699+
assert!(set_str == "{1, 2}");
700+
assert_eq!(format!("{}", empty), "{}");
701701
}
702702

703703
#[test]

branches/auto/src/libcollections/vec_map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ mod test_map {
871871

872872
let map_str = map.to_string();
873873
assert!(map_str == "{1: 2, 3: 4}" || map_str == "{3: 4, 1: 2}");
874-
assert_eq!(format!("{}", empty), "{}".to_string());
874+
assert_eq!(format!("{}", empty), "{}");
875875
}
876876

877877
#[test]

0 commit comments

Comments
 (0)