mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-28 01:01:53 +03:00
add test
This commit is contained in:
parent
b078c6e09f
commit
abee76680b
6
compiler/tests/boolean/conditional_mut.leo
Normal file
6
compiler/tests/boolean/conditional_mut.leo
Normal file
@ -0,0 +1,6 @@
|
||||
function main () {
|
||||
let mut x = true;
|
||||
if x {
|
||||
let y = 0u8;
|
||||
}
|
||||
}
|
@ -101,6 +101,14 @@ fn test_not_mutable() {
|
||||
assert_satisfied(program);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_conditional_mut() {
|
||||
let program_string = include_str!("conditional_mut.leo");
|
||||
let program = parse_program(program_string).unwrap();
|
||||
|
||||
assert_satisfied(program);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_not_u32() {
|
||||
let program_string = include_str!("not_u32.leo");
|
||||
|
Loading…
Reference in New Issue
Block a user