From c1d095de18f28d22fac59a2a8f2a36b2bb3d03cf Mon Sep 17 00:00:00 2001 From: Aleksey Kuznetsov Date: Sat, 3 Jun 2017 16:20:41 +0500 Subject: [PATCH] Run rustfmt on lib/filecheck/tests/basic.rs --- lib/filecheck/tests/basic.rs | 65 +++++++++++++++++++++++++----------- 1 file changed, 46 insertions(+), 19 deletions(-) diff --git a/lib/filecheck/tests/basic.rs b/lib/filecheck/tests/basic.rs index 595158192c..15e74788d7 100644 --- a/lib/filecheck/tests/basic.rs +++ b/lib/filecheck/tests/basic.rs @@ -28,7 +28,10 @@ fn no_directives() { #[test] fn no_matches() { - let c = CheckerBuilder::new().text("regex: FOO=bar").unwrap().finish(); + let c = CheckerBuilder::new() + .text("regex: FOO=bar") + .unwrap() + .finish(); assert!(!c.is_empty()); // An empty checker matches anything. @@ -260,14 +263,22 @@ fn unordered() { .unwrap() .finish(); - assert_eq!(c.check("one two three four", NO_VARIABLES).map_err(e2s), Ok(true)); - assert_eq!(c.check("one three two four", NO_VARIABLES).map_err(e2s), Ok(true)); + assert_eq!(c.check("one two three four", NO_VARIABLES).map_err(e2s), + Ok(true)); + assert_eq!(c.check("one three two four", NO_VARIABLES).map_err(e2s), + Ok(true)); - assert_eq!(c.check("one two four three four", NO_VARIABLES).map_err(e2s), Ok(true)); - assert_eq!(c.check("one three four two four", NO_VARIABLES).map_err(e2s), Ok(true)); + assert_eq!(c.check("one two four three four", NO_VARIABLES) + .map_err(e2s), + Ok(true)); + assert_eq!(c.check("one three four two four", NO_VARIABLES) + .map_err(e2s), + Ok(true)); - assert_eq!(c.check("one two four three", NO_VARIABLES).map_err(e2s), Ok(false)); - assert_eq!(c.check("one three four two", NO_VARIABLES).map_err(e2s), Ok(false)); + assert_eq!(c.check("one two four three", NO_VARIABLES).map_err(e2s), + Ok(false)); + assert_eq!(c.check("one three four two", NO_VARIABLES).map_err(e2s), + Ok(false)); } #[test] @@ -281,14 +292,22 @@ fn leading_unordered() { .unwrap() .finish(); - assert_eq!(c.check("one two three four", NO_VARIABLES).map_err(e2s), Ok(true)); - assert_eq!(c.check("one three two four", NO_VARIABLES).map_err(e2s), Ok(true)); + assert_eq!(c.check("one two three four", NO_VARIABLES).map_err(e2s), + Ok(true)); + assert_eq!(c.check("one three two four", NO_VARIABLES).map_err(e2s), + Ok(true)); - assert_eq!(c.check("one two four three four", NO_VARIABLES).map_err(e2s), Ok(true)); - assert_eq!(c.check("one three four two four", NO_VARIABLES).map_err(e2s), Ok(true)); + assert_eq!(c.check("one two four three four", NO_VARIABLES) + .map_err(e2s), + Ok(true)); + assert_eq!(c.check("one three four two four", NO_VARIABLES) + .map_err(e2s), + Ok(true)); - assert_eq!(c.check("one two four three", NO_VARIABLES).map_err(e2s), Ok(false)); - assert_eq!(c.check("one three four two", NO_VARIABLES).map_err(e2s), Ok(false)); + assert_eq!(c.check("one two four three", NO_VARIABLES).map_err(e2s), + Ok(false)); + assert_eq!(c.check("one three four two", NO_VARIABLES).map_err(e2s), + Ok(false)); } #[test] @@ -302,12 +321,20 @@ fn trailing_unordered() { .unwrap() .finish(); - assert_eq!(c.check("one two three four", NO_VARIABLES).map_err(e2s), Ok(true)); - assert_eq!(c.check("one three two four", NO_VARIABLES).map_err(e2s), Ok(true)); + assert_eq!(c.check("one two three four", NO_VARIABLES).map_err(e2s), + Ok(true)); + assert_eq!(c.check("one three two four", NO_VARIABLES).map_err(e2s), + Ok(true)); - assert_eq!(c.check("one two four three four", NO_VARIABLES).map_err(e2s), Ok(true)); - assert_eq!(c.check("one three four two four", NO_VARIABLES).map_err(e2s), Ok(true)); + assert_eq!(c.check("one two four three four", NO_VARIABLES) + .map_err(e2s), + Ok(true)); + assert_eq!(c.check("one three four two four", NO_VARIABLES) + .map_err(e2s), + Ok(true)); - assert_eq!(c.check("one two four three", NO_VARIABLES).map_err(e2s), Ok(true)); - assert_eq!(c.check("one three four two", NO_VARIABLES).map_err(e2s), Ok(true)); + assert_eq!(c.check("one two four three", NO_VARIABLES).map_err(e2s), + Ok(true)); + assert_eq!(c.check("one three four two", NO_VARIABLES).map_err(e2s), + Ok(true)); }