test: add test case (#33)

This commit is contained in:
PoiScript 2023-11-17 18:08:47 +08:00
parent 52b498d3c8
commit babae8dbe8
No known key found for this signature in database
GPG key ID: 22C2B1249D99985E

View file

@ -109,6 +109,8 @@ impl Headline {
///
/// let hdl = Org::parse("* [#A]").first_node::<Headline>().unwrap();
/// assert_eq!(hdl.priority().unwrap().text(), "A");
/// let hdl = Org::parse("** DONE [#B]::").first_node::<Headline>().unwrap();
/// assert_eq!(hdl.priority().unwrap().text(), "B");
/// let hdl = Org::parse("* [#破]").first_node::<Headline>().unwrap();
/// assert_eq!(hdl.priority().unwrap().text(), "破");
/// ```