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

Function CheckHexSigned32

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

Source from the content-addressed store, hash-verified

333}
334
335static void CheckHexSigned32(int32 v) {
336 using tensorflow::strings::Hex;
337 string actual = StrCat(Hex(v, tensorflow::strings::kZeroPad8));
338 string expected = Printf("%08x", v);
339 EXPECT_EQ(expected, actual) << " decimal value " << v;
340
341 actual = StrCat(Hex(v));
342 expected = Printf("%x", v);
343 EXPECT_EQ(expected, actual) << " decimal value " << v;
344}
345
346static void TestFastPrints() {
347 using tensorflow::strings::Hex;

Callers 1

TestFastPrintsFunction · 0.85

Calls 3

HexClass · 0.85
PrintfFunction · 0.85
StrCatFunction · 0.70

Tested by

no test coverage detected