diff options
| author | Caleb Cartwright <calebcartwright@users.noreply.github.com> | 2019-08-15 21:14:53 -0500 |
|---|---|---|
| committer | Seiichi Uchida <seuchida@gmail.com> | 2019-08-16 11:14:53 +0900 |
| commit | dfd27663dca6b9e0e84c04a4d7319ccf8a879909 (patch) | |
| tree | dd2146866cd634422e1ec703556dd582c4ed6598 /src/test | |
| parent | 541d9a865989459337131f1e130e7d4732acd47f (diff) | |
add json emit mode (#3735)
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/mod.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/mod.rs b/src/test/mod.rs index a7063c76f28..bd6613e1488 100644 --- a/src/test/mod.rs +++ b/src/test/mod.rs @@ -201,6 +201,13 @@ fn checkstyle_test() { } #[test] +fn json_test() { + let filename = "tests/writemode/source/json.rs"; + let expected_filename = "tests/writemode/target/output.json"; + assert_output(Path::new(filename), Path::new(expected_filename)); +} + +#[test] fn modified_test() { use std::io::BufRead; |
