mirror of
https://github.com/YGGverse/ggemtext.git
synced 2026-03-31 17:15:33 +00:00
fix variables name
This commit is contained in:
parent
a69b72a22c
commit
82576b27dc
1 changed files with 6 additions and 6 deletions
12
src/lib.rs
12
src/lib.rs
|
|
@ -43,17 +43,17 @@ mod tests {
|
||||||
};
|
};
|
||||||
|
|
||||||
match Header::from("## H2") {
|
match Header::from("## H2") {
|
||||||
Some(h1) => {
|
Some(h2) => {
|
||||||
assert_eq!(h1.level as i8, Level::H2 as i8);
|
assert_eq!(h2.level as i8, Level::H2 as i8);
|
||||||
assert_eq!(h1.value, "H2");
|
assert_eq!(h2.value, "H2");
|
||||||
}
|
}
|
||||||
None => assert!(false),
|
None => assert!(false),
|
||||||
};
|
};
|
||||||
|
|
||||||
match Header::from("### H3") {
|
match Header::from("### H3") {
|
||||||
Some(h1) => {
|
Some(h3) => {
|
||||||
assert_eq!(h1.level as i8, Level::H3 as i8);
|
assert_eq!(h3.level as i8, Level::H3 as i8);
|
||||||
assert_eq!(h1.value, "H3");
|
assert_eq!(h3.value, "H3");
|
||||||
}
|
}
|
||||||
None => assert!(false),
|
None => assert!(false),
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue