Fix the trailing whitespace test

This commit is contained in:
Kirill Bulatov 2020-02-12 17:04:16 +02:00
parent 848c576266
commit 2a7d97d829

View File

@ -217,10 +217,7 @@ fn test_doc_comment_multi_line_block_strips_suffix() {
#[test]
fn test_comments_preserve_trailing_whitespace() {
let file = SourceFile::parse(
r#"
/// Representation of a Realm.
/// In the specification these are called Realm Records.
struct Realm {}"#,
"\n/// Representation of a Realm. \n/// In the specification these are called Realm Records.\nstruct Realm {}",
)
.ok()
.unwrap();