leo/compiler/tests/integers/u8/mod.rs

92 lines
1.2 KiB
Rust
Raw Normal View History

2020-06-06 02:35:50 +03:00
use crate::{
2020-07-31 01:41:03 +03:00
assert_satisfied,
expect_synthesis_error,
generate_main_inputs,
integers::{expect_parsing_error, IntegerTester},
2020-06-09 05:13:47 +03:00
parse_program,
2020-06-06 02:35:50 +03:00
};
2020-06-11 03:53:38 +03:00
use leo_inputs::types::{IntegerType, U8Type};
use leo_types::InputValue;
2020-06-06 02:35:50 +03:00
2020-07-16 05:55:04 +03:00
test_uint!(TestU8, u8, IntegerType::U8Type(U8Type {}), UInt8);
#[test]
fn test_u8_min() {
2020-07-31 01:41:03 +03:00
TestU8::test_min();
}
#[test]
fn test_u8_min_fail() {
TestU8::test_min_fail();
2020-07-16 05:55:04 +03:00
}
#[test]
fn test_u8_max() {
2020-07-31 01:41:03 +03:00
TestU8::test_max();
2020-07-16 05:55:04 +03:00
}
#[test]
2020-07-31 01:41:03 +03:00
fn test_u8_max_fail() {
TestU8::test_max_fail();
2020-07-16 05:55:04 +03:00
}
#[test]
fn test_u8_add() {
TestU8::test_add();
}
#[test]
fn test_u8_sub() {
TestU8::test_sub();
}
#[test]
fn test_u8_mul() {
TestU8::test_mul();
}
2020-06-06 02:35:50 +03:00
#[test]
2020-07-16 05:55:04 +03:00
fn test_u8_div() {
TestU8::test_div();
}
2020-06-06 02:35:50 +03:00
2020-07-16 05:55:04 +03:00
#[test]
fn test_u8_pow() {
TestU8::test_pow();
}
2020-06-06 02:35:50 +03:00
2020-07-16 05:55:04 +03:00
#[test]
fn test_u8_eq() {
TestU8::test_eq();
}
2020-06-06 02:35:50 +03:00
2020-07-16 05:55:04 +03:00
#[test]
fn test_u8_ge() {
TestU8::test_ge();
}
2020-06-06 02:35:50 +03:00
2020-07-16 05:55:04 +03:00
#[test]
fn test_u8_gt() {
TestU8::test_gt();
}
2020-06-06 02:35:50 +03:00
2020-07-16 05:55:04 +03:00
#[test]
fn test_u8_le() {
TestU8::test_le();
}
#[test]
fn test_u8_lt() {
TestU8::test_lt();
}
#[test]
fn test_u8_assert_eq() {
TestU8::test_assert_eq();
}
#[test]
fn test_u8_ternary() {
TestU8::test_ternary();
2020-06-06 02:35:50 +03:00
}