feature add types test
Some checks failed
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (push) Successful in 49s
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (push) Successful in 50s
rpcrypto-build / build (Debug, mipsel-openwrt-linux-musl.toolchain.cmake) (push) Successful in 52s
rpcrypto-build / build (Debug, hisiv500.toolchain.cmake) (push) Successful in 49s
rpcrypto-build / build (Debug, mipsel-openwrt-linux.toolchain.cmake) (push) Successful in 53s
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (push) Successful in 50s
rpcrypto-build / build (Release, himix200.toolchain.cmake) (push) Successful in 1m0s
rpcrypto-build / build (Release, hisiv500.toolchain.cmake) (push) Successful in 58s
rpcrypto-build / build (Release, mipsel-openwrt-linux-musl.toolchain.cmake) (push) Successful in 56s
rpcrypto-build / build (Release, mipsel-openwrt-linux.toolchain.cmake) (push) Successful in 47s
linux-x64-gcc / linux-gcc (push) Successful in 43s
linux-mips64-gcc / linux-gcc-mips64el (push) Failing after 3m12s
Some checks failed
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (push) Successful in 49s
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (push) Successful in 50s
rpcrypto-build / build (Debug, mipsel-openwrt-linux-musl.toolchain.cmake) (push) Successful in 52s
rpcrypto-build / build (Debug, hisiv500.toolchain.cmake) (push) Successful in 49s
rpcrypto-build / build (Debug, mipsel-openwrt-linux.toolchain.cmake) (push) Successful in 53s
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (push) Successful in 50s
rpcrypto-build / build (Release, himix200.toolchain.cmake) (push) Successful in 1m0s
rpcrypto-build / build (Release, hisiv500.toolchain.cmake) (push) Successful in 58s
rpcrypto-build / build (Release, mipsel-openwrt-linux-musl.toolchain.cmake) (push) Successful in 56s
rpcrypto-build / build (Release, mipsel-openwrt-linux.toolchain.cmake) (push) Successful in 47s
linux-x64-gcc / linux-gcc (push) Successful in 43s
linux-mips64-gcc / linux-gcc-mips64el (push) Failing after 3m12s
This commit is contained in:
parent
f94fa05559
commit
fd1978243a
@ -2,8 +2,7 @@ set(CMAKE_CXX_STANDARD 98)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
add_executable(ulib_test
|
||||
src/ulib/sigslot/sigslot_test.cpp)
|
||||
|
||||
src/ulib/base/types_test.cpp)
|
||||
target_link_libraries(ulib_test PRIVATE
|
||||
ulib
|
||||
gtest
|
||||
|
27
tests/src/ulib/base/types_test.cpp
Normal file
27
tests/src/ulib/base/types_test.cpp
Normal file
@ -0,0 +1,27 @@
|
||||
//
|
||||
// Created by tqcq on 2023/12/5.
|
||||
//
|
||||
|
||||
#include <ulib/base/types.h>
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
TEST(ULIB_BASE_TYPES, SIZE_OF)
|
||||
{
|
||||
EXPECT_EQ(sizeof(ulib::int8_t), sizeof(char));
|
||||
EXPECT_EQ(sizeof(ulib::int16_t), sizeof(short));
|
||||
EXPECT_EQ(sizeof(ulib::int32_t), sizeof(int));
|
||||
EXPECT_EQ(sizeof(ulib::int64_t), sizeof(long long));
|
||||
EXPECT_EQ(sizeof(ulib::uint8_t), sizeof(unsigned char));
|
||||
EXPECT_EQ(sizeof(ulib::uint16_t), sizeof(unsigned short));
|
||||
EXPECT_EQ(sizeof(ulib::uint32_t), sizeof(unsigned int));
|
||||
EXPECT_EQ(sizeof(ulib::uint64_t), sizeof(unsigned long long));
|
||||
|
||||
EXPECT_EQ(sizeof(ulib::int8_t), 1);
|
||||
EXPECT_EQ(sizeof(ulib::int16_t), 2);
|
||||
EXPECT_EQ(sizeof(ulib::int32_t), 4);
|
||||
EXPECT_EQ(sizeof(ulib::int64_t), 8);
|
||||
EXPECT_EQ(sizeof(ulib::uint8_t), 1);
|
||||
EXPECT_EQ(sizeof(ulib::uint16_t), 2);
|
||||
EXPECT_EQ(sizeof(ulib::uint32_t), 4);
|
||||
EXPECT_EQ(sizeof(ulib::uint64_t), 8);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user