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

98 lines
1.3 KiB
Rust

use crate::{
assert_satisfied,
expect_synthesis_error,
generate_main_input,
integers::{expect_computation_error, expect_parsing_error, IntegerTester},
parse_program,
};
use leo_input::types::{I64Type, IntegerType, SignedIntegerType};
use leo_typed::InputValue;
test_int!(
TestI64,
i64,
IntegerType::Signed(SignedIntegerType::I64Type(I64Type {})),
Int64
);
#[test]
fn test_i64_min() {
TestI64::test_min();
}
#[test]
fn test_i64_min_fail() {
TestI64::test_min_fail();
}
#[test]
fn test_i64_max() {
TestI64::test_max();
}
#[test]
fn test_i64_max_fail() {
TestI64::test_max_fail();
}
#[test]
fn test_i64_add() {
TestI64::test_add();
}
#[test]
fn test_i64_sub() {
TestI64::test_sub();
}
#[test]
fn test_i64_mul() {
TestI64::test_mul();
}
#[test]
#[ignore] // takes 2 minutes
fn test_i64_div() {
TestI64::test_div();
}
#[test]
fn test_i64_pow() {
TestI64::test_pow();
}
#[test]
fn test_i64_eq() {
TestI64::test_eq();
}
#[test]
fn test_i64_ge() {
TestI64::test_ge();
}
#[test]
fn test_i64_gt() {
TestI64::test_gt();
}
#[test]
fn test_i64_le() {
TestI64::test_le();
}
#[test]
fn test_i64_lt() {
TestI64::test_lt();
}
#[test]
fn test_i64_assert_eq() {
TestI64::test_assert_eq();
}
#[test]
fn test_i64_ternary() {
TestI64::test_ternary();
}