leo/asg/tests/pass/integers/u32/mod.rs
2021-02-01 20:26:56 -08:00

111 lines
2.3 KiB
Rust

// Copyright (C) 2019-2021 Aleo Systems Inc.
// This file is part of the Leo library.
// The Leo library is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// The Leo library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
// Copyright (C) 2019-2021 Aleo Systems Inc.
// This file is part of the Leo library.
// The Leo library is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// The Leo library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
use super::IntegerTester;
test_uint!(TestU32);
#[test]
fn test_u32_min() {
TestU32::test_min();
}
#[test]
fn test_u32_max() {
TestU32::test_max();
}
#[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_ne() {
TestU32::test_ne();
}
#[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_console_assert() {
TestU32::test_console_assert();
}
#[test]
fn test_u32_ternary() {
TestU32::test_ternary();
}