#include "components/zucchini/algorithm.h"
#include <stddef.h>
#include <stdint.h>
#include "base/bit_cast.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace zucchini {
namespace {
inline int8_t signed8(uint8_t v) { … }
inline int32_t signed16(uint16_t v) { … }
}
TEST(AlgorithmTest, RangeIsBounded) { … }
TEST(AlgorithmTest, RangeCovers) { … }
TEST(AlgorithmTest, InclusiveClamp) { … }
TEST(AlgorithmTest, AlignCeil) { … }
TEST(AlgorithmTest, IncrementForAlignCeil) { … }
TEST(AlgorithmTest, GetBit) { … }
TEST(AlgorithmTest, GetBits) { … }
TEST(AlgorithmTest, SignExtend) { … }
TEST(AlgorithmTest, SignExtendTemplated) { … }
TEST(AlgorithmTest, SignedFit) { … }
}