mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-20 16:11:35 +03:00
92 lines
1.2 KiB
Rust
92 lines
1.2 KiB
Rust
use crate::{
|
|
assert_satisfied,
|
|
expect_synthesis_error,
|
|
generate_main_inputs,
|
|
integers::{expect_fail, IntegerTester},
|
|
parse_program,
|
|
};
|
|
use leo_inputs::types::{IntegerType, U32Type};
|
|
use leo_types::InputValue;
|
|
|
|
test_uint!(TestU32, u32, IntegerType::U32Type(U32Type {}), UInt32);
|
|
|
|
#[test]
|
|
fn test_u32_min() {
|
|
TestU32::test_min();
|
|
}
|
|
|
|
#[test]
|
|
fn test_u32_min_fail() {
|
|
TestU32::test_min_fail();
|
|
}
|
|
|
|
#[test]
|
|
fn test_u32_max() {
|
|
TestU32::test_max();
|
|
}
|
|
|
|
#[test]
|
|
fn test_u32_max_fail() {
|
|
TestU32::test_max_fail();
|
|
}
|
|
|
|
#[test]
|
|
fn test_u32_add() {
|
|
TestU32::test_add();
|
|
}
|
|
|
|
#[test]
|
|
fn test_u32_sub() {
|
|
TestU32::test_sub();
|
|
}
|
|
|
|
#[test]
|
|
fn test_u32_mul() {
|
|
TestU32::test_mul();
|
|
}
|
|
|
|
#[test]
|
|
fn test_u32_div() {
|
|
TestU32::test_div();
|
|
}
|
|
|
|
#[test]
|
|
fn test_u32_pow() {
|
|
TestU32::test_pow();
|
|
}
|
|
|
|
#[test]
|
|
fn test_u32_eq() {
|
|
TestU32::test_eq();
|
|
}
|
|
|
|
#[test]
|
|
fn test_u32_ge() {
|
|
TestU32::test_ge();
|
|
}
|
|
|
|
#[test]
|
|
fn test_u32_gt() {
|
|
TestU32::test_gt();
|
|
}
|
|
|
|
#[test]
|
|
fn test_u32_le() {
|
|
TestU32::test_le();
|
|
}
|
|
|
|
#[test]
|
|
fn test_u32_lt() {
|
|
TestU32::test_lt();
|
|
}
|
|
|
|
#[test]
|
|
fn test_u32_assert_eq() {
|
|
TestU32::test_assert_eq();
|
|
}
|
|
|
|
#[test]
|
|
fn test_u32_ternary() {
|
|
TestU32::test_ternary();
|
|
}
|