| 4339 | class TestHalfFloatBuilder : public ::testing::Test { |
| 4340 | public: |
| 4341 | void VerifyValue(const HalfFloatBuilder& builder, int64_t index, float expected) { |
| 4342 | ASSERT_EQ(builder.GetValue(index), Float16(expected).bits()); |
| 4343 | ASSERT_EQ(builder.GetValue<Float16>(index), Float16(expected)); |
| 4344 | ASSERT_EQ(builder.GetValue<uint16_t>(index), Float16(expected).bits()); |
| 4345 | ASSERT_EQ(builder[index], Float16(expected).bits()); |
| 4346 | } |
| 4347 | }; |
| 4348 | |
| 4349 | TEST_F(TestHalfFloatBuilder, TestAppend) { |