mirror of
https://github.com/YGGverse/ggemtext.git
synced 2026-04-02 18:15:37 +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() {
|
fn line() {
|
||||||
// Code
|
// Code
|
||||||
match Code::inline_from("```inline```") {
|
match Code::inline_from("```inline```") {
|
||||||
Some(inline) => {
|
Some(inline) => assert_eq!(inline.value, "inline"),
|
||||||
assert_eq!(inline.value, "inline");
|
|
||||||
}
|
|
||||||
None => assert!(false),
|
None => assert!(false),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -70,17 +68,13 @@ mod tests {
|
||||||
|
|
||||||
// List
|
// List
|
||||||
match List::from("* Item") {
|
match List::from("* Item") {
|
||||||
Some(list) => {
|
Some(list) => assert_eq!(list.value, "Item"),
|
||||||
assert_eq!(list.value, "Item");
|
|
||||||
}
|
|
||||||
None => assert!(false),
|
None => assert!(false),
|
||||||
};
|
};
|
||||||
|
|
||||||
// Quote
|
// Quote
|
||||||
match Quote::from("> Quote") {
|
match Quote::from("> Quote") {
|
||||||
Some(quote) => {
|
Some(quote) => assert_eq!(quote.value, "Quote"),
|
||||||
assert_eq!(quote.value, "Quote");
|
|
||||||
}
|
|
||||||
None => assert!(false),
|
None => assert!(false),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue