mirror of
https://github.com/YGGverse/ggemtext.git
synced 2026-03-31 17:15:33 +00:00
enshort
This commit is contained in:
parent
3cbb81b85e
commit
02e8e8a06b
1 changed files with 3 additions and 9 deletions
12
src/lib.rs
12
src/lib.rs
|
|
@ -14,9 +14,7 @@ mod tests {
|
|||
fn line() {
|
||||
// Code
|
||||
match Code::inline_from("```inline```") {
|
||||
Some(inline) => {
|
||||
assert_eq!(inline.value, "inline");
|
||||
}
|
||||
Some(inline) => assert_eq!(inline.value, "inline"),
|
||||
None => assert!(false),
|
||||
};
|
||||
|
||||
|
|
@ -70,17 +68,13 @@ mod tests {
|
|||
|
||||
// List
|
||||
match List::from("* Item") {
|
||||
Some(list) => {
|
||||
assert_eq!(list.value, "Item");
|
||||
}
|
||||
Some(list) => assert_eq!(list.value, "Item"),
|
||||
None => assert!(false),
|
||||
};
|
||||
|
||||
// Quote
|
||||
match Quote::from("> Quote") {
|
||||
Some(quote) => {
|
||||
assert_eq!(quote.value, "Quote");
|
||||
}
|
||||
Some(quote) => assert_eq!(quote.value, "Quote"),
|
||||
None => assert!(false),
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue