mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-28 04:35:33 +03:00
add tests for known bugs
This commit is contained in:
parent
53e5dfbb02
commit
af0e0da6b7
@ -0,0 +1,10 @@
|
||||
/*
|
||||
namespace: Compile
|
||||
expectation: Fail
|
||||
input_file: inputs/dummy.in
|
||||
*/
|
||||
|
||||
function main(y: bool) -> bool {
|
||||
let b: u8 = b;
|
||||
return y == true;
|
||||
}
|
6
tests/compiler/function/no_return_fail.leo
Normal file
6
tests/compiler/function/no_return_fail.leo
Normal file
@ -0,0 +1,6 @@
|
||||
/*
|
||||
namespace: Compile
|
||||
expectation: Fail
|
||||
*/
|
||||
|
||||
function main() -> u8 {}
|
10
tests/compiler/statements/non_existant_var_exp_fail.leo
Normal file
10
tests/compiler/statements/non_existant_var_exp_fail.leo
Normal file
@ -0,0 +1,10 @@
|
||||
/*
|
||||
namespace: Compile
|
||||
expectation: Fail
|
||||
input_file: inputs/dummy.in
|
||||
*/
|
||||
|
||||
function main(k: bool) -> bool {
|
||||
let b: u8 = 1u8**z;
|
||||
return k == true;
|
||||
}
|
10
tests/compiler/statements/non_existant_vars_mul_fail.leo
Normal file
10
tests/compiler/statements/non_existant_vars_mul_fail.leo
Normal file
@ -0,0 +1,10 @@
|
||||
/*
|
||||
namespace: Compile
|
||||
expectation: Fail
|
||||
input_file: inputs/dummy.in
|
||||
*/
|
||||
|
||||
function main(k: bool) -> bool {
|
||||
let b: u8 = x*z;
|
||||
return k == true;
|
||||
}
|
Loading…
Reference in New Issue
Block a user