aboutsummaryrefslogtreecommitdiff
path: root/tests/parser.rs
blob: 3b6670cb05523978941f82ed2996b3a6fb188727 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
extern crate libsyntax2;
extern crate testutils;

use libsyntax2::{parse};
use libsyntax2::utils::{dump_tree_green};
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_green(&file)
    })
}