| 344 | } |
| 345 | |
| 346 | static void TestFastPrints() { |
| 347 | using tensorflow::strings::Hex; |
| 348 | |
| 349 | // Test min int to make sure that works |
| 350 | for (int i = 0; i < 10000; i++) { |
| 351 | CheckHex64(i); |
| 352 | CheckHex32(i); |
| 353 | CheckHexSigned32(i); |
| 354 | CheckHexSigned32(-i); |
| 355 | } |
| 356 | CheckHex64(0x123456789abcdef0ull); |
| 357 | CheckHex32(0x12345678); |
| 358 | |
| 359 | int8 minus_one_8bit = -1; |
| 360 | EXPECT_EQ("ff", StrCat(Hex(minus_one_8bit))); |
| 361 | |
| 362 | int16 minus_one_16bit = -1; |
| 363 | EXPECT_EQ("ffff", StrCat(Hex(minus_one_16bit))); |
| 364 | } |
| 365 | |
| 366 | TEST(Numbers, TestFunctionsMovedOverFromNumbersMain) { TestFastPrints(); } |
| 367 |
no test coverage detected