rust-analyzer/crates/libsyntax2/tests/parser.rs
Aleksey Kladov 7c67612b8a organizize
2018-08-10 22:33:29 +03:00

14 lines
298 B
Rust

extern crate libsyntax2;
extern crate testutils;
use libsyntax2::parse;
use libsyntax2::utils::dump_tree;
use testutils::dir_tests;
#[test]
fn parser_tests() {
dir_tests(&["parser/inline", "parser/ok", "parser/err"], |text| {
let file = parse(text);
dump_tree(&file)
})
}