mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-28 09:02:58 +03:00
50 lines
1.1 KiB
Rust
50 lines
1.1 KiB
Rust
use crate::{get_error, get_output, parse_program};
|
|
|
|
#[test]
|
|
fn test_valid() {
|
|
let bytes = include_bytes!("valid.leo");
|
|
let program = parse_program(bytes).unwrap();
|
|
|
|
let _output = get_output(program);
|
|
}
|
|
|
|
#[test]
|
|
fn test_invalid() {
|
|
let bytes = include_bytes!("invalid.leo");
|
|
let program = parse_program(bytes).unwrap();
|
|
|
|
let _output = get_error(program);
|
|
}
|
|
|
|
#[test]
|
|
fn test_implicit_valid() {
|
|
let bytes = include_bytes!("implicit_valid.leo");
|
|
let program = parse_program(bytes).unwrap();
|
|
|
|
let _output = get_output(program);
|
|
}
|
|
|
|
#[test]
|
|
fn test_implicit_invalid() {
|
|
let bytes = include_bytes!("implicit_invalid.leo");
|
|
let program = parse_program(bytes).unwrap();
|
|
|
|
let _output = get_error(program);
|
|
}
|
|
|
|
#[test]
|
|
fn test_assert_eq_pass() {
|
|
let bytes = include_bytes!("assert_eq_pass.leo");
|
|
let program = parse_program(bytes).unwrap();
|
|
|
|
let _output = get_output(program);
|
|
}
|
|
|
|
#[test]
|
|
fn test_assert_eq_fail() {
|
|
let bytes = include_bytes!("assert_eq_fail.leo");
|
|
let program = parse_program(bytes).unwrap();
|
|
|
|
let _output = get_error(program);
|
|
}
|