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
23
thirdparty/uint256_t/tests/testcases/logical.cpp
vendored
Normal file
23
thirdparty/uint256_t/tests/testcases/logical.cpp
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#include <gtest/gtest.h>
|
||||
|
||||
#include "uint256_t.h"
|
||||
|
||||
TEST(Logical, and){
|
||||
const uint256_t A(0xffffffff);
|
||||
const uint256_t B(0x00000000);
|
||||
|
||||
EXPECT_EQ(A && A, true);
|
||||
EXPECT_EQ(A && B, false);
|
||||
}
|
||||
|
||||
TEST(Logical, or){
|
||||
const uint256_t A(0xffffffff);
|
||||
const uint256_t B(0x00000000);
|
||||
|
||||
EXPECT_EQ(A || A, true);
|
||||
EXPECT_EQ(A || B, true);
|
||||
}
|
||||
|
||||
TEST(Logical, not){
|
||||
EXPECT_EQ(!uint256_t(0xffffffff), 0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue