mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-24 07:48:04 +03:00
add unknown parameter test
This commit is contained in:
parent
118b50fb58
commit
540c0de69f
@ -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;
|
||||
|
@ -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");
|
||||
|
3
compiler/tests/macros/print_parameter_fail_unknown.leo
Normal file
3
compiler/tests/macros/print_parameter_fail_unknown.leo
Normal file
@ -0,0 +1,3 @@
|
||||
function main() {
|
||||
print!("{}", a);
|
||||
}
|
Loading…
Reference in New Issue
Block a user