| 4416 | class TestHalfFloatBuilder : public ::testing::Test { |
| 4417 | public: |
| 4418 | void VerifyValue(const HalfFloatBuilder& builder, int64_t index, float expected) { |
| 4419 | ASSERT_EQ(builder.GetValue(index), Float16(expected).bits()); |
| 4420 | ASSERT_EQ(builder.GetValue<Float16>(index), Float16(expected)); |
| 4421 | ASSERT_EQ(builder.GetValue<uint16_t>(index), Float16(expected).bits()); |
| 4422 | ASSERT_EQ(builder[index], Float16(expected).bits()); |
| 4423 | } |
| 4424 | }; |
| 4425 | |
| 4426 | TEST_F(TestHalfFloatBuilder, TestAppend) { |