add empty address test

This commit is contained in:
collin 2020-08-03 12:01:09 -07:00
parent f49d04c126
commit e7ad1595a7
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,3 @@
function main() {
let owner = address();
}

View File

@ -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");