mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-28 01:01:53 +03:00
Update mod.rs
This commit is contained in:
parent
ac68e8e6a4
commit
8541eb3fb8
@ -63,7 +63,7 @@ fn test_newlines() {
|
||||
|
||||
#[test]
|
||||
fn test_multiple_returns() {
|
||||
let program_string = include_str!("multiple.leo");
|
||||
let program_string = include_str!("multiple_returns.leo");
|
||||
let program = parse_program(program_string).unwrap();
|
||||
|
||||
assert_satisfied(program);
|
||||
@ -71,23 +71,23 @@ fn test_multiple_returns() {
|
||||
|
||||
#[test]
|
||||
fn test_multiple_returns_fail() {
|
||||
let bytes = include_bytes!("multiple_returns_fail.leo");
|
||||
let program = parse_program(bytes).unwrap();
|
||||
let program_string = include_str!("multiple_returns_fail.leo");
|
||||
let program = parse_program(program_string).unwrap();
|
||||
|
||||
expect_compiler_error(program);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_multiple_returns_fail_conditional() {
|
||||
let bytes = include_bytes!("multiple_returns_fail_conditional.leo");
|
||||
let program = parse_program(bytes).unwrap();
|
||||
let program_string = include_str!("multiple_returns_fail_conditional.leo");
|
||||
let program = parse_program(program_string).unwrap();
|
||||
|
||||
expect_compiler_error(program);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_multiple_returns_main() {
|
||||
let program_string = include_str!("multiple_main.leo");
|
||||
let program_string = include_str!("multiple_returns_main.leo");
|
||||
let input_string = include_str!("input/registers.in");
|
||||
|
||||
let program = parse_program_with_input(program_string, input_string).unwrap();
|
||||
|
Loading…
Reference in New Issue
Block a user