From 34b27210106eda26027e2de444475749f8e5b9d9 Mon Sep 17 00:00:00 2001 From: Marcus Klaas Date: Mon, 8 Jun 2015 18:22:55 +0200 Subject: [PATCH] Fixup tests --- tests/system.rs | 5 ++++- tests/{idem => target}/enum.rs | 0 tests/{idem => target}/tuple.rs | 0 3 files changed, 4 insertions(+), 1 deletion(-) rename tests/{idem => target}/enum.rs (100%) rename tests/{idem => target}/tuple.rs (100%) diff --git a/tests/system.rs b/tests/system.rs index 1cdd43abbfa..d0769a855ac 100644 --- a/tests/system.rs +++ b/tests/system.rs @@ -26,8 +26,11 @@ fn get_path_string(dir_entry: io::Result) -> String { path.to_str().expect("Couldn't stringify path.").to_owned() } -// For now, the only supported regression tests are idempotent tests - the input and +// Integration tests and idempotence tests. The files in the tests/source are +// formatted and compared to their equivalent in tests/target. The target file +// and config can be overriden by annotations in the source file. The input and // output must match exactly. +// Files in tests/target are checked to be unaltered by rustfmt. // FIXME(#28) would be good to check for error messages and fail on them, or at least report. #[test] fn system_tests() { diff --git a/tests/idem/enum.rs b/tests/target/enum.rs similarity index 100% rename from tests/idem/enum.rs rename to tests/target/enum.rs diff --git a/tests/idem/tuple.rs b/tests/target/tuple.rs similarity index 100% rename from tests/idem/tuple.rs rename to tests/target/tuple.rs