add unknown parameter test

This commit is contained in:
collin 2020-07-09 19:33:10 -07:00
parent 118b50fb58
commit 540c0de69f
3 changed files with 12 additions and 1 deletions

View File

@ -1,4 +1,4 @@
//! Evaluates a macro in a compiled Leo program.
//! Evaluates a formatted string in a compiled Leo program.
use crate::{errors::MacroError, program::ConstrainedProgram, GroupType};
use leo_types::FormattedString;

View File

@ -32,6 +32,14 @@ fn test_print_parameter_many() {
let _output = get_output(program);
}
#[test]
fn test_print_parameter_fail_unknown() {
let bytes = include_bytes!("print_parameter_fail_unknown.leo");
let program = parse_program(bytes).unwrap();
let _err = get_error(program);
}
#[test]
fn test_print_parameter_fail_empty() {
let bytes = include_bytes!("print_parameter_fail_empty.leo");

View File

@ -0,0 +1,3 @@
function main() {
print!("{}", a);
}