test: add test cases (#10)
This commit is contained in:
parent
37853180bb
commit
d77e3316a0
18
tests/issue_10.rs
Normal file
18
tests/issue_10.rs
Normal 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);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue