mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-24 07:48:04 +03:00
add empty address test
This commit is contained in:
parent
f49d04c126
commit
e7ad1595a7
3
compiler/tests/address/empty.leo
Normal file
3
compiler/tests/address/empty.leo
Normal file
@ -0,0 +1,3 @@
|
||||
function main() {
|
||||
let owner = address();
|
||||
}
|
@ -20,6 +20,14 @@ fn test_invalid() {
|
||||
let _output = expect_compiler_error(program);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_empty() {
|
||||
let bytes = include_bytes!("empty.leo");
|
||||
let syntax_error = parse_program(bytes).is_err();
|
||||
|
||||
assert!(syntax_error);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_implicit_valid() {
|
||||
let bytes = include_bytes!("implicit_valid.leo");
|
||||
|
Loading…
Reference in New Issue
Block a user