| 4289 | class TestHalfFloatBuilder : public ::testing::Test { |
| 4290 | public: |
| 4291 | void VerifyValue(const HalfFloatBuilder& builder, int64_t index, float expected) { |
| 4292 | ASSERT_EQ(builder.GetValue(index), Float16(expected).bits()); |
| 4293 | ASSERT_EQ(builder.GetValue<Float16>(index), Float16(expected)); |
| 4294 | ASSERT_EQ(builder.GetValue<uint16_t>(index), Float16(expected).bits()); |
| 4295 | ASSERT_EQ(builder[index], Float16(expected).bits()); |
| 4296 | } |
| 4297 | }; |
| 4298 | |
| 4299 | TEST_F(TestHalfFloatBuilder, TestAppend) { |