From e4c15b4e1ccdf7739bb3b6b855533036ea110e9d Mon Sep 17 00:00:00 2001 From: Nick Cameron Date: Sat, 26 Sep 2015 18:35:17 +1200 Subject: [PATCH] Fix tests --- tests/source/struct_lits.rs | 6 +++--- tests/source/struct_lits_visual.rs | 4 ++-- tests/target/struct_lits.rs | 21 ++++++++++++++------- tests/target/struct_lits_visual.rs | 4 ++-- 4 files changed, 21 insertions(+), 14 deletions(-) diff --git a/tests/source/struct_lits.rs b/tests/source/struct_lits.rs index bb82eefb7f4..aecbc285fc6 100644 --- a/tests/source/struct_lits.rs +++ b/tests/source/struct_lits.rs @@ -8,9 +8,9 @@ fn main() { Foo { a: foo() /* comment*/, /* comment*/ b: bar(), ..something }; - Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo { a: foo(), b: bar(), }; + Fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo { a: f(), b: b(), }; - Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo { a: foo(), b: bar(), }; + Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo { a: f(), b: b(), }; Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo { // Comment @@ -20,7 +20,7 @@ fn main() { }; Foo { a:Bar, - b:foo() }; + b:f() }; Quux { x: if cond { bar(); }, y: baz() }; diff --git a/tests/source/struct_lits_visual.rs b/tests/source/struct_lits_visual.rs index 180a1229faa..6b78df7e0f3 100644 --- a/tests/source/struct_lits_visual.rs +++ b/tests/source/struct_lits_visual.rs @@ -10,7 +10,7 @@ fn main() { Foo { a: foo() /* comment*/, /* comment*/ b: bar(), ..something }; - Fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo { a: foo(), b: bar(), }; + Fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo { a: f(), b: b(), }; Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo { // Comment @@ -20,7 +20,7 @@ fn main() { }; Foo { a:Bar, - b:foo() }; + b:f() }; Quux { x: if cond { bar(); }, y: baz() }; diff --git a/tests/target/struct_lits.rs b/tests/target/struct_lits.rs index 4f8bc055969..66fb4925042 100644 --- a/tests/target/struct_lits.rs +++ b/tests/target/struct_lits.rs @@ -13,11 +13,11 @@ fn main() { ..something }; - Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo { a: foo(), b: bar() }; + Fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo { a: f(), b: b() }; - Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo { - a: foo(), - b: bar(), + Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo { + a: f(), + b: b(), }; Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo { @@ -27,7 +27,7 @@ fn main() { b: bar(), /* Comment */ }; - Foo { a: Bar, b: foo() }; + Foo { a: Bar, b: f() }; Quux { x: if cond { @@ -65,7 +65,10 @@ fn main() { fn matcher() { TagTerminatedByteMatcher { - matcher: ByteMatcher { pattern: b"