From 6a27ba735c5b8378297b80a265a4de8b91a950da Mon Sep 17 00:00:00 2001 From: lyn <819880950@qq.com> Date: Wed, 20 Mar 2019 21:25:27 +0100 Subject: [PATCH] cargo fmt --- tests/integration_tests.rs | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index bd5d92e..01c4744 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -1,5 +1,5 @@ -use std::process::Command; use assert_cmd::prelude::*; +use std::process::Command; #[test] fn runs_without_arguments() { @@ -9,7 +9,8 @@ fn runs_without_arguments() { #[test] fn fails_when_in_wrong_dir() { - Command::cargo_bin("rustlings").unwrap() + Command::cargo_bin("rustlings") + .unwrap() .current_dir("tests/") .assert() .failure(); @@ -17,7 +18,8 @@ fn fails_when_in_wrong_dir() { #[test] fn verify_all_success() { - Command::cargo_bin("rustlings").unwrap() + Command::cargo_bin("rustlings") + .unwrap() .arg("v") .current_dir("tests/fixture/") .assert() @@ -26,7 +28,8 @@ fn verify_all_success() { #[test] fn run_single_compile_success() { - Command::cargo_bin("rustlings").unwrap() + Command::cargo_bin("rustlings") + .unwrap() .args(&["r", "compSuccess.rs"]) .current_dir("tests/fixture/") .assert() @@ -35,7 +38,8 @@ fn run_single_compile_success() { #[test] fn run_single_test_success() { - Command::cargo_bin("rustlings").unwrap() + Command::cargo_bin("rustlings") + .unwrap() .args(&["r", "testSuccess.rs"]) .current_dir("tests/fixture/") .assert() @@ -44,7 +48,8 @@ fn run_single_test_success() { #[test] fn run_single_test_no_filename() { - Command::cargo_bin("rustlings").unwrap() + Command::cargo_bin("rustlings") + .unwrap() .arg("r") .current_dir("tests/fixture/") .assert() @@ -53,7 +58,8 @@ fn run_single_test_no_filename() { #[test] fn run_single_test_no_exercise() { - Command::cargo_bin("rustlings").unwrap() + Command::cargo_bin("rustlings") + .unwrap() .args(&["r", "compNoExercise.rs"]) .current_dir("tests/fixture/") .assert()