8 lines
393 B
Rust
8 lines
393 B
Rust
use orgize::{ast::Paragraph, rowan::ast::AstNode, Org};
|
|
|
|
#[test]
|
|
fn whitespaces() {
|
|
let case = "\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}";
|
|
let paragraph = Org::parse(case).first_node::<Paragraph>().unwrap();
|
|
assert_eq!(¶graph.syntax().to_string(), case);
|
|
}
|