mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-25 03:04:13 +03:00
add a test to check const statements fail
This commit is contained in:
parent
f952da330c
commit
b96dc782f9
3
asg/tests/fail/statements/const_declaration_fail.leo
Normal file
3
asg/tests/fail/statements/const_declaration_fail.leo
Normal file
@ -0,0 +1,3 @@
|
||||
function main() {
|
||||
const x = 1u32;
|
||||
}
|
@ -21,3 +21,9 @@ fn test_num_returns_fail() {
|
||||
let program_string = include_str!("num_returns_fail.leo");
|
||||
load_asg(program_string).err().unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_const_declaration_fail() {
|
||||
let program_string = include_str!("const_declaration_fail.leo");
|
||||
load_asg(program_string).err().unwrap();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user