From ce9fa6ebbfdc3e7585d488d9409797285708316f Mon Sep 17 00:00:00 2001 From: marisa Date: Mon, 11 Nov 2019 17:19:50 +0100 Subject: feat(hint): Add test for hint --- tests/integration_tests.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests/integration_tests.rs') diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index 652ba60..24268ec 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -105,3 +105,14 @@ fn run_single_test_no_exercise() { .assert() .code(1); } + +#[test] +fn get_hint_for_single_test() { + Command::cargo_bin("rustlings") + .unwrap() + .args(&["h", "testFailure"]) + .current_dir("tests/fixture/failure") + .assert() + .code(0) + .stdout("Hello!\n"); +} -- cgit v1.2.3