aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_tools/tests/cli.rs
diff options
context:
space:
mode:
authorAlexander Andreev <[email protected]>2019-09-30 09:58:53 +0100
committerAlexander Andreev <[email protected]>2019-09-30 09:58:53 +0100
commitfdbd6bb11a0c47bf9ba1428e6bd432cd2ce72045 (patch)
treee5325e7642552b1902428eb4577e6c9d4f2e1260 /crates/ra_tools/tests/cli.rs
parent2b69c84396cf376b496e7de3c954400e51b5fc24 (diff)
Added test for check doc strings in crates.
#1856
Diffstat (limited to 'crates/ra_tools/tests/cli.rs')
-rw-r--r--crates/ra_tools/tests/cli.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/ra_tools/tests/cli.rs b/crates/ra_tools/tests/cli.rs
index 91b19c8f8..609fd4d8b 100644
--- a/crates/ra_tools/tests/cli.rs
+++ b/crates/ra_tools/tests/cli.rs
@@ -1,6 +1,5 @@
1use walkdir::WalkDir;
2
3use ra_tools::{gen_tests, generate_boilerplate, project_root, run_rustfmt, Verify}; 1use ra_tools::{gen_tests, generate_boilerplate, project_root, run_rustfmt, Verify};
2use walkdir::WalkDir;
4 3
5#[test] 4#[test]
6fn generated_grammar_is_fresh() { 5fn generated_grammar_is_fresh() {
@@ -36,7 +35,7 @@ fn no_todo() {
36 let text = std::fs::read_to_string(e.path()).unwrap(); 35 let text = std::fs::read_to_string(e.path()).unwrap();
37 if text.contains("TODO") || text.contains("TOOD") { 36 if text.contains("TODO") || text.contains("TOOD") {
38 panic!( 37 panic!(
39 "\nTODO markers should not be commited to the master branch,\n\ 38 "\nTODO markers should not be committed to the master branch,\n\
40 use FIXME instead\n\ 39 use FIXME instead\n\
41 {}\n", 40 {}\n",
42 e.path().display(), 41 e.path().display(),