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,
|
2020-08-01 00:06:01 +03:00
|
|
|
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, U64Type};
|
2020-06-26 00:27:19 +03:00
|
|
|
use leo_types::InputValue;
|
2020-06-06 02:35:50 +03:00
|
|
|
|
2020-07-16 05:55:04 +03:00
|
|
|
test_uint!(TestU64, u64, IntegerType::U64Type(U64Type {}), UInt64);
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn test_u64_min() {
|
2020-07-31 01:41:03 +03:00
|
|
|
TestU64::test_min();
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn test_u64_min_fail() {
|
|
|
|
TestU64::test_min_fail();
|
2020-07-16 05:55:04 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn test_u64_max() {
|
2020-07-31 01:41:03 +03:00
|
|
|
TestU64::test_max();
|
2020-07-16 05:55:04 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
2020-07-31 01:41:03 +03:00
|
|
|
fn test_u64_max_fail() {
|
|
|
|
TestU64::test_max_fail();
|
2020-07-16 05:55:04 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn test_u64_add() {
|
|
|
|
TestU64::test_add();
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn test_u64_sub() {
|
|
|
|
TestU64::test_sub();
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn test_u64_mul() {
|
|
|
|
TestU64::test_mul();
|
|
|
|
}
|
|
|
|
|
2020-06-06 02:35:50 +03:00
|
|
|
#[test]
|
2020-07-16 05:55:04 +03:00
|
|
|
fn test_u64_div() {
|
|
|
|
TestU64::test_div();
|
|
|
|
}
|
2020-06-06 02:35:50 +03:00
|
|
|
|
2020-07-16 05:55:04 +03:00
|
|
|
#[test]
|
|
|
|
fn test_u64_pow() {
|
|
|
|
TestU64::test_pow();
|
|
|
|
}
|
2020-06-06 02:51:26 +03:00
|
|
|
|
2020-07-16 05:55:04 +03:00
|
|
|
#[test]
|
|
|
|
fn test_u64_eq() {
|
|
|
|
TestU64::test_eq();
|
|
|
|
}
|
2020-06-06 02:51:26 +03:00
|
|
|
|
2020-07-16 05:55:04 +03:00
|
|
|
#[test]
|
|
|
|
fn test_u64_ge() {
|
|
|
|
TestU64::test_ge();
|
|
|
|
}
|
2020-06-06 02:51:26 +03:00
|
|
|
|
2020-07-16 05:55:04 +03:00
|
|
|
#[test]
|
|
|
|
fn test_u64_gt() {
|
|
|
|
TestU64::test_gt();
|
|
|
|
}
|
2020-06-06 02:51:26 +03:00
|
|
|
|
2020-07-16 05:55:04 +03:00
|
|
|
#[test]
|
|
|
|
fn test_u64_le() {
|
|
|
|
TestU64::test_le();
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn test_u64_lt() {
|
|
|
|
TestU64::test_lt();
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn test_u64_assert_eq() {
|
|
|
|
TestU64::test_assert_eq();
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn test_u64_ternary() {
|
|
|
|
TestU64::test_ternary();
|
2020-06-06 02:35:50 +03:00
|
|
|
}
|