leo/compiler/tests/syntax/mod.rs
2020-06-04 15:44:38 -07:00

17 lines
353 B
Rust

use crate::compile_program;
use leo_compiler::errors::CompilerError;
const DIRECTORY_NAME: &str = "tests/syntax/";
#[test]
fn test_semicolon() {
let error = compile_program(DIRECTORY_NAME, "semicolon.leo")
.err()
.unwrap();
match error {
CompilerError::SyntaxError(_) => {}
_ => panic!("wrong error"),
}
}