2020-06-09 04:52:35 +03:00
|
|
|
use crate::{integers::u32::output_one, parse_program};
|
2020-05-21 01:51:57 +03:00
|
|
|
|
2020-06-09 05:31:29 +03:00
|
|
|
// Import tests rely on knowledge of local directories. They should be run locally only.
|
|
|
|
|
2020-05-21 01:51:57 +03:00
|
|
|
#[test]
|
2020-06-09 05:31:29 +03:00
|
|
|
#[ignore]
|
2020-05-21 01:51:57 +03:00
|
|
|
fn test_basic() {
|
2020-06-09 04:52:35 +03:00
|
|
|
let bytes = include_bytes!("basic.leo");
|
|
|
|
let program = parse_program(bytes).unwrap();
|
|
|
|
|
2020-05-21 01:51:57 +03:00
|
|
|
output_one(program);
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
2020-06-09 05:31:29 +03:00
|
|
|
#[ignore]
|
2020-05-21 01:51:57 +03:00
|
|
|
fn test_multiple() {
|
2020-06-09 04:52:35 +03:00
|
|
|
let bytes = include_bytes!("multiple.leo");
|
|
|
|
let program = parse_program(bytes).unwrap();
|
|
|
|
|
2020-05-21 01:51:57 +03:00
|
|
|
output_one(program);
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
2020-06-09 05:31:29 +03:00
|
|
|
#[ignore]
|
2020-05-21 01:51:57 +03:00
|
|
|
fn test_star() {
|
2020-06-09 04:52:35 +03:00
|
|
|
let bytes = include_bytes!("star.leo");
|
|
|
|
let program = parse_program(bytes).unwrap();
|
|
|
|
|
2020-05-21 01:51:57 +03:00
|
|
|
output_one(program);
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
2020-06-09 05:31:29 +03:00
|
|
|
#[ignore]
|
2020-05-21 01:51:57 +03:00
|
|
|
fn test_alias() {
|
2020-06-09 04:52:35 +03:00
|
|
|
let bytes = include_bytes!("alias.leo");
|
|
|
|
let program = parse_program(bytes).unwrap();
|
|
|
|
|
2020-05-21 01:51:57 +03:00
|
|
|
output_one(program);
|
|
|
|
}
|