diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-10-13 16:52:44 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-10-13 16:53:10 +0200 |
commit | e0ca78397ea34cde06ab8257a8481afc812d344f (patch) | |
tree | 5dc85ca4f9e18c2b93a3f86f106f2cd8535c828b /src/unist.rs | |
parent | 5ad84c1670733843f677b2c5bee8c50d78b8e24a (diff) | |
download | markdown-rs-e0ca78397ea34cde06ab8257a8481afc812d344f.tar.gz markdown-rs-e0ca78397ea34cde06ab8257a8481afc812d344f.tar.bz2 markdown-rs-e0ca78397ea34cde06ab8257a8481afc812d344f.zip |
Add a lot of tests on how mdast, unist work
Diffstat (limited to '')
-rw-r--r-- | src/unist.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/unist.rs b/src/unist.rs index ce2de65..514e661 100644 --- a/src/unist.rs +++ b/src/unist.rs @@ -80,14 +80,17 @@ mod tests { use alloc::format; #[test] - fn unist_test() { + fn point() { let point = Point::new(1, 1, 0); assert_eq!( format!("{:?}", point), "1:1 (0)", "should support `Debug` on unist points" ); + } + #[test] + fn position() { let position = Position::new(1, 1, 0, 1, 3, 2); assert_eq!( format!("{:?}", position), |