irongit

A rust macro that allows regular expression creation through independent files. Allows fully typed named groups.

8 lines214 BRust
1use regex_macro::load_regex_files;
2
3#[test]
4pub fn events() {
5 load_regex_files!("./tests/regex");
6 let events = Event::vec_from_file("./tests/samples/events.txt");
7 assert!(events.unwrap().len() == 13)
8}