| 322 | } |
| 323 | |
| 324 | static void CheckHex32(uint32 v) { |
| 325 | using tensorflow::strings::Hex; |
| 326 | string actual = StrCat(Hex(v, tensorflow::strings::kZeroPad8)); |
| 327 | string expected = Printf("%08x", v); |
| 328 | EXPECT_EQ(expected, actual) << " decimal value " << v; |
| 329 | |
| 330 | actual = StrCat(Hex(v)); |
| 331 | expected = Printf("%x", v); |
| 332 | EXPECT_EQ(expected, actual) << " decimal value " << v; |
| 333 | } |
| 334 | |
| 335 | static void CheckHexSigned32(int32 v) { |
| 336 | using tensorflow::strings::Hex; |
no test coverage detected