mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-24 07:48:04 +03:00
add specific test for import definition
This commit is contained in:
parent
13ca17634d
commit
62c5d8251b
@ -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);
|
||||
}
|
||||
|
@ -2,6 +2,4 @@ test function fake_test() {}
|
||||
|
||||
function main() {}
|
||||
|
||||
import test_import.foo;
|
||||
|
||||
circuit Foo {}
|
7
compiler/tests/definition/out_of_order_with_import.leo
Normal file
7
compiler/tests/definition/out_of_order_with_import.leo
Normal file
@ -0,0 +1,7 @@
|
||||
test function fake_test() {}
|
||||
|
||||
function main() {}
|
||||
|
||||
import test_import.foo;
|
||||
|
||||
circuit Foo {}
|
Loading…
Reference in New Issue
Block a user