mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-01 10:17:30 +03:00
fix ci test
This commit is contained in:
parent
a6bf66f864
commit
b60affc40b
@ -4,9 +4,9 @@
|
||||
"imports": [],
|
||||
"circuits": {},
|
||||
"functions": {
|
||||
"{\"name\":\"main\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":10,\\\"col_stop\\\":14,\\\"path\\\":\\\"/home/p/aleo/leo/parser/tests/serialization/main.leo\\\"}\"}": {
|
||||
"{\"name\":\"main\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":10,\\\"col_stop\\\":14,\\\"path\\\":\\\"./tests/serialization/main.leo\\\"}\"}": {
|
||||
"annotations": [],
|
||||
"identifier": "{\"name\":\"main\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":10,\\\"col_stop\\\":14,\\\"path\\\":\\\"/home/p/aleo/leo/parser/tests/serialization/main.leo\\\"}\"}",
|
||||
"identifier": "{\"name\":\"main\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":10,\\\"col_stop\\\":14,\\\"path\\\":\\\"./tests/serialization/main.leo\\\"}\"}",
|
||||
"input": [],
|
||||
"output": null,
|
||||
"block": {
|
||||
@ -24,7 +24,7 @@
|
||||
"line_stop": 2,
|
||||
"col_start": 12,
|
||||
"col_stop": 13,
|
||||
"path": "/home/p/aleo/leo/parser/tests/serialization/main.leo"
|
||||
"path": "./tests/serialization/main.leo"
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -38,7 +38,7 @@
|
||||
"line_stop": 2,
|
||||
"col_start": 16,
|
||||
"col_stop": 17,
|
||||
"path": "/home/p/aleo/leo/parser/tests/serialization/main.leo"
|
||||
"path": "./tests/serialization/main.leo"
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -49,7 +49,7 @@
|
||||
"line_stop": 2,
|
||||
"col_start": 12,
|
||||
"col_stop": 17,
|
||||
"path": "/home/p/aleo/leo/parser/tests/serialization/main.leo"
|
||||
"path": "./tests/serialization/main.leo"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -58,7 +58,7 @@
|
||||
"line_stop": 2,
|
||||
"col_start": 5,
|
||||
"col_stop": 17,
|
||||
"path": "/home/p/aleo/leo/parser/tests/serialization/main.leo"
|
||||
"path": "./tests/serialization/main.leo"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -68,7 +68,7 @@
|
||||
"line_stop": 3,
|
||||
"col_start": 17,
|
||||
"col_stop": 2,
|
||||
"path": "/home/p/aleo/leo/parser/tests/serialization/main.leo"
|
||||
"path": "./tests/serialization/main.leo"
|
||||
}
|
||||
},
|
||||
"span": {
|
||||
@ -76,7 +76,7 @@
|
||||
"line_stop": 3,
|
||||
"col_start": 1,
|
||||
"col_stop": 2,
|
||||
"path": "/home/p/aleo/leo/parser/tests/serialization/main.leo"
|
||||
"path": "./tests/serialization/main.leo"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -33,8 +33,7 @@ fn to_ast(program_filepath: &Path) -> Result<Ast, SyntaxError> {
|
||||
fn test_serialize() {
|
||||
// Construct an ast from the given test file.
|
||||
let ast = {
|
||||
let mut program_filepath = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
|
||||
program_filepath.push("tests/serialization/main.leo");
|
||||
let program_filepath = PathBuf::from("./tests/serialization/main.leo");
|
||||
|
||||
to_ast(&program_filepath).unwrap()
|
||||
};
|
||||
@ -53,8 +52,7 @@ fn test_serialize() {
|
||||
fn test_deserialize() {
|
||||
// Load the expected ast.
|
||||
let expected_ast = {
|
||||
let mut program_filepath = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
|
||||
program_filepath.push("tests/serialization/main.leo");
|
||||
let program_filepath = PathBuf::from("./tests/serialization/main.leo");
|
||||
|
||||
to_ast(&program_filepath).unwrap()
|
||||
};
|
||||
@ -70,8 +68,7 @@ fn test_deserialize() {
|
||||
fn test_serialize_deserialize_serialize() {
|
||||
// Construct an ast from the given test file.
|
||||
let ast = {
|
||||
let mut program_filepath = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
|
||||
program_filepath.push("tests/serialization/main.leo");
|
||||
let program_filepath = PathBuf::from("./tests/serialization/main.leo");
|
||||
|
||||
to_ast(&program_filepath).unwrap()
|
||||
};
|
||||
@ -91,8 +88,7 @@ fn test_serialize_deserialize_serialize() {
|
||||
#[test]
|
||||
fn test_generic_parser_error() {
|
||||
let error_result = {
|
||||
let mut program_filepath = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
|
||||
program_filepath.push("tests/serialization/parser_error.leo");
|
||||
let program_filepath = PathBuf::from("./tests/serialization/parser_error.leo");
|
||||
|
||||
to_ast(&program_filepath)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user