diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2012-02-03 17:39:39 -0800 |
|---|---|---|
| committer | Kevin Atkinson <kevina@cs.utah.edu> | 2012-02-03 20:54:18 -0700 |
| commit | 8fc624bc08df5cbb2a507231fe2c91cc56647ac0 (patch) | |
| tree | 51c0507ffde37aabd18b875e5f781571b9c8b582 /src/test | |
| parent | dbb13883f79cc4a1d232bd3fa97f0da0b58872bd (diff) | |
Fix various drift issues in the qq branch.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/pretty/record-trailing-comma.rs | 2 | ||||
| -rw-r--r-- | src/test/run-pass/enum-disr-val-pretty.rs | 4 | ||||
| -rw-r--r-- | src/test/run-pass/qquote.rs | 5 |
3 files changed, 7 insertions, 4 deletions
diff --git a/src/test/pretty/record-trailing-comma.rs b/src/test/pretty/record-trailing-comma.rs index a60d72988e6..d603c1d8e57 100644 --- a/src/test/pretty/record-trailing-comma.rs +++ b/src/test/pretty/record-trailing-comma.rs @@ -4,5 +4,5 @@ type thing = {x: int, y: int,}; fn main() { let sth = {x: 0, y: 1,}; let sth2 = {y: 9 with sth}; - assert (sth.x + sth2.y == 9); + assert sth.x + sth2.y == 9; } diff --git a/src/test/run-pass/enum-disr-val-pretty.rs b/src/test/run-pass/enum-disr-val-pretty.rs index afb63b7f406..b050b4d2b86 100644 --- a/src/test/run-pass/enum-disr-val-pretty.rs +++ b/src/test/run-pass/enum-disr-val-pretty.rs @@ -10,7 +10,7 @@ fn main() { } fn test_color(color: color, val: int, name: str) { - assert (color as int == val); - assert (color as float == val as float); + assert color as int == val; + assert color as float == val as float; } diff --git a/src/test/run-pass/qquote.rs b/src/test/run-pass/qquote.rs index ab1cd2d9286..f307d643dde 100644 --- a/src/test/run-pass/qquote.rs +++ b/src/test/run-pass/qquote.rs @@ -85,6 +85,9 @@ fn check_pp<T>(expr: T, f: fn(pprust::ps, T), expect: str) { pp::eof(pp.s); let str = mem_buffer_str(buf); stdout().write_line(str); - if expect != "" {assert str == expect;} + if expect != "" { + #error("expect: '%s', got: '%s'", expect, str); + assert str == expect; + } } |
