chore: reorganize directories
This commit is contained in:
parent
42cb1d21bd
commit
14d1555fc1
88 changed files with 114 additions and 144 deletions
37
tests/parse.rs
Normal file
37
tests/parse.rs
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
const INPUT: &[&str] = &[
|
||||
// issue 10
|
||||
"* / // 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:",
|
||||
"* * ** ",
|
||||
// issue 11
|
||||
"0. ",
|
||||
"* \n0. ",
|
||||
" * ",
|
||||
" 0. ",
|
||||
"\t* ",
|
||||
"- ",
|
||||
"- hello\n- ",
|
||||
"- \n- hello",
|
||||
"- hello\n- \n- world",
|
||||
"* world\n- ",
|
||||
// issue 22
|
||||
"\u{000b}\u{0085}\u{00a0}\u{1680}\u{2000}\u{2001}\u{2002}\u{2003}\u{2004}\u{2005}\u{2006}\u{2007}\u{2008}\u{2009}\u{200a}\u{2028}\u{2029}\u{202f}\u{205f}\u{3000}",
|
||||
// fuzz test
|
||||
"___\n",
|
||||
"\n\n\n",
|
||||
"\n*",
|
||||
"\r-",
|
||||
"6\r\n",
|
||||
"|\n\u{b}|"
|
||||
];
|
||||
|
||||
#[test]
|
||||
fn parse() {
|
||||
for input in INPUT {
|
||||
let _ = orgize::Org::parse(input);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue