From babae8dbe85b806460b4eae7536a6faea8e7d168 Mon Sep 17 00:00:00 2001 From: PoiScript Date: Fri, 17 Nov 2023 18:08:47 +0800 Subject: [PATCH] test: add test case (#33) --- src/ast/headline.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ast/headline.rs b/src/ast/headline.rs index 54cd52d..cc274ed 100644 --- a/src/ast/headline.rs +++ b/src/ast/headline.rs @@ -109,6 +109,8 @@ impl Headline { /// /// let hdl = Org::parse("* [#A]").first_node::().unwrap(); /// assert_eq!(hdl.priority().unwrap().text(), "A"); + /// let hdl = Org::parse("** DONE [#B]::").first_node::().unwrap(); + /// assert_eq!(hdl.priority().unwrap().text(), "B"); /// let hdl = Org::parse("* [#破]").first_node::().unwrap(); /// assert_eq!(hdl.priority().unwrap().text(), "破"); /// ```