mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-09-22 11:17:37 +03:00
add test for nested mutable value
This commit is contained in:
parent
1217e9860e
commit
4cb07d5cd3
5
compiler/tests/mutability/let_mut_nested.leo
Normal file
5
compiler/tests/mutability/let_mut_nested.leo
Normal file
@ -0,0 +1,5 @@
|
||||
function main () {
|
||||
let mut x = 2u8;
|
||||
let mut y = x;
|
||||
let z = y / 2u8;
|
||||
}
|
@ -33,6 +33,14 @@ fn test_let_mut() {
|
||||
assert_satisfied(program);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_let_mut_nested() {
|
||||
let bytes = include_bytes!("let_mut_nested.leo");
|
||||
let program = parse_program(bytes).unwrap();
|
||||
|
||||
assert_satisfied(program);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_const_fail() {
|
||||
let bytes = include_bytes!("const.leo");
|
||||
|
Loading…
Reference in New Issue
Block a user