MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TestFastPrints

Function TestFastPrints

tensorflow/core/lib/strings/strcat_test.cc:346–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344}
345
346static 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
366TEST(Numbers, TestFunctionsMovedOverFromNumbersMain) { TestFastPrints(); }
367

Callers 1

TESTFunction · 0.85

Calls 5

CheckHex64Function · 0.85
CheckHex32Function · 0.85
CheckHexSigned32Function · 0.85
HexClass · 0.85
StrCatFunction · 0.70

Tested by

no test coverage detected