1 2 3 4 5 6 7 8 9 10 11 12
#[cfg(test)] mod tests { use klang::parser::parse_file; use std::path::Path; #[test] fn test_parse_clean_up_cans() { let file_path = Path::new("../examples/simple.k"); let parsed_file = parse_file(&file_path); assert!(parsed_file.is_ok()); } }