Remove vec-to_str.rs, merge the remaining test in with vec
This commit is contained in:
parent
3e29fdb0fb
commit
2278c7255a
2 changed files with 3 additions and 7 deletions
|
@ -92,6 +92,9 @@ fn test_debug_fmt() {
|
||||||
|
|
||||||
let vec2 = vec![0, 1];
|
let vec2 = vec![0, 1];
|
||||||
assert_eq!("[0, 1]", format!("{:?}", vec2));
|
assert_eq!("[0, 1]", format!("{:?}", vec2));
|
||||||
|
|
||||||
|
let slice: &[isize] = &[4, 5];
|
||||||
|
assert_eq!("[4, 5]", format!("{:?}", slice));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
// run-pass
|
|
||||||
|
|
||||||
|
|
||||||
pub fn main() {
|
|
||||||
let bar: &[isize] = &[4, 5];
|
|
||||||
assert_eq!(format!("{:?}", bar), "[4, 5]");
|
|
||||||
}
|
|
Loading…
Reference in a new issue