diff options
| author | Nick Cameron <nrc@ncameron.org> | 2018-07-17 11:18:10 +1200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-17 11:18:10 +1200 |
| commit | d911b640d173cda72e937de78310f4a021034045 (patch) | |
| tree | dd6966b5eff0e7d3c24a4806554294c23e319e19 /src/test | |
| parent | ca57ff5b765a44535bf3e29b76ff49a0c22189b1 (diff) | |
| parent | 363363d06644738a4310122db8f855a4099822f7 (diff) | |
Merge pull request #2823 from fwalch/default-newline-style
Change default newline style to "Native"
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/mod.rs b/src/test/mod.rs index 633f9f8bd3f..47b801011bf 100644 --- a/src/test/mod.rs +++ b/src/test/mod.rs @@ -247,7 +247,10 @@ fn stdin_formatting_smoke_test() { let (error_summary, _) = format_input(input, &config, Some(&mut buf)).unwrap(); assert!(error_summary.has_no_errors()); //eprintln!("{:?}", ); + #[cfg(not(windows))] assert_eq!(buf, "fn main() {}\n".as_bytes()); + #[cfg(windows)] + assert_eq!(buf, "fn main() {}\r\n".as_bytes()); } // FIXME(#1990) restore this test |
