aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-06-19 07:34:04 +0000
committerFuwn <[email protected]>2024-06-19 07:34:04 +0000
commitfe03915e1bddf286af8ed50a9b69c52a553be5ea (patch)
treecc687ba81d6672c3645eb730fdb18f85ea0e9289 /tests
parentfeat: single Node gemtext content conversion (diff)
downloadgerm-fe03915e1bddf286af8ed50a9b69c52a553be5ea.tar.xz
germ-fe03915e1bddf286af8ed50a9b69c52a553be5ea.zip
fix(ast): preserve newline structure at end of gemtext
Diffstat (limited to 'tests')
-rw-r--r--tests/ast.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/ast.rs b/tests/ast.rs
index 9bb7fce..eedd546 100644
--- a/tests/ast.rs
+++ b/tests/ast.rs
@@ -88,7 +88,7 @@ That was a link without text."#;
Ast::from_string(EXAMPLE_GEMTEXT).to_gemtext(),
// `to_gemtext` appends a newline to all responses, so let's make sure we
// account for that.
- format!("{}\n", EXAMPLE_GEMTEXT),
+ EXAMPLE_GEMTEXT
);
}
@@ -98,16 +98,16 @@ That was a link without text."#;
germ::gemini_to_ast!(EXAMPLE_GEMTEXT).to_gemtext(),
// `to_gemtext` appends a newline to all responses, so let's make sure we
// account for that.
- format!("{}\n", EXAMPLE_GEMTEXT),
+ EXAMPLE_GEMTEXT
);
}
#[test]
fn gemtext_to_ast_then_node_to_ast_to_gemtext() {
assert_eq!(
- Ast::from_nodes(germ::gemini_to_ast!("=> / Home\n").inner().to_vec())
+ Ast::from_nodes(germ::gemini_to_ast!("=> / Home").inner().to_vec())
.to_gemtext(),
- "=> / Home\n"
+ "=> / Home"
);
}
}