Initial import of libdpf.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
commit
e4e666f459
4563 changed files with 1690372 additions and 0 deletions
33
thirdparty/uint256_t/tests/testcases/assignment.cpp
vendored
Normal file
33
thirdparty/uint256_t/tests/testcases/assignment.cpp
vendored
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
#include <gtest/gtest.h>
|
||||
|
||||
#include "uint256_t.h"
|
||||
|
||||
TEST(Assignment, all){
|
||||
const uint256_t t_1 = true;
|
||||
const uint256_t f_1 = false;
|
||||
const uint256_t u8_1 = 0x01;
|
||||
const uint256_t u16_1 = 0x0123;
|
||||
const uint256_t u32_1 = 0x01234567;
|
||||
const uint256_t u64_1 = 0x0123456789abcdef;
|
||||
|
||||
uint256_t t_2 = 0;
|
||||
uint256_t f_2 = 0;
|
||||
uint256_t u8_2 = 0;
|
||||
uint256_t u16_2 = 0;
|
||||
uint256_t u32_2 = 0;
|
||||
uint256_t u64_2 = 0;
|
||||
|
||||
t_2 = t_1;
|
||||
f_2 = f_1;
|
||||
u8_2 = u8_1;
|
||||
u16_2 = u16_1;
|
||||
u32_2 = u32_1;
|
||||
u64_2 = u64_1;
|
||||
|
||||
EXPECT_EQ(t_1, t_2);
|
||||
EXPECT_EQ(f_1, f_2);
|
||||
EXPECT_EQ(u8_1, u8_2);
|
||||
EXPECT_EQ(u16_1, u16_2);
|
||||
EXPECT_EQ(u32_1, u32_2);
|
||||
EXPECT_EQ(u64_1, u64_2);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue