fix 4 repr tests due to differences in spacing. r=burningtree.

This commit is contained in:
Graydon Hoare 2012-12-18 11:12:35 -08:00
parent 0f5bd1e506
commit 55138c739d
4 changed files with 5 additions and 5 deletions

View File

@ -12,5 +12,5 @@ fn main() {
let arr = [1,2,3];
let struc = {a: 13u8, b: arr, c: 42};
let s = sys::log_str(&struc);
assert(s == ~"{ a: 13, b: [ 1, 2, 3 ], c: 42 }");
assert(s == ~"{a: 13, b: [1, 2, 3], c: 42}");
}

View File

@ -10,8 +10,8 @@
fn main() {
let act = sys::log_str(&~[1, 2, 3]);
assert ~"~[ 1, 2, 3 ]" == act;
assert ~"~[1, 2, 3]" == act;
let act = fmt!("%?/%6?", ~[1, 2, 3], ~"hi");
assert act == ~"~[ 1, 2, 3 ]/ ~\"hi\"";
assert act == ~"~[1, 2, 3]/ ~\"hi\"";
}

View File

@ -62,5 +62,5 @@ fn main() {
// because `inner`s alignment was 4.
assert sys::size_of::<outer>() == m::size();
assert y == ~"{ c8: 22, t: { c64: 44 } }";
assert y == ~"{c8: 22, t: {c64: 44}}";
}

View File

@ -79,5 +79,5 @@ fn main() {
// because `inner`s alignment was 4.
assert sys::size_of::<outer>() == m::m::size();
assert y == ~"{ c8: 22, t: { c64: 44 } }";
assert y == ~"{c8: 22, t: {c64: 44}}";
}