add specific test for import definition

This commit is contained in:
collin 2020-08-07 16:59:32 -07:00
parent 13ca17634d
commit 62c5d8251b
3 changed files with 19 additions and 4 deletions

View File

@ -2,11 +2,21 @@ use crate::{assert_satisfied, import::set_local_dir, parse_program};
#[test]
fn test_out_of_order() {
set_local_dir();
let program_bytes = include_bytes!("out_of_order.leo");
let program = parse_program(program_bytes).unwrap();
assert_satisfied(program);
}
#[test]
#[ignore]
fn test_out_of_order_with_import() {
set_local_dir();
let program_bytes = include_bytes!("out_of_order_with_import.leo");
let program = parse_program(program_bytes).unwrap();
assert_satisfied(program);
}

View File

@ -2,6 +2,4 @@ test function fake_test() {}
function main() {}
import test_import.foo;
circuit Foo {}

View File

@ -0,0 +1,7 @@
test function fake_test() {}
function main() {}
import test_import.foo;
circuit Foo {}