Skip to content

Commit 81c581e

Browse files
committed
Merge pull request #97 from marcusklaas/issue-64
Regression test for UFCS function calls
2 parents 55f2de9 + 2530123 commit 81c581e

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

tests/system.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ fn get_path_string(dir_entry: io::Result<fs::DirEntry>) -> String {
2626
path.to_str().expect("Couldn't stringify path.").to_owned()
2727
}
2828

29-
// For now, the only supported regression tests are idempotent tests - the input and
29+
// Integration tests and idempotence tests. The files in the tests/source are
30+
// formatted and compared to their equivalent in tests/target. The target file
31+
// and config can be overriden by annotations in the source file. The input and
3032
// output must match exactly.
33+
// Files in tests/target are checked to be unaltered by rustfmt.
3134
// FIXME(#28) would be good to check for error messages and fail on them, or at least report.
3235
#[test]
3336
fn system_tests() {
File renamed without changes.

tests/target/issue-64.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Regression test for issue 64
2+
3+
pub fn header_name<T: Header>() -> &'static str {
4+
let name = <T as Header>::header_name();
5+
let func = <T as Header>::header_name;
6+
name
7+
}
File renamed without changes.

0 commit comments

Comments
 (0)