mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
14 lines
310 B
Rust
14 lines
310 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.to_string());
|
|
dump_tree(&file)
|
|
})
|
|
}
|