summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/integration_tests.rs20
1 files 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()