cargo fmt
This commit is contained in:
parent
91dce31265
commit
6a27ba735c
@ -1,5 +1,5 @@
|
|||||||
use std::process::Command;
|
|
||||||
use assert_cmd::prelude::*;
|
use assert_cmd::prelude::*;
|
||||||
|
use std::process::Command;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn runs_without_arguments() {
|
fn runs_without_arguments() {
|
||||||
@ -9,7 +9,8 @@ fn runs_without_arguments() {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn fails_when_in_wrong_dir() {
|
fn fails_when_in_wrong_dir() {
|
||||||
Command::cargo_bin("rustlings").unwrap()
|
Command::cargo_bin("rustlings")
|
||||||
|
.unwrap()
|
||||||
.current_dir("tests/")
|
.current_dir("tests/")
|
||||||
.assert()
|
.assert()
|
||||||
.failure();
|
.failure();
|
||||||
@ -17,7 +18,8 @@ fn fails_when_in_wrong_dir() {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn verify_all_success() {
|
fn verify_all_success() {
|
||||||
Command::cargo_bin("rustlings").unwrap()
|
Command::cargo_bin("rustlings")
|
||||||
|
.unwrap()
|
||||||
.arg("v")
|
.arg("v")
|
||||||
.current_dir("tests/fixture/")
|
.current_dir("tests/fixture/")
|
||||||
.assert()
|
.assert()
|
||||||
@ -26,7 +28,8 @@ fn verify_all_success() {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn run_single_compile_success() {
|
fn run_single_compile_success() {
|
||||||
Command::cargo_bin("rustlings").unwrap()
|
Command::cargo_bin("rustlings")
|
||||||
|
.unwrap()
|
||||||
.args(&["r", "compSuccess.rs"])
|
.args(&["r", "compSuccess.rs"])
|
||||||
.current_dir("tests/fixture/")
|
.current_dir("tests/fixture/")
|
||||||
.assert()
|
.assert()
|
||||||
@ -35,7 +38,8 @@ fn run_single_compile_success() {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn run_single_test_success() {
|
fn run_single_test_success() {
|
||||||
Command::cargo_bin("rustlings").unwrap()
|
Command::cargo_bin("rustlings")
|
||||||
|
.unwrap()
|
||||||
.args(&["r", "testSuccess.rs"])
|
.args(&["r", "testSuccess.rs"])
|
||||||
.current_dir("tests/fixture/")
|
.current_dir("tests/fixture/")
|
||||||
.assert()
|
.assert()
|
||||||
@ -44,7 +48,8 @@ fn run_single_test_success() {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn run_single_test_no_filename() {
|
fn run_single_test_no_filename() {
|
||||||
Command::cargo_bin("rustlings").unwrap()
|
Command::cargo_bin("rustlings")
|
||||||
|
.unwrap()
|
||||||
.arg("r")
|
.arg("r")
|
||||||
.current_dir("tests/fixture/")
|
.current_dir("tests/fixture/")
|
||||||
.assert()
|
.assert()
|
||||||
@ -53,7 +58,8 @@ fn run_single_test_no_filename() {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn run_single_test_no_exercise() {
|
fn run_single_test_no_exercise() {
|
||||||
Command::cargo_bin("rustlings").unwrap()
|
Command::cargo_bin("rustlings")
|
||||||
|
.unwrap()
|
||||||
.args(&["r", "compNoExercise.rs"])
|
.args(&["r", "compNoExercise.rs"])
|
||||||
.current_dir("tests/fixture/")
|
.current_dir("tests/fixture/")
|
||||||
.assert()
|
.assert()
|
||||||
|
Loading…
Reference in New Issue
Block a user