rust/tests/parser.rs

15 lines
298 B
Rust
Raw Normal View History

2017-12-31 23:27:36 +03:00
extern crate libsyntax2;
2018-01-07 14:56:08 +03:00
extern crate testutils;
2017-12-31 23:27:36 +03:00
2018-07-30 14:08:06 +03:00
use libsyntax2::parse;
2018-07-30 15:25:52 +03:00
use libsyntax2::utils::dump_tree;
2018-01-07 15:34:11 +03:00
use testutils::dir_tests;
2017-12-31 23:27:36 +03:00
#[test]
fn parser_tests() {
2018-02-03 22:34:35 +03:00
dir_tests(&["parser/inline", "parser/ok", "parser/err"], |text| {
2018-08-01 10:40:07 +03:00
let file = parse(text);
2018-07-30 15:25:52 +03:00
dump_tree(&file)
2018-01-27 18:31:23 -05:00
})
2017-12-31 23:27:36 +03:00
}