mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-22 05:52:23 -05:00
cargo fmt
This commit is contained in:
parent
91dce31265
commit
6a27ba735c
1 changed files with 13 additions and 7 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue