mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-12 20:16:49 +00:00
added empty line test
This commit is contained in:
parent
f4b5d21533
commit
dece5a6cb5
@ -36,3 +36,19 @@ if x {
|
||||
\tz
|
||||
}".into(), false));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_empty_line() {
|
||||
assert_eq!("\
|
||||
if x {
|
||||
y
|
||||
|
||||
} else {
|
||||
z
|
||||
}", trim_multiline(" if x {
|
||||
y
|
||||
|
||||
} else {
|
||||
z
|
||||
}".into(), false));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user