Skip to content

Commit 2afba49

Browse files
committed
---
yaml --- r: 28507 b: refs/heads/try c: 43924f1 h: refs/heads/master i: 28505: ff040f5 28503: 1274dcf v: v3
1 parent 133ad4c commit 2afba49

File tree

8 files changed

+16
-19
lines changed

8 files changed

+16
-19
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5-
refs/heads/try: a544b83788cad14f61e9d39262356a9d9bd5bdf0
5+
refs/heads/try: 43924f1f9ffea44390e178a97bef283cb7efbee1
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df

branches/try/src/test/run-pass/fixed_length_vec_glue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ fn main() {
22
let arr = [1,2,3]/3;
33
let struc = {a: 13u8, b: arr, c: 42};
44
let s = sys::log_str(struc);
5-
assert(s == ~"(13, [1, 2, 3]/3, 42)");
5+
assert(s == ~"{ a: 13, b: [ 1, 2, 3 ], c: 42 }");
66
}

branches/try/src/test/run-pass/log-knows-the-names-of-variants-in-std.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ fn check_log<T>(exp: ~str, v: T) {
1313
fn main() {
1414
let x = list::from_vec(~[a(22u), b(~"hi")]);
1515
let exp = ~"@Cons(a(22), @Cons(b(~\"hi\"), @Nil))";
16-
assert fmt!("%?", x) == exp;
16+
let act = fmt!("%?", x);
17+
assert act == exp;
1718
check_log(exp, x);
1819
}
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
fn main() {
2-
assert ~"~[1, 2, 3]" == sys::log_str(~[1, 2, 3]);
3-
assert fmt!("%?/%6?", ~[1, 2, 3], ~"hi") == ~"~[1, 2, 3]/ ~\"hi\"";
2+
let act = sys::log_str(~[1, 2, 3]);
3+
assert ~"~[ 1, 2, 3 ]" == act;
4+
5+
let act = fmt!("%?/%6?", ~[1, 2, 3], ~"hi");
6+
assert act == ~"~[ 1, 2, 3 ]/ ~\"hi\"";
47
}

branches/try/src/test/run-pass/rec-align-u32.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ fn main() {
5050
// because `inner`s alignment was 4.
5151
assert sys::size_of::<outer>() == m::size();
5252

53-
assert y == ~"(22, (44))";
53+
assert y == ~"{ c8: 22, t: { c64: 44 } }";
5454
}

branches/try/src/test/run-pass/rec-align-u64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,5 @@ fn main() {
6464
// because `inner`s alignment was 4.
6565
assert sys::size_of::<outer>() == m::m::size();
6666

67-
assert y == ~"(22, (44))";
67+
assert y == ~"{ c8: 22, t: { c64: 44 } }";
6868
}

branches/try/src/test/run-pass/tag-auto-disr-val-shape.rs

Lines changed: 0 additions & 9 deletions
This file was deleted.

branches/try/src/test/run-pass/tag-disr-val-shape.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ enum color {
77
}
88

99
fn main() {
10-
assert uint::to_str(red as uint, 10u) == fmt!("%?", red);
11-
assert uint::to_str(green as uint, 10u) == fmt!("%?", green);
12-
assert uint::to_str(white as uint, 10u) == fmt!("%?", white);
10+
let act = fmt!("%?", red);
11+
io::println(act);
12+
assert ~"red" == act;
13+
assert ~"green" == fmt!("%?", green);
14+
assert ~"white" == fmt!("%?", white);
1315
}
1416

0 commit comments

Comments
 (0)