mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 00:21:07 +01:00
Reviewed By: Nekitosss Differential Revision: D48323659 Pull Request resolved: https://github.com/pytorch/pytorch/pull/107186 Approved by: https://github.com/jeanschmidt
17 lines
256 B
C++
17 lines
256 B
C++
#include <c10/util/bit_cast.h>
|
|
|
|
#include <gmock/gmock.h>
|
|
#include <gtest/gtest.h>
|
|
|
|
#include <cstdint>
|
|
|
|
namespace c10 {
|
|
namespace {
|
|
|
|
TEST(bitCastTest, basic) {
|
|
ASSERT_THAT(bit_cast<std::int8_t>('a'), testing::Eq(97));
|
|
}
|
|
|
|
} // namespace
|
|
} // namespace c10
|