test: add test cases (#10)

This commit is contained in:
PoiScript 2020-05-04 10:07:16 +08:00
parent 37853180bb
commit d77e3316a0

18
tests/issue_10.rs Normal file
View file

@ -0,0 +1,18 @@
use orgize::Org;
#[test]
fn can_handle_empty_emphasis() {
let cases = &[
"* / // a",
"\"* / // a\"",
"* * ** a",
"* 2020\n** December\n*** Experiment\nType A is marked with * and type B is marked with **.\n",
"* 2020\n:DRAWER:\n* ** a\n:END:",
"* * ** :a:",
"* * ** "
];
for case in cases {
let _ = Org::parse(case);
}
}