mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-28 09:02:58 +03:00
17 lines
353 B
Rust
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"),
|
|
}
|
|
}
|