mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-03 13:35:07 +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"),
|
|
}
|
|
}
|