aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ast.rs4
-rw-r--r--tests/convert.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/ast.rs b/tests/ast.rs
index 021fd96..37320a7 100644
--- a/tests/ast.rs
+++ b/tests/ast.rs
@@ -19,8 +19,8 @@
#[cfg(test)]
mod test {
use germ::{
- ast::{Ast, Node},
EXAMPLE_GEMTEXT,
+ ast::{Ast, Node},
};
#[test]
@@ -51,7 +51,7 @@ mod test {
#[test]
fn build_single_element() {
assert_eq!(
- Ast::from_string("=> /test hi").inner().get(0).unwrap(),
+ Ast::from_string("=> /test hi").inner().first().unwrap(),
&Node::Link { to: "/test".to_string(), text: Some("hi".to_string()) },
);
}
diff --git a/tests/convert.rs b/tests/convert.rs
index afff5bc..84d605e 100644
--- a/tests/convert.rs
+++ b/tests/convert.rs
@@ -19,7 +19,7 @@
#[cfg(test)]
mod test {
use germ::{
- convert::{from_string, Target},
+ convert::{Target, from_string},
gemini_to_html, gemini_to_md,
};