Skip to content

Regression test for UFCS function calls #97

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 8, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tests/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ fn get_path_string(dir_entry: io::Result<fs::DirEntry>) -> 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() {
Expand Down
File renamed without changes.
7 changes: 7 additions & 0 deletions tests/target/issue-64.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Regression test for issue 64

pub fn header_name<T: Header>() -> &'static str {
let name = <T as Header>::header_name();
let func = <T as Header>::header_name;
name
}
File renamed without changes.